/* Layout: bold, practical marketing shell. Warm black bands, signal orange for action, mono for data.
   Same tokens as the app so the site and the product read as one thing. */
:root {
  --bg: #12100c; --surface: #1a1714; --surface-2: #231f1a; --line: #34302a;
  --fg: #f4f2ef; --muted: #a79f94; --accent: #ff641c; --accent-strong: #ca4000; --accent-fg: #ffffff; --accent-soft: #3a1f10;
  --sign: #0b0a08; --ok: #6fd394; --ok-soft: #15301f; --red: #ff7a6e; --red-soft: #3d1a17; --amber: #f2c230; --amber-soft: #352b0c;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f4; --surface: #ffffff; --surface-2: #f0eeeb; --line: #e2ddd6; --fg: #12100c; --muted: #6b635a;
    --accent: #e5560f; --accent-strong: #ca4000; --accent-soft: #fde6d8; --ok: #1d7a3e; --ok-soft: #dbf0e1; --red: #b3261e; --red-soft: #f8dcd9; --amber: #a06c00; --amber-soft: #fbefd0;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f6f4; --surface: #ffffff; --surface-2: #f0eeeb; --line: #e2ddd6; --fg: #12100c; --muted: #6b635a;
  --accent: #e5560f; --accent-strong: #ca4000; --accent-soft: #fde6d8; --ok: #1d7a3e; --ok-soft: #dbf0e1; --red: #b3261e; --red-soft: #f8dcd9; --amber: #a06c00; --amber-soft: #fbefd0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sign); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
.in { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Top bar */
.top { background: var(--sign); color: #fff; border-bottom: 2px solid var(--accent); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .in { display: flex; align-items: center; gap: 18px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.shield { width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1; display: block; }
.brand small { display: block; font-size: 11px; opacity: .8; letter-spacing: .07em; text-transform: uppercase; }
.top nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; opacity: .88; }
.top nav a:hover { background: rgba(255,255,255,.08); opacity: 1; }
.top nav a.cta { background: var(--accent); color: var(--accent-fg); opacity: 1; font-weight: 600; }
.top nav a.cta:hover { background: var(--accent-strong); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 11px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.big { padding: 14px 22px; font-size: 17px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 6vw, 62px); line-height: 1.02; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.2; }
.kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; margin: 0; }
.muted { color: var(--muted); }
section { padding-block: 72px; }
section.band { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero .in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .in { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { font-size: 13px; color: var(--muted); }

/* Sample report */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.28); font-size: 13px; }
.report-top { background: var(--sign); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.report-top b { font-family: var(--font-display); font-size: 20px; display: block; line-height: 1.1; }
.report-top .ids { font-family: var(--font-mono); font-size: 12px; opacity: .8; margin-top: 4px; }
.grade { width: 52px; height: 52px; border: 3px solid #6fd394; color: #6fd394; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.kpis div { background: var(--surface); padding: 10px 12px; display: grid; }
.kpis span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpis strong { font-family: var(--font-display); font-size: 21px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-body { padding: 14px 16px; display: grid; gap: 12px; }
.flag { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 9px; align-items: start; padding: 7px 9px; border-radius: var(--r); }
.flag i { width: 9px; height: 9px; border-radius: 2px; margin-top: 5px; }
.flag.warn { background: var(--amber-soft); } .flag.warn i { background: var(--amber); }
.flag.good { background: var(--ok-soft); } .flag.good i { background: var(--ok); }
.mini-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.ship { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.ship span:nth-child(even) { color: var(--muted); text-align: right; }
.report-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.pillbtn { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r); border: 1px solid var(--line); }
.pillbtn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.sample-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; margin-top: 8px; }

/* Data strip */
.strip { background: var(--sign); color: #fff; padding-block: 18px; }
.strip .in { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; }
.strip b { color: var(--accent); font-weight: 500; }

/* Grids */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.who { border-top: 4px solid var(--accent); background: var(--bg); padding: 20px; display: grid; gap: 10px; align-content: start; border-radius: 0 0 var(--r) var(--r); }
.who p, .feat p { margin: 0; color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feat { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.feat .tagline { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; counter-reset: s; }
.step { display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--accent); line-height: 1; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; align-items: stretch; }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.price.best { border: 2px solid var(--accent); position: relative; }
.price.best::after { content: "Most popular"; position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.amt { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.amt small { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { padding-left: 24px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price .btn { justify-content: center; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }

/* Closing band and footer */
.close { background: var(--sign); color: #fff; text-align: left; }
.close .in { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.close h2 { color: #fff; max-width: 22ch; }
footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
footer .in { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Auth and simple pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding-block: 48px; }
.auth .in { display: grid; gap: 18px; justify-items: center; width: 100%; }
.auth-note { max-width: 420px; text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.auth-slot { min-height: 420px; display: grid; place-items: start center; width: 100%; }
.auth-err { color: var(--red); max-width: 460px; text-align: center; }
.loading { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; padding-top: 40px; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.doc { padding-block: 48px 72px; }
.doc .in { max-width: 780px; }
.doc h1 { font-size: 40px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: var(--fg); }
.doc .note { background: var(--amber-soft); border: 1px solid var(--amber); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }

/* Small phones: keep the top bar on one row */
@media (max-width: 520px) {
  .top nav a:not(.cta):not([href="/sign-in/"]) { display: none; }
  .brand b { font-size: 18px; }
}
