@font-face {
  font-family: "Newake";
  src: url("../fonts/newake.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F5F2EE;
  --card: #FFFFFF;
  --card-tint: #EFEAE1;
  --line: rgba(19, 27, 34, 0.12);
  --line-strong: rgba(19, 27, 34, 0.22);
  --ink: #131B22;
  --ink-soft: rgba(19, 27, 34, 0.64);
  --ink-faint: rgba(19, 27, 34, 0.42);
  --accent: #02BA5A;
  --accent-deep: #029C4B;
  --accent-text: #017F3D; /* small green text: AA on white and --bg */
  --on-accent: #131B22;   /* text on the green accent */
  --danger-text: #B23A2F; /* small red text: AA on white and --bg */
  --nav-bg: rgba(245, 242, 238, 0.86);
  --bar-bg: rgba(245, 242, 238, 0.92);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23131B22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --accent-tint: rgba(2, 186, 90, 0.09);
  --accent-tint-line: rgba(2, 186, 90, 0.32);
  --danger: #C9463A;
  --warn: #A9782A;
  --danger-tint: rgba(201, 70, 58, 0.08);
  --warn-tint: rgba(169, 120, 42, 0.1);

  /* fixed dark palette used only inside product-screenshot panels */
  --term-bg: #131B22;
  --term-line: rgba(245, 242, 238, 0.14);
  --term-text: #F5F2EE;
  --term-muted: rgba(245, 242, 238, 0.55);
  --term-ok: #35D983;
  --term-bad: #FF8A7A;

  --font-display: "Newake", "Arial Black", Impact, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

/* dark theme: explicit choice, or the system setting when no choice was made */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1419;
  --card: #151D24;
  --card-tint: #1B242C;
  --line: rgba(242, 239, 234, 0.10);
  --line-strong: rgba(242, 239, 234, 0.22);
  --ink: #F2EFEA;
  --ink-soft: rgba(242, 239, 234, 0.72);
  --ink-faint: rgba(242, 239, 234, 0.52);
  --accent-deep: #35D983;
  --accent-text: #3FDB8B;
  --accent-tint: rgba(2, 186, 90, 0.13);
  --accent-tint-line: rgba(53, 217, 131, 0.32);
  --danger: #FF7A6B;
  --danger-tint: rgba(255, 122, 107, 0.12);
  --danger-text: #FF9A8C;
  --on-accent: #0E1419;
  --nav-bg: rgba(14, 20, 25, 0.85);
  --bar-bg: rgba(14, 20, 25, 0.92);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2EFEA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0E1419;
  --card: #151D24;
  --card-tint: #1B242C;
  --line: rgba(242, 239, 234, 0.10);
  --line-strong: rgba(242, 239, 234, 0.22);
  --ink: #F2EFEA;
  --ink-soft: rgba(242, 239, 234, 0.72);
  --ink-faint: rgba(242, 239, 234, 0.52);
  --accent-deep: #35D983;
  --accent-text: #3FDB8B;
  --accent-tint: rgba(2, 186, 90, 0.13);
  --accent-tint-line: rgba(53, 217, 131, 0.32);
  --danger: #FF7A6B;
  --danger-tint: rgba(255, 122, 107, 0.12);
  --danger-text: #FF9A8C;
  --on-accent: #0E1419;
  --nav-bg: rgba(14, 20, 25, 0.85);
  --bar-bg: rgba(14, 20, 25, 0.92);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2EFEA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--font-mono); background: var(--card-tint); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }

::selection { background: var(--accent); color: #fff; }

.wrap { --gutter: clamp(20px, 5vw, 48px); max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); position: relative; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.001em;
  text-wrap: balance;
  margin: 0;
}

.accent-text { color: var(--accent-deep); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.lede { font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-soft); max-width: 56ch; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.nav-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(19,27,34,0.06), 0 8px 20px -8px rgba(2,186,90,0.45); }
.btn-primary:hover { background: #05C962; box-shadow: 0 1px 2px rgba(19,27,34,0.08), 0 10px 24px -8px rgba(2,186,90,0.55); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--card-tint); }
.btn-block { width: 100%; justify-content: center; min-height: 54px; padding: 14px 24px; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; margin-top: 4px; }
.btn-block:hover { transform: translateY(-1px); }
.btn-block:disabled { opacity: .7; cursor: progress; transform: none; }
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
@media (max-width: 760px) { .nav-links { display: none; } }
@media (max-width: 460px) {
  .nav-row { gap: 12px; }
  .nav-logo { height: 26px; }
  .nav-row .btn-primary { padding: 8px 14px; font-size: 12.5px; }
}

section { padding-block: clamp(44px, 6.5vw, 84px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(22px, 3.2vw, 36px); }
.section-title { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.12; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(19,27,34,0.03); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; margin-top: 18px; color: var(--ink); }
.hero h1 .accent-text { color: var(--accent-deep); }
.hero-copy { margin: 18px 0 0; }
.hero-head { display: flex; flex-direction: column; align-items: center; }
.hero-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- hero: split + service card ---------- */
.hero-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 4px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px;
}
.hb-not { padding: 5px 10px 5px 12px; color: var(--ink-soft); }
.hb-yes { padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hb-yes::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-punch { margin: 18px 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; color: var(--ink); padding-left: 14px; border-left: 3px solid var(--accent); }
.hero-text .hero-copy { margin: 0; }
.hero h1 + .hero-copy { margin-top: 18px; }
.hero-text .hero-copy + .hero-punch { margin-top: 18px; }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 44px); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hs { display: flex; flex-direction: column; gap: 2px; }
.hs-num { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: var(--accent-deep); }
.hs-label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hero-copy b { color: var(--ink); }
.hero-proof { margin: 16px 0 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

.svc {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 30px 70px -36px rgba(19,27,34,0.30), 0 2px 8px rgba(19,27,34,0.04);
}
.svc-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.svc-title { font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.svc-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.svc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .svc-live::before { animation: none; } }

.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow li { position: relative; }
.flow li:not(:last-child) { margin-bottom: 30px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -21px; width: 10px; height: 10px;
  border-right: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}
.flow-k { display: block; text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.flow-ck .flow-k { color: var(--accent-text); font-weight: 600; }

.svc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.svc-chips span { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }

.flow-ck { background: var(--accent-tint); border: 1px solid var(--accent-tint-line); border-radius: 14px; padding: 14px 10px 16px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; counter-reset: step; position: relative; }
.flow-steps::before { content: ""; position: absolute; top: 13px; left: 12.5%; right: 12.5%; height: 2px; background: var(--accent-tint-line); }
.flow-steps span {
  counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13.5px; line-height: 1.2; text-align: center; font-weight: 700; color: var(--ink);
}
.flow-steps span::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-text);
}
.flow-steps span:last-child::before { background: var(--accent); color: var(--on-accent); }

.flow-out { text-align: center; }
.svc-result {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px; color: var(--ink);
  padding: 9px 20px 9px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--accent-tint-line);
  box-shadow: 0 8px 22px -14px rgba(2,186,90,0.6);
}
.svc-result::before { content: "\2713"; font-family: var(--font-body); font-weight: 800; font-size: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.svc-team { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- why now: machine-speed attacks ---------- */
.danger-accent { color: var(--danger-text); }
.eyebrow-danger::before { background: var(--danger); }
.threat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.threat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.tc-k { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.tc-num { margin: 12px 0 6px; font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: var(--danger-text); }
.tc-line { margin: 0 0 16px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.tc-src { margin-top: auto; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.tc-src a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.tc-src a:hover { color: var(--ink-soft); }
@media (max-width: 760px) { .threat-row { grid-template-columns: 1fr; } }

/* the race: three lanes that fill at their own speed once revealed */
.race { margin: 20px 0 0; background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 18px; padding: 20px 26px 22px; color: var(--term-text); }
.race-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--term-muted); }
.race-cap-r { color: var(--term-bad); text-transform: none; letter-spacing: 0.04em; }
.race-cap-r a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.race-row {
  --c: var(--term-muted); --step: .5s; --n: 3;
  display: grid; grid-template-columns: 160px minmax(0, 1fr) 140px; align-items: center; gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--term-line);
}
.race-atk { --c: var(--term-bad); --step: .45s; }
.race-team { --step: 1.3s; --n: 4; }
.race-ck { --c: var(--term-ok); --step: .33s; --n: 4; }
.race-who { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); }
.race-time { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; text-align: right; color: var(--c); opacity: 0; transition: opacity .4s ease calc(var(--step) * (var(--n) - 1)); }
.race-track { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; position: relative; }
.race-track::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--c); transform: scaleX(0); transform-origin: left center;
  transition: transform calc(var(--step) * (var(--n) - 1)) linear;
}
.race-team .race-track::before { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 12px); }
.race-track li {
  position: relative; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 5px 11px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 14%, transparent)), var(--term-bg);
  opacity: 0; transition: opacity .3s ease;
}
.race-track li:nth-child(2) { transition-delay: var(--step); }
.race-track li:nth-child(3) { transition-delay: calc(var(--step) * 2); }
.race-track li:nth-child(4) { transition-delay: calc(var(--step) * 3); }
.race.in .race-track::before { transform: scaleX(1); }
.race.in .race-track li, .race.in .race-time { opacity: 1; }
.race-foot { margin: 0; padding-top: 16px; border-top: 1px solid var(--term-line); font-size: 15.5px; font-weight: 600; color: var(--term-text); }
.race-foot span { color: var(--term-ok); }
@media (prefers-reduced-motion: reduce) {
  .race-track::before, .race-track li, .race-time { transition: none; }
}

/* ---------- proprietary AI ---------- */
.steps-block { margin-bottom: 20px; }
.steps-title { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.15; color: var(--ink); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; }
.steps li:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -15px; top: 24px; width: 20px; height: 20px; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; color: var(--ink-soft);
}
.step-n { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent-deep); }
.steps h4 { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin: 10px 0 0; color: var(--ink); }
.steps p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; background: transparent; border: 0; border-radius: 0; padding: 0 0 18px; }
  .step-n {
    grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
    background: var(--accent-tint); border: 1px solid var(--accent-tint-line); color: var(--accent-text);
  }
  .steps li:last-child .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .steps h4 { margin-top: 9px; }
  .steps li:not(:last-child)::after {
    content: ""; right: auto; left: 19px; top: 44px; bottom: 4px; width: 2px; height: auto;
    border: 0; border-radius: 0; background: var(--accent-tint-line);
  }
  .steps li:last-child { padding-bottom: 0; }
}



/* ---------- what it means for you ---------- */
.gain { margin-top: clamp(28px, 4vw, 44px); }
.gain-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gain-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 180px;
  padding: clamp(20px, 2.6vw, 30px); border-radius: 18px; background: var(--accent-tint); border: 1px solid var(--accent-tint-line);
}
.gain-num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 92px); line-height: .9; color: var(--accent-deep); }
.gain-card p { margin: 0; max-width: 26ch; font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; line-height: 1.3; color: var(--ink); }
.gain-dark { background: var(--term-bg); border-color: var(--term-line); }
.gain-dark .gain-num { color: var(--term-ok); }
.gain-dark p { color: var(--term-text); }
@media (max-width: 760px) {
  .gain-row { gap: 10px; }
  .gain-card { min-height: 0; gap: 12px; padding: 16px; border-radius: 14px; }
  .gain-num { font-size: 44px; }
  .gain-card p { font-size: 14px; }
}
#night .night { margin-top: 0; }

/* ---------- a night with CyberKord ----------
   a night sky in both themes; the track is time-scaled 00:00-09:00 (540 min):
   incident 03:04 = 34.1%, fixed 03:34 = 39.6%, summary 08:30 = 94.4% */
.night {
  --inc: 34.1%; --ok: 39.6%; --sum: 94.4%; --play: 2.4s;
  position: relative; overflow: hidden; margin-top: 20px; border-radius: 20px; padding: clamp(20px, 3.4vw, 34px);
  color: var(--term-text); border: 1px solid var(--term-line);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 24%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 71% 40%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 20%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 93% 58%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(120% 90% at 100% 110%, rgba(201,139,90,.22), transparent 55%),
    linear-gradient(180deg, #0A111C 0%, #0F1A2A 100%);
}
.night-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.night-head { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--term-muted); }
.night-head::before { content: "\263E"; font-size: 18px; letter-spacing: 0; color: #F3E3B5; text-shadow: 0 0 12px rgba(243,227,181,.6); }
.night-status { margin: 0; display: grid; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.night-status span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; transition: opacity .3s ease; }
.night-status span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ns-down { color: var(--term-bad); background: rgba(255,138,122,.14); }
.ns-up { color: var(--term-ok); background: rgba(53,217,131,.14); opacity: 0; }
.night.in .ns-down { opacity: 0; transition-delay: calc(var(--play) * .396); }
.night.in .ns-up { opacity: 1; transition-delay: calc(var(--play) * .396); }
.night-title { margin-top: 18px; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.12; color: var(--term-text); }
.night-title span { color: var(--term-ok); }

.sky { margin-top: clamp(22px, 3vw, 32px); }
.sky-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--term-muted); }
.sky-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sky-legend span::before { content: ""; width: 14px; height: 8px; border-radius: 2px; }
.lg-sleep::before { background: repeating-linear-gradient(135deg, rgba(245,242,238,.28) 0 2px, transparent 2px 5px); }
.lg-ck { color: var(--term-ok); }
.lg-ck::before { background: var(--term-ok); box-shadow: 0 0 10px rgba(53,217,131,.6); }
.sky-track {
  position: relative; height: 54px; border-radius: 12px; border: 1px solid var(--term-line);
  background:
    linear-gradient(90deg, transparent var(--sum), rgba(243,196,120,.35)),
    repeating-linear-gradient(135deg, rgba(245,242,238,.09) 0 2px, transparent 2px 7px);
}
/* the night plays left to right once the card is revealed */
.sky-track::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0 12px 12px 0;
  background: #0D1725; transition: width var(--play) linear;
}
.night.in .sky-track::after { width: 0; }
.sky-fix {
  position: absolute; top: -1px; bottom: -1px; left: var(--inc); width: calc(var(--ok) - var(--inc));
  background: linear-gradient(180deg, rgba(53,217,131,.55), rgba(53,217,131,.25)); border-inline: 1px solid var(--term-ok);
  box-shadow: 0 0 22px rgba(53,217,131,.45);
}
.sky-dot {
  position: absolute; top: 50%; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid #0D1725; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .25s ease;
}
.sky-inc { left: var(--inc); background: var(--term-bad); box-shadow: 0 0 0 4px rgba(255,138,122,.25); }
.sky-ok { left: var(--ok); background: var(--term-ok); box-shadow: 0 0 0 4px rgba(53,217,131,.25); }
.sky-sum { left: var(--sum); background: #F3C478; box-shadow: 0 0 0 4px rgba(243,196,120,.25); }
.night.in .sky-dot { opacity: 1; transform: scale(1); }
.night.in .sky-inc { transition-delay: calc(var(--play) * .341); }
.night.in .sky-ok { transition-delay: calc(var(--play) * .396); }
.night.in .sky-sum { transition-delay: calc(var(--play) * .944); }
.sky-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--term-muted); }

/* the log is the zoom of the green band */
.night-log {
  position: relative; list-style: none; margin: 18px 0 0; padding: 16px 18px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  border: 1px solid rgba(53,217,131,.35); border-radius: 14px; background: rgba(53,217,131,.06);
}
.night-log::before {
  content: ""; position: absolute; top: -7px; left: calc((var(--inc) + var(--ok)) / 2); width: 12px; height: 12px; margin-left: -6px;
  background: #0E1828; border-left: 1px solid rgba(53,217,131,.35); border-top: 1px solid rgba(53,217,131,.35); transform: rotate(45deg);
}
.night-log li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--term-text); opacity: 0; transition: opacity .35s ease; }
.night-log time { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--term-ok); }
.night-log li:first-child time { color: var(--term-bad); }
.night-log .nl-sum { padding-left: 14px; border-left: 1px solid var(--term-line); }
.night-log .nl-sum time { color: #F3C478; }
.night.in .night-log li { opacity: 1; }
.night.in .night-log li:nth-child(1) { transition-delay: calc(var(--play) * .34); }
.night.in .night-log li:nth-child(2) { transition-delay: calc(var(--play) * .36); }
.night.in .night-log li:nth-child(3) { transition-delay: calc(var(--play) * .38); }
.night.in .night-log li:nth-child(4) { transition-delay: calc(var(--play) * .40); }
.night.in .night-log li:nth-child(5) { transition-delay: calc(var(--play) * .95); }
@media (prefers-reduced-motion: reduce) {
  .sky-track::after { display: none; }
  .sky-dot, .night-log li, .night-status span { transition: none; }
}
@media (max-width: 760px) {
  .night { padding: 18px 16px 16px; border-radius: 16px; }
  .night-title { font-size: 22px; margin-top: 14px; }
  .sky { margin-top: 20px; }
  .sky-legend { gap: 14px; font-size: 12px; }
  .sky-track { height: 44px; }
  .night-log { grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 12px 10px; padding: 14px 16px; }
  .night-log li { display: contents; }
  .night-log .nl-sum { padding: 0; border: 0; }
  .night-log li { font-size: 14.5px; }
}

/* ---------- not a tool: timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.timeline li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative; }
.timeline li:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -14px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 13px; color: var(--ink-soft); z-index: 1;
}
.tl-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.timeline h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 8px; }
.timeline p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.timeline .tl-done { background: var(--accent-tint); border-color: var(--accent-tint-line); }
.timeline .tl-done .tl-when { color: var(--accent-text); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li:not(:last-child)::after { content: "\2193"; right: auto; left: 20px; top: auto; bottom: -14px; }
}

/* ---------- stories / tabs ---------- */
.story-shell { display: grid; grid-template-columns: 0.58fr 1fr; gap: 32px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 6px; }
.tab-btn {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font-family: var(--font-body); color: var(--ink-faint);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { color: var(--ink-soft); }
.tab-btn .tnum { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.tab-btn .ttitle { display: block; font-size: 15px; font-weight: 700; color: inherit; margin-top: 5px; }
.tab-btn.active { background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(19,27,34,0.04); color: var(--ink); }
.tab-btn.active .tnum { color: var(--accent-deep); }
.tab-btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.story-panel { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 30px); }
.story-panel.active { display: block; }
.sp-label { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-label.pain { color: var(--danger-text); }
.sp-label.fix { color: var(--accent-text); margin-top: 22px; }
.sp-pain { font-family: var(--font-body); font-weight: 700; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.3; margin-top: 8px; color: var(--ink); }
.sp-fix { margin: 8px 0 0; font-size: 16px; color: var(--ink-soft); max-width: 52ch; }
.sp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.sp-compare > div { border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sp-compare span { font-size: 13px; color: var(--ink-soft); }
.sp-compare b { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.sp-before { background: var(--danger-tint); }
.sp-before b { color: var(--danger-text); }
.sp-after { background: var(--accent-tint); }
.sp-after b { color: var(--accent-text); }

@media (max-width: 860px) { .story-shell { grid-template-columns: 1fr; } }

/* ---------- vision & mission ---------- */
.vision { position: relative; overflow: hidden; background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); color: var(--term-text); }
.vision::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 115%, rgba(2,186,90,0.24), transparent 55%); }
.vision > * { position: relative; z-index: 1; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; }
.vision-item { padding-right: clamp(20px, 4vw, 48px); }
.vision-item + .vision-item { padding: 0 0 0 clamp(20px, 4vw, 48px); border-left: 1px solid var(--term-line); }
.vision-k { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--term-ok); }
.vision-t { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-weight: 600; color: var(--term-text); text-wrap: pretty; }
.vision-t span { color: var(--term-ok); }
@media (max-width: 760px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-item { padding: 0 0 20px; }
  .vision-item + .vision-item { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--term-line); }
}

/* ---------- get started: two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.path { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.path.featured { background: var(--accent-tint); border-color: var(--accent-tint-line); }
.path-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--card-tint); color: var(--ink-soft); }
.path.featured .path-tag { background: rgba(2,186,90,0.14); color: var(--accent-text); }
.path h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.15; color: var(--ink); margin-top: 4px; }
.path p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.path-facts { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.path-facts li { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.path-facts li::before { content: "\2713  "; color: var(--accent-text); font-weight: 800; }
.path .btn { align-self: flex-start; }
.path-trust { margin: 20px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-soft); }
.path-trust span::before { content: "\2022"; color: var(--accent); margin-right: 8px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; color: var(--ink); }
.contact-copy .lede { margin-top: 12px; }
.contact-meta { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.contact-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

form.contact-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--ink); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: none; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 16px center;
}
.honeypot { display: none; }
.form-foot { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-faint); }
.form-status { margin: 0; font-size: 13.5px; text-align: center; min-height: 18px; }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: var(--danger); }
.form-done { padding: clamp(28px, 4vw, 40px) 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; outline: none; }
.form-done[hidden], form.contact-form[hidden] { display: none; }
.fd-check {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--accent); color: var(--on-accent); font-size: 26px; font-weight: 800;
  box-shadow: 0 0 0 8px var(--accent-tint); animation: fd-pop .35s ease-out;
}
.form-done h3 { font-size: clamp(24px, 2.8vw, 30px); color: var(--ink); }
.form-done p { margin: 0; max-width: 38ch; font-size: 15.5px; color: var(--ink-soft); }
.form-done p b { color: var(--ink); overflow-wrap: anywhere; }
.form-done .fd-note { font-size: 13px; color: var(--ink-faint); }
.form-done .btn { margin-top: 10px; }
@keyframes fd-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fd-check { animation: none; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 26px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 18px; }
.foot-links { display: flex; gap: 20px; font-size: 12.5px; color: var(--ink-faint); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink-soft); }
.foot-meta { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.foot-legal { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--ink-faint); }
.foot-legal p { margin: 0; }
.foot-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.foot-legal a:hover { color: var(--ink-soft); }
.funding { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 32px; margin-top: 18px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.funding-body { padding-left: 32px; border-left: 1px solid var(--line); }
.funding-body p { margin: 0; max-width: 78ch; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.funding-body strong { color: var(--ink); font-weight: 700; }
.funding-body .funding-k { margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
/* EU emblem + funding statement: official flag image, statement in an EU-approved font (Arial) */
.eu-lockup { display: flex; align-items: center; gap: 12px; }
.eu-flag { width: 66px; height: auto; flex: none; }
.eu-statement { margin: 0; font-family: Arial, sans-serif; line-height: 1.15; color: var(--ink); }
.eu-statement strong { display: block; font-size: 15px; font-weight: 700; }
.eu-statement span { display: block; margin-top: 3px; font-size: 13px; }
/* on dark backgrounds the emblem needs a white border of 1/25 of its height */
:root[data-theme="dark"] .eu-flag { padding: 2px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eu-flag { padding: 2px; background: #fff; } }
@media (max-width: 760px) {
  .funding { grid-template-columns: 1fr; padding: 20px; }
  .funding-body { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
.form-privacy { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-faint); }
.form-privacy a:hover { color: var(--ink-soft); }

/* ---------- legal pages ---------- */
.legal { padding-block: 56px 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 19px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .legal-date { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 600; width: 34%; }


@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mobile-cta { display: none; }

/* ===== MOBILE LAYOUT (same copy, different composition) ===== */
@media (max-width: 760px) {
  section { padding-block: 40px; }
  .section-head { margin-bottom: 20px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }

  /* hero */
  .hero { padding-top: 28px; padding-bottom: 8px; }
  .hero h1 { margin-top: 14px; }
  .hero-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 13px; }
  .hb-not { padding: 0 0 0 2px; }
  .hero h1 + .hero-copy { margin-top: 16px; }
  .hero-punch { margin: 16px 0; }
  .hero-ctas { margin-top: 22px; }
  .hero-ctas .btn { flex: 1 1 0; justify-content: center; padding-inline: 14px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 0; border-top: 0; }
  .hs { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
  .hs-num { font-size: 40px; }
  .hs-label { font-size: 13px; }

  /* hero flow: same card, tighter */
  .hero-split { gap: 22px; grid-template-columns: minmax(0, 1fr); }
  .hero-text, .svc { min-width: 0; }
  .svc { padding: 16px; border-radius: 16px; }
  .svc-cap { padding-bottom: 12px; margin-bottom: 14px; }
  .svc-title { font-size: 18px; }
  .svc-live { font-size: 12.5px; }
  .flow li:not(:last-child) { margin-bottom: 26px; }
  .flow li:not(:last-child)::after { bottom: -19px; }
  .flow-k { font-size: 11px; margin-bottom: 8px; }
  .svc-chips { gap: 6px; }
  .svc-chips span { font-size: 13px; padding: 5px 10px; }
  .flow-ck { padding: 12px 8px 14px; border-radius: 12px; }
  .flow-steps::before { top: 11px; }
  .flow-steps span { font-size: 12.5px; gap: 6px; }
  .flow-steps span::before { width: 24px; height: 24px; font-size: 11px; }
  .svc-result { font-size: 20px; padding: 8px 16px 8px 8px; gap: 8px; }
  .svc-result::before { width: 22px; height: 22px; font-size: 13px; }
  .svc-team { margin-top: 16px; padding-top: 12px; font-size: 13px; }

  /* why now: compact cards, lanes stack as label/time over the steps */
  .race { padding: 16px 16px 18px; border-radius: 16px; }
  .race-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who time" "track track"; gap: 10px 12px; padding: 14px 0; }
  .race-who { grid-area: who; font-size: 11px; }
  .race-time { grid-area: time; font-size: 19px; }
  .race-track { grid-area: track; justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; }
  .race-track::before { display: none; }
  .race-track li { font-size: 12px; padding: 4px 8px; }
  .race-track li + li::before { content: "\203A"; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); color: var(--c); font-weight: 400; }
  .race-foot { font-size: 14.5px; padding-top: 14px; }


  /* not a tool: light vertical stepper */
  .timeline { gap: 0; }
  .timeline li { background: transparent !important; border: 0; border-radius: 0; padding: 0 0 22px 30px; }
  .timeline li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--line-strong); background: var(--bg); box-sizing: border-box;
  }
  .timeline li:not(:last-child)::after {
    content: ""; left: 6px; top: 22px; bottom: 0; right: auto; width: 2px; height: auto;
    border: 0; border-radius: 0; background: var(--line-strong);
  }
  .timeline .tl-done::before { background: var(--accent); border-color: var(--accent); }
  .timeline h3 { margin-top: 4px; }

  /* use cases: accordion (panel opens under its own title) */
  .story-shell { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .tab-btn { width: 100%; }
  .tab-list, .story-panels { display: contents; }
  .tab-btn:nth-child(1) { order: 1; } .story-panel:nth-child(1) { order: 2; }
  .tab-btn:nth-child(2) { order: 3; } .story-panel:nth-child(2) { order: 4; }
  .tab-btn:nth-child(3) { order: 5; } .story-panel:nth-child(3) { order: 6; }
  .tab-btn:nth-child(4) { order: 7; } .story-panel:nth-child(4) { order: 8; }
  .tab-btn { position: relative; background: var(--card); border: 1px solid var(--line); color: var(--ink); padding-right: 44px; }
  .tab-btn .tnum { color: var(--ink-soft); }
  .tab-btn::after {
    content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-size: 20px; font-weight: 400; color: var(--ink-soft);
  }
  .tab-btn.active { border-color: var(--accent-tint-line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
  .tab-btn.active::after { content: "\2212"; color: var(--accent-text); }
  .story-panel { margin-top: -9px; border-top: 0; border-color: var(--accent-tint-line); border-top-left-radius: 0; border-top-right-radius: 0; padding: 4px 16px 18px; }
  .sp-pain { font-size: 18px; }
  .sp-fix { font-size: 15px; }
  .sp-compare { gap: 8px; margin-top: 18px; }
  .sp-compare b { font-size: 24px; }

  /* get started */
  .path { padding: 20px; }
  .path .btn { align-self: stretch; justify-content: center; }
  .path-trust { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14.5px; }
  .path-trust span::before { content: "\2713"; color: var(--accent-text); font-weight: 800; }

  /* form: 16px avoids iOS zoom on focus */
  .field input, .field textarea, .field select { font-size: 16px; }
  .field label, .interest legend { font-size: 11px; }
  form.contact-form { padding: 18px; }

  /* sticky CTA in the thumb zone, shown between hero and Get started */
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bar-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: translateY(0); }
  .mobile-cta .btn-block { min-height: 48px; }
  footer { padding-bottom: 90px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* ---------- theme toggle + logo per theme ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--ink-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}
@media (max-width: 460px) { .theme-toggle { width: 34px; height: 34px; } .nav-actions { gap: 8px; } }


/* ===== PHONE: recomposed for thumbs, not just shrunk =====
   one CTA at a time, a one-screen hero, swipe rails instead of long stacks */
.rail-dots { display: none; }
@media (max-width: 760px) {
  /* nav: logo + theme only; the sticky bar carries the CTA after the hero */
  .nav-row .btn-primary { display: none; }

  /* hero fits one screen */
  .hero { padding-top: 22px; }
  .hero-badge .hb-not { display: none; }
  .hero h1 { font-size: 34px; margin-top: 12px; }
  .hero h1 + .hero-copy { margin-top: 12px; font-size: 15.5px; }
  .hero-punch { font-size: 19px; margin: 14px 0 0; }
  .hero-ctas { margin-top: 20px; }
  .hero-ctas .btn-ghost { display: none; }
  .hero-ctas .btn-primary { min-height: 50px; font-size: 15.5px; }
  .hero-stats { display: flex; gap: 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  .hs { flex: 1; background: none; border: 0; border-radius: 0; padding: 0; }
  .hs + .hs { padding-left: 18px; border-left: 1px solid var(--line); }
  .hs-num { font-size: 36px; }
  .hs-label { font-size: 12.5px; line-height: 1.3; }

  /* service card: inputs become one swipeable line */
  .svc { padding: 14px 14px 12px; }
  .svc-chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: -14px; padding-inline: 14px;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
  }
  .svc-chips::-webkit-scrollbar { display: none; }
  .svc-chips span { flex: none; }
  .flow li:not(:last-child) { margin-bottom: 22px; }
  .flow li:not(:last-child)::after { bottom: -16px; width: 8px; height: 8px; }
  .svc-team { display: none; }

  /* swipe rails: full-bleed, snap, next card peeking */
  [data-rail] {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { flex: 0 0 78%; scroll-snap-align: start; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .rail-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .2s ease, background .2s ease; }
  .rail-dots span.on { width: 18px; background: var(--accent); }
  .threat-row + .rail-dots span.on { background: var(--danger); }

  /* stat cards inside the rail */
  .threat-card { padding: 18px; }
  .tc-num { font-size: 44px; margin: 10px 0 6px; white-space: nowrap; }
  .tc-line { font-size: 14.5px; margin-bottom: 14px; }
  .race { margin-top: 18px; }

  /* five steps: cards in a rail */
  .steps-title { font-size: 21px; margin-bottom: 14px; }
  .steps li { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
  .steps li:not(:last-child)::after { display: none; }
  .step-n, .steps li:last-child .step-n { width: auto; height: auto; display: block; background: none; border: 0; border-radius: 0; font-size: 28px; color: var(--accent-deep); }
  .steps h4 { margin-top: 10px; }
  .steps li:last-child { padding-bottom: 16px; }


  /* lighter section rhythm */
  section { padding-block: 36px; }
  .section-title { font-size: 25px; }
  .section-head .lede { font-size: 15px; }
}
