/* Blue Market. Mobile first; one breakpoint for wider screens. */
:root {
  --blue: #1e42dd;        /* brand blue from the original site */
  --blue-bright: #385dff;
  --navy: #122b46;
  --ink: #1e2132;
  --muted: #4d5c6d;
  --line: #dde3ea;
  --soft: #f2f4f5;
  --white: #fff;
  --radius: 10px;
  --wrap: 1140px;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: .75em 1.4em; border-radius: 999px;
  border: 2px solid var(--blue); color: var(--blue); background: #fff;
  font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--soft); color: var(--navy); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand img { display: block; width: 168px; height: auto; }
.nav-toggle { font: inherit; font-weight: 700; padding: .5em 1em; border: 2px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); cursor: pointer; }
.site-nav { display: none; width: 100%; padding: 8px 0 12px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav summary { display: block; padding: .55em 0; color: var(--navy); font-weight: 600; text-decoration: none; cursor: pointer; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .sub { padding-left: 1em; border-left: 1px solid var(--line); }
.site-nav .sub ul { padding-left: 1em; }
.site-nav .sub ul a { font-weight: 400; font-size: .95rem; padding: .35em 0; }
.nav-cta { margin-top: .6em; }
.site-nav .nav-cta { color: #fff; display: inline-block; padding: .75em 1.4em; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .brand img { width: 210px; }
  .site-nav { display: flex; align-items: center; gap: 24px; width: auto; padding: 0; }
  .nav-top { display: flex; gap: 22px; align-items: center; }
  .nav-cta { margin: 0; }
  .has-sub { position: relative; }
  .has-sub .sub {
    position: absolute; top: 100%; left: -16px; width: 380px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(18,43,70,.12);
    padding: 10px 18px; max-height: 80vh; overflow: auto;
  }
}

/* Page heads and sections */
.page-head { background: var(--soft); padding: 36px 0 28px; margin-bottom: 32px; }
.page-head p { color: var(--muted); max-width: 760px; }
.crumbs { font-size: .95rem; margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .95rem; }
.section { padding: 28px 0; }
.section-alt { background: var(--soft); padding: 40px 0; margin: 28px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--blue); font-size: .85rem; margin-bottom: .3em; }
.lead { font-size: 1.15rem; color: var(--muted); }

.hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0 48px; }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #e8edff; max-width: 720px; }
.hero .btn { border-color: #fff; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn:not(.btn-primary) { background: transparent; color: #fff; }
.hero .rotator { display: block; color: #cfd9ff; }

.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split.reverse > :first-child { order: 2; } }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.tile h2, .tile h3 { margin-top: 0; }
.tile img { display: block; margin: 0 auto 12px; max-height: 220px; width: auto; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .45em; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Pricing */
.plans { display: grid; gap: 20px; list-style: none; padding: 0; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan h2 { margin: 0; font-size: 1.25rem; }
.plan .sub { color: var(--muted); margin: .2em 0 .8em; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .checks { margin: 1em 0 1.4em; flex: 1; }
.plan .actions { margin: 0; }
.badge { position: absolute; top: -12px; right: 16px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; padding: .2em .8em; border-radius: 999px; }

/* Articles and long text */
.prose { padding-bottom: 12px; }
.prose img { display: block; margin: 1.2em auto; border-radius: 6px; }
.prose figure { margin: 1.2em 0; }
.prose blockquote, blockquote { margin: 1.4em 0; padding: .8em 1.2em; background: var(--soft); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.cta-band { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; padding-bottom: 40px; }
.cards { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { font-size: 1.15rem; margin: 0 0 .3em; }
.card p:last-child { margin: 0; color: var(--muted); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; font-size: .9rem; text-decoration: none; }

.stat { font-size: 2.4rem; font-weight: 800; color: var(--blue); margin: 0; line-height: 1; }
.quote { font-size: 1.15rem; font-style: italic; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .8em; }
.note { font-size: .95rem; color: var(--muted); }

/* Contact form */
.contact-form { margin-top: 1em; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3em; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8a97a6; border-radius: 6px; padding: .6em .75em;
}
.field textarea { resize: vertical; }
.contact-form button { font: inherit; font-weight: 700; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: #d6deea; margin-top: 56px; padding: 40px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.site-footer li { margin-bottom: .35em; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.footer-base .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Product badge icons from the old plan pages: show at icon size. */
img[src*="_JP_Real"], img[src*="JPApp_"], img[src*="_icon"], img[src*="_Icon"] { width: 120px; height: auto; display: block; margin: 0 0 12px; }
/* A split section whose image could not be recovered: let the text use the full width. */
.split > :only-child { grid-column: 1 / -1; max-width: 780px; }
.split img { display: block; margin: 0 auto; }
