/* ==========================================================================
   Metrix marketing site — shared stylesheet
   Design system: "Signal" — monochrome restraint + data-storytelling annotation.
   Approved reference: docs/marketing/gtm-strategy.md §1.
   No build step, by design — same pattern as docs/site/assets/style.css.
   ========================================================================== */

:root {
  --bg: #ffffff; --surface: #f7f7f8; --text: #0a0a0b; --dim: #6e6e76; --border: #e6e6e8;
  --accent: #4740e0; --accent-on: #ffffff; --accent-tint: rgba(71,64,224,0.14);
  --chart-muted: #dfdfe3; --chart-muted-strong: #9a9aa3;
  --code-bg: #14151a; --code-text: #e7e9ee; --code-dim: #838a99; --code-accent: #8b85ff; --code-str: #9fd88b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #141417; --text: #f2f2f4; --dim: #9a9aa3;
    --border: rgba(255,255,255,0.11); --accent: #756dee; --accent-on: #0b0b0d;
    --accent-tint: rgba(117,109,238,0.20); --chart-muted: #2c2c33; --chart-muted-strong: #6f6f7a;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #141417; --text: #f2f2f4; --dim: #9a9aa3;
  --border: rgba(255,255,255,0.11); --accent: #756dee; --accent-on: #0b0b0d;
  --accent-tint: rgba(117,109,238,0.20); --chart-muted: #2c2c33; --chart-muted-strong: #6f6f7a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
button { font: inherit; } a { color: inherit; } input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---- nav ---- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); }
.brand { font-weight: 650; font-size: 16px; text-decoration: none; color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: none; }
.nav-links a { color: var(--dim); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 720px) { .nav-links { display: flex; gap: 26px; font-size: 13.5px; } }
.theme-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.theme-toggle button { appearance: none; background: var(--bg); color: var(--dim); border: none; padding: 7px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.theme-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.nav-cta { font-weight: 500; font-size: 13.5px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--dim); margin-bottom: 18px; }
h1.headline { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; font-weight: 300; margin: 0 0 18px; letter-spacing: -0.015em; text-wrap: balance; }
h1.headline b { font-weight: 650; }
.sub { font-size: 15.5px; line-height: 1.65; color: var(--dim); max-width: 46ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-primary { background: var(--accent); color: var(--accent-on); font-weight: 500; font-size: 14.5px; padding: 13px 24px; border-radius: 4px; text-decoration: none; border: none; cursor: pointer; }
.cta-secondary { color: var(--text); font-weight: 500; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.cta-secondary-link { font-size: 13px; color: var(--dim); text-decoration: none; border-bottom: 1px dotted var(--border); padding-bottom: 1px; }

.chart-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px clamp(16px,3vw,26px) 18px; position: relative; }
.chart-card canvas { display: block; width: 100%; height: 168px; cursor: crosshair; }
.annotation-minimal { position: absolute; top: 20px; right: clamp(16px,3vw,26px); text-align: right; border-right: 2px solid var(--accent); padding-right: 12px; max-width: 170px; }
.annotation-minimal b { color: var(--text); display: block; font-size: 14px; font-weight: 650; }
.annotation-minimal span { font-size: 11px; color: var(--dim); }
.chart-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 8px; }
.curve-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 11px; padding: 4px 8px; border-radius: 5px; transform: translate(-50%, -130%); white-space: nowrap; opacity: 0; transition: opacity 0.1s ease; }

/* ---- section label ---- */
.section-label { padding: 54px 0 4px; }
.section-label span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.section-label .note { display: block; font-size: 12px; color: var(--dim); font-weight: 400; letter-spacing: normal; text-transform: none; margin-top: 6px; max-width: 60ch; }

/* ---- capability strip ---- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0 0; }
.cap-item { padding: 22px clamp(6px,2vw,14px); border-left: 1px solid var(--border); }
.cap-item:first-child { border-left: none; }
.cap-item .cv { font-size: 20px; font-weight: 600; }
.cap-item .cl { font-size: 12.5px; font-weight: 500; margin: 5px 0 3px; }
.cap-item .cd { font-size: 12px; color: var(--dim); line-height: 1.45; }

/* ---- coverage wall ---- */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 16px; }
.wall-tile { background: var(--bg); padding: 16px 16px 14px; }
.wall-tile .wl { font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.wall-tile canvas { width: 100%; height: 28px; display: block; margin-bottom: 8px; }
.wall-tile .wv { font-size: 18px; font-weight: 600; }
.wall-tile .wd { font-size: 11.5px; margin-top: 3px; }
.wall-tile .wd.up { color: var(--accent); font-weight: 600; }
.wall-tile .wd.flat { color: var(--dim); }

/* ---- ledger ---- */
.ledger { margin-top: 4px; }
.lrow { display: grid; grid-template-columns: 190px 1fr 170px; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); }
.lrow:last-child { border-bottom: 1px solid var(--border); }
.lrow .lname { font-size: 15px; font-weight: 500; }
.lrow p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
.ldata { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ldata canvas { width: 60px; height: 26px; flex: none; }
.ldata .lcap { font-size: 11.5px; color: var(--text); text-align: right; line-height: 1.3; }
.ldata .lcap b { color: var(--accent); font-weight: 650; display: block; }

/* ---- trust spotlight ---- */
.spotlight { border: 1px solid var(--border); border-radius: 12px; padding: 30px clamp(18px,4vw,38px); margin-top: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.spotlight blockquote { margin: 0 0 16px; font-size: 18px; font-weight: 300; line-height: 1.5; }
.spotlight blockquote b { font-weight: 650; color: var(--accent); }
.spotlight .who { font-size: 13px; color: var(--dim); }
.spotlight .who b { color: var(--text); font-weight: 600; }
.spotlight-stats { display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--border); padding-left: 26px; }
.spotlight-stat .sv { font-size: 22px; font-weight: 300; }
.spotlight-stat .sv b { font-weight: 650; }
.spotlight-stat .sl { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ---- access tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.tier { background: var(--bg); padding: 24px 20px 22px; display: flex; flex-direction: column; }
.tier.featured { background: var(--text); color: var(--bg); }
.tier-name { font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.tier-desc { font-size: 12px; color: var(--dim); margin-bottom: 16px; line-height: 1.5; }
.tier.featured .tier-desc { opacity: 0.65; }
.tier-price { font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.tier-price span { font-size: 11.5px; color: var(--dim); font-weight: 400; }
.tier.featured .tier-price span { opacity: 0.65; }
.tier ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tier li { font-size: 12.5px; padding-left: 14px; position: relative; line-height: 1.5; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.tier.featured li::before { color: currentColor; opacity: 0.5; }
.tier-cta { text-align: center; font-size: 12.5px; font-weight: 600; padding: 9px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); }
.tier.featured .tier-cta { background: var(--bg); color: var(--text); border-color: transparent; }

/* ---- docs preview ---- */
.docs-block { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; }
.docs-copy { padding: 28px clamp(18px,3vw,32px); }
.docs-copy h3 { font-size: 16px; font-weight: 650; margin: 0 0 8px; }
.docs-copy p { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 0 0 16px; max-width: 38ch; }
.docs-copy a { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.code-panel { background: var(--code-bg); color: var(--code-text); padding: 22px 20px; font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace; font-size: 12px; line-height: 1.7; overflow-x: auto; }
.code-panel .c-dim { color: var(--code-dim); } .code-panel .c-accent { color: var(--code-accent); } .code-panel .c-str { color: var(--code-str); }

/* ---- final cta ---- */
.final-cta { text-align: center; padding: 60px 0; border-top: 1px solid var(--border); margin-top: 50px; }
.final-cta h2 { font-size: 26px; font-weight: 300; margin: 0 0 22px; }
.final-cta h2 b { font-weight: 650; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; margin-bottom: 32px; }
.footer-brand .fb-name { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.footer-brand p { font-size: 12.5px; color: var(--dim); line-height: 1.55; max-width: 30ch; margin: 0; }
.footer-col h4 { font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--dim); }

@media (max-width: 760px) {
  .hero, .spotlight, .docs-block { grid-template-columns: 1fr; }
  .spotlight-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; flex-direction: row; flex-wrap: wrap; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-item:nth-child(3) { border-left: none; }
  .tiers { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 1fr; gap: 6px; }
  .ldata { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Funnel pages (site/get-started/**) — deliberately nav-free chrome
   ========================================================================== */
.mockup-wrap { max-width: 640px; margin: 0 auto; padding: 54px clamp(20px,5vw,0px) 60px; }
.funnel-brand { font-weight: 650; font-size: 16px; text-decoration: none; color: var(--text); display: inline-block; margin-bottom: 46px; }

/* stage 1: landing */
.s1-eyebrow { font-size: 13px; color: var(--dim); margin-bottom: 16px; max-width: 40ch; }
h2.s1-headline { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; font-weight: 300; margin: 0 0 20px; letter-spacing: -0.015em; text-wrap: balance; }
h2.s1-headline b { font-weight: 650; }
.s1-sub { font-size: 15px; line-height: 1.65; color: var(--dim); margin: 0 0 32px; max-width: 48ch; }
.s1-chart { border: 1px solid var(--border); border-radius: 10px; padding: 20px 18px 16px; margin-bottom: 22px; position: relative; }
.s1-chart canvas { display: block; width: 100%; height: 140px; }
.s1-proof { font-size: 13px; color: var(--dim); border-left: 2px solid var(--accent); padding-left: 12px; margin-bottom: 28px; line-height: 1.5; }
.s1-proof b { color: var(--text); }
.s1-cta-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* stage 2: book */
.s2-back { font-size: 12.5px; color: var(--dim); text-decoration: none; margin-bottom: 30px; display: inline-block; }
.s2-headline { font-size: 26px; font-weight: 650; margin: 0 0 10px; }
.s2-sub { font-size: 14px; color: var(--dim); margin: 0 0 30px; }
.form-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 8px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.form-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 14px; }
.form-submit { width: 100%; background: var(--accent); color: var(--accent-on); font-weight: 600; font-size: 14.5px; padding: 12px; border: none; border-radius: 6px; cursor: pointer; margin-top: 6px; }
.flow-arrow { text-align: center; font-size: 12px; color: var(--dim); padding: 14px 0; }
.slots-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 10px; }
.slots-head { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.slots-sub { font-size: 12px; color: var(--dim); margin-bottom: 16px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { appearance: none; border: 1px solid var(--border); border-radius: 6px; padding: 9px 6px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--text); cursor: pointer; }
.slot.picked { background: var(--accent); color: var(--accent-on); border-color: var(--accent); font-weight: 650; }
.fallback-link { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 16px; }
.fallback-link a { color: var(--accent); text-decoration: none; }

/* stage 3: confirmed */
.s3-check { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.s3-check svg { width: 20px; height: 20px; }
.s3-headline { font-size: 26px; font-weight: 650; margin: 0 0 8px; }
.s3-sub { font-size: 15px; color: var(--dim); margin: 0 0 30px; }
.s3-sub b { color: var(--text); }
.s3-list-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 22px; }
.s3-list-card h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.s3-list-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.s3-list-card li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.s3-list-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.s3-actions { display: flex; gap: 14px; align-items: center; }

/* build-status banner — remove once a stage is wired to a real backend */
.build-banner { background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--dim); margin-bottom: 28px; max-width: 640px; }
.build-banner b { color: var(--text); }
