@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

/* Tokens mirror the app (app/src/renderer/app/app.css). The app's --fg3 is raised
   here so small labels stay readable on a web page. */
:root {
  --bg: #0b0b0b;
  --fg: #ececec;
  --fg2: #9b9b9b;
  --fg3: #7f7f7f;
  --line: rgb(255 255 255 / .07);
  --line2: rgb(255 255 255 / .14);
  --hover: rgb(255 255 255 / .028);
  --ghost: #151515;
  --ink: #7dbf96; /* the launch intro's cactus ink */
  --shadow: rgb(0 0 0 / .4);
  --sans: Geist, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: dark;
}

/* The app's light theme: used for light systems, and for the privacy pages in dark. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f2;
    --fg: #141414;
    --fg2: #5c5c5a;
    --fg3: #6c6c6a;
    --line: rgb(0 0 0 / .07);
    --line2: rgb(0 0 0 / .14);
    --hover: rgb(0 0 0 / .025);
    --ghost: #e9e9e6;
    --ink: #285438;
    --shadow: rgb(0 0 0 / .1);
    color-scheme: light;
  }
}

html[data-tone="light"] {
  --bg: #f4f4f2;
  --fg: #141414;
  --fg2: #5c5c5a;
  --fg3: #6c6c6a;
  --line: rgb(0 0 0 / .07);
  --line2: rgb(0 0 0 / .14);
  --hover: rgb(0 0 0 / .025);
  --ghost: #e9e9e6;
  --ink: #285438;
  --shadow: rgb(0 0 0 / .1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 500ms, color 500ms;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; }
p, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

em {
  font-style: normal;
  font-weight: 300;
  color: var(--fg2);
}

code, kbd { font-family: var(--mono); font-size: .82em; }

code {
  padding: .1em .4em;
  border: 1px solid var(--line2);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  margin: 0 .12em;
  padding: .12em .5em;
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--fg);
  text-align: center;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.defs { position: absolute; }

/* The app's .section-label */
.label-mono, .mono {
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
}

.skip:focus { top: 12px; }

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

::selection { background: var(--fg); color: var(--bg); }

/* Buttons: the app's solid 5px-radius surfaces and underlined text actions */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line2);
  border-radius: 5px;
  font: 500 14px/1 var(--sans);
  text-decoration: none;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}

.button:hover { border-color: var(--fg3); background: var(--hover); }
.button.primary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.button.primary:hover { background: transparent; color: var(--fg); }
.button.big { padding: 18px 28px; font-size: 16px; }

.link {
  display: inline-block;
  margin-top: 40px;
  font: 400 13px/1.4 var(--mono);
  text-underline-offset: 5px;
}

/* Nav: the app's title bar brand */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #ececec;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ececec;
  font-size: 12px;
  letter-spacing: .14em;
  text-decoration: none;
}

.brand-cactus { width: 12px; height: 16px; }

.nav-links { display: flex; gap: 28px; }

.nav-links a, .nav-cta {
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
  color: #9b9b9b;
  transition: color 250ms var(--ease);
}

.nav-links a:hover, .nav-cta:hover { color: #ececec; }

.nav-cta {
  padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 5px;
  color: #ececec;
}

/* ---------- the pill: a port of overlay/components/Pill.svelte ---------- */

.pill-box {
  --k: 3;
  display: grid;
  place-items: center;
  height: calc(30px * var(--k));
}

/* The overlay window fades and scales the pill in and out (overlay/App.svelte). */
.pill-wrap {
  transform: scale(var(--k));
  /* Overlay text is the system UI font, not Geist. */
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: normal;
}

.pill-wrap > .eve-pill { transition-property: height, padding, border-color, opacity, scale; }

.eve-pill {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 999px;
  background: rgb(12 12 14 / .7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 2px 10px rgb(0 0 0 / .22);
  transition:
    height 240ms cubic-bezier(.3, 1.4, .5, 1),
    padding 240ms cubic-bezier(.3, 1.4, .5, 1),
    border-color 160ms ease-out,
    opacity 180ms cubic-bezier(.2, .8, .2, 1),
    scale 180ms cubic-bezier(.2, .8, .2, 1);
}

.eve-pill.is-hidden { opacity: 0; scale: .5; }
.eve-pill[data-open="true"] { height: 30px; padding: 0 13px 0 11px; }
.eve-pill[data-alert="true"] { border-color: rgb(248 113 113 / .55); }

.mercury {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  filter: url(#eve-mercury);
  transition: width 90ms linear;
}

.eve-pill[data-open="true"] .mercury { width: calc(8px + (var(--left, 0) + var(--right, 0)) * 9px); }
.eve-pill[data-phase="starting"] .mercury,
.eve-pill[data-phase="working"] .mercury { width: 22px; }

.lobe {
  position: absolute;
  top: 0;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4f4f5;
  transition: transform 90ms linear, background-color 160ms ease-out;
}

.eve-pill[data-alert="true"] .lobe { background: #f87171; }

.lobe-left { transform: translateX(calc(var(--left, 0) * -9px)) scale(calc(1 - var(--left, 0) * .2)); }
.lobe-right { transform: translateX(calc(var(--right, 0) * 9px)) scale(calc(1 - var(--right, 0) * .2)); }
.lobe-middle { transform: scale(calc(1 + var(--middle, 0) * .3)); }

/* A silent microphone is still live: the dot keeps breathing. */
.eve-pill[data-phase="live"][data-open="false"] .lobe-middle { animation: breathe 2400ms ease-in-out infinite; }

.eve-pill[data-phase="starting"] .lobe-left { animation: part-left 1100ms ease-in-out infinite; }
.eve-pill[data-phase="starting"] .lobe-right { animation: part-right 1100ms ease-in-out infinite; }

.eve-pill[data-phase="working"] .lobe { animation: cross 1300ms cubic-bezier(.45, 0, .55, 1) infinite; }
.eve-pill[data-phase="working"] .lobe-middle { animation-delay: -433ms; }
.eve-pill[data-phase="working"] .lobe-right { animation-delay: -866ms; }

@keyframes breathe {
  0%, 100% { transform: scale(.8); }
  50% { transform: scale(1.1); }
}

@keyframes part-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px) scale(.75); }
}

@keyframes part-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px) scale(.75); }
}

@keyframes cross {
  0% { transform: translateX(-11px) scale(.45); }
  50% { transform: translateX(0) scale(1); }
  100% { transform: translateX(11px) scale(.45); }
}

.check { display: none; flex: none; width: 12px; height: 12px; }
.eve-pill[data-phase="done"] .check { display: block; }
.eve-pill[data-phase="done"] .mercury { display: none; }

.check path {
  fill: none;
  stroke: #f4f4f5;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: check-draw 220ms ease-out both;
}

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

.label-slot {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 240ms cubic-bezier(.2, .8, .2, 1);
}

.eve-pill[data-open="true"] .label-slot { grid-template-columns: 1fr; }

.eve-pill .label {
  min-width: 0;
  max-width: 200px;
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  color: #fff;
  text-overflow: ellipsis;
  text-shadow: 0 0 3px rgb(0 0 0 / .75);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms ease-out, padding-left 240ms cubic-bezier(.2, .8, .2, 1);
}

.eve-pill[data-open="true"] .label { padding-left: 8px; opacity: 1; }

.eve-pill .tag { margin-right: 6px; font-weight: 500; opacity: .8; }
.eve-pill .tag:empty { display: none; }

/* ---------- pinned sections: a tall section with a sticky, viewport-sized stage ---------- */

[data-pin] { position: relative; }

[data-pin] > div {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* 1 · Hero */

.hero { height: 190vh; }

.ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  font-weight: 500;
  font-size: 34vw;
  line-height: .8;
  letter-spacing: -.07em;
  color: var(--ghost);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  user-select: none;
}

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-weight: 500;
  font-size: clamp(56px, 9.4vw, 176px);
  line-height: .88;
  letter-spacing: -.06em;
}

.hero-title span:not(.sr-only) { position: absolute; display: block; white-space: nowrap; will-change: transform; }
.ht-left { left: var(--gutter); top: 13vh; }
.ht-right { right: var(--gutter); top: calc(13vh + .9em); }
.hero-title em { color: inherit; letter-spacing: -.055em; }

.hero-cactus {
  --w: min(19vh, 22vw);
  position: absolute;
  left: 50%;
  bottom: calc(7vh + 190px);
  z-index: 3;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
}

.cactus {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden; /* as in the app: clips the trunk's round cap into a flat base */
  color: var(--ink);
  transform-origin: 50% 100%;
}

/* Motion copied from the app's cactus states. */
.cactus .c-armL { transform-box: view-box; transform-origin: 100px 152px; transition: transform .12s linear; }
.cactus .c-armR { transform-box: view-box; transform-origin: 100px 124px; transition: transform .12s linear; }
.cactus--idle:not(.cactus--draw) { animation: cactus-breathe 7s ease-in-out infinite; }
.cactus--idle:not(.cactus--draw) .c-armL { animation: cactus-arm-left 5.5s ease-in-out infinite; }
.cactus--idle:not(.cactus--draw) .c-armR { animation: cactus-arm-right 6.8s ease-in-out 1.1s infinite; }
.cactus--listening { transform: scaleY(calc(1 + var(--lvl, 0) * .04)); transition: transform .1s; }
.cactus--listening .c-armL { transform: rotate(calc(var(--lvl, 0) * 16deg)); }
.cactus--listening .c-armR { transform: rotate(calc(var(--lvl, 0) * -16deg)); }
.cactus--transcribing { animation: cactus-think 1s ease-in-out infinite; }
.cactus--done { animation: cactus-hop .7s var(--ease); }

@keyframes cactus-breathe {
  0%, 100% { transform: none; }
  30% { transform: scale(1.006, 1.02) rotate(-.7deg); }
  70% { transform: scale(1.004, 1.01) rotate(.7deg); }
}
@keyframes cactus-arm-left { 0%, 100% { transform: none; } 50% { transform: rotate(4deg); } }
@keyframes cactus-arm-right { 0%, 100% { transform: none; } 50% { transform: rotate(-3.5deg); } }
@keyframes cactus-think { 50% { opacity: .35; transform: scale(.99, .985); } }
@keyframes cactus-hop { 35% { transform: scale(1.01, .975); } 100% { transform: none; } }

.cactus--draw path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease-io) forwards;
}

.cactus--draw .c-armL { animation-delay: .7s; }
.cactus--draw .c-armR { animation-delay: .95s; }

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

.rings { position: absolute; bottom: 26px; left: 50%; width: 0; height: 0; }

.rings span {
  position: absolute;
  top: -19px;
  left: -120px;
  width: 240px;
  height: 38px;
  transform: scale(.3);
  border: 1px solid var(--fg);
  border-radius: 50%;
  opacity: 0;
}

.rings.is-active span { animation: ripple 2.1s var(--ease) infinite; }
.rings span:nth-child(2) { animation-delay: .7s; }
.rings span:nth-child(3) { animation-delay: 1.4s; }

@keyframes ripple {
  0% { opacity: .45; transform: scale(.3); }
  100% { opacity: 0; transform: scale(1.5); }
}

.horizon {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg3) 22%, var(--fg3) 78%, transparent);
  transform: translateX(-50%);
  animation: horizon 1.6s var(--ease) .2s forwards;
}

@keyframes horizon { to { width: min(56vw, 640px); } }

.hero-cactus .cactus { margin-bottom: 26px; }

.hero-status {
  position: absolute;
  left: 50%;
  bottom: -10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--fg2);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.hero-status i.is-listening { animation: pulse .9s ease-in-out infinite; }
.hero-status i.is-transcribing { width: 9px; height: 9px; border: 1px solid var(--fg); border-top-color: transparent; background: transparent; animation: spin .8s linear infinite; }

@keyframes pulse { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-pill {
  position: absolute;
  left: 50%;
  bottom: calc(7vh + 24px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform: translateX(-50%);
}

.pill-hint { font: 400 11px/1 var(--mono); color: var(--fg3); letter-spacing: .02em; white-space: nowrap; }
.pill-hint kbd { font-size: 10px; }
.hero-pill .pill-hint { position: absolute; top: calc(100% + 14px); }

.hero-foot {
  position: absolute;
  inset: auto var(--gutter) 7vh;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  pointer-events: none;
}

.hero-foot > * { pointer-events: auto; }
.hero-copy { max-width: 340px; }
.lede { color: var(--fg2); font-size: 14px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.release-note { margin-top: 12px; }

.hero-meta { display: grid; min-width: 240px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hero-meta dt { color: var(--fg2); font-size: 12.5px; }
.hero-meta dd { font-size: 13px; }

.scroll-cue {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) - 4px);
  writing-mode: vertical-rl;
  font: 400 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg3);
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 14px auto 0;
  background: linear-gradient(var(--fg3), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 2 · Story */

.story { height: 460vh; }

.story-stage {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.15fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 6vw;
  padding: 14vh var(--gutter) 7vh;
}

.story-head { grid-column: 1; }

.story-head h2, .fan-head h2, .adds-head h2, .track-head h2, .install h2, .faq h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.2vw, 66px);
  line-height: 1.04;
}

.section-sub { margin-top: 20px; max-width: 420px; color: var(--fg2); font-size: 15px; }

.story-steps { grid-column: 1; align-self: center; margin-top: 24px; border-top: 1px solid var(--line); }

.story-steps li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: min(1.1vh, 10px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 300;
  color: var(--fg3);
  transition: color 400ms var(--ease), padding 400ms var(--ease);
}

.story-steps li span { font: 400 11px/1 var(--mono); letter-spacing: .1em; }
.story-steps li.is-on { color: var(--fg); padding-left: 10px; }

.story-scene {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6vh;
}

.editor {
  width: min(560px, 100%);
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 500ms var(--ease);
}

.editor.is-pasted { border-color: var(--fg3); }

.editor-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font: 400 10px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.editor-text { min-height: 164px; padding: 22px; font-size: 18px; font-weight: 300; line-height: 1.6; }

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

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

.story-caption { font-size: 12px; color: var(--fg3); text-align: center; }

.story-big {
  position: absolute;
  right: calc(var(--gutter) - .06em);
  bottom: -.1em;
  font-weight: 500;
  font-size: 44vh;
  line-height: .8;
  letter-spacing: -.08em;
  color: var(--ghost);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  will-change: transform;
}

.story-head, .story-steps, .story-scene, .keys { position: relative; z-index: 1; }

.keys { grid-column: 1; align-self: end; display: flex; flex-wrap: wrap; gap: 36px; margin-top: 18px; }
.keys dt { font: 400 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); margin-bottom: 8px; }

/* States gallery */

.states { padding: 12vh var(--gutter) 4vh; }
.states h3 { margin-bottom: 20px; }

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  border-top: 1px solid var(--line);
}

.state-grid li { padding: 30px 12px 22px 0; border-bottom: 1px solid var(--line); }
.state-grid .pill-box { --k: 1.6; justify-content: start; }
/* scale() does not change layout, so offset the box by the extra visual width. */
.state-grid .pill-wrap { transform-origin: 0 50%; }
.state-grid p { margin-top: 18px; color: var(--fg2); font-size: 13px; }
.state-grid b { display: block; font: 400 10px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }

/* 3 · Fan */

.fan { height: 300vh; }

.fan-stage { perspective: 1800px; }

.fan-back {
  position: absolute;
  top: 50%;
  left: 0;
  font-weight: 500;
  font-size: 19vw;
  line-height: 1;
  letter-spacing: -.07em;
  white-space: nowrap;
  color: var(--ghost);
  transform: translateY(-50%);
  will-change: transform;
}

.fan-head { position: absolute; top: 12vh; left: var(--gutter); z-index: 2; max-width: 520px; }

.fan-deck { position: absolute; inset: 0; transform-style: preserve-3d; }

.win {
  --w: clamp(180px, min(19vw, 31vh), 300px);
  position: absolute;
  left: 50%;
  top: 59%;
  width: var(--w);
  margin: calc(var(--w) * -.75) 0 0 calc(var(--w) / -2);
  will-change: transform;
}

.win img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line2);
  border-radius: 10px;
  box-shadow: 0 40px 80px var(--shadow);
}

.win figcaption {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg2);
  opacity: var(--cap, 0);
  transform: translateY(calc((1 - var(--cap, 0)) * 10px));
}

.win figcaption b { display: block; margin-bottom: 2px; font: 400 10px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }

/* 4 · Adds up */

.adds { height: 230vh; }

.adds-stage { display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding: 0 var(--gutter); }

/* Same levels as the app's year heatmap: one ink at five opacities. */
.heat {
  --gap: 3px;
  --cell: clamp(3px, calc((100vw - 2 * var(--gutter) - 52 * var(--gap)) / 53), 18px);
  display: grid;
  grid-template-columns: repeat(53, var(--cell));
  grid-auto-rows: var(--cell);
  gap: var(--gap);
  justify-content: center;
}

.heat:empty { display: none; }

.heat i {
  border-radius: 1.5px;
  background: var(--fg);
  opacity: .07;
  transition: opacity 500ms var(--ease);
}

.heat i.on { opacity: var(--o); }

.adds-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.adds-stats > div { padding: 22px 0 0; }
.adds-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }

.stat {
  font-weight: 300;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.adds-note { font-size: 12px; color: var(--fg3); }

/* 5 · Track */

.track-stage { display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.track-head { padding: 0 var(--gutter); }

.track-rail {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}

.feat {
  display: flex;
  flex-direction: column;
  width: clamp(270px, 27vw, 390px);
  min-height: min(50vh, 440px);
  padding: 18px 0 0;
  border-top: 1px solid var(--line2);
}

.feat-n { font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--fg3); }
.feat h3 { margin-top: auto; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.15; }
.feat > p:last-child { margin-top: 12px; font-size: 14px; color: var(--fg2); }

.feat-vis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 8px;
  min-height: 140px;
  margin: 24px 0;
  font: 400 12px/1 var(--mono);
  color: var(--fg2);
}

.feat-vis span { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 5px; }
.feat-vis span.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.feat-vis b { font-weight: 400; color: var(--fg3); }

.vis-chunks { flex-wrap: nowrap; gap: 6px; }
.vis-chunks i { flex: 1; height: 56px; border-radius: 3px; background: var(--line2); animation: chunk 2.8s var(--ease) infinite; }
.vis-chunks i:nth-child(2) { animation-delay: .2s; }
.vis-chunks i:nth-child(3) { animation-delay: .4s; }
.vis-chunks i:nth-child(4) { animation-delay: .6s; }
.vis-chunks i:nth-child(5) { animation-delay: .8s; }
.vis-chunks i:nth-child(6) { animation-delay: 1s; }
.vis-chunks i:nth-child(7) { animation-delay: 1.2s; }

@keyframes chunk { 30% { background: var(--fg); } 60% { background: var(--line2); } }

.vis-keys { flex-direction: column; align-items: flex-start; gap: 16px; }
.vis-keys p { display: flex; align-items: center; }
.vis-keys span { margin-left: 8px; border: 0; padding: 0; color: var(--fg3); }

.vis-column { flex-direction: column; align-items: flex-start; }

/* 6 · Privacy */

.privacy, .install, .faq { padding: 20vh var(--gutter) 0; }

.privacy .scrub {
  margin-top: 16px;
  max-width: 16ch;
  font-size: clamp(38px, 6.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.scrub .w { opacity: .12; transition: opacity 250ms linear; }
.scrub .w.on { opacity: 1; }

.rows { margin-top: 10vh; border-top: 1px solid var(--line2); }

.rows > div {
  display: grid;
  grid-template-columns: minmax(140px, 260px) 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line2);
}

.rows dt { font: 400 11px/2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg3); }
.rows dd { max-width: 640px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; line-height: 1.5; }

/* 7 · Install */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8vh; border-top: 1px solid var(--line2); }
.steps li { min-width: 0; padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line2); }

.step-n {
  display: block;
  font-weight: 200;
  font-size: clamp(80px, 9vw, 144px);
  line-height: .9;
  letter-spacing: -.06em;
  color: var(--fg3);
}

.steps h3 { margin-top: 18px; font-size: 20px; }
.steps p { margin-top: 10px; color: var(--fg2); font-size: 15px; }

.req-title { margin-top: 12vh; }
.rows-tight { margin-top: 16px; }
.rows-tight > div { padding: 15px 0; }
.rows-tight dd { font-size: 15px; font-weight: 400; }

.release-status { max-width: 760px; margin-top: 32px; color: var(--fg2); font-size: 14px; }
.release-status b { color: var(--fg); font-weight: 500; }

/* 8 · FAQ */

.faq-list { margin-top: 7vh; border-top: 1px solid var(--line2); }

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line2);
}

.faq-item h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.35; }
.faq-item p { max-width: 640px; color: var(--fg2); font-size: 15px; overflow-wrap: anywhere; }

/* Footer */

.footer { margin-top: 24vh; }

.footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 var(--gutter);
}

.footer-cta h2 {
  font-size: clamp(56px, 11vw, 200px);
  line-height: .9;
  letter-spacing: -.06em;
}

.footer-links {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin: 12vh var(--gutter) 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-note { max-width: 360px; font-size: 14px; color: var(--fg2); }
.footer-links nav { display: grid; align-content: start; gap: 10px; }
.footer-links nav p { margin-bottom: 6px; }
.footer-links nav a { font-size: 14px; text-decoration: none; color: var(--fg2); transition: color 250ms var(--ease); }
.footer-links nav a:hover { color: var(--fg); }

.crowd {
  position: relative;
  height: clamp(300px, 42vw, 620px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.crowd-word {
  position: absolute;
  left: 50%;
  bottom: 24%;
  font-weight: 500;
  font-size: 36vw;
  line-height: .75;
  letter-spacing: -.08em;
  color: var(--ghost);
  transform: translateX(-50%);
  user-select: none;
}

.crowd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Static layout: the default until main.js opts into motion; small screens and reduced motion keep it. */

html:not(.motion) [data-pin] { height: auto; }
html:not(.motion) [data-pin] > div { position: relative; height: auto; overflow: visible; }

html:not(.motion) .hero > .hero-stage { height: 100vh; height: 100svh; min-height: 720px; overflow: hidden; }

html:not(.motion) .story-stage { display: flex; flex-direction: column; gap: 32px; padding: 18vh var(--gutter) 0; }
html:not(.motion) .story-steps { align-self: stretch; }
html:not(.motion) .story-scene { gap: 40px; padding-top: 24px; }

html:not(.motion) .fan-stage { padding: 18vh 0 0; perspective: none; }
html:not(.motion) .fan-back, html:not(.motion) .story-big { display: none; }
html:not(.motion) .fan-head { position: static; padding: 0 var(--gutter); }

html:not(.motion) .fan-deck {
  position: static;
  display: flex;
  gap: 16px;
  padding: 36px var(--gutter) 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

html:not(.motion) .win { position: relative; left: auto; top: auto; margin: 0; flex: none; --w: min(72vw, 300px); scroll-snap-align: start; --cap: 1; }
html:not(.motion) .win figcaption { position: static; margin-top: 12px; transform: none; }
html:not(.motion) .win img { box-shadow: none; }

html:not(.motion) .adds-stage { padding-top: 18vh; }

html:not(.motion) .track-stage { padding-top: 18vh; }
html:not(.motion) .track-rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 12px; }
html:not(.motion) .feat { flex: none; min-height: 0; scroll-snap-align: start; }

/* Short desktop screens: shrink the title, cactus, and pill so they never collide. */
@media (max-height: 820px) and (min-width: 861px) {
  .hero-title { font-size: min(9.4vw, 15vh); }
  .ht-left { top: 12vh; }
  .ht-right { top: calc(12vh + .9em); }
  .hero-cactus { --w: min(15vh, 22vw); bottom: calc(5vh + 168px); }
  .hero-pill { bottom: calc(5vh + 24px); }
  .hero-pill .pill-box { --k: 2.4; }
  .hero-foot { bottom: 5vh; }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .hero-meta { display: none; }
  .hero-copy { max-width: 290px; }
  .pill-hint { display: none; }
}

/* Narrow screens: the hero becomes a simple column so nothing can overlap. */
@media (max-width: 860px) {
  .nav-links { display: none; }

  html:not(.motion) .hero > .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100svh;
    padding: 88px var(--gutter) 28px;
  }

  .ghost { top: 38%; }
  .hero-title { position: relative; inset: auto; align-self: stretch; font-size: clamp(42px, 13vw, 92px); line-height: .96; }
  .hero-title span:not(.sr-only) { position: static; }
  .hero-title .ht-right { text-align: right; }
  .hero-cactus { position: relative; left: auto; bottom: auto; --w: min(26vw, 150px, 17svh); margin: 24px 0 18px; }
  .hero-pill { position: relative; left: auto; bottom: auto; transform: none; margin-top: 22px; }
  .hero-pill .pill-box { --k: 2.2; }
  .pill-hint { display: none; }
  .hero-foot { position: relative; inset: auto; align-self: stretch; margin-top: 28px; }
  .hero-copy { max-width: 520px; margin: 0 auto; }
  .hero-meta, .scroll-cue { display: none; }
  .horizon { animation: none; width: 78vw; }
  .story-scene .pill-box { --k: 2.4; }
  .heat { --gap: 2px; }
  .heat i { border-radius: 1px; }
  .adds-stats { grid-template-columns: 1fr; }
  .adds-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line2); }
  .faq-item { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

/* Same fallbacks as the app's overlay. */
@media (prefers-reduced-transparency: reduce) {
  .eve-pill { background: #000; }
}

@media (forced-colors: active) {
  .eve-pill { border-color: CanvasText; box-shadow: none; }
  .lobe { forced-color-adjust: none; background: CanvasText !important; }
  .check path { stroke: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* The app's reduced-motion pill: one still dot beside the label. */
  .lobe { transform: none !important; animation: none !important; }
  .mercury { width: 8px !important; }
  .scroll-cue::after, .vis-chunks i, .cactus, .cactus path, .rings span, .hero-status i, .caret { animation: none !important; }
  .horizon { animation: none; width: min(56vw, 640px); }
  .js .reveal { opacity: 1; transform: none; }
  .scrub .w { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .horizon { width: 78vw; }
}
