/* Meridian (placeholder brand), v2: Apple-style type, Mercury-style calm.
   8px spacing scale. One accent colour. Whitespace before borders. */
:root {
  --blue: #2f55f5;
  --blue-deep: #2140c9;
  --blue-soft: #eef1ff;
  --coral: #ff6a4d;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --night: #0a0f24;           /* hero and dark bands */
  --night-2: #121a3a;
  --on-night: #f5f5f7;
  --on-night-muted: #a1a6bd;
  /* legacy names still used by some page CSS */
  --on-blue: #f5f5f7;
  --on-blue-muted: #a1a6bd;
  --coral-deep: #e8573a;
  --focus: #ffb703;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --body: var(--sans);
  --mono: var(--sans);

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #5a78ff; --blue-deep: #4664f5; --blue-soft: #161d3d;
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --line: #38383d;
    --bg: #000000; --bg-alt: #101014; --surface: #1c1c1e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #5a78ff; --blue-deep: #4664f5; --blue-soft: #161d3d;
  --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --line: #38383d;
  --bg: #000000; --bg-alt: #101014; --surface: #1c1c1e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.07; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.band { padding-block: var(--s9); }
.band.alt { background: var(--bg-alt); }
.band.dark { background: var(--night); color: var(--on-night); }
.band.dark .lede, .band.dark p { color: var(--on-night-muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.headline, .section-head h2 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
.lede, .section-head p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 38ch; margin-top: var(--s3); line-height: 1.4; }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head.center, .center .section-head { margin-inline: auto; }
/* Eyebrow labels are retired. If one is left in markup it renders as plain small text. */
.eyebrow { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; margin-bottom: var(--s2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 1.0625rem/1 var(--sans); letter-spacing: -0.01em; padding: 14px 24px; border-radius: 980px; text-decoration: none; border: 1.5px solid transparent; transition: background-color .3s ease, color .3s ease, border-color .3s ease; cursor: pointer; }
.btn-primary, .btn-coral, .btn-ink { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-coral:hover, .btn-ink:hover { background: var(--blue-deep); }
.btn-secondary, .btn-ghost { border-color: currentColor; color: var(--blue); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--night); }
.btn .arrow { display: none; }
a.more { color: var(--blue); text-decoration: none; font-weight: 400; font-size: 1.0625rem; white-space: nowrap; }
a.more::after { content: " ›"; }
a.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.band.dark a.more, .hero a.more, .page-hero a.more, .closing a.more { color: #8fa4ff; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.center .ctas, .ctas.center { justify-content: center; }

/* Header: frosted, thin (Mercury / Apple) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 15, 36, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--on-night); border-bottom: 1px solid rgba(255,255,255,.08); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; }
.logo { font: 600 1.15rem/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.logo svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { text-decoration: none; font-size: .875rem; color: var(--on-night); opacity: .8; transition: opacity .2s ease; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"]:not(.btn) { opacity: 1; }
.nav .btn { padding: 8px 16px; font-size: .875rem; opacity: 1; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px 0; font: 500 .95rem var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--gutter) var(--s4); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: var(--s3) 0; font-size: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: var(--s4); padding: 14px 24px; font-size: 1rem; border-bottom: 0; }
}

/* Hero: dark, calm, centered short lines */
.hero, .page-hero { background: radial-gradient(1000px 520px at 50% -10%, #2a3a8f 0%, rgba(42,58,143,0) 70%), var(--night); color: var(--on-night); padding-block: var(--s9) var(--s8); overflow: hidden; }
.hero h1, .page-hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.25rem); font-weight: 600; letter-spacing: -0.035em; }
.hero .sub, .page-hero .sub, .hero .lede, .page-hero .lede { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--on-night-muted); max-width: 32ch; margin-top: var(--s4); line-height: 1.35; }
.hero .ctas, .page-hero .ctas { margin-top: var(--s6); }
.hero .note, .page-hero .note { margin-top: var(--s3); font-size: .9375rem; color: var(--on-night-muted); }
.hero.center .sub, .hero.center .lede, .page-hero.center .lede, .page-hero.center .sub { margin-inline: auto; }
.hero-art { position: relative; min-width: 0; margin: var(--s8) auto 0; max-width: 520px; }

/* Score card (product visual) */
.score-card { background: #fff; color: #1d1d1f; border-radius: 24px; padding: var(--s5); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: var(--s4); text-align: left; }
.score-card .top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.score-card .label { font-size: .8125rem; color: #6e6e73; }
.score-card .title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; margin-top: var(--s1); }
.score-card .ring { width: 112px; height: 112px; flex: none; }
.score-card .areas { display: grid; gap: var(--s2); }
.score-card .area { display: grid; grid-template-columns: 80px 1fr 32px; align-items: center; gap: var(--s2); font-size: .875rem; color: #424245; }
.score-card .bar { height: 6px; background: #eef1ff; border-radius: 99px; overflow: hidden; }
.score-card .bar i { display: block; height: 100%; background: #2f55f5; border-radius: 99px; }
.score-card .bar i.low { background: #ff6a4d; }
.score-card .opp { border-top: 1px solid #e5e5ea; padding-top: var(--s3); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); font-size: .9375rem; }
.score-card .opp b { font-weight: 600; }
.score-card .opp span { color: #6e6e73; }
.pill { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.float-chip { display: none; }

/* Statement */
.statement { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.18; max-width: 26ch; }
.statement span { color: var(--muted); }
.center .statement { margin-inline: auto; }

/* AI On Call */
.credit-box { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(0,0,0,.25); }
.credit-box label { font-size: .9375rem; color: var(--muted); }
.credit-row { display: flex; align-items: center; gap: var(--s2); }
.credit-row input[type="range"] { flex: 1; accent-color: var(--blue); }
.credit-out { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.credit-box .btn { width: 100%; margin-top: var(--s2); }
.credit-box small { color: var(--muted); font-size: .8125rem; text-align: center; }
.facts-line { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s5); }
.facts-line div { display: flex; flex-direction: column; }
.facts-line b { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts-line span { color: var(--muted); font-size: .9375rem; }

/* Offer rows: whitespace, hairlines, no cards */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr) 10.5rem; gap: var(--s4); align-items: baseline; padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.row p { color: var(--muted); }
.row .price { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); } .row a.more { margin-top: var(--s2); } }
.fine { font-size: .875rem; color: var(--muted); margin-top: var(--s4); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.step { display: flex; flex-direction: column; gap: var(--s2); }
.step .art { background: var(--bg-alt); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: var(--s3); margin-bottom: var(--s3); }
.band.alt .step .art { background: var(--bg); }
.step .art svg { width: 100%; height: 100%; }
.step .num { font-size: .9375rem; color: var(--muted); }
.step h3 { font-size: 1.75rem; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } .step .art { max-width: 440px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.stat b { display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { margin-top: var(--s2); color: var(--muted); max-width: 26ch; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.person { display: flex; flex-direction: column; gap: var(--s1); }
.person .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); font-size: .8125rem; text-align: center; padding: var(--s2); margin-bottom: var(--s2); }
.person b { font-weight: 600; }
.person span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ: plain dividers */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.center .faq { margin-inline: auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 var(--s4); color: var(--muted); max-width: 62ch; }

/* Closing */
.closing { background: var(--night); color: var(--on-night); text-align: center; }
.closing h2 { font-size: clamp(2.5rem, 6vw, 4.25rem); max-width: 16ch; margin-inline: auto; }
.closing p { color: var(--on-night-muted); font-size: 1.25rem; margin-top: var(--s3); }
.closing .ctas { justify-content: center; margin-top: var(--s6); }

/* Footer: quiet, Apple-like */
.site-footer { background: var(--bg-alt); color: var(--muted); padding-block: var(--s7) var(--s5); font-size: .8125rem; }
.site-footer .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.site-footer h4 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin: 0 0 var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .about p { margin-top: var(--s2); max-width: 34ch; }
.site-footer .logo { color: var(--ink); }
.ask-ai { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.ask-ai a { color: var(--blue); }
.legal { margin-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Short hero for legal pages */
.page-hero.compact, .hero.compact { padding-block: var(--s8) var(--s6); }
.page-hero.compact h1, .hero.compact h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
