/* AxiomGate public layer.
 *
 * site.css carries years of accreted page styles. This file sits on top of it
 * and does three things: it moves the public pages onto the same tokens as
 * Admin and Portal (src/ui/static/axiomgate-ui.css), it defines the sections of
 * the redesigned homepage, and it replaces the four Tailwind utilities the
 * pages still used, so the 451 KB Tailwind runtime no longer has to load.
 * Loaded after site.css; anything here wins by order, not by !important.
 */
:root {
  --bg: #0a1013;
  --surface: #0f181c;
  --surface-2: #132126;
  --surface-3: #1a2c32;
  --text: #f2f0e9;
  --muted: #aebcbb;
  --faint: #8a9e9f;
  --accent: #5cc0b2;
  --accent-soft: #b4ece3;
  --ok: #86d8cc;
  --warn: #fbbf24;
  --bad: #fb7185;
  --info: #9fc3d1;
  --cyan: #8fd3cb;
  --violet: #a9bfc9;
  --gold: #5cc0b2;
  --gold-line: rgba(92, 192, 178, .42);
  --line: rgba(170, 220, 214, .09);
  --line-strong: rgba(170, 220, 214, .16);
  --green: #5cc0b2;
  --green-hover: #86d8cc;
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* Tailwind utilities that survived on the public pages. */
.text-emerald-300 { color: #9ce5db; }
.text-emerald-400 { color: #82d8cd; }
.text-cyan-400 { color: #8fd3cb; }
.font-mono { font-family: var(--mono); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-zinc-300 { color: #d4e0de; }
.font-semibold { font-weight: 600; }

body { background: var(--bg); color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* The primary button carried white text on #5cc0b2: 2.5:1, below WCAG AA.
   Dark text on the accent is what Admin and Portal already use (ag-button). */
.button { background: var(--accent); border-color: var(--accent); color: #080e0f; justify-content: center; }
.button:hover { background: var(--green-hover); border-color: var(--green-hover); color: #080e0f; }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.button-quiet:hover { background: var(--surface-2); border-color: var(--accent); color: #fff; box-shadow: none; }
.button-large { padding: 14px 22px; font-size: 14px; }

/* ------------------------------------------------------------------ header */
.site-header { background: rgba(10, 16, 19, .86); }
.site-header .nav-inner { gap: 24px; }
.site-header nav { gap: 22px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); font: 600 12px var(--mono); letter-spacing: .6px; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
@media (max-width: 1100px) {
  .site-header .nav-inner { flex-wrap: wrap; height: auto; min-height: 64px; padding-block: 12px; row-gap: 0; }
  .nav-toggle { display: inline-flex; }
  .site-header nav { display: none; order: 10; width: 100%; flex-direction: column; gap: 0; margin: 10px 0 4px; padding-top: 6px; border-top: 1px solid var(--line); }
  .site-header[data-nav-open="true"] nav { display: flex; }
  .site-header nav a { padding: 12px 2px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
}

/* ----------------------------------------------------------------- layout */
.pub-section { padding-block: 88px; }
.pub-section + .pub-section { border-top: 1px solid var(--line); }
.pub-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--accent-soft); font: 600 11px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.pub-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.pub-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 650; }
.pub-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 560px; }
.pub-lede { color: var(--muted); font-size: 16px; line-height: 1.7; }
.pub-note { color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.pub-note a, .pub-lede a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.pub-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; min-width: 0; }
.pub-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 10.5px var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pub-badge[data-tone="bad"] { color: #fecdd3; border-color: rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .08); }
.pub-badge[data-tone="warn"] { color: #fde68a; border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.pub-badge[data-tone="ok"] { color: var(--accent-soft); border-color: rgba(92, 192, 178, .45); background: rgba(92, 192, 178, .08); }
.pub-badge[data-tone="info"] { color: #dcebf0; border-color: rgba(159, 195, 209, .4); background: rgba(159, 195, 209, .07); }

/* ------------------------------------------------------------------- hero */
.pub-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 40px 56px; }
.pub-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; margin: 0 0 22px; max-width: 640px; }
.pub-hero h1 em { font-style: normal; color: #9ce5db; }
.pub-hero .pub-lede { max-width: 560px; margin: 0 0 14px; }
.pub-icp { margin: 0 0 28px; color: var(--faint); font-size: 13.5px; }
.pub-icp strong { color: var(--text); font-weight: 600; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pub-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font: 500 12px var(--mono); }
.pub-facts li { display: inline-flex; align-items: center; gap: 8px; }
.pub-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Authority map: the real demo-fixture scan drawn as a graph. */
.authority-map { margin: 0; border: 1px solid #222d30; border-radius: 14px; background: linear-gradient(160deg, #0f1416, #090e11 60%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.authority-map-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .8px; }
.authority-map-bar .hero-demo-status { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-soft); }
.authority-map-body { padding: 22px 20px 18px; display: grid; gap: 14px; }
.am-findings { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.am-findings li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12.5px; color: var(--muted); }
.am-findings strong { color: var(--text); font-weight: 600; }
.am-caption { padding: 12px 18px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.55; }
.am-caption a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ proof strip */
.proof-strip { padding-block: 8px 40px; }
.proof-strip .trust-strip-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; }
.proof-strip .trust-strip-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; font-size: 12px; color: var(--faint); }
.proof-strip .trust-strip-header strong { font: 600 11px var(--mono); letter-spacing: 1.2px; color: var(--accent-soft); }
.proof-strip .trust-strip-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proof-strip .trust-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 4px; }
.proof-strip .trust-stat strong { font-size: 15px; color: var(--text); }
.proof-strip .trust-stat span { font-size: 12px; color: var(--muted); }
.proof-strip .trust-strip-tagline { margin: 14px 0 0; color: var(--faint); font-size: 12px; line-height: 1.6; }

/* ----------------------------------------------------------------- problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.problem-grid h3 { margin: 0 0 8px; font-size: 16px; }
.problem-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.problem-grid .pub-kicker { color: var(--accent-soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-grid h3 { margin: 0 0 8px; font-size: 16px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.trust-grid p a, .pub-head p a { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(92, 192, 178, .4); text-underline-offset: 3px; }

/* ---------------------------------------------------------- how it works */
.evidence-chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: step; }
.evidence-chain li { position: relative; padding: 18px 18px 18px 0; border-top: 2px solid var(--line-strong); }
.evidence-chain li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 10px; color: var(--accent); font: 600 11px var(--mono); letter-spacing: 1px; }
.evidence-chain li:first-child { border-top-color: var(--accent); }
.evidence-chain strong { display: block; margin-bottom: 6px; font-size: 15px; }
.evidence-chain span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layer-card { display: flex; flex-direction: column; gap: 12px; }
.layer-card h3 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.layer-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.layer-card .pub-badge { align-self: flex-start; margin-top: auto; white-space: normal; }
.layer-card code { color: var(--accent-soft); font-size: 12.5px; }
.layer-card a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- evidence states */
.state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.state-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.state-item dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 650 12.5px var(--mono); letter-spacing: .4px; color: var(--text); }
.state-item dt small { color: var(--faint); font: 500 11.5px var(--mono); letter-spacing: 0; }
.state-item dd { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.state-item[data-claim="safety"] { border-color: rgba(92, 192, 178, .4); }
.state-callout { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--warn); background: rgba(251, 191, 36, .05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.state-callout strong { color: var(--text); }

/* ------------------------------------------------------------------- demo */
.demo-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.demo-steps { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; }
.demo-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.demo-steps b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-soft); font: 600 12px var(--mono); }
.demo-steps strong { color: var(--text); font-weight: 600; }
.demo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-split h3 { margin: 0 0 8px; font: 600 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.demo-split ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.demo-panel .preview-scan-card { margin: 0; border: 1px solid #222d30; border-radius: 14px; background: var(--surface); padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.demo-panel .hero-scan-guarantees { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.demo-panel .hero-scan-guarantees span { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .4px; }
.demo-panel .preview-scan-input-row { display: flex; gap: 8px; }
.demo-panel .preview-scan-input-row input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #081114; color: var(--text); font: 13px var(--mono); }
.demo-panel .preview-scan-input-row input:focus-visible { border-color: var(--accent); }
.demo-panel .hero-demo-trigger-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.demo-panel .hero-demo-label { color: var(--faint); font-size: 12.5px; }
.demo-panel .hero-demo-pill { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(92, 192, 178, .45); border-radius: var(--radius-sm); background: rgba(92, 192, 178, .08); color: var(--accent-soft); font: 600 12.5px Inter, sans-serif; cursor: pointer; text-align: left; }
.demo-panel .hero-demo-pill:hover { background: rgba(92, 192, 178, .16); }
.demo-panel .preview-scan-status { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.demo-panel .preview-scan-status.error { color: #fecdd3; }
.demo-panel .preview-result-list { padding-left: 0; list-style: none; }
.demo-panel .preview-result-list li { overflow-wrap: break-word; }
.demo-panel .preview-result-subject-row { overflow-wrap: break-word; }
.demo-panel .preview-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-read { margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.demo-read strong { color: var(--text); }

/* --------------------------------------------------------------- teardown */
.teardown-proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.teardown-proof .hero-demo-shell { position: relative; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); overflow: hidden; }
.teardown-proof .hero-tab-pane { padding: 22px; }
.teardown-proof .hero-demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.teardown-proof .hero-demo-stat-secondary { grid-column: 1 / -1; }
.teardown-proof .hero-research-findings { display: flex; flex-wrap: wrap; gap: 6px; }
.teardown-proof .hero-research-note { overflow-wrap: break-word; }

/* ----------------------------------------------------------- after order */
.delivery-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.delivery-flow li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; display: grid; gap: 6px; align-content: start; }
.delivery-flow b { color: var(--accent-soft); font: 600 11px var(--mono); letter-spacing: 1px; }
.delivery-flow strong { font-size: 15px; }
.delivery-flow span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.pub-section .concierge-teaser-kicker { display: inline-block; margin: 0 0 10px; color: var(--accent-soft); font: 600 11px var(--mono); letter-spacing: 1px; }
.pub-section .hero-loop-note { margin: 0 0 32px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.pub-section .hero-loop-note strong { color: var(--text); }

/* ----------------------------------------------------------------- offers */
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.offer-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 20px; min-width: 0; }
.offer-card[data-emphasis="true"] { border-color: rgba(92, 192, 178, .5); background: linear-gradient(180deg, rgba(92, 192, 178, .06), var(--surface) 40%); }
.offer-card h3 { margin: 0; font-size: 19px; }
.offer-price { font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.offer-price small { color: var(--faint); font: 500 11px var(--mono); letter-spacing: .6px; }
.offer-scope { margin: 0; color: var(--text); font-size: 13.5px; }
.offer-facts { margin: 0; display: grid; gap: 10px; }
.offer-facts div { display: grid; gap: 2px; }
.offer-facts dt { color: var(--faint); font: 600 10.5px var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.offer-facts dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.offer-card .button { margin-top: auto; width: 100%; }
.automation-map-item strong { font-size: 10.5px; }
.automation-map-item span:last-child { color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.pricing-delivery-note { color: var(--muted); font-size: 12.5px !important; line-height: 1.75; }
.offer-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.offer-more .pub-card h3 { margin: 0 0 6px; font-size: 16px; }
.offer-more .pub-card p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.pub-section .automation-map { margin: 0 0 20px; }

/* -------------------------------------------------------------- final CTA */
.final-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px; border: 1px solid rgba(92, 192, 178, .35); border-radius: 16px; background: radial-gradient(ellipse at 90% 0%, rgba(92, 192, 178, .12), transparent 60%), var(--surface); }
.final-cta h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.final-cta p { margin: 0; color: var(--muted); max-width: 620px; }
.final-cta .pub-actions { justify-content: flex-end; }

/* -------------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-list summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent-soft); font: 600 16px var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-list details > div p { margin: 0; }
.faq-list a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------ supporting pages */
.page-intro { padding-block: 64px 32px; }
.page-intro h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -1.4px; line-height: 1.08; }
.page-intro p { margin: 0; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.page-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.page-steps li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-steps b { display: block; margin-bottom: 4px; color: var(--accent-soft); font: 600 11px var(--mono); letter-spacing: .8px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .pub-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .evidence-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .proof-strip .trust-strip-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pub-section { padding-block: 64px; }
  .pub-head, .demo-layout, .teardown-proof, .final-cta { grid-template-columns: 1fr; gap: 24px; }
  .problem-grid, .layer-grid, .state-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .delivery-flow, .page-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta .pub-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .pub-section { padding-block: 52px; }
  .pub-hero { padding-block: 32px 40px; }
  .pub-actions .button { width: 100%; }
  .offer-grid, .offer-more, .demo-split, .delivery-flow, .page-steps, .evidence-chain { grid-template-columns: 1fr; }
  .proof-strip .trust-strip-stats, .teardown-proof .hero-demo-metrics { grid-template-columns: 1fr; }
  .demo-panel .preview-scan-input-row { flex-direction: column; }
  .demo-panel .preview-scan-card { padding: 16px; }
  .final-cta { padding: 24px; }
  .authority-map-body { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Supporting pages: the page title is now a real h1 (it was an h2 with no h1
   on the page), so it needs the size the old section h2 carried. */
.section-intro h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -1.4px; line-height: 1.12; margin-bottom: 20px; }
.concierge-order-route h2 { display: block; margin: 0; color: #f2fbfa; font-size: 22px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; }
.site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
/* Service cards moved from h4 to h2 so the page no longer skips from h1 to h4. */
.specialist-card h2 { min-height: 38px; margin: 7px 0 8px; color: #fff; font-size: 15px; line-height: 1.25; letter-spacing: 0; }
.evidence-legend-head .source-note, .evidence-legend-foot .source-note { color: var(--muted); font-size: 13px !important; line-height: 1.75; }
.evidence-legend-foot .evidence-legend-terms { color: var(--muted); }
/* Keep the assistant available in the viewport gutter instead of covering card copy. */
.concierge-launcher { width: 44px; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 4px; }
.concierge-launcher > span:not(.status-dot) { display: none; }
.concierge-launcher::after { content: "AI"; font: 700 10px var(--mono); }
/* Stacked layout: the fixed Concierge launcher covered hero text (the lede at
   390 px, the map's evidence rows at 768 px). It yields while the hero sits
   under it (app.js sets data-clear-hero) and returns once the visitor scrolls
   past. An open concierge always shows it, and so does keyboard focus: hidden
   while focused, it left a keyboard user with no visible focus at all, so a
   focused launcher may sit over hero text until focus moves on. 1100px is the
   hero's own stacking breakpoint; side by side, the launcher clears the hero. */
@media (max-width: 1100px) {
  .concierge-launcher { right: 0; width: 40px; min-width: 40px; border-radius: 22px 0 0 22px; transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s; }
  .concierge-launcher[data-clear-hero]:not([aria-expanded="true"]):not(:focus) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  main > .shell, .footer.shell { width: calc(100% - 80px); margin-inline: auto; }
}
@media (max-width: 760px) {
  .concierge-launcher { width: 32px; min-width: 32px; gap: 2px; }
  .concierge-launcher::after { font-size: 9px; }
  main > .shell, .footer.shell { width: calc(100% - 64px); margin-inline: auto; }
}

/* ============================================================ design layer II
 * Semantic colour, one meaning each: emerald = VERIFIED, cyan = technical
 * structure / analysis, amber = UNKNOWN or caution, warm gold = commercial
 * scope (a bronze hue (about 30deg) against amber (about 43deg), on purpose), violet = formal methods,
 * red = a real hazard only. */
.pub-badge[data-tone="ok"] { color: var(--accent-soft); }
.pub-badge[data-tone="info"] { color: #d8f5f1; border-color: rgba(143, 211, 203, .38); background: rgba(143, 211, 203, .06); }
.pub-badge[data-tone="formal"] { color: #e3edf0; border-color: rgba(169, 191, 201, .42); background: rgba(169, 191, 201, .07); }
.pub-badge[data-tone="gold"] { color: var(--accent-soft); border-color: var(--gold-line); background: rgba(92, 192, 178, .08); }
.site-header { backdrop-filter: none; border-bottom: 1px solid var(--line); }
.site-header .nav-inner { min-height: 60px; }
.site-header nav a { font-size: 12.5px; letter-spacing: .1px; }
.nav-cta, .button, .pub-actions .button { min-height: 44px; }

/* Hero: a readout, not a drawn flow. Four aligned columns; every row is
   something the fixture scan reported, with its own state and source line. */
.am-readout { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0a0f12; }
.am-row { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.45fr) 92px minmax(0, 1.1fr); gap: 4px 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font: 11.5px/1.5 var(--mono); color: var(--muted); }
.am-row:first-child { border-top: 0; }
.am-head { padding-block: 8px; color: var(--faint); font: 600 10px var(--mono); letter-spacing: 1px; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
.am-prop { color: var(--text); font-weight: 650; overflow-wrap: break-word; }
.am-rel code { color: var(--cyan); font: inherit; }
.am-ev b { color: var(--text); font-weight: 600; }
.am-row[data-flag="finding"] { box-shadow: inset 3px 0 0 var(--bad); background: rgba(251, 113, 133, .04); }
.am-row .pub-badge { justify-self: start; }
.am-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.am-caption > span { flex: 1 1 280px; }
.am-run { min-height: 44px; flex: 0 0 auto; font-size: 12.5px; border-color: rgba(92, 192, 178, .5); color: var(--accent-soft); }
.am-findings li { grid-template-columns: 92px minmax(0, 1fr); }
.authority-map { box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }

/* Evidence states: one 3-part row per state (badge | meaning | implication). */
.state-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.state-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr); gap: 8px 28px; align-items: center; padding: 14px 20px; }
.state-item:first-child { border-top: 0; }
.state-item[data-claim="safety"] { box-shadow: inset 3px 0 0 var(--accent); }
.state-item dt { flex-direction: row; }

/* Sample report: the artifact is the proof, so it gets room. */
.report-preview { border: 1px solid var(--line-strong); border-radius: var(--radius); }

/* Engines now sit above pricing: formal-methods items read violet, structure cyan. */
.engine-card .text-cyan-400 { color: var(--cyan); }
.engine-card .text-violet-300, .formal-term { color: var(--violet); }

/* Pricing: a scope selector, not a poster. Gold marks the commercial
   emphasis; it is not amber and never means UNKNOWN. */
.always-included { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 18px; padding: 12px 14px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 12.5px; }
.always-included li:not(.always-label) { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.always-included .always-label { align-self: center; color: var(--accent); font: 700 10.5px var(--mono); letter-spacing: 1.2px; margin-right: 6px; }
.offer-card { padding: 20px 18px; gap: 12px; }
/* The recommended tier carries the same teal as every other primary action:
   one accent for "do this next", gold stays a label colour for commercial terms. */
.offer-card[data-emphasis="true"] { border-color: rgba(92, 192, 178, .5); }
.offer-card[data-emphasis="true"] .pub-kicker { color: var(--accent-soft); }
.offer-card .button { min-height: 44px; }
.offer-card[data-emphasis="true"] .button { background: var(--accent); border-color: var(--accent); color: #04201c; }
.offer-card[data-emphasis="true"] .button:hover { background: var(--green-hover); border-color: var(--green-hover); }
.scope-matrix { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.scope-matrix caption { caption-side: top; text-align: left; padding: 0 0 8px; color: var(--faint); font: 600 10.5px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.scope-matrix th, .scope-matrix td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); }
.scope-matrix thead th { color: var(--faint); font: 600 10.5px var(--mono); letter-spacing: .8px; text-transform: uppercase; border-top: 0; background: var(--surface); }
.scope-matrix tbody th { color: var(--text); font-weight: 600; }
.scope-matrix tbody tr[data-emphasis="true"] th { box-shadow: inset 3px 0 0 var(--accent); }

/* Final CTA now closes the page after the FAQ. */
.order-cta-section { padding-block: 72px 96px; }
.final-cta { border-color: var(--line-strong); background: var(--surface); }
.faq-list summary { min-height: 48px; align-items: center; }

/* Footer: four columns on desktop, two on tablet, one stack on phones. */
.footer.footer-columns { display: grid !important; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; padding-block: 48px 40px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-columns .footer-brand p { margin: 12px 0 0; max-width: 300px; color: var(--muted); line-height: 1.65; }
.footer-columns .footer-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-columns .footer-col h2 { margin: 0 0 8px; color: var(--faint); font: 600 10.5px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.footer-columns .footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }
.footer-columns .footer-col a:hover { color: #fff; }
.footer-columns .footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); }
@media (max-width: 1100px) {
  .state-item { grid-template-columns: 1fr; }
  .footer.footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer.footer-columns > .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .am-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prop state" "rel rel" "ev ev"; padding-block: 9px; }
  .am-head { display: none; }
  .am-row .am-prop { grid-area: prop; }
  .am-row > :nth-child(3) { grid-area: state; }
  .am-row .am-rel { grid-area: rel; }
  .am-row .am-ev { grid-area: ev; }
  .am-findings li { grid-template-columns: 1fr; gap: 4px; }
  .scope-matrix { table-layout: fixed; }
  .scope-matrix th, .scope-matrix td { padding: 9px 5px; font-size: 11px; overflow-wrap: break-word; }
  .scope-matrix thead th { font-size: 9.5px; letter-spacing: .3px; }
  .scope-matrix th:nth-child(1) { width: 22%; }
  .scope-matrix th:nth-child(2) { width: 18%; }
  .scope-matrix th:nth-child(3) { width: 18%; }
  .scope-matrix th:nth-child(4) { width: 20%; }
  .footer.footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer.footer-columns > .footer-col:last-of-type { grid-column: 1 / -1; }
}

/* Hero: top-aligned so the live readout and its run link stay in the first viewport. */
.pub-hero .hero-copy { padding-top: 24px; }
.am-findings { gap: 6px; }
@media (max-width: 1100px) { .pub-hero .hero-copy { padding-top: 0; } }

/* Contact modal: flat scrim (no blur), 44px touch targets, legible small text. */
.modal-overlay { backdrop-filter: none; background: rgba(3, 5, 5, .88); }
.modal-window { max-width: 520px; border-color: var(--line-strong); }
.modal-close { min-width: 44px; min-height: 44px; font-size: 18px; }
.modal-person span { font-size: 12px; line-height: 1.45; }
.modal-person-links { font-size: 12px; gap: 4px 10px; }
.modal-person-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent-soft); }
.modal-body input, .modal-body select, .modal-body textarea { min-height: 44px; font-size: 14px; }
.modal-body textarea { min-height: 96px; }
.modal-body button { min-height: 44px; }
@media (max-width: 520px) { .modal-people { grid-template-columns: 1fr; } }

@media (max-width: 1100px) and (min-width: 641px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Petrol depth: a faint cool wash at the top of the page, so the near-black
   background reads as the product surface rather than flat black. */
body { background: radial-gradient(1200px 520px at 78% -120px, rgba(92, 192, 178, .07), transparent 70%), var(--bg); background-repeat: no-repeat; }

/* ------------------------------------------------------------ panel system
   One surface language for every evidence panel: a petrol gradient, a thin
   cool border and a soft drop shadow. Glow is reserved for the hero readout
   and the primary order surface, so it still means "start here". */
:root {
  --panel: linear-gradient(165deg, #121f24 0%, #0d171b 55%, #0b1417 100%);
  --panel-line: rgba(140, 210, 200, .14);
  --panel-line-strong: rgba(140, 210, 200, .24);
}
.pub-card, .offer-card, .state-grid, .evidence-legend, .proof-strip .trust-strip-box,
.teardown-proof .hero-demo-shell, .demo-panel .preview-scan-card, .final-cta {
  background: var(--panel); border-color: var(--panel-line);
}
.proof-strip .trust-stat { background: rgba(19, 33, 38, .7); border-color: var(--panel-line); }
.authority-map {
  background: linear-gradient(160deg, #13232a 0%, #0d181c 45%, #0a1215 100%);
  border-color: var(--panel-line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(92, 192, 178, .04), 0 0 80px rgba(92, 192, 178, .05);
}
.authority-map-bar { background: rgba(10, 18, 21, .6); }
.offer-card[data-emphasis="true"] { border-color: rgba(92, 192, 178, .5); background: linear-gradient(180deg, rgba(92, 192, 178, .08), transparent 40%), var(--panel); box-shadow: 0 0 0 1px rgba(92, 192, 178, .08), 0 20px 50px rgba(0, 0, 0, .35); }
.final-cta { border-color: rgba(92, 192, 178, .35); background: radial-gradient(ellipse at 90% 0%, rgba(92, 192, 178, .12), transparent 60%), var(--panel); }
.pub-card:hover, .offer-card:hover { border-color: var(--panel-line-strong); }
.pub-card, .offer-card { transition: border-color .15s; }
.button { box-shadow: 0 0 0 1px rgba(92, 192, 178, .2), 0 8px 24px rgba(92, 192, 178, .14); }
.button.button-quiet { box-shadow: none; background: rgba(15, 26, 30, .6); border-color: var(--line-strong); color: var(--text); }
.button.button-quiet:hover { border-color: rgba(92, 192, 178, .5); background: rgba(92, 192, 178, .08); color: var(--accent-soft); }

/* Homepage information hierarchy (final pass): four-step method, the
   inspected / not-established split, a three-part public-scan explanation and
   the collapsed technical-reviewer panel that keeps internal verification
   metrics out of the sales narrative. */
.evidence-chain.evidence-chain-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scope-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scope-split .pub-kicker { margin-bottom: 12px; }
.scope-split .scope-card-out .pub-kicker { color: var(--faint); }
.scope-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.scope-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.scope-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; border-radius: 2px; background: var(--accent); }
.scope-card-out .scope-list li::before { background: var(--faint); opacity: .7; }
.demo-title { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1.2px; line-height: 1.12; }
.demo-split { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-split .pub-card { padding: 16px; }
.demo-split ul { padding-left: 16px; font-size: 12.5px; }
.demo-split { margin-top: 28px; }
.delivery-block { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.proof-strip { background: transparent; border: 0; }
.proof-strip details > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; cursor: pointer; list-style: none; color: var(--faint); font-size: 13px; }
.proof-strip details > summary::-webkit-details-marker { display: none; }
.proof-strip details > summary strong { font: 600 11px var(--mono); letter-spacing: 1.2px; color: var(--accent-soft); }
.proof-strip details > summary::after { content: "+"; margin-left: auto; color: var(--accent); font: 600 16px var(--mono); }
.proof-strip details[open] > summary { margin-bottom: 16px; }
.proof-strip details[open] > summary::after { content: "−"; }
.final-cta .pub-actions { align-items: center; }
@media (max-width: 1100px) {
  .evidence-chain.evidence-chain-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .evidence-chain.evidence-chain-4, .scope-split { grid-template-columns: 1fr; }
}
.delivery-block .hero-loop-note { max-width: 760px; margin-top: 18px; }
