:root {
  --cream: #faf8f5;
  --cream-2: #f2ede6;
  --paper: #ffffff;
  --ink: #24170d;
  --ink-soft: #6f5b49;
  --ink-faint: #a08a76;
  --caramel: #cba685;
  --caramel-2: #b88b62;
  --cocoa: #6c4b2f;
  --choco: #1b130c;
  --choco-2: #2a1d13;
  --choco-3: #3a291b;
  --glow: #f0b47a;
  --ok: #3f9b62;
  --line: rgba(36, 23, 13, 0.09);
  --line-light: rgba(255, 240, 222, 0.14);
  --radius: 22px;
  --shadow: 0 24px 60px -32px rgba(40, 25, 12, 0.35);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ico-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%206%209%2017l-5-5'%2F%3E%3C%2Fsvg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.38em; border-radius: 6px; background: rgba(203, 166, 133, 0.22); }
em { font-style: italic; }
section { position: relative; }


/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 22px 0 22px;
}
.display em, .h2 em { font-style: normal; color: var(--ink-faint); }
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 0;
}
.h2-light { color: #fff4e8; }
.h2-light em { color: rgba(255, 238, 220, 0.45); }
.eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--caramel-2);
}
.eyebrow-light { color: var(--glow); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 540px; margin: 0; }
.lead-sm { color: var(--ink-soft); max-width: 520px; }
.sub-light { color: rgba(255, 238, 220, 0.72); max-width: 620px; font-size: 18px; }
.sub-light b { color: #fff4e8; }
.fine { font-size: 13px; color: var(--ink-faint); margin: 10px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  letter-spacing: -0.01em;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease, background-color 200ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--choco); color: #fff4e8; }
.btn-caramel {
  background: var(--ink);
  color: #fff;
}
.btn-caramel:hover { background: #3a2a1d; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-light { background: rgba(255, 244, 232, 0.08); color: #fff4e8; box-shadow: inset 0 0 0 1px var(--line-light); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 12px auto 0;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: background-color 160ms ease, color 160ms ease; }
.nav-links a:hover { background: rgba(203, 166, 133, 0.2); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; color: var(--ink-faint); }
.browser-strip { display: flex; }
.browser-strip .blogo { width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--cream); display: grid; place-items: center; }
.browser-strip .blogo:first-child { margin-left: 0; }
.browser-strip .blogo i { width: 20px; height: 20px; }

.hero-stage { position: relative; perspective: 1400px; }
.video-frame { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- ticker ---------- */
.ticker { color: var(--ink-faint); overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker span { font-size: 17px; font-weight: 500; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; }
.ticker span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--caramel); margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- race ---------- */
.race {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.race-lanes { display: flex; flex-direction: column; gap: 18px; }
.lane { padding: 22px 24px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.lane-new { background: #fbf3ea; box-shadow: 0 0 0 1.5px var(--caramel), 0 24px 50px -30px rgba(108, 75, 47, 0.45); }
.lane-top { display: flex; justify-content: space-between; align-items: baseline; }
.lane-name { font-weight: 700; }
.lane-time { font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: -0.04em; }
.lane-time b { font-weight: 600; }
.lane-bar { height: 4px; border-radius: 99px; background: rgba(36, 23, 13, 0.08); margin: 16px 0; overflow: hidden; }
.lane-new .lane-bar { background: rgba(203, 166, 133, 0.22); }
.lane-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--caramel); }
.lane-new .lane-bar i { background: var(--caramel-2); }
.race.is-running .lane-old .lane-bar i { width: 100%; transition: width 4.7s linear; }
.race.is-running .lane-new .lane-bar i { width: 100%; transition: width 0.25s ease-out; }
.lane-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lane-steps li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(36, 23, 13, 0.06); color: var(--ink-soft); }
.lane-old .lane-steps li { opacity: 0.35; transition: opacity 300ms ease, text-decoration-color 300ms ease; text-decoration: line-through; text-decoration-color: transparent; }
.race.is-running .lane-old .lane-steps li { opacity: 1; text-decoration-color: rgba(180, 60, 60, 0.6); }
.race.is-running .lane-old .lane-steps li:nth-child(1) { transition-delay: 0.4s; }
.race.is-running .lane-old .lane-steps li:nth-child(2) { transition-delay: 1.3s; }
.race.is-running .lane-old .lane-steps li:nth-child(3) { transition-delay: 2.2s; }
.race.is-running .lane-old .lane-steps li:nth-child(4) { transition-delay: 3.2s; }
.race.is-running .lane-old .lane-steps li:nth-child(5) { transition-delay: 4.3s; }
.lane-new .lane-steps li { background: rgba(203, 166, 133, 0.22); color: var(--cocoa); font-weight: 600; }

/* ---------- story ---------- */
.story { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(60px, 8vw, 120px) 0; }
.story-intro { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 64px); }
.story-stage { position: sticky; top: 110px; align-self: start; }
.story-screen { position: relative; aspect-ratio: 820 / 519; border-radius: 16px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.story-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 500ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.story-screen video.is-active { opacity: 1; transform: none; }
.story-progress { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.story-progress i { width: 34px; height: 5px; border-radius: 99px; background: rgba(36, 23, 13, 0.12); transition: background-color 300ms ease, width 300ms ease; }
.story-progress i.is-active { background: var(--cocoa); width: 64px; }
.story-steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 400ms ease; }
.step.is-active { opacity: 1; }
.step-num { font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--caramel-2); }
.step h3 { font-family: var(--display); font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.035em; margin: 14px 0 12px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-soft); }
.step p b { color: var(--ink); }
.step-tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step-tags li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.step-video-mobile { display: none; }

/* ---------- features ---------- */
.features { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(90px, 10vw, 150px) 0 clamp(60px, 8vw, 110px); }
.features-head { display: flex; flex-direction: column; margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 26px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.tile h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tile-video { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: end; padding-bottom: 0; }
.tile-video .tile-copy { align-self: start; }
.tile-a { background: var(--paper); }
.tile-b { background: var(--cream-2); }

.phone-frame { border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 -10px 40px -10px rgba(60, 35, 15, 0.35), 0 0 0 1px rgba(60, 35, 15, 0.1); aspect-ratio: 432 / 600; background: #f9fafb; }
.phone-frame video { width: 100%; height: auto; }
.tile-verify, .tile-rollback, .tile-active { grid-column: span 2; }
.tile-tech { grid-column: span 2; }

.tile-storage { grid-column: span 2; }

.tile-langs { grid-column: span 2; }
.verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.verdict { border: 0; cursor: pointer; padding: 8px 13px; border-radius: 999px; font: 700 13px/1 var(--body); transition: transform 160ms ease, box-shadow 160ms ease; }
.verdict:hover, .verdict.is-on { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35); }
.v-ok { background: #dff3e6; color: #1f6b3d; }
.v-unknown { background: #eef0f4; color: #4a5160; }
.v-warn { background: #fff0d6; color: #8a5a00; }
.v-bad { background: #ffe0e3; color: #a3203a; }
.verdict-text { margin-top: 12px !important; min-height: 46px; font-size: 14px !important; }
.rollback { display: flex; align-items: center; margin-top: 22px; }
.rb-node { flex-shrink: 0; padding: 7px 10px; border-radius: 10px; background: var(--cream-2); font: 700 12px/1 var(--body); }
.rb-fail { background: #ffe0e3; color: #a3203a; animation: shake 3s infinite; }
.rb-ok { background: #dff3e6; color: #1f6b3d; }
.rb-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--caramel) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: dash 1s linear infinite; }
.rb-back { animation-direction: reverse; }
@keyframes dash { to { background-position: 20px 0; } }
@keyframes shake { 0%, 80%, 100% { transform: none; } 84% { transform: translateX(-3px); } 88% { transform: translateX(3px); } 92% { transform: translateX(-2px); } }
.mini-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.mini-row b { flex: 1; }
.mini-row span { color: var(--ink-faint); font-size: 12px; }
.mini-row.is-live { background: #fbf3ea; box-shadow: 0 0 0 1.5px var(--caramel); animation: live 3.5s ease-in-out infinite; }
.mini-row em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--ok); padding: 3px 7px; border-radius: 999px; }
@keyframes live { 50% { box-shadow: 0 0 0 4px rgba(203, 166, 133, 0.35); } }
.tech-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tech-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tech-list li::before { content: ""; flex-shrink: 0; width: 15px; height: 15px; margin-top: 4px; background: var(--caramel-2); -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.lang-cloud span { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; transition: transform 200ms ease; }
.lang-cloud span:hover { transform: translateY(-3px); }

/* ---------- privacy ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) 0;
}
.vault { order: 2; position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.vault::before { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(203, 166, 133, 0.35), transparent 70%); filter: blur(10px); }
.vault img { position: relative; width: 34%; filter: drop-shadow(0 18px 30px rgba(60, 35, 15, 0.28)); animation: float 6s ease-in-out infinite; }
.vault-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(166, 122, 82, 0.45); }
.vault-ring.r1 { inset: 22%; animation: spin 20s linear infinite; }
.vault-ring.r2 { inset: 10%; border-style: solid; border-color: rgba(166, 122, 82, 0.22); animation: spin 30s linear infinite reverse; }
.vault-ring.r3 { inset: 0; border-color: rgba(166, 122, 82, 0.14); }
.vault-ring.r1::after, .vault-ring.r2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--caramel-2); box-shadow: 0 0 0 4px rgba(184, 139, 98, 0.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.promise { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform 200ms ease, box-shadow 200ms ease; }
.promise:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 18px 34px -22px rgba(60, 35, 15, 0.45); }
.promise-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--cocoa); }
.promise-ico .ico { width: 22px; height: 22px; }
.promise:nth-child(1) .promise-ico { background: #f3e6d8; color: #8a5a32; }
.promise:nth-child(2) .promise-ico { background: #e3eef9; color: #2f5f9a; }
.promise:nth-child(3) .promise-ico { background: #e1f1e7; color: #2f7a4d; }
.promise:nth-child(4) .promise-ico { background: #f8e4e1; color: #a2453a; }
.promise p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.promise b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- browsers ---------- */
.browsers { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(90px, 10vw, 150px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; margin: 0 auto; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit::before { inset: 8%; }
.orbit::after { inset: 28%; border-style: dashed; }
.orbit-core { position: absolute; inset: 36%; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line); display: grid; place-items: center; }
.orbit-core img { width: 64%; }
.orbit-ring { position: absolute; inset: 8%; animation: spin 40s linear infinite; }
/* Each browser sits on the outer shape of the CookieSwapper logo (assets/badge.svg).
   drop-shadow follows the masked shape, unlike box-shadow. */
.orbit-item { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; display: grid; place-items: center; filter: drop-shadow(0 0 0.6px rgba(60, 35, 15, 0.35)) drop-shadow(0 12px 14px rgba(60, 35, 15, 0.18)); }
.orbit-item::before { content: ""; position: absolute; inset: 0; background: var(--paper); -webkit-mask: url("../assets/badge.svg") center / contain no-repeat; mask: url("../assets/badge.svg") center / contain no-repeat; }
.orbit-item > span { position: relative; display: grid; place-items: center; animation: spin 40s linear infinite reverse; }
.orbit-item i { width: 34px; height: 34px; }
.blogo i, .orbit-item i, .browser-list i { display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: var(--c); }
.browser-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.browser-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform 200ms ease, box-shadow 200ms ease; }
.browser-list li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--caramel), 0 14px 24px -14px rgba(60, 35, 15, 0.45); }
.browser-list i { width: 30px; height: 30px; flex-shrink: 0; }
.browser-list b { display: block; font-size: 15px; }
.browser-list small { display: block; font-size: 12.5px; color: var(--ink-faint); line-height: 1.35; }

/* ---------- testimonials ---------- */
.voices { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 140px); overflow: hidden; }
.voices-head { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto 44px; }
.voice-lang { margin: -10px 0 16px !important; font-size: 12px; color: var(--ink-faint); }
a.voice-role { text-decoration: none; }
a.voice-role:hover { text-decoration: underline; }
.voice { display: flex; flex-direction: column; margin: 0; }
.voice-row { align-items: flex-start; }
.voice-who { margin-top: auto; }
.voices-rows { display: flex; flex-direction: column; gap: 16px; }
.voice-row { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.voice-row.rev { animation-direction: reverse; animation-duration: 70s; }
.voice { width: 360px; flex-shrink: 0; padding: 22px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.voice-stars { display: flex; gap: 3px; color: #e39a3b; font-size: 15px; }
.voice q { display: block; margin: 10px 0 18px; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); quotes: "“" "”"; }
.voice-who { display: flex; align-items: center; gap: 10px; }
.voice-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.voice-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.voice-role { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- faq ---------- */
.faq { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 0 0 clamp(90px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%2324170d'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M5%2012h14'%2F%3E%3Cpath%20d%3D'M12%205v14'%2F%3E%3C%2Fsvg%3E") center / 14px no-repeat; transition: transform 250ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--caramel); }
.faq-list p { margin: -6px 0 22px; color: var(--ink-soft); max-width: 640px; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 9vw, 130px);
}
.contact .sub-light { color: var(--ink-soft); }
.contact .sub-light b { color: var(--ink); }
.contact-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-points span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); }
.contact-form { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(60, 35, 15, 0.35); display: flex; flex-direction: column; gap: 16px; }
.kind { border: 0; padding: 4px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-radius: 16px; background: var(--cream-2); }
.kind label { position: relative; cursor: pointer; display: flex; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; line-height: 1.25; padding: 8px 8px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.kind input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(60, 35, 15, 0.4); }
.kind input:focus-visible + span { box-shadow: 0 0 0 3px rgba(203, 166, 133, 0.6); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field em { color: #b5432f; font-style: normal; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: 500 16px/1.4 var(--body); color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--caramel-2); box-shadow: 0 0 0 4px rgba(203, 166, 133, 0.25); }
.field .is-invalid { border-color: #c4503a; }
.count { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--ink-faint); }
.form-error { min-height: 0; font-size: 14px; font-weight: 600; color: #b5432f; }
.form-error:empty { display: none; }
.contact-form .btn.is-sending .btn-label { opacity: 0.5; }
.contact-form .btn.is-sending::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(42, 26, 12, 0.3); border-top-color: #2a1a0c; animation: spin 700ms linear infinite; }
.form-success { position: absolute; inset: 0; border-radius: inherit; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 30px; animation: pop 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.form-success[hidden] { display: none; }
.form-success img { width: 82px; animation: tada 1s ease; }
.form-success h3 { font-family: var(--display); font-size: 28px; margin: 10px 0 0; font-weight: 600; letter-spacing: -0.035em; }
.form-success p { margin: 0 0 14px; color: var(--ink-soft); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
@keyframes tada { 0% { transform: scale(0.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.15) rotate(10deg); opacity: 1; } 100% { transform: none; } }

/* ---------- footer ---------- */
.footer { padding: 40px var(--gutter) 30px; overflow: hidden; }
.footer-word { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 13.2vw, 220px); line-height: 0.9; letter-spacing: -0.07em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(36, 23, 13, 0.14); user-select: none; white-space: nowrap; }
.footer-row { max-width: var(--max); margin: 26px auto 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-faint); }
.footer-row nav { display: flex; gap: 18px; }
.footer-row nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.footer-row nav a:hover { color: var(--ink); }
.footer-row p { margin: 0 0 0 auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero, .race, .privacy, .browsers, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin: 20px 10px 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-video { grid-column: span 2; }
  .tile-verify, .tile-rollback, .tile-active, .tile-tech, .tile-storage, .tile-langs { grid-column: span 1; }
  .vault { max-width: 280px; }
}
@media (max-width: 820px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 26px 0; border-top: 1px solid var(--line); }
  .step-video-mobile { display: block; width: 100%; margin-top: 20px; border-radius: 14px; box-shadow: var(--shadow); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 8px; padding-left: 14px; }
  .nav .brand span { display: none; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-video, .tile-verify, .tile-rollback, .tile-active, .tile-tech, .tile-storage, .tile-langs { grid-column: span 1; }
  .tile-video { grid-template-columns: minmax(0, 1fr); }
  .promises, .field-row, .browser-list { grid-template-columns: minmax(0, 1fr); }
  .kind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice { width: 290px; }
  .footer-row p { margin: 0; }
  .lane-time { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- fixes ---------- */
.field[hidden] { display: none; }

/* ---------- icons (Lucide sprite from demo/icons.js) ---------- */
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke-width: 1.5; }
.ico-chip { width: 1.5em; height: 1.5em; padding: 0.22em; border-radius: 6px; box-shadow: inset 0 0 0 1px currentColor; vertical-align: -0.42em; opacity: 0.85; }
.btn .ico { width: 18px; height: 18px; }
.ticker .ico { margin: 0 8px; color: var(--caramel-2); }
.rb-node .ico { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: -0.12em; }
.contact-points span .ico { width: 18px; height: 18px; color: var(--cocoa); }

/* Multi-colour browser marks (Chrome, Edge) are inline SVG, not masks. */
.blogo i.is-svg, .orbit-item i.is-svg, .browser-list i.is-svg { -webkit-mask: none; mask: none; background: none; }
i.is-svg img { display: block; width: 100%; height: 100%; }

/* ---------- language switch ---------- */
.lang-switch { display: flex; gap: 2px; padding: 3px; margin-left: 8px; border-radius: 999px; background: rgba(36, 23, 13, 0.06); }
.lang-switch button { border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; font: 600 12.5px/1 var(--body); color: var(--ink-soft); transition: background-color 160ms ease, color 160ms ease; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36, 23, 13, 0.15); }
@media (max-width: 1080px) { .lang-switch { margin-left: auto; } .nav .btn { margin-left: 0; } }

/* Chinese: CJK fallback fonts and no negative tracking on headings. */
html[lang="zh-CN"] { --display: "Inter Tight", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; --body: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-CN"] .display, html[lang="zh-CN"] .h2, html[lang="zh-CN"] .tile h3, html[lang="zh-CN"] .step h3 { letter-spacing: 0; }
.lang-switch button, .nav .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .nav > .btn { display: none; }
  .lang-switch { margin-left: auto; }
}
/* Single-column layouts: skip the privacy illustration so it doesn't sit right
   above the browsers orbit. */
@media (max-width: 1080px) { .vault { display: none; } }

/* ---------- privacy policy page ---------- */
.policy { width: min(860px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.policy-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 28px; }
.policy-head .h2 { margin: 6px 0 22px; }
.policy-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-2); }
.policy-tabs button { border: 0; cursor: pointer; background: none; padding: 10px 18px; border-radius: 999px; font: 600 14.5px/1 var(--body); color: var(--ink-soft); transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.policy-tabs button:hover { color: var(--ink); }
.policy-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(60, 35, 15, 0.4); }
.policy-tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(203, 166, 133, 0.6); }
.policy-panel[hidden] { display: none; }
.policy-panel { animation: pop 300ms ease; }
.policy-date { margin: 0 0 18px; font-size: 14px; color: var(--ink-faint); }
.policy-callout { display: flex; gap: 16px; align-items: flex-start; padding: 22px; margin-bottom: 18px; border-radius: 18px; background: #e1f1e7; }
.policy-callout .promise-ico { flex-shrink: 0; background: #fff; color: #2f7a4d; }
.policy-callout h2 { margin: 2px 0 6px; font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.policy-callout p { margin: 0; color: #2d4b38; font-size: 15px; }
.policy-list { display: flex; flex-direction: column; gap: 12px; }
.policy-item { padding: 22px 24px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.policy-item h2 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.policy-item p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.policy-item a { color: var(--cocoa); }
.policy-item code { font-size: 0.85em; }
.policy-page .nav-links a { display: inline-flex; align-items: center; gap: 6px; }
.policy-page .footer { padding-top: 0; }
.policy-page .footer-row { border-top: 1px solid var(--line); padding-top: 24px; }
.policy-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--cocoa); text-decoration: none; }
.policy-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.botcheck { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--cocoa); }
.consent.is-invalid span { color: #b5432f; }

/* ---------- analytics consent banner ---------- */
.consent-banner { position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(60, 35, 15, 0.4); animation: pop 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.consent-banner a { color: var(--cocoa); white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent-actions .btn { flex: 1; }
}
/* Keep the browser badges inside the screen on phones. */
.browsers { overflow-x: clip; }
@media (max-width: 640px) {
  .orbit-ring, .orbit::before { inset: 15%; }
  .orbit-item { width: 64px; height: 64px; margin: -32px; }
  .orbit-item i { width: 30px; height: 30px; }
}
