/* Vocelle website.
   Night and umber are where the product lives; ember is the colour of
   listening and appears only where something is listening or can be pressed;
   paper is for reading. Anybody's width axis is the motion system: words
   widen as they're spoken. Newsreader is for reading. Everything is
   self-hosted. */

@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0f0501;
  --night-2: #170803;
  --umber: #2a1206;
  --umber-2: #391a0b;
  --umber-3: #4d2614;
  --ember: #ff5a1f;
  --ember-hot: #ff7b3f;
  --apricot: #ffb88a;
  --peach: #ffe6d4;
  --paper: #fff4ea;
  --ink: #1d0b03;
  --text-dark: #d6b5a0;
  --text-light: #5f3f2d;
  --line-light: #f0d9c8;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Anybody", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --gutter: clamp(20px, 5vw, 80px);
  --sheet-radius: clamp(28px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--peach);
  font: 400 19px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

kbd {
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 0.82em var(--display);
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
}

.on-paper :focus-visible {
  outline-color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--peach);
  color: var(--ink);
}

/* Film grain over everything: warmth without decoration. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}

@keyframes grain {
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: 999px;
  font: 700 17px/1 var(--display);
  font-stretch: 112%;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 200ms;
}

.btn-label {
  display: inline-block;
}

.btn-ember {
  background: var(--ember);
  color: var(--ink);
  box-shadow: 0 16px 40px -14px rgba(255, 90, 31, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ember:hover {
  background: var(--ember-hot);
  box-shadow: 0 20px 50px -12px rgba(255, 90, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  border: 1px solid rgba(255, 184, 138, 0.35);
  color: var(--peach);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--apricot);
  background: rgba(255, 184, 138, 0.07);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 15px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 14px var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
  padding: 0 10px 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 400ms, border-color 400ms, backdrop-filter 400ms, transform 500ms var(--ease);
}

.nav.scrolled {
  border-color: rgba(255, 184, 138, 0.12);
  background: rgba(23, 8, 3, 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
}

.nav.hidden {
  transform: translateY(-140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 21px/1 var(--display);
  font-stretch: 118%;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font: 600 15px/1 var(--display);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-dark);
  transition: color 200ms;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}

.nav-links a:hover {
  color: var(--peach);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- Shared type ---------- */

.section-title {
  max-width: 13em;
  font: 800 clamp(42px, 6vw, 96px)/0.96 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.035em;
}

.section-lead {
  max-width: 31em;
  margin-top: 26px;
  font-size: clamp(19px, 1.4vw, 22px);
  color: var(--text-dark);
}

.on-paper .section-lead {
  color: var(--text-light);
}

/* SplitText line masks for reveals. */
.line-mask {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* ---------- Sheets: sections slide over each other ---------- */

.sheet {
  position: relative;
  margin-top: calc(var(--sheet-radius) * -1);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.55);
}

.on-paper {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 170px var(--gutter) 0;
  background:
    radial-gradient(70% 55% at 50% 72%, rgba(255, 90, 31, 0.32), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, #22100a 100%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-title {
  max-width: 12em;
  font: 900 clamp(52px, 8.4vw, 140px)/0.92 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.04em;
  color: var(--peach);
}

.hero-title .word {
  display: inline-block;
}

.hero-lead {
  max-width: 30em;
  margin: 30px auto 0;
  font-size: clamp(19px, 1.5vw, 23px);
  color: var(--text-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-dark);
  opacity: 0.8;
}

/* The laptop: lid opens with scroll; the demo runs on its screen. */
.laptop-scene {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-top: 80px;
  padding-bottom: 140px;
}

.laptop {
  position: relative;
  width: min(1000px, 94vw);
  will-change: transform;
}

.lid {
  position: relative;
  z-index: 2;
  margin: 0 5.5%;
  padding: 1.4% 1.4% 2.6%;
  border-radius: 22px 22px 8px 8px;
  background: linear-gradient(180deg, #2a160c, #160903);
  box-shadow:
    inset 0 0 0 1px rgba(255, 184, 138, 0.14),
    0 -20px 80px -30px rgba(255, 90, 31, 0.5);
  transform-origin: 50% 100%;
  transform: perspective(2400px) rotateX(var(--lid, 0deg));
  will-change: transform;
}

.screen {
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.desktop {
  position: relative;
  display: grid;
  justify-items: center;
  aspect-ratio: 16 / 9.6;
  padding: 5% 10% 0;
  background:
    radial-gradient(80% 70% at 70% 0%, rgba(255, 90, 31, 0.28), transparent 70%),
    radial-gradient(60% 60% at 10% 100%, rgba(255, 184, 138, 0.12), transparent 70%),
    linear-gradient(160deg, #3e1c0c, #1f0d05 60%, #150801);
  text-align: left;
}

.window {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
}

.window-bar,
.card header {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #f4eee9;
  font: 600 13px/1 var(--display);
  color: #7a5a48;
}

.window-bar span,
.card header i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2d5cb;
}

.window-bar b,
.card header b {
  margin-left: 8px;
  font-weight: 600;
}

.window-body {
  min-height: 132px;
  padding: 18px 22px 22px;
}

.field-label {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee3da;
  color: #8a6a56;
  font-size: 14px;
}

.doc {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--ember);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.heard {
  min-height: 2.8em;
  margin-top: 16px;
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 16px);
  text-align: center;
  color: var(--text-dark);
}

.desktop .pill {
  position: absolute;
  bottom: 46px;
}

.taskbar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  background: rgba(14, 5, 1, 0.72);
  backdrop-filter: blur(8px);
}

.taskbar img {
  border-radius: 4px;
}

/* Base: a keyboard deck seen from above, in perspective. */
/* The deck has its own perspective, so it can't be magnified by the scene's. */
.base {
  position: relative;
  z-index: 1;
  height: calc(min(1000px, 94vw) * 0.2);
}

.keyboard {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 2.4% 4.2% 3%;
  border-radius: 6px 6px 26px 26px;
  background: linear-gradient(180deg, #2b160b, #1a0b04);
  box-shadow:
    inset 0 1px 0 rgba(255, 184, 138, 0.15),
    0 50px 80px -30px rgba(0, 0, 0, 0.9);
  transform: perspective(1400px) rotateX(58deg);
  transform-origin: 50% 0%;
}

.kb-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.kb-key {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1.15;
  border-radius: 14%;
  background: linear-gradient(180deg, #24120a, #1a0c05);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 184, 138, 0.08);
}

/* Only standard keys set the row height; wider keys stretch to it. */
.kb-key.wide,
.kb-key.space,
.kb-key.talk {
  aspect-ratio: auto;
}

.kb-key.wide {
  flex-grow: 1.6;
}

.kb-key.space {
  flex-grow: 6;
}

.kb-key.talk {
  flex-grow: 1.4;
  background: var(--ember);
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.8), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  transition: transform 120ms, box-shadow 200ms;
}

.kb-key.talk.down {
  transform: translateY(3px) scale(0.96);
  box-shadow: 0 0 40px 6px rgba(255, 90, 31, 0.95);
}

.try-key {
  position: relative;
  z-index: 3;
  margin-top: 36px;
  padding: 18px 40px;
  border: 1px solid #120600;
  border-bottom-width: 7px;
  border-radius: 14px;
  background: var(--ember);
  color: var(--ink);
  font: 800 21px/1 var(--display);
  font-stretch: 115%;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  box-shadow: 0 18px 44px -14px rgba(255, 90, 31, 0.75);
  transition: transform 90ms, border-bottom-width 90ms, box-shadow 300ms var(--ease);
}

.try-key.down {
  transform: translateY(5px);
  border-bottom-width: 2px;
  box-shadow: 0 6px 60px -4px rgba(255, 90, 31, 0.95);
}

.key-hint {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-dark);
}

/* The indicator pill, the same design as the app's. */
.pill {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 36px;
  border: 1px solid rgba(255, 184, 138, 0.2);
  border-radius: 18px;
  background: #160801;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 200ms var(--ease), transform 260ms var(--ease), width 260ms var(--ease);
}

.pill > * {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 160ms;
}

.pill[data-phase="listening"],
.pill[data-phase="transcribing"],
.pill[data-phase="done"] {
  opacity: 1;
  transform: none;
}

.pill[data-phase="listening"] .pill-bars,
.pill[data-phase="transcribing"] .pill-dots,
.pill[data-phase="done"] .pill-check {
  opacity: 1;
}

.pill[data-phase="transcribing"] {
  width: 72px;
}

.pill[data-phase="done"] {
  width: 56px;
}

.pill-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.pill-bars i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--apricot), var(--ember));
}

.pill-dots {
  display: flex;
  gap: 6px;
}

.pill-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  animation: wave 900ms ease-in-out infinite;
}

.pill-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.pill-dots i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.pill-check {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #4ade80;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.pill[data-phase="done"] .pill-check {
  animation: draw 320ms 60ms ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 2. How it works ---------- */

.how {
  z-index: 2;
  background: radial-gradient(90% 70% at 80% 40%, #3b1a0b, var(--umber) 60%);
}

.how-pin {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  min-height: 100svh;
  padding: 110px var(--gutter) 70px;
}

.how-steps {
  position: relative;
  min-height: 330px;
}

.how-count {
  font: 700 15px/1 var(--display);
  color: var(--apricot);
}

.how-step {
  position: absolute;
  inset: 44px 0 auto;
}

.how-step h2 {
  font: 800 clamp(40px, 5vw, 80px)/0.98 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.035em;
}

.how-step p {
  max-width: 25em;
  margin-top: 24px;
  font-size: 20px;
  color: var(--text-dark);
}

.js .how-step {
  opacity: 0;
  visibility: hidden;
}

.js .how-step.is-active {
  opacity: 1;
  visibility: visible;
}

.how-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  height: min(620px, 72svh);
  padding: 28px;
  border: 1px solid var(--umber-3);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 184, 138, 0.06), rgba(0, 0, 0, 0.2));
}

.how-field {
  width: 100%;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.how-field-label {
  display: block;
  margin-bottom: 6px;
  font: 600 13px/1 var(--display);
  color: #8a6a56;
}

.how-sentence {
  min-height: 1.6em;
  font-size: clamp(20px, 2vw, 26px);
}

.how-sentence span[data-word] {
  display: inline-block;
}

.js .how-sentence span[data-word] {
  opacity: 0;
}

.how-chips {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 46%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(255, 184, 138, 0.3);
  border-radius: 999px;
  background: rgba(42, 18, 6, 0.85);
  font: italic 400 21px/1 var(--serif);
  color: var(--peach);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8);
}

.chip.filler.flagged {
  border-color: var(--ember);
  color: var(--apricot);
  text-decoration: line-through;
  text-decoration-color: var(--ember);
}

.js .chip {
  opacity: 0;
}

.how-pill {
  position: absolute;
  bottom: 118px;
}

.bigkey {
  position: absolute;
  bottom: 24px;
  padding: 0 0 8px;
  border-radius: 16px;
  background: #0d0400;
}

.bigkey-cap {
  display: block;
  padding: 18px 42px;
  border: 1px solid rgba(255, 184, 138, 0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, #3a1a0b, #2a1206);
  font: 800 22px/1 var(--display);
  font-stretch: 115%;
  color: var(--peach);
  transition: background 200ms;
}

.bigkey.down .bigkey-cap {
  background: var(--ember);
  color: var(--ink);
  box-shadow: 0 0 50px rgba(255, 90, 31, 0.7);
}

/* ---------- 3. Speed ---------- */

.speed {
  z-index: 3;
}

.speed-pin {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 120px var(--gutter) 90px;
}

.race {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.lane {
  padding: 26px 28px 30px;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  background: #fff;
  min-height: 270px;
}

.lane-voice {
  border-color: var(--umber);
  background: var(--umber);
  color: var(--peach);
}

.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font: 700 16px/1.2 var(--display);
}

.lane-head b {
  font-variant-numeric: tabular-nums;
  color: var(--ember);
}

.lane-text {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.lane-text .typed-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--ember);
}

.footnote {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-light);
}

/* ---------- 4. Anywhere ---------- */

.anywhere {
  z-index: 4;
  background: linear-gradient(180deg, var(--night-2), var(--night));
  overflow: hidden;
}

.anywhere-pin {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--gutter) 60px;
}

.flow {
  position: relative;
  height: 400px;
  margin-top: 56px;
  perspective: 1400px;
}

.card {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(420px, 78vw);
  margin-left: calc(min(420px, 78vw) / -2);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
  will-change: transform;
}

.card-body {
  min-height: 210px;
  padding: 22px 24px;
  font-size: 18px;
}

.card .meta {
  margin-bottom: 10px;
  color: #8a6a56;
  font-size: 14px;
}

.card h3 {
  margin-bottom: 10px;
  font: 800 22px/1.2 var(--display);
}

.card .bubble {
  display: inline-block;
  max-width: 85%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--peach);
}

.card .bubble.me {
  float: right;
  border-radius: 16px 16px 4px 16px;
  background: var(--umber);
  color: var(--peach);
}

.card code {
  display: block;
  font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
}

.card-code .land {
  color: #b8380a;
}

.card .search {
  padding: 12px 16px;
  border: 1px solid #eee3da;
  border-radius: 999px;
}

.land {
  background-image: linear-gradient(transparent 60%, rgba(255, 90, 31, 0.28) 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 900ms var(--ease);
}

.card.is-center .land {
  background-size: 100% 100%;
}

/* ---------- 5. Privacy ---------- */

.private {
  z-index: 5;
  padding-bottom: clamp(100px, 12vw, 180px);
  background: radial-gradient(80% 60% at 20% 20%, #3a190a, var(--umber) 65%);
}

.private-pin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: 100svh;
  padding: 120px var(--gutter) 40px;
}

.private-title {
  max-width: 9em;
  font: 900 clamp(44px, 5.6vw, 96px)/0.94 var(--display);
  font-stretch: 116%;
  letter-spacing: -0.04em;
}

.private-lead {
  max-width: 28em;
  margin-top: 28px;
  font-size: clamp(19px, 1.4vw, 22px);
  color: var(--text-dark);
}

.airplane {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--umber-3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font: 700 16px/1 var(--display);
  cursor: pointer;
}

.airplane input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--umber-3);
  transition: background 300ms;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--peach);
  transition: transform 400ms var(--ease);
}

.airplane input:checked + .switch {
  background: var(--ember);
}

.airplane input:checked + .switch::after {
  transform: translateX(20px);
}

.airplane input:focus-visible + .switch {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
}

.airgap {
  width: 100%;
  overflow: visible;
}

.airgap .ring {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 80px 180px;
}

.airgap .ag-dot {
  fill: var(--ember);
}

.airgap .ag-mic {
  fill: var(--ink);
}

.airgap .ag-mic-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.airgap .ag-link {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.airgap .ag-link-in {
  stroke: var(--ember);
}

.airgap .ag-link-out {
  stroke: var(--umber-3);
  stroke-dasharray: 6 8;
}

.airgap .ag-pc rect {
  fill: var(--umber-2);
  stroke: var(--ember);
  stroke-width: 2;
}

.airgap .ag-wave {
  fill: none;
  stroke: var(--apricot);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.airgap .ag-cloud path:first-child {
  fill: none;
  stroke: var(--umber-3);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.airgap .ag-cross {
  fill: none;
  stroke: var(--ember);
  stroke-width: 4;
  stroke-linecap: round;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 0 var(--gutter);
}

.facts dt {
  font: 800 24px/1.1 var(--display);
  font-stretch: 110%;
}

.facts dd {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-dark);
}

/* ---------- 6. Cleanup ---------- */

.cleanup {
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(130px, 14vw, 200px) var(--gutter) clamp(110px, 12vw, 170px);
}

.segmented {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 96px);
  margin-top: 40px;
  padding: 5px;
  border-radius: 999px;
  background: var(--peach);
}

.segmented label {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: block;
  padding: 12px 0;
  font: 700 16px/1 var(--display);
  text-align: center;
  transition: color 300ms;
}

.segmented input:checked + span {
  color: var(--apricot);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 999px;
}

.segmented-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 96px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--umber);
  transition: transform 500ms var(--ease);
}

.cleanup-demo {
  display: grid;
  gap: 16px;
}

.said,
.typed {
  padding: 26px 30px;
  border-radius: 22px;
  font-size: clamp(19px, 1.6vw, 23px);
}

.said {
  border: 1px dashed #e4c4ae;
  font-style: italic;
  color: var(--text-light);
}

.typed {
  min-height: 6em;
  background: var(--umber);
  color: var(--peach);
}

.tag {
  display: block;
  margin-bottom: 10px;
  font: 700 14px/1 var(--display);
  font-style: normal;
  opacity: 0.7;
}

.js-cleaned .w {
  display: inline-block;
}

/* ---------- 7. App screens ---------- */

.app {
  z-index: 7;
  padding: clamp(130px, 14vw, 200px) var(--gutter) 120px;
  background: var(--night);
}

.screens {
  position: relative;
  height: min(760px, 70vw);
  margin-top: 64px;
}

.screen-card {
  position: absolute;
  inset: 0;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--umber-3);
  border-radius: 26px;
  background: var(--umber);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 1);
  transform-origin: 50% 0%;
  will-change: transform;
}

.screen-card img {
  width: 100%;
  border-radius: 16px;
}

.screen-card figcaption {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 5, 1, 0.75);
  font: 700 14px/1 var(--display);
  backdrop-filter: blur(6px);
}

/* ---------- 8. Numbers ---------- */

.numbers {
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: clamp(120px, 12vw, 170px) var(--gutter) clamp(90px, 9vw, 130px);
}

.number b {
  display: block;
  font: 900 clamp(48px, 5.6vw, 96px)/1 var(--display);
  font-stretch: 115%;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ember);
}

.number > span {
  display: block;
  max-width: 15em;
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-light);
}

/* ---------- 9. FAQ ---------- */

.faq {
  position: relative;
  z-index: 9;
  padding: 40px var(--gutter) clamp(130px, 12vw, 180px);
}

.faq-list {
  max-width: 980px;
  margin-top: 48px;
}

.faq details {
  border-bottom: 1px solid var(--line-light);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  font: 700 clamp(20px, 2vw, 26px)/1.2 var(--display);
  font-stretch: 105%;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ember), var(--ember)) center / 100% 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) center / 2px 100% no-repeat;
  transition: transform 400ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq-a {
  overflow: hidden;
}

.faq-a p {
  max-width: 40em;
  padding-bottom: 28px;
  color: var(--text-light);
}

/* ---------- 10. Download ---------- */

.download {
  z-index: 10;
  padding: clamp(150px, 15vw, 230px) var(--gutter) clamp(90px, 9vw, 130px);
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(255, 90, 31, 0.35), transparent 70%),
    var(--night);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-wave {
  position: absolute;
  left: 0;
  top: 18%;
  z-index: -1;
  width: 100%;
  height: 240px;
}

.cta-wave path {
  fill: none;
  stroke: rgba(255, 90, 31, 0.35);
  stroke-width: 1.5;
}

.cta-dots {
  position: absolute;
  left: 0;
  top: 18%;
  z-index: -1;
  width: 100%;
  height: 240px;
}

.cta-dot {
  position: absolute;
  opacity: 0.7;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.9);
}

.download-title {
  max-width: 11em;
  margin: 0 auto;
  font: 900 clamp(52px, 8vw, 136px)/0.92 var(--display);
  font-stretch: 116%;
  letter-spacing: -0.04em;
}

.download-title .word {
  display: inline-block;
}

.download-options {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  max-width: 1080px;
  margin: 70px auto 0;
  text-align: left;
}

.dl {
  display: grid;
  gap: 8px;
  padding: 28px 30px;
  border: 1px solid var(--umber-3);
  border-radius: 22px;
  background: rgba(42, 18, 6, 0.75);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 250ms, transform 400ms var(--ease);
}

.dl:hover {
  border-color: var(--apricot);
  transform: translateY(-4px);
}

.dl b {
  font: 800 26px/1.1 var(--display);
  font-stretch: 112%;
}

.dl span {
  font-size: 16px;
  color: var(--text-dark);
}

.dl-main {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(255, 90, 31, 0.9);
}

.dl-main span {
  color: var(--ink);
}

.dl-main:hover {
  border-color: var(--ember-hot);
  background: var(--ember-hot);
}

.download-note {
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-dark);
}

.download-note a {
  color: var(--apricot);
}

/* ---------- Footer ---------- */

.footer {
  padding: 0 var(--gutter) 34px;
  background: var(--night);
  overflow: hidden;
}

.wordmark {
  font: 900 clamp(72px, 17vw, 300px)/0.8 var(--display);
  font-stretch: 60%;
  letter-spacing: -0.05em;
  color: var(--umber-2);
  text-align: center;
  white-space: nowrap;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--umber-2);
  font-size: 15px;
  color: var(--text-dark);
}

.footer-row a {
  color: var(--apricot);
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .how-pin,
  .private-pin,
  .cleanup {
    grid-template-columns: 1fr;
  }

  .how-steps {
    min-height: 260px;
  }

  .race,
  .facts,
  .numbers,
  .download-options {
    grid-template-columns: 1fr;
  }

  .lane {
    min-height: 200px;
  }

  .flow {
    height: 380px;
  }

  .desktop {
    aspect-ratio: auto;
    padding: 16px 12px 60px;
  }

  .heard {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .how-stage {
    height: 520px;
    padding: 18px;
  }

  .chip {
    font-size: 17px;
    padding: 7px 12px;
  }

  .segmented {
    grid-template-columns: repeat(3, 84px);
  }

  .segmented-thumb {
    width: 84px;
  }
}

/* ---------- Reduced motion: no scroll scenes; every scene shows its end state ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grain {
    display: none;
  }

  .js .how-step {
    position: static;
    opacity: 1;
    visibility: visible;
    margin-top: 28px;
  }

  .how-steps {
    min-height: 0;
  }

  .js .how-sentence span[data-word] {
    opacity: 1;
  }

  .how-chips {
    display: none;
  }

  .land {
    background-size: 100% 100%;
  }
}
