/* Cybermain — marketing site.
   Colours are the product's own dark-theme tokens (frontend/src/styles/index.css), so the page and
   the screenshots it frames read as one system. Fonts are self-hosted: no third-party requests. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: #0f1322;
  --surface-2: #141826;
  --line: rgb(var(--ink) / 0.08);
  --line-2: rgb(var(--ink) / 0.14);
  --fg: #f8f9ff;
  --fg-2: #dde2ef;
  --fg-3: #aab2ca;
  --accent: #0b55fc;
  --accent-2: #8ca0ff;
  --glow: #7c5cff;
  --green: #5fe7a6;
  --amber: #fbb96d;
  --red: #ff9ba0;
  --grey: #a6aec9;

  --ink: 255 255 255;
  --glass: 6 8 15;
  --shade: 0 0 0;
  --shade-k: 1;
  --frame-bg: #0b0e18;
  --frame-bar: #10131f;
  --track: #262c44;
  --purple-fg: #c9b8ff;
  --amber-mid: #ffd9a8;
  --cta-a: #0e1226;
  --cta-b: #080a14;
  --grad-start: #ffffff;
  --stat-end: #9aa6c8;
  --aurora: .55;

  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-card: 20px;
  --r-ctl: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg-2);
  font: 440 16px/1.6 var(--body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
/* `hidden` must win over any component's display rule (the form after sending, for one). */
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--fg); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); }
::selection { background: rgb(124 92 255 / .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--glow), var(--green)); }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset, 0 8px 24px -8px rgb(11 85 252 / .8); }
.btn-primary:hover { background: #2a6bff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(255 255 255 / .18) inset, 0 12px 32px -8px rgb(11 85 252 / .9); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%); background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .28) 50%, transparent 80%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary svg { transition: transform .2s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--fg); border-color: var(--line-2); background: rgb(var(--ink) / .03); }
.btn-ghost:hover { background: rgb(var(--ink) / .07); border-color: rgb(var(--ink) / .24); }

/* ───────── Navigation ───────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgb(var(--glass) / .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--fg-3); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgb(var(--ink) / .05); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-2), var(--glow)); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-mobile-only { display: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: rgb(var(--ink) / .03); position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 128px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora); will-change: transform; }
.a1 { width: 720px; height: 520px; left: 50%; top: -180px; margin-left: -520px; background: radial-gradient(closest-side, var(--glow), transparent); }
.a2 { width: 640px; height: 480px; left: 50%; top: -120px; margin-left: -60px; background: radial-gradient(closest-side, var(--accent), transparent); }
.a3 { width: 900px; height: 500px; left: 50%; top: 520px; margin-left: -450px; background: radial-gradient(closest-side, rgb(95 231 166 / .35), transparent); opacity: .25; }
@keyframes drift1 { to { transform: translate3d(120px, 60px, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-140px, 80px, 0) scale(.9); } }
.grid-lines { position: absolute; inset: 0;
  background-image: linear-gradient(rgb(var(--ink) / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--ink) / .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%); }

.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgb(var(--ink) / .03); font: 500 13px/1.2 var(--body); color: var(--fg-2); backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(95 231 166 / .6); animation: pulse 2.4s 2; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(95 231 166 / 0); } 100% { box-shadow: 0 0 0 0 rgb(95 231 166 / 0); } }
.hero h1 { margin-top: 22px; max-width: 21ch; text-wrap: balance; font-size: clamp(38px, 5.6vw, 70px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.grad { display: block; background: linear-gradient(100deg, var(--grad-start) 0%, var(--accent-2) 35%, var(--glow) 65%, var(--green) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen-once 2.6s var(--ease) .3s 1 both; }
@keyframes sheen-once { from { background-position: 100% 0; } to { background-position: 0 0; } }
.grad-amber { background: linear-gradient(100deg, var(--amber), var(--amber-mid) 45%, var(--red)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen-once 2.6s var(--ease) .3s 1 both; }
.lede { margin-top: 22px; max-width: 64ch; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.65; color: var(--fg-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-stage { position: relative; max-width: 1160px; margin: 56px auto 0; padding: 0 var(--gutter); perspective: 2200px; }
.hero-frame { --tilt: 22deg; --lift: 0px; --s: .94;
  transform: rotateX(calc(var(--tilt) + var(--px, 0deg))) rotateY(var(--py, 0deg)) translateY(var(--lift)) scale(var(--s)); transform-origin: 50% 0; transition: transform .25s var(--ease); }

/* ───────── Browser frame ───────── */
.frame { position: relative; display: block; width: 100%; padding: 0; border-radius: 16px; background: var(--frame-bg); border: 1px solid var(--line-2); outline-offset: 4px;
  box-shadow: 0 50px 120px -30px rgb(var(--shade) / calc(.8 * var(--shade-k))), 0 30px 80px -40px rgb(124 92 255 / .5); overflow: hidden; text-align: left; }
.frame-glow { position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--accent-2) 72%, var(--glow) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 4.5s var(--ease) .2s 1 both; }
.hero-stage:hover .frame-glow { animation: spin 7s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.frame-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--frame-bar); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--track); }
.frame-bar i:nth-child(1) { background: #ff6b6b99; } .frame-bar i:nth-child(2) { background: #fbb96d99; } .frame-bar i:nth-child(3) { background: #5fe7a699; }
.url { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px;
  border-radius: 8px; background: rgb(var(--ink) / .05); font: 500 12px/1 var(--mono); color: var(--fg-3); white-space: nowrap; max-width: 60%; overflow: hidden; }
.url em { font-style: normal; color: var(--fg-2); }

/* Floating annotation chips */
.chip { position: absolute; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; z-index: 3;
  background: rgb(var(--glass) / .8); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgb(var(--shade) / calc(.6 * var(--shade-k))); animation: chip-in .9s var(--ease) .7s both; }
.chip b { display: block; font: 700 14px/1.2 var(--display); color: var(--fg); }
.chip small { display: block; margin-top: 3px; font-size: 12px; color: var(--fg-2); }
.chip-a { left: -8px; top: 18%; }
.chip-b { right: -8px; top: 42%; animation-delay: .95s; }
.chip-c { left: 10%; bottom: -26px; animation-delay: 1.2s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.dot { flex: none; margin-top: 4px; width: 9px; height: 9px; border-radius: 50%; }
.dot-accent { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.dot-green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot-amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

/* ───────── Stats ───────── */
.stats { padding: 96px 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; }
.stat b { display: block; font: 800 clamp(36px, 5vw, 56px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--grad-start), var(--stat-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--fg-3); }

/* ───────── Kickers ───────── */
.kicker { font: 700 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.kicker.center { text-align: center; color: var(--fg-3); margin-bottom: 26px; }

/* ───────── Section heads ───────── */
section { position: relative; }
.tour, .principles, .platform, .how, .roles, .security { padding: 120px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { text-wrap: balance; margin-top: 16px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.sec-head .sub { margin-top: 16px; font-size: 17px; color: var(--fg-2); }

/* ───────── Data note ───────── */
.data-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; font-size: 13px; color: var(--fg-2); text-align: center; }
.data-note svg { flex: none; color: var(--accent-2); }

/* ───────── Cyber risk, priced ───────── */
.risk { padding: 120px 0 0; isolation: isolate; }
.risk-bg { position: absolute; inset: 40px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 30%, rgb(251 185 109 / .13), transparent 70%), radial-gradient(35% 45% at 15% 60%, rgb(255 155 160 / .07), transparent 70%); }
.risk .kicker { color: var(--amber); }
.risk-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 36px; align-items: start; }
.risk-frame { cursor: zoom-in; transition: transform .4s var(--ease); box-shadow: 0 50px 120px -30px rgb(var(--shade) / calc(.8 * var(--shade-k))), 0 30px 90px -40px rgb(251 185 109 / .35); }
.risk-frame:hover { transform: translateY(-4px); }
.risk-read { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: rr; }
.risk-read li { position: relative; padding-left: 18px; border-left: 1px solid var(--line-2); }
.risk-read li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.money { display: block; font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.money em { font-style: normal; color: var(--fg-3); font-weight: 500; }
.money.warn { color: var(--red); }
.money.muted { color: var(--grey); font-size: 18px; }
.risk-read span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--fg-2); }

.risk-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.rk-main { grid-row: span 2; }
.rk { display: flex; flex-direction: column; }
.rk .b-copy { padding: 20px 24px 24px; }
.shot.shot-flat { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; cursor: default; height: auto; overflow: hidden; background: var(--frame-bg); display: block; width: 100%; padding: 0; }
button.shot.shot-flat { cursor: zoom-in; }
.shot-flat img { width: 100%; height: auto; transition: transform .6s var(--ease); transform-origin: top left; }
.card:hover .shot.shot-flat { transform: none; }
.card:hover .shot-flat img { transform: scale(1.03); }
.rk-text { padding: 26px; }
.drivers { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.drivers li { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; color: var(--accent-2); background: rgb(140 160 255 / .08); border: 1px solid rgb(140 160 255 / .2); }

.workspace { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; padding: 32px; border-radius: var(--r-card);
  border: 1px solid var(--line); background: linear-gradient(135deg, rgb(168 141 250 / .07), rgb(var(--ink) / .01) 50%); }
.ws-copy .kicker { display: flex; align-items: center; gap: 10px; color: var(--purple-fg); }
.ws-copy .tag { letter-spacing: .02em; text-transform: none; font-family: var(--body); }
.ws-copy h3 { margin-top: 14px; font-size: 24px; line-height: 1.25; text-wrap: balance; }
.ws-copy > p { margin-top: 12px; font-size: 15px; color: var(--fg-2); }
.ws-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ws-points li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid rgb(168 141 250 / .45); }
.ws-points b { font: 700 14.5px/1.3 var(--display); color: var(--fg); }
.ws-points span { font-size: 13.5px; color: var(--fg-2); }
.ws-shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.ws-shots .shot.shot-flat { height: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.ws-shots .shot-flat img { height: auto; }
.ws-a { grid-column: 1 / -1; }
.ws-b { align-self: start; }
.ws-c { max-height: 330px; }
.ws-c img { object-fit: cover; }

/* ───────── Tour ─────────
   Pills above one large frame. The descriptions stay in each tab for screen readers and are
   shown once as the caption, so the picture gets the width. */
.tour-layout { display: flex; flex-direction: column; gap: 22px; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tour-tabs [role="tab"] { position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(var(--ink) / .02); cursor: pointer; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.tour-tabs [role="tab"] b { font: 600 14px/1 var(--display); color: var(--fg-3); transition: color .25s; letter-spacing: -0.01em; }
.tour-tabs [role="tab"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tour-tabs [role="tab"]:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tour-tabs [role="tab"]:hover b { color: var(--fg-2); }
.tour-tabs [aria-selected="true"] { background: rgb(140 160 255 / .12); border-color: rgb(140 160 255 / .45); }
.tour-tabs [aria-selected="true"] b { color: var(--fg); }
.tour-tabs [data-shot="risk"]::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tour-tabs .bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-2), var(--glow)); }
.tour-tabs [aria-selected="true"] .bar.run { animation: fill var(--dwell, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.tour-stage { min-width: 0; max-width: 1120px; width: 100%; margin: 0 auto; }
.tour-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; min-height: 48px; }
.tour-caption { max-width: 70ch; font-size: 15px; color: var(--fg-2); transition: opacity .25s; }
.tour-caption.swap { opacity: 0; }
.seg { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .03); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg-3); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.tour-frame { cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: 0 60px 140px -40px rgb(var(--shade) / calc(.85 * var(--shade-k))), 0 0 0 1px rgb(140 160 255 / .08), 0 40px 120px -50px rgb(124 92 255 / .55); }
.tour-frame:hover { transform: translateY(-4px); }
.tour-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--frame-bg); overflow: hidden; }
.tour-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s var(--ease), transform .7s var(--ease), filter .35s; }
.tour-img img.swap { opacity: 0; transform: scale(1.02); filter: blur(4px); }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgb(var(--glass) / .8); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--fg); opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease); backdrop-filter: blur(8px); }
.tour-frame:hover .zoom-hint, .tour-frame:focus-visible .zoom-hint { opacity: 1; transform: none; }

/* ───────── Cards (shared) ───────── */
.card { position: relative; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--ink) / .035), rgb(var(--ink) / .012)); overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(var(--ink) / .06); transition: border-color .3s; }
.card:hover { border-color: var(--line-2); }
.card[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(140 160 255 / .11), transparent 60%); }
.card[data-spot]:hover::before { opacity: 1; }
.card h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.card p { margin-top: 10px; font-size: 15px; color: var(--fg-2); }

/* ───────── Principles ───────── */
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pr { padding: 22px 22px 26px; display: flex; flex-direction: column; }
.pr-demo { position: relative; min-height: 250px; margin-bottom: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 18px; overflow: hidden; }

.demo-trace { display: flex; flex-direction: column; }
.trace-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; width: 100%; text-align: left; border: 1px solid var(--line-2); background: var(--surface-2);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.trace-score:hover { border-color: var(--accent-2); }
.trace-score small { width: 100%; font-size: 12px; color: var(--fg-3); }
.trace-score b { font: 800 30px/1 var(--display); color: var(--red); letter-spacing: -0.03em; }
.trace-score span { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.trace-list { list-style: none; margin: 12px 0 0 10px; padding: 0 0 0 16px; border-left: 1px dashed var(--line-2); display: grid; gap: 7px; }
.trace-list li { position: relative; font-size: 12.5px; color: var(--fg-2); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; gap: 8px; align-items: baseline; line-height: 1.4; }
.trace-list li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.trace-list em { flex: none; width: 64px; font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--fg-3); }
.trace-list code { margin-left: auto; padding-left: 8px; color: var(--fg); font-size: 12px; }
.demo-trace.open .trace-list li { opacity: 1; transform: none; }
.demo-trace.open .trace-list li:nth-child(2) { transition-delay: .08s; }
.demo-trace.open .trace-list li:nth-child(3) { transition-delay: .16s; }
.demo-trace.open .trace-list li:nth-child(4) { transition-delay: .24s; }
.demo-trace.open .trace-list li:nth-child(5) { transition-delay: .32s; }

.grey-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grey-label { font-size: 13px; color: var(--fg-2); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: var(--fg-3); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track-sw { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--track); transition: background .25s; }
.track-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .track-sw { background: var(--grey); }
.switch input:checked + .track-sw::after { transform: translateX(16px); }
.switch input:focus-visible + .track-sw { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.grey-body { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.grey-score { font: 800 52px/1 var(--display); letter-spacing: -0.04em; color: var(--green); transition: color .4s; font-variant-numeric: tabular-nums; }
.band { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--green); background: rgb(95 231 166 / .12); border: 1px solid rgb(95 231 166 / .3); transition: all .4s; }
.conf { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); }
.conf i { flex: 1; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.conf s { display: block; height: 100%; width: 94%; border-radius: inherit; background: var(--accent-2); transition: width .6s var(--ease), background .4s; }
.conf em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--fg-2); width: 34px; text-align: right; }
.grey-reason { margin-top: 16px; font-size: 12.5px; color: var(--fg-2); }
.demo-grey.stale .grey-score { color: var(--grey); }
.demo-grey.stale .band { color: var(--grey); background: rgb(166 174 201 / .1); border-color: rgb(166 174 201 / .3); }
.demo-grey.stale .conf s { width: 23%; background: var(--grey); }
.demo-grey.stale .grey-reason { color: var(--fg-2); }

.att-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; color: var(--purple-fg); background: rgb(168 141 250 / .14); border: 1px solid rgb(168 141 250 / .3); }
.att-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.att-steps li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--fg-2); }
.att-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--line-2); transform: translateY(2px); }
.att-steps li.done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.5-5' fill='none' stroke='%2306080f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.att-steps small { margin-left: auto; font-size: 12px; color: var(--fg-3); }
.ceil { margin-top: 18px; display: grid; gap: 8px; }
.ceil div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); }
.ceil i { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.ceil s { display: block; height: 100%; border-radius: inherit; width: 0; transition: width 1.1s var(--ease); }
.ceil .m { background: var(--accent-2); }
.ceil .a { background: #a88dfa; }
.in .ceil .m { width: 100%; }
.in .ceil .a { width: 80%; transition-delay: .25s; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento .card { display: flex; flex-direction: column; }
.b-copy { padding: 26px 26px 20px; }
.b-wide { grid-column: span 4; }
.b-tall { grid-column: span 2; grid-row: span 2; }
.b-mid { grid-column: span 2; }
.b-note { grid-column: span 2; padding: 26px; }
.shot { margin: auto 0 0 26px; padding: 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; overflow: hidden; background: var(--frame-bg);
  cursor: zoom-in; display: block; transition: transform .5s var(--ease); }
.shot img { width: 100%; }
.card:hover .shot { transform: translate(-6px, -6px); }
.b-tall .shot { position: relative; flex: 1; min-height: 320px; }
.b-tall .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.b-mid .shot { max-height: 230px; }
.b-mid .shot img { object-fit: cover; object-position: top left; }
.ico { width: 38px; height: 38px; padding: 8px; border-radius: 11px; color: var(--accent-2); background: rgb(140 160 255 / .1); border: 1px solid rgb(140 160 255 / .22); margin-bottom: 18px; }

/* ───────── How ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 20%, var(--glow) 50%, var(--green) 80%, transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; padding: 0 8px 0 0; }
.step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--bg); font: 700 18px/1 var(--mono); color: var(--fg); box-shadow: 0 0 0 6px var(--bg); }
.step h3 { margin-top: 24px; font-size: 24px; }
.step p { margin-top: 10px; color: var(--fg-3); font-size: 15px; }
.step code { display: inline-block; margin-top: 16px; padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--green); background: rgb(95 231 166 / .08); border: 1px solid rgb(95 231 166 / .2); }

/* ───────── Roles ───────── */
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.role { background: var(--bg); padding: 26px; transition: background .3s; }
.role:hover { background: var(--bg-2); }
.role b { display: block; font: 700 17px/1.3 var(--display); color: var(--fg); }
.role span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--fg-3); }

/* ───────── Security ───────── */
.sec-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sec-list li { display: flex; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--ink) / .02); }
.sec-list svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.sec-list b { display: block; font: 700 16px/1.3 var(--display); color: var(--fg); }
.sec-list span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--fg-2); }

/* ───────── CTA ───────── */
.cta { padding: 140px 0 120px; }
.cta-card { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); }
.cta-glow { position: absolute; z-index: -1; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(50% 50% at 30% 30%, rgb(124 92 255 / .45), transparent), radial-gradient(45% 45% at 70% 25%, rgb(11 85 252 / .45), transparent);
  filter: blur(30px); }
.cta h2 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; margin: 0 auto; }
.cta-card > p { margin: 20px auto 0; max-width: 52ch; font-size: 17px; color: var(--fg-2); }
.cta-mail { margin-top: 22px !important; font-size: 14px !important; color: var(--fg-3) !important; }
.cta-mail a { color: var(--fg-2); text-underline-offset: 3px; }

/* ───────── Walkthrough request form ───────── */
.cta-form-card { text-align: left; padding: clamp(28px, 5vw, 64px); }
.cta-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cta-form-card h2 { margin: 0; max-width: 14ch; }
.cta-copy > p { margin: 18px 0 0; font-size: 17px; color: var(--fg-2); max-width: 44ch; }
.cta-next { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.cta-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; color: var(--fg-2); }
.cta-next b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 12px/1 var(--mono); color: var(--fg); border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); }
.demo-panel { padding: clamp(20px, 3vw, 28px); border-radius: 20px; border: 1px solid var(--line-2); background: rgb(var(--glass) / .55); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgb(var(--ink) / .06); }
.demo-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.field label em { font-style: normal; font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.field input, .field textarea { width: 100%; min-width: 0; font: 400 15px/1.4 var(--body); color: var(--fg); padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:hover, .field textarea:hover { border-color: rgb(var(--ink) / .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgb(140 160 255 / .25); background: rgb(var(--ink) / .02); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-err { font-size: 13px; color: var(--red); }
.field-err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-submit { justify-self: start; }
.demo-submit:disabled { opacity: .7; cursor: progress; }
.form-note { font-size: 12.5px; color: var(--fg-3); }
.form-note a { color: var(--fg-2); text-underline-offset: 3px; }
.form-status { font-size: 14px; color: var(--red); }
.form-status:empty { display: none; }
.demo-done { display: grid; gap: 10px; justify-items: start; padding: 12px 4px; outline: none; }
.demo-done[hidden] { display: none; }
.demo-done h3 { font-size: 24px; }
.demo-done p { color: var(--fg-2); font-size: 15.5px; }
.done-tick { width: 44px; height: 44px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2306080f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat;
  box-shadow: 0 0 24px rgb(95 231 166 / .5); animation: pop .4s var(--ease); }
@media (max-width: 860px) {
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .cta-form-card h2 { max-width: none; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .demo-submit { justify-self: stretch; justify-content: center; }
}

/* ───────── Footer ───────── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot-note { font-size: 13px; color: var(--fg-3); flex: 1 1 320px; }
.foot-copy { font-size: 13px; color: var(--fg-3); }

/* ───────── Lightbox ───────── */
.lightbox { width: min(1280px, calc(100vw - 32px)); height: calc(100dvh - 48px); max-height: none; max-width: none; padding: 0; border: 1px solid var(--line-2);
  border-radius: 16px; background: var(--frame-bg); color: var(--fg); overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; animation: pop .35s var(--ease); }
.lightbox::backdrop { background: rgb(3 4 9 / .78); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 600 14px/1 var(--display); }
.lb-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); cursor: pointer; }
.lb-close:hover { background: rgb(var(--ink) / .09); }
.lb-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; }
.lb-scroll img { width: 100%; }

/* ───────── Reveal ───────── */
/* Rests visible: a thumbnail, a skimmer or a failed script still gets the whole page. */
.js .reveal { transform: translateY(14px); transition: transform .7s var(--ease); }
.js .reveal.in { transform: none; }




/* ───────── Versus the spreadsheet ───────── */
.compare { padding: 110px 0 0; }
.contrasts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contrast { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.contrast .c-topic { margin: 0 0 4px; font: 600 15px/1.3 var(--display); letter-spacing: -0.01em; color: var(--fg-2); }
.contrast .c-old, .contrast .c-new { display: grid; gap: 6px; margin: 0; }
.c-old s { font-size: 16px; line-height: 1.4; color: var(--fg-3); font-weight: 500; text-decoration-color: rgb(255 155 160 / .75); text-decoration-thickness: 2px; }
.contrast .c-new { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.c-claim { font: 700 22px/1.25 var(--display); letter-spacing: -0.02em; color: var(--fg); text-wrap: balance; }
.c-tag { font: 700 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.c-tag-new { color: var(--accent-2); }
.contrast .c-why { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.contrast .c-note { margin-top: auto; font-size: 12px; color: var(--fg-3); }
.cmp-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--fg-3); }

/* ───────── Connector tiers ───────── */
.connectors { padding: 84px 0 0; }
.tiers { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 20px; align-items: start; }
.tier { padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: rgb(var(--ink) / .02); }
.tier-live { border-color: rgb(95 231 166 / .32); background: linear-gradient(180deg, rgb(95 231 166 / .08), rgb(95 231 166 / 0) 70%); }
.tier h3 { display: flex; align-items: center; font-size: 17px; line-height: 1.3; }
.tier > p { margin-top: 6px; font-size: 14px; color: var(--fg-2); }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .02); font: 600 13px/1.2 var(--display); color: var(--fg-2); letter-spacing: -0.01em; }
.tier-live .chips li { color: var(--fg); border-color: rgb(95 231 166 / .38); }
.tier-groups { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.tier-groups dt { font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tier-groups dd { margin: 0; }
.tier-groups .chips { margin-top: 9px; }

/* ───────── Tour: pause and play ───────── */
.tour-controls { flex: none; display: flex; align-items: center; gap: 10px; }
.tour-play { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .03); color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s; }
.tour-play:hover { background: rgb(var(--ink) / .08); border-color: rgb(var(--ink) / .25); }
.tour-play svg { width: 14px; height: 14px; }
.tour-play .i-play, .tour-play.paused .i-pause { display: none; }
.tour-play.paused .i-play { display: block; }

@media (max-width: 1080px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .contrasts { grid-template-columns: minmax(0, 1fr); }
  .tier-groups { grid-template-columns: minmax(0, 1fr); }
  .compare { padding-top: 88px; }
  .connectors { padding-top: 64px; }
}

/* ───────── Review pass: buyer-first hero, honest connectors, three-step tour ───────── */
.tagline { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  font: 600 14px/1.4 var(--display); color: var(--fg); letter-spacing: -0.01em; }
.tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); }

.live-dot { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green); vertical-align: 1px; }

/* The story: three numbered steps across the top, the other screens as small pills beneath. */
.tour-tabs .story { flex: 1 1 calc(33.333% - 8px); height: auto; min-height: 72px; padding: 14px 18px; border-radius: 16px;
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; white-space: normal; text-align: left; }
.tour-tabs .story b { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; }
.tour-tabs .story small { padding-left: 34px; font-size: 12.5px; color: var(--fg-3); }
.tour-tabs .story .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/1 var(--mono); font-style: normal;
  color: var(--fg-2); border: 1px solid var(--line-2); transition: background .25s, color .25s, border-color .25s; }
.tour-tabs .story[aria-selected="true"] .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.tour-tabs .story .bar { bottom: 0; left: 18px; right: 18px; }
.tour-tabs .story + [role="tab"]:not(.story) { margin-left: 0; }
.tour-tabs [role="tab"]:not(.story) { height: 34px; padding: 0 13px; }
.tour-tabs [role="tab"]:not(.story) b { font-size: 13px; }
.tour-tabs [data-shot="risk"]::before { content: none; }
.tour-tabs .story[data-shot="risk"] .n { border-color: rgb(251 185 109 / .6); }

/* ───────── Light theme ─────────
   A white page chosen with the switch in the nav (html[data-theme="light"]). The values are the
   product's own light tokens (frontend/src/styles/index.css), so the light screenshots sit in a
   page of the same family. Every rule above reads these tokens; nothing below restyles a
   component. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f7fa;
  --surface: #f5f7fb;
  --surface-2: #eef1f7;
  --line: rgb(11 18 32 / 0.09);
  --line-2: rgb(11 18 32 / 0.16);
  --fg: #070c18;
  --fg-2: #1f2937;
  --fg-3: #475163;
  --accent: #0b55fc;
  --accent-2: #0b55fc;
  --glow: #6d4aff;
  --green: #0e6a4a;
  --amber: #8a4908;
  --red: #a32436;
  --grey: #4c5768;
  --ink: 11 18 32;
  --glass: 255 255 255;
  --shade: 15 23 42;
  --shade-k: .28;
  --frame-bg: #f3f4f7;
  --frame-bar: #eceef3;
  --track: #dfe4ec;
  --purple-fg: #6d28d9;
  --amber-mid: #c2410c;
  --cta-a: #f3f5ff;
  --cta-b: #ffffff;
  --grad-start: #0b1220;
  --stat-end: #4c5768;
  --aurora: .2;
  color-scheme: light;
}
:root[data-theme="light"] .risk .kicker { color: var(--amber); }
:root[data-theme="light"] body { font-weight: 400; }
:root[data-theme="light"] ::selection { color: var(--fg); background: rgb(124 92 255 / .22); }

/* The theme switch. */
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .03); color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.theme-toggle:hover { background: rgb(var(--ink) / .07); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
/* The icon shows where the switch goes: a sun while dark, a moon while light. */
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .tour-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs [role="tab"] { flex: none; scroll-snap-align: start; }
  .tour-tabs .story { flex: none; width: 230px; min-height: 64px; padding: 10px 14px; }
  .tour-toolbar { flex-direction: column; align-items: flex-start; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-wide { grid-column: span 2; }
  .b-tall { grid-column: span 1; grid-row: span 2; }
  .b-mid { grid-column: span 1; }
  .b-note { grid-column: span 1; }
  .sec-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .risk-hero { grid-template-columns: minmax(0, 1fr); }
  .risk-read { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-main { grid-row: auto; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .chip-a { left: 0; } .chip-b { right: 0; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px var(--gutter) 20px;
    background: rgb(var(--glass) / .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav-links a.active::after { display: none; }
  .nav-mobile-only { display: block; }
  .nav-toggle { display: inline-block; }
  .nav-signin { display: none; }
  .nav { background: rgb(var(--glass) / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps::before { left: 34px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--accent-2), var(--glow), var(--green)); }
  .steps.in::before { transform: scaleY(1); }
  .step { padding-left: 92px; }
  .step-n { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 14px; }
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .chip { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 116px; }
  .hero-stage { margin-top: 48px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .risk-read { grid-template-columns: minmax(0, 1fr); }
  .risk-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace { padding: 20px; }
  .ws-shots { grid-template-columns: minmax(0, 1fr); }
  .ws-c { display: none; }
  .risk { padding-top: 88px; }
  .tour-tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; justify-content: flex-start; }
  .tour-tabs .story { flex: 0 0 calc((100% - 16px) / 3); width: auto; min-width: 0; min-height: 0; padding: 10px; gap: 6px; }
  .tour-tabs .story b { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.25; }
  .tour-tabs .story small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
  .tour-tabs .story .bar { left: 10px; right: 10px; }
  .tour-tabs [role="tab"]:not(.story) { height: 30px; padding: 0 10px; }
  .tour-tabs [role="tab"]:not(.story) b { font-size: 12px; }
  .tour-frame .url { max-width: 62%; }
  .tour-img { aspect-ratio: auto; }
  .tour-img img { height: auto; object-fit: initial; }
  .tagline { font-size: 13px; }
  .data-note { margin-top: 44px; align-items: flex-start; text-align: left; }
  .b-wide, .b-tall, .b-mid, .b-note { grid-column: auto; grid-row: auto; }
  .b-tall .shot { max-height: 340px; }
  .nav-cta .btn-primary { height: 36px; padding: 0 14px; font-size: 13px; }
  .url { font-size: 10.5px; max-width: 70%; }
  .frame-bar { height: 30px; }
  .frame-bar i { width: 8px; height: 8px; }
  .tour, .principles, .platform, .how, .roles, .security { padding-top: 88px; }
  .sec-head { margin-bottom: 32px; }
  .cta { padding: 100px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-frame { --tilt: 0deg !important; --s: 1 !important; }
  .tour-tabs .bar { display: none; }
  .tour-play { display: none; }
}

/* ───────── Footer: legal links and company line ───────── */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { font-size: 13.5px; color: var(--fg-2); text-decoration: none; text-underline-offset: 3px; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--fg); text-decoration: underline; }
.foot-legal { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: var(--fg-3); }

/* ───────── Legal documents ─────────
   Read, not scanned: one measure of ~68 characters, a contents list that stays in view on wide
   screens, and no motion. */
.doc-page .nav { position: sticky; top: 0; }
.doc { padding-block: 64px 96px; }
.doc-head { max-width: 760px; }
.doc-head h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.doc-meta { margin-top: 12px; font: 500 13px/1.4 var(--mono); color: var(--fg-3); }
.doc-lede { margin-top: 22px; max-width: 64ch; font-size: 18px; line-height: 1.6; color: var(--fg-2); padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgb(95 231 166 / .22); background: rgb(95 231 166 / .05); }
.doc-body { margin-top: 48px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 96px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: grid; gap: 10px; }
.doc-toc a { font-size: 13.5px; color: var(--fg-3); text-decoration: none; }
.doc-toc a:hover { color: var(--fg); }
.doc-text { max-width: 68ch; }
.doc-text section { scroll-margin-top: 96px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.doc-text section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-text h2 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.doc-text h3 { margin-top: 24px; font-size: 16.5px; font-weight: 700; color: var(--fg); }
.doc-text p, .doc-text li { font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.doc-text p { margin-top: 12px; }
.doc-text ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-text b { color: var(--fg); font-weight: 600; }
.doc-text a { color: var(--accent-2); text-underline-offset: 3px; }
.doc-text code { font-size: 13.5px; padding: 1px 6px; border-radius: 6px; background: rgb(var(--ink) / .06); color: var(--fg); }
.doc-table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; }
.doc-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; border-bottom: 1px solid var(--line); }
.doc-table th { font: 600 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); background: rgb(var(--ink) / .02); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td { color: var(--fg-2); }
.doc-facts { margin: 16px 0 0; display: grid; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.doc-facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc-facts div:last-child { border-bottom: 0; }
.doc-facts dt { font-size: 13.5px; color: var(--fg-3); }
.doc-facts dd { margin: 0; font-size: 15px; color: var(--fg); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-toc { position: static; }
  .doc-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc { padding-block: 40px 72px; }
}

/* Text for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
