/*
 * getsoreign.com. Identity: the business that keeps running at night.
 * Night (#0D1836) for the hero and the bands that carry the brand; cool paper
 * for reading; pawpaw orange (#FF7A2E) for actions; signal mint (#3DDBA4)
 * means "a system passes". One family: Bricolage Grotesque.
 * Phone first, light and dark. Every animated thing is fully visible at rest
 * and with reduced motion.
 */
@property --lvl { syntax: '<integer>'; inherits: false; initial-value: 5; }

:root {
  --night: #0D1836;
  --night-2: #142250;
  --night-deep: #08102A;
  --on-night: #EEF2FF;
  --on-night-muted: rgba(226, 232, 255, 0.78);
  --night-line: rgba(201, 214, 255, 0.18);
  --lamp: #FF7A2E;
  --lamp-hi: #FF9452;
  --signal: #3DDBA4;

  --paper: #F3F5F8;
  --tint: #E8ECF3;
  --surface: #FFFFFF;
  --ink: #111727;
  --body: #3A4459;
  --muted: #586278;
  --line: #D6DCE7;
  --lamp-text: #B23E0C;
  --signal-text: #0E6E4D;
  --working-bg: #DDF5EB; --working-fg: #0E5C40;
  --orders-bg: #FFE9DA; --orders-fg: #8A2F07;
  --pilot-bg: #E3E7FA; --pilot-fg: #2E3A8C;
  --partners-bg: #ECE8F0; --partners-fg: #4A3F5C;
  --shadow: 0 1px 2px rgba(17, 23, 39, 0.06);
  --shadow-lift: 0 22px 44px -18px rgba(13, 24, 54, 0.32);

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1022;
    --tint: #0F1731;
    --surface: #141D3B;
    --ink: #EEF2FC;
    --body: #C6CDE0;
    --muted: #A0AAC3;
    --line: #27315A;
    --lamp-text: #FF9A5C;
    --signal-text: #5DE3B3;
    --working-bg: rgba(61, 219, 164, 0.16); --working-fg: #7BEBC4;
    --orders-bg: rgba(255, 122, 46, 0.18); --orders-fg: #FFB98F;
    --pilot-bg: rgba(129, 140, 248, 0.2); --pilot-fg: #C7CEFF;
    --partners-bg: rgba(200, 186, 222, 0.16); --partners-fg: #E2D9EF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400;
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { white-space: nowrap; font-weight: 650; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 60;
  background: var(--lamp); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; color: #111727; }
:focus-visible { outline: 3px solid var(--lamp-text); outline-offset: 3px; }
.top, .hero, .test, .band--night, .foot { --lamp-text: var(--lamp-hi); }

/* ── Header (fixed, so compacting never moves the page) ──────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--on-night);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.top.is-compact, .top.is-open {
  background: rgba(13, 24, 54, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  box-shadow: 0 1px 0 var(--night-line);
}
.top-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); transition: height 220ms ease; }
.top.is-compact .top-inner { height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--on-night); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.bm-ring { fill: none; stroke: rgba(226, 232, 255, 0.35); stroke-width: 1.5; }
.bm-dot { fill: var(--signal); }
.bm-core { fill: var(--lamp); }
.brand-text { display: grid; line-height: 1.05; white-space: nowrap; }
.brand-text strong { font-size: 19px; font-weight: 760; letter-spacing: -0.02em; }
.brand-text span { font-size: 12px; color: var(--on-night-muted); }
.top-nav { display: none; }
.btn.top-cta { margin-left: auto; display: none; white-space: nowrap; }
.menu-btn {
  margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--night-line);
  background: transparent; color: var(--on-night); cursor: pointer; display: grid; place-items: center;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 200ms ease, background 200ms ease;
}
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-btn[aria-expanded='true'] .menu-bars { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1139px) {
  .top.is-open .top-nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px 16px 20px; background: var(--night); border-bottom: 1px solid var(--night-line);
  }
}
.top-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none;
  font-weight: 560; font-size: 17px; color: var(--on-night); border-bottom: 1px solid var(--night-line);
}
.nav-cta { margin-top: 14px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; max-width: 100%;
  font: inherit; font-size: 16px; font-weight: 680; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--big { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--primary { background: var(--lamp); color: #111727; box-shadow: 0 10px 24px -12px rgba(255, 122, 46, 0.7); }
.btn.btn--primary:hover { background: var(--lamp-hi); color: #111727; }
.btn--ghost-night { border-color: rgba(226, 232, 255, 0.4); color: var(--on-night); background: rgba(255, 255, 255, 0.02); }
.btn.btn--ghost-night:hover { border-color: var(--on-night); background: rgba(255, 255, 255, 0.08); }
.btn:active { transform: translateY(1px); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(60% 50% at 82% 30%, rgba(61, 219, 164, 0.14), transparent 70%),
    radial-gradient(50% 45% at 8% 100%, rgba(255, 122, 46, 0.16), transparent 70%),
    linear-gradient(180deg, #0B1530 0%, var(--night) 55%, #101D44 100%);
  padding: calc(var(--header-h) + 28px) 0 56px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(226, 232, 255, 0.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; gap: 40px; }
/* The living field (field.js): a WebGL galaxy behind the hero, centred on Serwaa.
   It replaces the ring's flat lines only once it is drawing; the pills stay HTML. */
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-field.is-on { opacity: 1; }
.hero.has-field .ring-lines { opacity: 0; transition: opacity 0.6s ease; }
.eyebrow { font-size: 14px; font-weight: 560; color: var(--signal); max-width: 36em; }
.hero h1 {
  margin-top: 16px; font-size: clamp(40px, 10.4vw, 78px); line-height: 0.98; font-weight: 760;
  letter-spacing: -0.035em; max-width: 13em;
}
.lead { margin-top: 20px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--on-night-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--on-night-muted); }

.hero-visual { margin: 0; display: grid; gap: 22px; justify-items: center; }
.hero-caption { grid-column: 1 / -1; max-width: 34em; font-size: 13px; line-height: 1.5; color: var(--on-night-muted); text-align: center; }

/* Phone and chat */
.phone {
  width: min(100%, 300px); padding: 10px; border-radius: 40px;
  background: linear-gradient(160deg, #26345F, #0A1129);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone-screen { border-radius: 31px; overflow: hidden; background: #0F1A2E; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #17263F; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--lamp) 0 22%, transparent 24%), conic-gradient(from 0deg, var(--signal), #2A9C78, var(--signal));
}
.chat-who { display: grid; line-height: 1.2; }
.chat-who strong { font-size: 14px; font-weight: 650; color: #F1F4FF; }
.chat-who span { font-size: 12px; color: rgba(226, 232, 255, 0.66); }
.chat {
  list-style: none; margin: 0; padding: 14px 12px 16px; display: grid; gap: 10px; align-content: start;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.03), transparent 40%),
    #0F1A2E;
}
.msg { position: relative; display: flex; }
.msg--out { justify-content: flex-end; }
.bubble { max-width: 86%; padding: 8px 10px 6px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.msg--in .bubble { background: #1F2E4A; color: #EEF2FF; border-top-left-radius: 4px; }
.msg--out .bubble { background: #135C46; color: #EFFFF8; border-top-right-radius: 4px; }
.bubble time { display: block; margin-top: 2px; font-size: 10.5px; text-align: right; opacity: 0.72; }
.typing {
  position: absolute; right: 0; top: 0; display: flex; gap: 4px; padding: 11px 12px; border-radius: 14px;
  border-top-right-radius: 4px; background: #135C46; opacity: 0;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 255, 248, 0.8); }
.chat-chip { display: flex; justify-content: center; }
.chat-chip span {
  font-size: 11.5px; font-weight: 600; color: #0B1A2E; background: var(--signal);
  padding: 4px 10px; border-radius: 999px;
}

/* The five-systems ring (shared by the hero and the "Five systems" diagram) */
.ring, .brain { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; }
.ring { margin-bottom: 56px; }
.ring-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-pent { fill: none; stroke: rgba(201, 214, 255, 0.22); stroke-width: 0.5; }
.spoke { stroke: var(--signal); stroke-width: 0.45; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.7; }
.node, .core {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 11px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 620;
  color: #EEF2FF; background: #143748; border: 1px solid rgba(61, 219, 164, 0.6);
}
.node::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: dot-on 500ms ease both; animation-delay: inherit; }
.core {
  left: 50%; top: 50%; padding: 12px 16px; font-size: 14px; font-weight: 700; color: #111727;
  background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 0 8px rgba(255, 122, 46, 0.14), 0 0 40px rgba(255, 122, 46, 0.45);
}
.meter {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 8px; line-height: 1; white-space: nowrap; color: var(--on-night);
}
.meter-label, .meter-of { font-size: 14px; color: var(--on-night-muted); }
.meter-num { font-size: 44px; font-weight: 780; letter-spacing: -0.04em; color: var(--signal); font-variant-numeric: tabular-nums; }
.meter-num { counter-reset: lvl var(--lvl); }
.meter-num::before { content: counter(lvl); }

/* The one orchestrated moment: 9:04pm, the assistant answers, the systems light up.
   Every step ends visible ("both" fill), so the settled frame equals the static one. */
.step-1, .step-2, .step-3, .step-4, .step-5 { animation: msg-in 480ms cubic-bezier(.2, .8, .2, 1) both; }
.step-1 { animation-delay: 400ms; }
.step-2 { animation-delay: 2400ms; }
.step-3 { animation-delay: 3700ms; }
.step-4 { animation-delay: 5400ms; }
.step-5 { animation-delay: 6000ms; }
.typing--1 { animation: typing 1400ms ease both 1000ms; }
.typing--2 { animation: typing 1200ms ease both 4200ms; }
.typing i { animation: dot 900ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
.node { animation: node-on 500ms ease both; }
.node-1 { animation-delay: 2700ms; }
.node-2 { animation-delay: 6400ms; }
.node-3 { animation-delay: 6900ms; }
.node-4 { animation-delay: 7400ms; }
.node-5 { animation-delay: 7900ms; }
.spoke { animation: draw 600ms ease both; }
.spoke-1 { animation-delay: 2700ms; }
.spoke-2 { animation-delay: 6400ms; }
.spoke-3 { animation-delay: 6900ms; }
.spoke-4 { animation-delay: 7400ms; }
.spoke-5 { animation-delay: 7900ms; }
.ring .core { animation: core-on 700ms ease both 8400ms, core-pulse 3.2s ease-in-out 9200ms infinite; }
.ring .meter-num { animation: lvl 8000ms linear both; }

@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes typing { 0% { opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes node-on {
  from { background: #111C3B; border-color: rgba(201, 214, 255, 0.22); color: rgba(226, 232, 255, 0.55); }
}
@keyframes dot-on { from { background: rgba(201, 214, 255, 0.3); box-shadow: none; } }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } }
@keyframes core-on { from { background: #111C3B; color: rgba(226, 232, 255, 0.6); box-shadow: none; border-color: rgba(201, 214, 255, 0.3); } }
@keyframes core-pulse { 50% { box-shadow: 0 0 0 14px rgba(255, 122, 46, 0.06), 0 0 52px rgba(255, 122, 46, 0.55); } }
@keyframes lvl {
  0%, 33.7% { --lvl: 0; } 33.8%, 80% { --lvl: 1; } 80.1%, 86.2% { --lvl: 2; }
  86.3%, 92.4% { --lvl: 3; } 92.5%, 98.6% { --lvl: 4; } 98.7%, 100% { --lvl: 5; }
}

/* ── Bands (sections) ─────────────────────────────────────────────────── */
.band { padding: 72px 0; }
.band--paper { background: var(--paper); }
.band--tint { background: var(--tint); }
.band--tight { padding: 48px 0 0; }
.band--test { padding-top: 24px; }
.band--night { background: var(--night); color: var(--on-night); }
.h2 { font-size: clamp(32px, 7vw, 54px); line-height: 1.03; font-weight: 740; letter-spacing: -0.032em; max-width: 18em; }
.h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.section-lead { margin-top: 16px; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--body); }

/* Restrained reveals: scroll-linked, never below 40% opacity, finished once the
   element is fully on screen. Browsers without scroll timelines show it as is. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes reveal { from { opacity: 0.4; transform: translateY(18px); } }

/* ── Problem story ────────────────────────────────────────────────────── */
.story-grid { display: grid; gap: 32px; }
.story-clock, .story-ticks { display: none; }
.story { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.beat {
  position: relative; padding: 20px 20px 22px 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.beat::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--lamp); }
.beat-time { font-size: 14px; font-weight: 680; color: var(--lamp-text); }
.beat-text { margin-top: 6px; font-size: 21px; line-height: 1.38; font-weight: 520; letter-spacing: -0.01em; color: var(--ink); }

/* ── Why now ──────────────────────────────────────────────────────────── */
.why-grid { margin-top: 40px; display: grid; gap: 30px 48px; }
.why { padding-top: 18px; border-top: 3px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.why h3 { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.why p { color: var(--body); }
.why .why-src { font-size: 13.5px; color: var(--muted); }
.why-src a { color: var(--ink); text-underline-offset: 3px; }

/* ── Five systems, one brain ──────────────────────────────────────────── */
.five-grid { display: grid; gap: 32px; grid-template-areas: 'copy' 'brain' 'desc'; }
.five-copy { grid-area: copy; }
.brain {
  grid-area: brain; justify-self: center; width: min(100%, 440px);
  border-radius: 28px; background:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 46, 0.16), transparent 45%),
    linear-gradient(160deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lift);
}
.brain .ring-lines { inset: 6%; width: 88%; height: 88%; }
.brain .spoke { stroke: rgba(61, 219, 164, 0.45); opacity: 1; stroke-dasharray: 1.6 1.4; }
.sys-node {
  position: absolute; left: calc(6% + var(--x) * 0.88); top: calc(6% + var(--y) * 0.88); transform: translate(-50%, -50%);
  min-height: 44px; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; border: 1px solid rgba(61, 219, 164, 0.55); background: #132451;
  color: #EEF2FF; font: inherit; font-size: 14px; font-weight: 620; white-space: nowrap; cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.sys-node::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.sys-node:hover { background: #1A3068; }
.sys-node[aria-pressed='true'] { background: var(--signal); border-color: var(--signal); color: #0B1A2E; box-shadow: 0 0 0 6px rgba(61, 219, 164, 0.18); }
.sys-node[aria-pressed='true']::before { background: #0B1A2E; }
.sys-node--core { min-height: 56px; padding: 0 20px; font-size: 16px; font-weight: 720; background: var(--lamp); border-color: var(--lamp); color: #111727; }
.sys-node--core::before { background: #111727; }
.sys-node--core:hover { background: var(--lamp-hi); }
.sys-node--core[aria-pressed='true'] { background: var(--lamp-hi); border-color: #FFD1B3; color: #111727; box-shadow: 0 0 0 8px rgba(255, 122, 46, 0.22); }
.sys-descs { grid-area: desc; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sys-desc { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sys-desc h3 { font-size: 19px; font-weight: 700; }
.sys-desc p { margin-top: 4px; color: var(--body); }
.js-sys .sys-desc { display: none; }
.js-sys .sys-desc.is-shown { display: block; padding: 24px 24px 26px; border-color: var(--signal-text); box-shadow: var(--shadow-lift); animation: panel-in 260ms ease both; }
.js-sys .sys-desc.is-shown h3 { font-size: 26px; letter-spacing: -0.02em; }
.js-sys .sys-desc.is-shown p { font-size: 18px; margin-top: 8px; }
@keyframes panel-in { from { opacity: 0.3; transform: translateY(8px); } }

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; position: relative; }
.steps::before, .steps::after { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--lamp); transform-origin: top; }
.step { position: relative; padding-left: 64px; display: grid; gap: 6px; }
.step-num {
  position: absolute; left: 0; top: 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; font-weight: 760; color: #111727; background: var(--lamp);
  box-shadow: 0 0 0 6px var(--tint);
}
.step h3 { font-size: 21px; line-height: 1.25; font-weight: 700; padding-top: 8px; }
.step p { color: var(--body); max-width: 30em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  }
}
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }

/* ── The test ─────────────────────────────────────────────────────────── */
.test {
  position: relative; color: var(--on-night); border-radius: 28px; padding: 26px 18px; outline: none;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(61, 219, 164, 0.12), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night) 60%);
  box-shadow: var(--shadow-lift);
}
.test h2 { font-size: clamp(28px, 6vw, 42px); line-height: 1.05; font-weight: 740; letter-spacing: -0.03em; }
.test-intro { margin-top: 10px; font-size: 16px; color: var(--on-night-muted); }
.questions { list-style: none; margin: 18px 0 0; padding: 0; }
.q { padding: 18px 0; border-top: 1px solid var(--night-line); }
.q-system { font-size: 14px; font-weight: 650; color: var(--signal); }
.q-text { margin: 6px 0 14px; font-size: 18px; line-height: 1.45; color: var(--on-night); }
.q-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 320px; }
.choice {
  min-height: 48px; border-radius: 12px; border: 1.5px solid rgba(226, 232, 255, 0.3);
  background: transparent; color: var(--on-night); font: inherit; font-size: 16px; font-weight: 680; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.choice:hover { border-color: var(--lamp); }
.choice[aria-pressed='true'] { background: var(--lamp); border-color: var(--lamp); color: #111727; }
.result { padding-top: 18px; border-top: 1px solid var(--night-line); }
.progress { font-size: 15px; color: var(--on-night-muted); }
.score { font-size: 30px; line-height: 1.15; font-weight: 760; letter-spacing: -0.02em; color: var(--signal); }
.selfcheck { margin-top: 8px; font-size: 14.5px; color: var(--on-night-muted); }
.gaps-title { margin: 18px 0 8px; font-size: 17px; font-weight: 680; color: var(--on-night); }
.gaps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gaps li { font-size: 15.5px; color: var(--on-night-muted); }
.gaps strong { color: var(--on-night); font-weight: 680; }
.allyes { margin-top: 12px; font-size: 15.5px; color: var(--on-night); }
.reco-line { margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--on-night); }
.reco-link { color: var(--lamp-hi); text-underline-offset: 3px; }
.reco-link:hover { text-decoration-thickness: 2px; }
.book { display: grid; gap: 8px; justify-items: start; padding-top: 20px; }
.book-note { font-size: 14.5px; color: var(--on-night-muted); }
.book .num { color: var(--on-night); }
.reset {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--on-night);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ── Cards (systems, offers, webinars) ────────────────────────────────── */
.cards { margin-top: 32px; display: grid; gap: 16px; align-items: stretch; }
.cards--live { list-style: none; padding: 0; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 22px 20px 22px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.card.is-recommended { border-color: var(--lamp); box-shadow: 0 0 0 3px var(--lamp), var(--shadow-lift); }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .card.is-recommended:hover { box-shadow: 0 0 0 3px var(--lamp), var(--shadow-lift); }
}
.card--feature {
  background: linear-gradient(165deg, var(--night-2), var(--night) 70%); color: var(--on-night); border-color: rgba(61, 219, 164, 0.35);
  --line: var(--night-line); --body: var(--on-night-muted); --muted: var(--on-night-muted); --ink: var(--on-night);
  --lamp-text: var(--lamp-hi);
}
.card-flags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: flex-start; }
.ribbon, .recommended, .badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; line-height: 1.2;
}
.ribbon { background: var(--signal); color: #0B1A2E; }
.recommended { background: var(--lamp); color: #111727; }
.badge--working, .badge--free { background: var(--working-bg); color: var(--working-fg); }
.badge--orders { background: var(--orders-bg); color: var(--orders-fg); }
.badge--pilot { background: var(--pilot-bg); color: var(--pilot-fg); }
.badge--partners { background: var(--partners-bg); color: var(--partners-fg); }
.card--feature .badge--free { background: rgba(61, 219, 164, 0.18); color: #9AF0D1; }

.card-name { font-size: 21px; line-height: 1.22; font-weight: 720; letter-spacing: -0.015em; color: var(--ink); }
.card-price { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-price-label { font-size: 13px; font-weight: 650; color: var(--lamp-text); }
.card-amount { font-size: 34px; line-height: 1.05; font-weight: 760; letter-spacing: -0.03em; color: var(--ink); }
.card-price-note { font-size: 14px; color: var(--muted); }
.card-headline { font-size: 17px; line-height: 1.42; font-weight: 600; color: var(--ink); }
.card-promise {
  padding: 11px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: var(--body);
  background: color-mix(in srgb, var(--signal) 10%, transparent); border: 1px solid color-mix(in srgb, var(--signal) 32%, transparent);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; color: var(--body); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.15em; width: 19px; height: 19px; border-radius: 50%; background: var(--signal); }
.ticks li::after {
  content: ''; position: absolute; left: 7px; top: 0.35em; width: 4px; height: 8px;
  border: solid #0B1A2E; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dots { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dots li { font-size: 14.5px; color: var(--body); }
.card-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; width: 100%; padding: 0 2px; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
}
.card-toggle-icon {
  width: 9px; height: 9px; border: solid var(--lamp-text); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform 180ms ease;
}
.card-toggle[aria-expanded='true'] .card-toggle-icon { transform: rotate(-135deg) translateY(-2px); }
.card-details { display: grid; gap: 10px; }
.card-details[data-open='false'] { display: none; }
.card-description { font-size: 15px; color: var(--body); }
.card-term { font-size: 14px; color: var(--body); }
.card-places { font-size: 13.5px; font-weight: 650; color: var(--lamp-text); }
.card-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.card-cta { margin-top: auto; width: 100%; }
.btn.btn--pay { margin-top: 10px; background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn.btn--pay:hover, .btn.btn--pay:focus-visible { background: var(--ink); color: var(--paper); }
.card-paynote { margin: 8px 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--muted); text-align: center; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 650;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--inline { display: inline; min-height: 0; }

.live-date { font-size: 28px; line-height: 1.1; font-weight: 760; letter-spacing: -0.02em; color: var(--lamp-text); }
.live-empty { margin-top: 20px; font-size: 16px; color: var(--body); }

/* ── Try it now ───────────────────────────────────────────────────────── */
.try-title { color: var(--ink); }
.try-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.try-item {
  display: grid; gap: 2px; min-height: 68px; padding: 13px 48px 13px 18px; position: relative;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.try-item::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border: solid var(--lamp-text); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg);
}
.try-item strong { font-size: 16.5px; font-weight: 680; }
.try-item > span { font-size: 14px; color: var(--muted); }
.try-item:hover { border-color: var(--lamp); }

/* ── Credibility ──────────────────────────────────────────────────────── */
.trust-grid { display: grid; gap: 36px; }
.trust-head { display: grid; gap: 28px; align-content: start; }
.trust-seal { width: 108px; height: 108px; }
.seal-ring { fill: none; stroke: rgba(201, 214, 255, 0.4); stroke-width: 1.5; }
.seal-ring--thin { stroke: rgba(201, 214, 255, 0.18); stroke-width: 1; }
.seal-dot { fill: var(--signal); }
.seal-core { fill: var(--lamp); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; }
.trust-list li { position: relative; padding: 20px 0 20px 40px; border-top: 1px solid var(--night-line); }
.trust-list li:last-child { border-bottom: 1px solid var(--night-line); }
.trust-list li::before {
  content: ''; position: absolute; left: 0; top: 24px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--signal);
}
.trust-list li::after {
  content: ''; position: absolute; left: 8px; top: 29px; width: 5px; height: 9px;
  border: solid var(--signal); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.trust-list p { font-size: 18.5px; line-height: 1.5; color: var(--on-night); max-width: 34em; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; display: flex; align-items: center;
  min-height: 64px; padding: 14px 52px 14px 0; font-size: 19px; line-height: 1.3; font-weight: 650; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; border-radius: 2px;
  background: var(--lamp-text); transition: transform 220ms ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--lamp-text); }
.faq-a { padding: 0 0 22px; }
.faq-a p { max-width: 38em; font-size: 17px; color: var(--body); }
.faq-item[open] .faq-a { animation: panel-in 240ms ease both; }

/* ── Final call ───────────────────────────────────────────────────────── */
.band--final {
  background:
    radial-gradient(55% 80% at 50% 120%, rgba(255, 122, 46, 0.28), transparent 70%),
    radial-gradient(40% 50% at 90% 0%, rgba(61, 219, 164, 0.1), transparent 70%),
    var(--night);
  padding: 88px 0;
}
.final { position: relative; display: grid; justify-items: start; }
.final-seal { display: none; }
.final-title { font-size: clamp(36px, 8.4vw, 72px); line-height: 1; font-weight: 760; letter-spacing: -0.035em; max-width: 12em; }
.final-lead { margin-top: 16px; font-size: 19px; color: var(--on-night-muted); }
.final-contact { margin-top: 20px; font-size: 15px; color: var(--on-night-muted); }
.final-contact .num { color: var(--on-night); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--night-deep); color: var(--on-night-muted); padding: 36px 0 64px; border-top: 1px solid var(--night-line); }
.foot p { margin: 0 0 8px; max-width: 72ch; font-size: 14px; line-height: 1.6; }
.foot-brand { color: var(--on-night); }
.foot .text-link { color: var(--on-night); }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }

/* ── Reduced motion: the settled frame, nothing moving ────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .try-item:hover { transform: none; }
}

/* ── Wider screens ────────────────────────────────────────────────────── */
@media (min-width: 520px) {
  .btn.top-cta { display: inline-flex; }
  .btn.nav-cta { display: none; }
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-toggle { display: none; }
  .card-details[data-open='false'] { display: grid; }
  .card-details { padding-top: 12px; border-top: 1px solid var(--line); }
  .try-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .test { padding: 34px 30px; }
}
@media (min-width: 520px) {
  .menu-btn { margin-left: 0; }
}
@media (min-width: 700px) {
  .hero-visual { grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 22px 28px; }
  .phone { width: 280px; }
  .ring { width: 280px; }
}
@media (min-width: 760px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding: 96px 0; }
  .band--tight { padding: 64px 0 0; }
  .band--test { padding-top: 32px; }
}
@media (min-width: 980px) {
  :root { --header-h: 72px; }
  .wrap { padding: 0 32px; }
  .hero { padding: calc(var(--header-h) + 56px) 0 80px; }
  .hero-copy { max-width: 820px; }
  .lead { font-size: 20px; }

  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .story-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .story-clock { display: block; margin-top: 40px; font-size: 88px; line-height: 1; font-weight: 780; letter-spacing: -0.05em; color: var(--lamp-text); font-variant-numeric: tabular-nums; }
  .story-ticks { display: flex; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
  .story-ticks li { width: 34px; height: 4px; border-radius: 4px; background: var(--line); transition: background 300ms ease; }
  .story-ticks li.is-on { background: var(--lamp); }
  .story { gap: 0; }
  .beat { min-height: 46vh; display: grid; align-content: center; padding: 32px 36px; border-radius: 0; background: transparent; border: 0; box-shadow: none; border-left: 2px solid var(--line); }
  .beat::before { left: -2px; top: 0; bottom: 0; width: 2px; background: var(--lamp); transform: scaleY(0); transform-origin: top; transition: transform 500ms ease; }
  .beat.is-active::before { transform: scaleY(1); }
  .beat-text { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
  .beat-time { font-size: 15px; }

  .five-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'copy brain' 'desc brain'; gap: 24px 72px; align-items: start; }
  .brain { width: min(100%, 500px); align-self: center; }
  .sys-node { font-size: 15px; }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps::before, .steps::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; }
  .step { padding-left: 0; padding-top: 64px; }
  .step h3 { padding-top: 0; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .steps::after { animation-name: grow-x; }
    }
  }

  .test { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 56px; padding: 48px 52px; }
  .test-head { grid-column: 1 / -1; }
  .test-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin-top: 18px; }

  .cards--systems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--live { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .trust-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .trust-seal { width: 140px; height: 140px; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .band--final { padding: 128px 0; overflow: hidden; }
  .final-seal { display: block; position: absolute; right: 32px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); opacity: 0.9; }
  .final-seal .seal-ring { stroke: rgba(201, 214, 255, 0.22); }
}
@media (min-width: 1140px) {
  .top-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .top-nav a:not(.btn) { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; font-size: 15px; color: var(--on-night-muted); }
  .top-nav a:not(.btn):hover { color: var(--on-night); background: rgba(255, 255, 255, 0.07); }
  .btn.top-cta { margin-left: 10px; }
  .menu-btn { display: none; }
}
@media (min-width: 1180px) {
  .hero { min-height: min(100svh, 880px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .hero h1 { font-size: clamp(56px, 5.2vw, 70px); }
  .hero-visual { justify-content: end; gap: 20px 18px; }
  .phone { width: 252px; }
  .ring { width: 262px; }
  .ring .node { font-size: 12.5px; }
  .cards--offers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
