/* ASPECTRA G public site. Identity colours from the approved mark and product CSS.
   No external fonts, CDNs or trackers. */
:root {
  color-scheme: dark;
  --bg: #071628;
  --bg-2: #0a1d33;
  --surface: #0d2238;
  --surface-2: #11294a;
  --line: #22405e;
  --text: #e6f3fb;
  --muted: #a9c2d6;
  --accent: #62d2ed;      /* mark mid-stop */
  --accent-strong: #9fe6f6;
  --accent-ink: #03172b;  /* text on accent buttons */
  --blue: #2078c8;        /* mark start stop */
  --ice: #d1f7ff;         /* mark end stop */
  --paper: #eef4f8;       /* report paper, as in the product */
  --paper-ink: #102236;
  --warn-bg: #1b2a1a;
  --notice-bg: #0b2a3f;
  --notice-line: #2f6f93;
  --focus: #b3f4ff;
  --shadow: 0 18px 60px #0009;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Charter", "Bitstream Charter", "Iowan Old Style", "Source Serif Pro", "Source Serif 4", Georgia, "Noto Serif", "DejaVu Serif", serif;
  --gutter: 16px;
  --max: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f7fb;
  --bg-2: #e7f0f7;
  --surface: #ffffff;
  --surface-2: #eaf3fa;
  --line: #c6d7e5;
  --text: #0a2238;
  --muted: #3c566e;
  --accent: #0b67a8;
  --accent-strong: #08507f;
  --accent-ink: #ffffff;
  --paper: #ffffff;
  --paper-ink: #102236;
  --notice-bg: #e2f3fb;
  --notice-line: #7fb8d6;
  --focus: #0b67a8;
  --shadow: 0 14px 40px #0a223826;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f2f7fb; --bg-2: #e7f0f7; --surface: #ffffff; --surface-2: #eaf3fa; --line: #c6d7e5;
    --text: #0a2238; --muted: #3c566e; --accent: #0b67a8; --accent-strong: #08507f; --accent-ink: #ffffff;
    --paper: #ffffff; --paper-ink: #102236; --notice-bg: #e2f3fb; --notice-line: #7fb8d6; --focus: #0b67a8;
    --shadow: 0 14px 40px #0a223826;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 62px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 23px; line-height: 1.3; }
h1 strong, h2 strong { font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }

/* Pilot notice: on every page, not dismissible. */
.pilot-strip { background: var(--notice-bg); border-bottom: 1px solid var(--notice-line); font-size: 14px; line-height: 1.45; }
.pilot-strip p { margin: 0; padding: 8px 0; max-width: none; }
.pilot-strip strong { font-weight: 650; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .site-header { backdrop-filter: blur(10px); } }
.head-row { display: flex; align-items: center; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand .g { font-weight: 650; color: var(--accent); }
@supports (-webkit-background-clip: text) {
  :root:not([data-theme="light"]) .brand .g { background: linear-gradient(140deg, #4fb6e5, #d1fbff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand .g { background: none; -webkit-text-fill-color: currentColor; } }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 8px 2px; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.theme-btn { min-width: 44px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-s); cursor: pointer; font: inherit; font-size: 14px; padding: 6px 10px; }
.theme-btn:hover { border-color: var(--accent); }
@media (max-width: 719px) {
  .head-row { gap: 4px 12px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 0 14px; }
  .site-nav a { font-size: 15px; padding: 6px 0; }
  .theme-btn { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-s); font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
:root:not([data-theme="light"]) .btn-primary { background: linear-gradient(105deg, #61b9ec, #82e3f0); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-primary { background: var(--accent); } }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.07); }
.btn-quiet { border-color: var(--line); color: var(--text); background: transparent; }
.btn-quiet:hover { border-color: var(--accent); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
main section { padding: clamp(56px, 8vw, 104px) 0; }
main section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.band { background: var(--bg-2); }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px) !important; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; } }
.hero h1 { max-width: 17ch; }
.hero .viewport { margin: 0; }
.hero .status { display: inline-block; font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; margin: 18px 0 0; }

/* Phantom viewport: the one bold element */
.viewport { background: #000; border: 1px solid #2a4560; border-radius: var(--radius-m); box-shadow: var(--shadow); overflow: hidden; color: #d8ecf7; }
.vp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; background: #0a1a2c; border-bottom: 1px solid #1f3a55; }
.vp-bar .vp-title { font-size: 14px; color: #cfe6f3; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { min-height: 36px; padding: 4px 10px; font: inherit; font-size: 13px; color: #d8ecf7; background: #10263d; border: 1px solid #2b4c6b; border-radius: var(--radius-s); cursor: pointer; }
.presets button[aria-pressed="true"] { background: #62d2ed; color: #03172b; border-color: #62d2ed; font-weight: 650; }
.vp-stage { position: relative; aspect-ratio: 1 / 1; }
.vp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.vp-stage canvas:focus-visible { outline: 3px solid #b3f4ff; outline-offset: -3px; }
.ov { position: absolute; font-size: 13px; line-height: 1.35; color: #e9f6ff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; pointer-events: none; margin: 0; }
.ov.tl { top: 10px; left: 12px; } .ov.tr { top: 10px; right: 12px; text-align: right; }
.ov.bl { bottom: 10px; left: 12px; } .ov.br { bottom: 10px; right: 12px; text-align: right; }
.vp-foot { padding: 10px 12px; font-size: 13px; color: #b9d2e3; background: #0a1a2c; border-top: 1px solid #1f3a55; }
.vp-foot p { margin: 0; max-width: none; }

/* Problem / solution */
.contrast { display: grid; gap: 24px; }
@media (min-width: 860px) { .contrast { grid-template-columns: 1fr 1fr; gap: 0; } }
.contrast > div { padding: 28px 0; }
@media (min-width: 860px) { .contrast > div { padding: 8px 40px 8px 0; } .contrast > div + div { padding: 8px 0 8px 40px; border-left: 1px solid var(--line); } }
.contrast h3 { margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 2px; background: var(--muted); }
.ticks.yes li::before { width: 11px; height: 6px; top: 16px; background: none; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Feature rows with product screenshots */
.feature { display: grid; gap: 24px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .feature.flip > .shot { order: -1; }
  .feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--shadow); background: #0d1b2c; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.feature ul { padding-left: 20px; margin: 0 0 1em; }
.feature li { margin: 4px 0; }

/* Report paper callout (echoes the signed report in the product) */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-s); padding: 22px 24px; border-top: 3px solid #1f7f86; font-family: var(--serif); box-shadow: var(--shadow); }
.paper p { max-width: none; }
.paper .sig { border-top: 1px solid #1f7f86; margin-top: 16px; padding-top: 12px; font-size: 15px; }

/* How it works */
.flow-fig { margin: 0; }
.flow-fig svg { width: 100%; height: auto; display: block; }
.flow-fig .flow-v { display: block; max-width: 420px; }
.flow-fig .flow-h { display: none; }
@media (min-width: 900px) { .flow-fig .flow-v { display: none; } .flow-fig .flow-h { display: block; } }
.f-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.f-box.key { stroke: var(--accent); }
.f-title { fill: var(--text); font-family: var(--sans); font-size: 16px; font-weight: 650; }
.f-text { fill: var(--muted); font-family: var(--sans); font-size: 13px; }
.f-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.f-dash { stroke: var(--muted); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.f-label { fill: var(--accent); font-family: var(--sans); font-size: 12.5px; font-weight: 600; }
.f-arrow { fill: var(--accent); }
.f-group { fill: color-mix(in srgb, var(--surface) 45%, transparent); stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 6; }
.f-group.cloud { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.f-group-t { fill: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.f-box.dashed { stroke-dasharray: 5 4; }
.f-box.audit { fill: var(--bg); }
.flow-fig .flow-v { max-width: 480px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 0 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 650; display: grid; place-items: center; }
.steps strong { display: block; }

/* Security */
.facts { display: grid; gap: 0 40px; }
@media (min-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { padding: 18px 0; border-top: 1px solid var(--line); }
.fact h3 { font-family: var(--sans); font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.fact p { margin: 0; color: var(--muted); }
.state { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; border: 1px solid var(--line); color: var(--muted); }
.state.now { border-color: var(--accent); color: var(--accent); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline h3 { font-family: var(--sans); font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

.ticks + h2, .ticks + h3 { margin-top: 32px; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }

/* Contact */
.contact-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-s); background: var(--surface); padding: 28px; }
.contact-box p { max-width: 62ch; }
.addr { font-size: 15px; color: var(--muted); }

/* Draft legal pages */
.draft-banner { border: 2px dashed #d9a441; background: color-mix(in srgb, #d9a441 12%, var(--surface)); border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 32px; }
.draft-banner p { margin: 0; max-width: none; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); }
.site-footer p { max-width: 60ch; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (forced-colors: active) { .brand .g { -webkit-text-fill-color: CanvasText; background: none; } }
