/* scan.forvex.app — forVEX Core dark tokens, matching Shared/DesignSystem/Theme.swift. */
:root {
  color-scheme: dark;
  --canvas: #0B0D0F;
  --surface: #181A1C;
  --surface-2: #222426;
  --border: #323435;
  --border-strong: #4F5152;
  --accent: #F97316;
  --accent-dim: rgba(249, 115, 22, 0.13);
  --accent-border: rgba(249, 115, 22, 0.32);
  --on-accent: #0B0D0F;
  --positive: #2DD4BF;
  --text: #F5F5F5;
  --text-muted: #99999A;
  --text-dim: #717374;
  --paper: #FFFFFF;
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-pill: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(11, 13, 15, 0.92); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { color: var(--text-muted); font-weight: 500; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav li a:hover { color: var(--text); }
.nav li a.cta { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-button); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.12s ease-out, background 0.12s ease-out; }
.btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #fb8a3c; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Type */
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
.lead { color: var(--text-muted); font-size: clamp(18px, 2.2vw, 21px); max-width: 38em; margin: 20px 0 0; }
.fine { color: var(--text-muted); font-size: 15px; margin-top: 16px; }
.muted { color: var(--text-muted); }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
section.hero { border-top: 0; padding: 72px 0 88px; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); margin: 14px 0 0; }

.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }

/* Key terms mock: a document thumbnail and the fields read off it */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 20px; max-width: 420px; justify-self: center; width: 100%; }
.mock-doc { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sheet { width: 54px; height: 70px; background: var(--paper); border-radius: 6px; padding: 8px 7px; flex: none; }
.sheet i { display: block; height: 3px; background: #c9cbcd; border-radius: 2px; margin-bottom: 5px; }
.sheet i:nth-child(1) { width: 70%; background: #8d9093; }
.sheet i:nth-child(4) { width: 55%; }
.sheet i:nth-child(6) { width: 80%; }
.mock-doc strong { display: block; font-size: 16px; }
.mock-doc span { color: var(--text-muted); font-size: 14px; }
.mock-label { color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 16px 0 8px; }
.terms { list-style: none; margin: 0; padding: 0; }
.terms li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.terms li:last-child { border-bottom: 0; }
.terms li span { color: var(--text-muted); }
.terms li b { font-weight: 600; text-align: right; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); font-size: 13px; font-weight: 600; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 16px; }
.card .kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.docs li { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 15px; }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 44em; }
.points li { padding-left: 28px; position: relative; color: var(--text-muted); }
.points li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--positive); }
.points li b { color: var(--text); }

/* forVEX block */
.forvex { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; }
.forvex img { width: 64px; height: 64px; border-radius: 14px; }
.forvex p { color: var(--text-muted); margin: 12px 0 0; max-width: 40em; }
@media (max-width: 560px) { .forvex { grid-template-columns: 1fr; padding: 24px; } }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

.closer { text-align: center; }
.closer .btn-row { justify-content: center; }
.closer p { color: var(--text-muted); margin: 14px auto 0; max-width: 34em; }

/* Long-form pages */
.doc { max-width: 46em; padding: 56px 0 88px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-muted); }
.doc p strong, .doc li strong { color: var(--text); }
.doc .updated { color: var(--text-muted); font-size: 15px; margin-top: 10px; }
.doc .short { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 24px; margin-top: 28px; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--text-muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
footer a { color: var(--text-muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
footer a:hover { color: var(--text); }
footer .tag { flex-basis: 100%; margin: 0; color: var(--text-dim); font-size: 14px; }
