/* Built from plans/landing-mockups by scripts/build_site.py. Edit the mockup, then rebuild. */

/* Shared base for the landing-page mock-ups: the app's tokens, the app's cards, the app's
   motion. Each direction adds only its own composition on top. */

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

:root {
  color-scheme: light;
  --sv-canvas: #f4ead7;
  --sv-panel: #fff4cf;
  --sv-panel-alt: #eadfc9;
  --sv-ink: #101010;
  --sv-muted: #5d564a;
  --sv-border: #101010;
  --sv-shadow-color: rgba(17, 16, 14, 0.68);
  --sv-green: #a8eb37;
  --sv-yellow: #ffcf31;
  --sv-coral: #ff684f;
  --sv-colored-ink: #141410;
  --sv-soft-white: #fff7df;
  --sv-grid-line: rgba(16, 16, 16, 0.1);
  --border: 2px solid var(--sv-border);
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* The app's one curve for things that arrive: out, no overshoot. */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --sv-canvas: #40403c;
  --sv-panel: #353530;
  --sv-panel-alt: #32322e;
  --sv-ink: #fff8e9;
  --sv-muted: #ddd5c5;
  --sv-border: #151512;
  --sv-shadow-color: #0b0b09;
  --sv-soft-white: #4c4b46;
  --sv-grid-line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sv-ink);
  background-color: var(--sv-canvas);
  background-image:
    linear-gradient(var(--sv-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sv-grid-line) 1px, transparent 1px);
  background-size: 18px 18px;
  font-family: var(--font-sans);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.display {
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--sv-muted);
}

/* ---- controls, as the app draws them ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: var(--border);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--sv-soft-white);
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
  color: var(--sv-ink);
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--sv-shadow-color);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn.primary {
  background: var(--sv-green);
  color: var(--sv-colored-ink);
}

.btn.danger {
  background: var(--sv-coral);
  color: var(--sv-colored-ink);
}

.btn.yellow {
  background: var(--sv-yellow);
  color: var(--sv-colored-ink);
}

.btn.lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 0.84rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: var(--border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--sv-soft-white);
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- a card that lifts like the app's share card: slides, never scales ---- */

.lift {
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.lift:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--sv-shadow-color);
}

.lift:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

/* ---- arrival: the app's cal-pop, with a stagger ---- */

.pop {
  animation: pop 320ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pop {
    animation: none;
  }
  .lift,
  .btn {
    transition: none;
  }
}

/* ---- the status window (timer card) and the reminder card ---- */

.on-color {
  --sv-ink: #141410;
  --sv-muted: #5d564a;
  --sv-border: #101010;
  --sv-shadow-color: rgba(17, 16, 14, 0.68);
  --sv-soft-white: #fff7df;
  --sv-panel: #fff4cf;
  --border: 2px solid #101010;
  color: #141410;
}

.win {
  display: grid;
  gap: 8px;
  width: 300px;
  padding: 8px;
  border: var(--border);
  border-radius: 7px;
  background: var(--sv-canvas);
  background-image:
    linear-gradient(var(--sv-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sv-grid-line) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 4px 4px 0 var(--sv-shadow-color);
}

.win.wide {
  width: 360px;
}

.slab {
  border: var(--border);
  border-radius: 7px;
  padding: 12px 12px 10px;
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
  transition: background 200ms ease;
}

.slab.green {
  background: var(--sv-green);
}

.slab.yellow {
  background: var(--sv-yellow);
}

.slab.coral {
  background: var(--sv-coral);
}

.slab h3 {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.slab p {
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dots {
  display: flex;
  gap: 7px;
  margin: 8px 0 2px;
}

.dots i {
  width: 17px;
  height: 17px;
  border: 2px solid #141410;
  border-radius: 50%;
  background: #fff7df;
}

.dots i.done {
  background: var(--sv-yellow);
}

.dots i.now {
  background: #141410;
}

.yellow .dots i.done {
  background: var(--sv-green);
}

.left {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.left > span {
  justify-self: end;
  font: 400 0.82rem/1 var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bar {
  height: 12px;
  overflow: hidden;
  border: 2px solid #141410;
  border-radius: 6px;
  background: #fff7df;
}

.bar i {
  display: block;
  height: 100%;
  background: #141410;
  transition: width 1s linear;
}

.win-actions {
  display: grid;
  grid-template-columns: 36px 36px minmax(0, 1fr);
  gap: 8px;
}

.win-actions .btn {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.68rem;
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

.win-actions .btn:hover {
  transform: none;
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

.win-actions .icon {
  padding: 0;
}

.win-actions .icon svg {
  width: 14px;
  height: 14px;
}

.win-actions .more {
  justify-content: start;
  gap: 8px;
  padding: 0 10px;
}

.win-actions .more::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* the reminder */
.alert {
  overflow: hidden;
  border: var(--border);
  border-radius: 7px;
  padding: 14px 16px 0;
  background: var(--sv-coral);
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

.alert .kicker {
  font: 400 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alert h3 {
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.voice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px 8px 6px;
  border: var(--border);
  border-radius: 7px;
  background: #fff4cf;
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

.voice .who {
  color: #5d564a;
  font: 400 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.voice .line {
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

button.orb {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.orb-core {
  position: absolute;
  inset: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #101010;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 3px 3px 0 rgba(17, 16, 14, 0.68);
  color: #141410;
  transition: background 200ms ease;
}

button.orb:active .orb-core {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(17, 16, 14, 0.68);
}

.orb-play {
  width: 15px;
  height: 15px;
  margin-left: 3px;
  transition: opacity 150ms ease, transform 150ms ease;
}

.orb-bars {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  opacity: 0;
}

.orb-bars i {
  width: 4px;
  height: 5px;
  border-radius: 2px;
  background: #141410;
}

.is-speaking .orb-core {
  background: var(--sv-green);
}

.is-speaking .orb-play {
  opacity: 0;
  transform: scale(0.4);
}

.is-speaking .orb-bars {
  opacity: 1;
}

.is-speaking .orb-bars i {
  animation: orb-bar 0.8s ease-in-out infinite;
}

.is-speaking .orb-bars i:nth-child(2) {
  animation-delay: 0.2s;
}

.is-speaking .orb-bars i:nth-child(3) {
  animation-delay: 0.4s;
}

.is-speaking .orb-bars i:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes orb-bar {
  50% {
    height: 20px;
  }
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px -16px 0;
  padding: 9px 16px;
  border-top: var(--border);
  background: #fff4cf;
}

.task strong {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task span {
  flex: none;
  font: 400 0.72rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* the report strip and tiles */
.strip {
  position: relative;
  height: 22px;
  margin-top: 12px;
  overflow: hidden;
  border: 2px solid #101010;
  border-radius: 6px;
  background: #fff7df;
}

.strip i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.strip .on {
  background: #101010;
}

.strip .off {
  background: #ff684f;
}

.strip .away {
  background: #8d8a80;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tile {
  display: grid;
  gap: 2px;
  border: var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--sv-panel);
  box-shadow: 2px 2px 0 var(--sv-shadow-color);
}

.tile span {
  color: var(--sv-muted);
  font: 500 0.66rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile strong {
  font: 500 1.05rem/1.1 var(--font-mono);
}

/* a small theme switch for the mock-ups */
.theme {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.68rem;
}

/* ---- the page ---- */
.shell { width: min(100%, 1180px); margin: 0 auto; padding: 0 24px; }
  /* the top bar is a piece of the canvas itself: the page's grid is pinned to the window, the
     bar draws the same grid, and a soft edge under it is where passing things fade out */
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--sv-canvas); background-image: linear-gradient(var(--sv-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--sv-grid-line) 1px, transparent 1px); background-size: 18px 18px; background-position: 0 var(--sy, 0px); }
  /* a short soft edge: things disappear at the bar's line, with the cut just taken off */
  header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: inherit; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
  header .shell { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  header .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
  header .tagline { padding-top: 0; }
  /* the headline's words, small and muted, arriving beside the wordmark once the headline itself has gone */
  header .tagline { font: 400 0.95rem/1 var(--font-sans); letter-spacing: -0.01em; text-transform: none; color: var(--sv-muted); white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity 240ms ease, transform 320ms var(--ease-out); pointer-events: none; }
  header.tagged .tagline { opacity: 1; transform: none; }
  .first { padding-top: 90px; }
  .brand { display: flex; align-items: center; gap: 12px; font-size: 1.9rem; font-weight: 750; letter-spacing: -0.035em; text-decoration: none; }
  .brand img { width: 36px; height: 36px; }
  .tools { display: flex; gap: 8px; }
  .tools .btn { min-height: 36px; padding: 0 12px; font-size: 0.7rem; }
  .words .w { display: inline-block; }
  .developing .w { animation: develop 260ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms); }
  @keyframes develop { from { opacity: 0; transform: translateY(5px); } }
  .panel { display: grid; gap: 10px; padding: 20px 22px 22px; border: var(--border); border-radius: 7px; background: var(--sv-panel); box-shadow: 4px 4px 0 var(--sv-shadow-color); }
  .panel .eyebrow { margin: 0; }
  /* The page is a sequence of screens. The scroll rests on one at a time: the words, the four
     beats of the demo, the voice, the promise, the download. A flick never skips a screen. */
  /* After the demo the page ends in three stacked cards: each one is sticky near the top, so
     the next slides up over it and stops in the same place, like a deck being dealt. */
  /* room to breathe: a long run after the demo before the first row, and a long run between rows */
  .stack { position: relative; display: grid; row-gap: 48vh; width: min(100%, 880px); padding: 30vh 24px var(--tail, 24px); }
  /* a deal is one sticky row: one card, or two cards side by side, all the same height */
  .deal { position: sticky; top: var(--top, calc(104px + var(--i) * 18px)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
  .pane { display: grid; border: var(--border); border-radius: 7px; background: var(--sv-panel); box-shadow: 4px 4px 0 var(--sv-shadow-color); overflow: hidden; transform-origin: 50% 0; transition: box-shadow 200ms ease, opacity 240ms ease, transform 320ms var(--ease-out); }
  /* once the next row has covered this one it steps back and fades, so a taller row never
     shows under a shorter one */
  .deal.covered .pane { box-shadow: none; opacity: 0; transform: scale(0.97); }
  /* what a screen holds rises into place when the screen arrives */
  .deal .rise { opacity: 0; transform: translateY(8px); transition: opacity 260ms ease, transform 320ms var(--ease-out); }
  .deal.in .rise { opacity: 1; transform: none; }
  .deal.in .rise:nth-child(2) { transition-delay: 80ms; } .deal.in .rise:nth-child(3) { transition-delay: 160ms; }
  .section { padding: 0; }
  .section-head { display: grid; gap: 8px; max-width: 46ch; margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
  .section-head p { margin: 0; font-size: 1.02rem; }

  /* ---- the app's cards ---- */
  .card { position: relative; display: grid; overflow: hidden; border: var(--border); border-radius: 7px; box-shadow: 2px 2px 0 var(--sv-shadow-color); background: var(--sv-green); transition: background 220ms ease, height 320ms var(--ease-out); }
  .card.bare { box-shadow: 4px 4px 0 var(--sv-shadow-color); }
  .card.caught { background: var(--sv-coral); }
  .card.phone, .card.done { background: var(--sv-yellow); }
  .face { grid-area: 1 / 1; display: flex; flex-direction: column; align-self: start; padding: 12px 14px 11px; transition: opacity 160ms ease, transform 220ms var(--ease-out); }
  .face[hidden] { display: flex; opacity: 0; transform: translateY(6px); pointer-events: none; }
  .face h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
  .face .goal { margin-top: 2px; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .face .kicker { font: 400 0.68rem/1.2 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
  .face .left { display: grid; gap: 6px; margin-top: 12px; }
  .face .left > span { justify-self: end; font: 400 0.78rem/1 var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; }
  .face .bar { height: 12px; overflow: hidden; border: 2px solid #141410; border-radius: 6px; background: #fff7df; }
  .face .bar i { display: block; height: 100%; background: #141410; transition: width 1s linear; }
  .face .voice { margin-top: 12px; padding: 6px 12px 6px 4px; }
  .face .voice .orb { width: 52px; height: 52px; }
  .face .voice .line { font-size: 0.95rem; }
  .face .task { margin: 12px -14px 0; padding: 8px 14px; }
  .face .strip { margin-top: 12px; height: 20px; }
  .face .strip .on { background: var(--sv-green); }
  .face .strip i { transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
  .face.drawn .strip i { transform: none; }
  .face .tiles { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
  .face .tile { padding: 8px 10px; background: #fff7df; color: #141410; cursor: help; transition: transform 120ms ease-out, box-shadow 120ms ease-out; }
  .face .tile span { color: #5d564a; }
  .face .tile strong { font: 750 1.05rem/1.1 var(--font-sans); letter-spacing: -0.02em; white-space: nowrap; }
  .face .tile { padding: 8px 8px; }
  @media (hover: hover) { .face .tile:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sv-shadow-color); } }
  /* the status window's frame, for the card that has buttons under it */
  .win { display: grid; gap: 8px; padding: 8px; border: var(--border); border-radius: 7px; background: var(--sv-soft-white); box-shadow: 4px 4px 0 var(--sv-shadow-color); }
  .win .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .win .actions[hidden] { display: none; }
  .win .actions .btn { min-height: 34px; font-size: 0.68rem; }

  /* ---- 1 · the words, and the catches landing ---- */
  .first { min-height: 100vh; display: grid; align-content: center; }
  .first:not(.in) .hero .pop { animation: none; opacity: 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px; padding: 0 0 56px; }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); max-width: 11ch; }
  .hero > div > p { margin-top: 18px; max-width: 30ch; font-size: 1.1rem; }
  .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
  .fine { margin-top: 12px; }
  /* the demo peeks under the fold: the first thing to scroll to is already in view */
  .peek { height: 0; }


  /* the fan: the four personalities as a hand of cards; the front one speaks, then goes to the back */
  .fan { position: relative; justify-self: end; width: min(520px, 100%); height: 430px; }
  .fcard { position: absolute; left: 40px; bottom: 36px; width: 270px; height: 330px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px 18px 14px; border: var(--border); border-radius: 7px; box-shadow: 4px 4px 0 var(--sv-shadow-color); color: #141410; cursor: pointer; transform-origin: 50% 120%; transform: rotate(var(--r, 0deg)) translate(var(--x, 0px), calc(var(--y, 0px) + var(--lift, 0px))); transition: transform 560ms var(--ease-out), opacity 280ms ease, box-shadow 120ms ease-out; }
  .fcard.r0 { --r: 0deg; --x: 0px; --y: 0px; z-index: 4; }
  .fcard.r1 { --r: 9deg; --x: 34px; --y: 4px; z-index: 3; }
  .fcard.r2 { --r: 18deg; --x: 68px; --y: 14px; z-index: 2; }
  .fcard.r3 { --r: 27deg; --x: 102px; --y: 30px; z-index: 1; }
  .fcard.away { transform: rotate(-8deg) translate(-30px, -90px); opacity: 0; transition: transform 280ms ease-in, opacity 220ms ease; }
  .fcard.snap { transition: none; }
  @media (hover: hover) { .fcard:hover { --lift: -12px; box-shadow: 6px 6px 0 var(--sv-shadow-color); } }
  .fcard.cream { background: var(--sv-panel); color: var(--sv-ink); } .fcard.yellow { background: var(--sv-yellow); } .fcard.coral { background: var(--sv-coral); } .fcard.green { background: var(--sv-green); }
  .fcard .tag { display: flex; justify-content: space-between; align-items: center; font: 400 0.68rem/1.2 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
  .fcard .tag .p { opacity: 1; padding: 5px 10px; border: 2px solid currentColor; border-radius: 6px; font: 750 0.95rem/1 var(--font-sans); letter-spacing: -0.01em; text-transform: none; }
  .fcard .quote { align-self: center; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; }
  .fcard .foot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .fcard .foot .wave { grid-column: 2; height: 30px; }
  .fcard .foot .wave i { background: currentColor; opacity: 0.45; }
  .fcard.is-speaking .foot .wave i { opacity: 1; }
  .fcard.cream .wave i { color: var(--sv-ink); }
  .fcard.cream .orb-core { background: var(--sv-soft-white); color: var(--sv-ink); border: var(--border); box-shadow: 3px 3px 0 var(--sv-shadow-color); }
  /* while speaking, every orb is green with dark ink, the plain-card ones included */
  .fcard.cream.is-speaking .orb-core, .vrow.is-speaking .orb-core { background: var(--sv-green); color: #141410; }
  /* ---- 2 · the demo ---- */
  .scene { position: relative; height: 420vh; }
  /* the bar is fixed over the top 72px (plus its 18px soft edge), so the screen's content is
     centred in the space below it, never under it */
  .pin { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding-top: 90px; display: grid; align-content: center; }
  .scene-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
  .scene-grid.shell { width: min(100%, 1280px); }
  .slides { position: relative; display: grid; }
  .slide { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 320ms var(--ease-out); pointer-events: none; }
  .slide.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 120ms; }
  .slide.out { transform: translateY(-8px); }
  .slide h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); letter-spacing: -0.025em; line-height: 1.12; }
  .slide p { margin: 0; font-size: 1rem; }

  /* the tabs are cards of their own; the screen is a card below them, with a gap between */
  /* tabs (36px) and gap (14px) above it, the bar's 90px, and 40px of air: it must fit on a short laptop screen */
  .desk { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; height: min(660px, calc(100vh - 180px)); min-height: 320px; }
  .tabs { display: flex; gap: 10px; }
  .tab { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: var(--border); border-radius: 7px; padding: 0 14px; background: var(--sv-soft-white); color: var(--sv-muted); box-shadow: 2px 2px 0 var(--sv-shadow-color); font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 160ms ease, color 160ms ease, transform 120ms ease-out, box-shadow 120ms ease-out; }
  .tab .fav { width: 10px; height: 10px; border-radius: 3px; }
  .tab.docs .fav { background: #4a7bd0; } .tab.yt .fav { background: #ff684f; } .tab.rd .fav { background: #ff8a3d; }
  .tab.front { background: var(--sv-yellow); color: var(--sv-colored-ink); }
  @media (hover: hover) { .tab:not(.front):hover { color: var(--sv-ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sv-shadow-color); } }
  .tab:active { transform: translate(2px, 2px); box-shadow: none; }
  .screen { position: relative; border: var(--border); border-radius: 7px; background: var(--sv-soft-white); box-shadow: 4px 4px 0 var(--sv-shadow-color); overflow: hidden; }
  /* while a popup speaks, the page behind it steps back: duller and a little darker, never see-through */
  .screen::after { content: ""; position: absolute; inset: 0; z-index: 4; background: #101010; opacity: 0; transition: opacity 260ms ease; pointer-events: none; }
  .screen.dim::after { opacity: 0.12; }
  .view { position: absolute; inset: 0; opacity: 0; transition: opacity 220ms ease; }
  .view.on { opacity: 1; }
  .ln, .bar-row .name, .toolbar i, .yt .title, .yt .meta, .yt .vid i { background: var(--sv-ink); opacity: 0.12; }
  .ln { display: block; height: 9px; border-radius: 3px; }
  .bar-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--sv-grid-line); }
  .bar-row .search { flex: 1; max-width: 46%; height: 22px; border: 1px solid var(--sv-border); border-radius: 3px; opacity: 0.35; }
  .docs .bar-row .logo { width: 16px; height: 20px; border-radius: 2px; background: #4a7bd0; }
  .docs .bar-row .name { width: 120px; height: 10px; border-radius: 3px; opacity: 0.3; }
  .docs .toolbar { display: flex; gap: 6px; padding: 7px 16px; border-bottom: 1px solid var(--sv-grid-line); }
  .docs .toolbar i { width: 14px; height: 14px; border-radius: 3px; }
  .docs .sheet { width: 72%; margin: 18px auto 0; padding: 26px 30px; background: var(--sv-panel); border: 1px solid var(--sv-border); border-radius: 3px 3px 0 0; min-height: 100%; }
  .docs .sheet h4 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
  .docs .sheet .ln { margin-top: 9px; opacity: 0.18; }
  .yt .bar-row .logo { display: flex; align-items: center; justify-content: center; width: 24px; height: 16px; border-radius: 3px; background: #ff684f; }
  .yt .bar-row .logo::after { content: ""; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid #fff7df; margin-left: 1px; }
  .yt .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; padding: 16px; }
  .yt .player { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; background: #141410; display: grid; place-items: center; }
  .yt .player::after { content: ""; width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 22px solid #fff7df; margin-left: 5px; opacity: .9; }
  .yt .player .scrub { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; background: rgba(255,247,223,.3); }
  .yt .player .scrub::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: #ff684f; }
  .yt .title { margin-top: 10px; height: 12px; width: 70%; border-radius: 3px; opacity: 0.3; }
  .yt .meta { margin-top: 8px; height: 8px; width: 40%; border-radius: 3px; }
  .yt .side { display: grid; gap: 10px; align-content: start; }
  .yt .vid { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
  .yt .vid i { aspect-ratio: 16 / 9; border-radius: 3px; opacity: 0.2; }
  .yt .vid .ln + .ln { margin-top: 5px; width: 60%; }
  .rd .bar-row .logo { width: 18px; height: 18px; border-radius: 50%; background: #ff8a3d; }
  .rd .feed { display: grid; gap: 8px; padding: 12px 16px; }
  .rd .post { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--sv-border); border-radius: 3px; background: var(--sv-panel); }
  .rd .post .vote { display: grid; gap: 4px; justify-items: center; align-content: start; }
  .rd .post .vote i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid var(--sv-muted); }
  .rd .post .vote i + i { border-bottom: 0; border-top: 6px solid var(--sv-muted); }
  .rd .post .ln:first-child { width: 50%; height: 10px; opacity: 0.3; }
  .rd .post .ln + .ln { margin-top: 7px; width: 85%; }

  .cam { position: absolute; left: 16px; bottom: 16px; z-index: 4; width: 168px; border: var(--border); border-radius: 7px; background: var(--sv-panel); box-shadow: 4px 4px 0 var(--sv-shadow-color); padding: 8px; opacity: 0; transform: translateY(10px); transition: opacity 220ms ease, transform 320ms var(--ease-out); }
  .cam.on { opacity: 1; transform: none; }
  .cam .cap { font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sv-muted); }
  .cam .frame { position: relative; height: 84px; margin-top: 6px; border: var(--border); border-radius: 3px; background: #2b2a26; overflow: hidden; }
  .cam .head { position: absolute; left: 44%; top: 16px; width: 30px; height: 36px; border-radius: 14px 14px 10px 10px; background: #6b6457; transform: translateX(-50%); }
  .cam .body { position: absolute; left: 44%; bottom: -10px; width: 76px; height: 36px; border-radius: 18px 18px 0 0; background: #6b6457; transform: translateX(-50%); }
  .cam .hand { position: absolute; left: 62%; top: 42px; width: 18px; height: 18px; border-radius: 6px; background: #6b6457; }
  .cam .ph { position: absolute; left: 64%; top: 30px; width: 13px; height: 22px; border-radius: 2px; background: #141410; border: 1px solid #8d8a80; transform: rotate(10deg); }
  .cam .box { position: absolute; left: 58%; top: 22px; width: 30px; height: 38px; border: 2px dashed var(--sv-yellow); border-radius: 3px; }
  .cam .box::after { content: "Phone"; position: absolute; left: -2px; top: -13px; padding: 1px 4px; background: var(--sv-yellow); color: #141410; font: 600 0.5rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; }

  /* the status card: bare and small in the corner; framed, with its buttons, in the middle */
  .corner { position: absolute; z-index: 5; right: 16px; top: 66px; width: 220px; transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); will-change: transform; }
  .corner.centered { width: 360px; }
  .corner .win { display: none; }
  .corner.framed .win { display: grid; }
  .corner.framed > .card { display: none; }
  .centered .face { padding: 14px 16px 0; }
  .centered .face h3 { font-size: 1.6rem; }
  .centered .face .task { margin: 12px -16px 0; padding: 8px 16px; }
  .centered .card.done .face { padding: 14px 16px 12px; }
  .rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
  .rail button { position: relative; height: 14px; border: var(--border); border-radius: 6px; background: var(--sv-soft-white); cursor: pointer; padding: 0; overflow: hidden; box-shadow: 2px 2px 0 var(--sv-shadow-color); }
  .rail button::after { content: ""; position: absolute; inset: 0; background: var(--sv-green); transform-origin: left; transform: scaleX(0); transition: transform 380ms var(--ease-out); }
  .rail button.full::after { transform: none; }

  /* ---- 3 · the voice: on the left a recording becomes a voice; on the right the two voices that come with the app ---- */
  .voice-sheet .pane { padding: 24px; }
  .intro { align-self: center; align-content: center; gap: 16px; background: var(--sv-yellow); color: #141410; }
  .intro .eyebrow, .intro .muted { color: #5d564a; }
  .intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
  .intro p { margin: 0; font-size: 1.02rem; }
  .recbox .voices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .vrow { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 8px 14px 8px 8px; border: var(--border); border-radius: 7px; background: var(--sv-soft-white); box-shadow: 2px 2px 0 var(--sv-shadow-color); cursor: pointer; text-align: left; font: inherit; color: var(--sv-ink); transition: transform 120ms ease-out, box-shadow 120ms ease-out; }
  .vrow .orb { grid-row: 1 / 3; }
  /* a play button on a plain card: the card's outer colour, ink for the icon, the theme's own border and shadow */
  .vrow .orb-core, .recbox .rec-orb .orb-core { background: var(--sv-panel); color: var(--sv-ink); border: var(--border); box-shadow: 3px 3px 0 var(--sv-shadow-color); }
  .vrow b { font-size: 1rem; font-weight: 700; }
  .vrow span { font: 400 0.66rem/1.3 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--sv-muted); }
  @media (hover: hover) { .vrow:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sv-shadow-color); } }
  .vrow:active { transform: translate(2px, 2px); box-shadow: none; }
  /* the recording: twenty seconds of anyone, drawn in as it happens, then the four ways they can talk */
  .recbox { display: grid; align-content: center; gap: 14px; }
  /* the chosen-computer cards on the download row */
  .vcard { position: relative; display: grid; gap: 4px; padding: 12px 14px; border: var(--border); border-radius: 6px; background: var(--sv-soft-white); box-shadow: 2px 2px 0 var(--sv-shadow-color); cursor: pointer; text-align: left; font: inherit; color: var(--sv-ink); transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 160ms ease; }
  .vcard b { font-size: 1.02rem; font-weight: 700; }
  .vcard span { font: 400 0.66rem/1.3 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--sv-muted); }
  .vcard.on { background: var(--sv-yellow); color: var(--sv-colored-ink); }
  .vcard.on span { color: #5d564a; }
  @media (hover: hover) { .vcard:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sv-shadow-color); } }
  .vcard:active { transform: translate(2px, 2px); box-shadow: none; }
  .recbox .head { display: flex; justify-content: space-between; align-items: center; }
  .recbox .head h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; }
  .recbox .sub { margin: -6px 0 0; font-size: 0.95rem; color: var(--sv-muted); }
  .recbox .clock { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.05em; color: var(--sv-muted); font-variant-numeric: tabular-nums; }
  .recbox .clock b { color: var(--sv-coral); font-weight: 500; }
  .recbox .stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border: var(--border); border-radius: 7px; background: var(--sv-soft-white); box-shadow: 2px 2px 0 var(--sv-shadow-color); }
  .recbox .stage .name { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
  .recbox .stage .name b { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
  .recbox .stage .name span { font: 400 0.66rem/1.3 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--sv-muted); }
  .recbox .rec-orb .orb-core { transition: background 200ms ease, transform 200ms ease; }
  .recbox .rec-orb .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sv-coral); transition: background 200ms ease, transform 200ms ease; }
  .recbox .rec-orb .orb-play { display: none; }
  /* recording: the whole button goes coral and beats, the dot inside turns ink */
  .recbox.live .rec-orb .orb-core { background: var(--sv-coral); color: #141410; animation: beat 1s ease-in-out infinite; }
  .recbox.live .rec-orb .dot { background: #141410; }
  @keyframes beat { 50% { transform: scale(1.1); box-shadow: 1px 1px 0 var(--sv-shadow-color); } }
  /* built: the button becomes a play button, green */
  .recbox.ready .rec-orb .orb-core { background: var(--sv-green); color: #141410; }
  .recbox.ready .rec-orb .dot { display: none; }
  .recbox.ready .rec-orb .orb-play { display: block; }
  .recbox .tape { grid-column: 2; justify-content: flex-start; height: 48px; min-width: 0; overflow: hidden; }
  /* forty bars always fit the tape: each takes a fortieth of it, so the row never grows past the card */
  .recbox .tape i { flex: 0 0 calc((100% - 39 * 2px) / 40); opacity: 0.4; background: var(--sv-ink); transform: none; animation: pop-in 260ms var(--ease-out); transition: opacity 300ms ease; }
  @keyframes pop-in { 0% { transform: scaleY(0); } 60% { transform: scaleY(1.25); } 100% { transform: scaleY(1); } }
  .recbox.building .tape i { opacity: 0.18; }
  .recbox .note { font: 400 0.68rem/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--sv-muted); min-height: 1.4em; }
  .wave { display: flex; align-items: center; gap: 2px; height: 26px; grid-column: 2; }
  .wave i { flex: 1; height: calc(var(--h) * 1%); min-height: 2px; border-radius: 1px; background: var(--sv-ink); opacity: 0.35; transform-origin: center; transform: scaleY(0); transition: transform 320ms var(--ease-out), background 200ms ease, opacity 200ms ease; transition-delay: calc(var(--i) * 18ms), 0ms, 0ms; }
  .in .wave i { transform: none; }
  .is-speaking .wave i { background: var(--sv-green); opacity: 1; animation: sway 0.8s ease-in-out infinite; animation-delay: calc(var(--i) * 40ms); }
  @keyframes sway { 50% { transform: scaleY(0.45); } }
  /* the week, as a decoration at the edge, cropped by it */
  .voice-wrap > .shell { position: relative; z-index: 1; }
  .decor { position: absolute; right: -40px; bottom: -6px; z-index: 0; width: 280px; transform: rotate(3deg); pointer-events: none; }
  .decor .panel { gap: 10px; padding: 14px 16px; }
  .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .week i { aspect-ratio: 1; border: var(--border); border-radius: 5px; background: var(--sv-soft-white); transition: background 220ms ease; transition-delay: calc(var(--i) * 70ms); }
  .in .week i.on { background: var(--sv-green); }
  .week i.today { border-style: dashed; }
  .decor b { font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em; }

  /* ---- 4 · the promise, a green card ---- */
  .promise { justify-items: center; align-content: center; text-align: center; gap: 18px; padding: 40px 24px 44px; background: var(--sv-green); }
  /* the app's eye: it follows your pointer, and never leaves its card */
  .eye { width: 96px; height: 96px; margin-bottom: 4px; cursor: pointer; transition: transform 120ms ease-out; }
  .eye svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(4px 4px 0 var(--sv-shadow-color)); transition: filter 120ms ease-out; }
  @media (hover: hover) { .eye:hover { transform: translate(-2px, -2px); } .eye:hover svg { filter: drop-shadow(6px 6px 0 var(--sv-shadow-color)); } }
  .eye:active { transform: translate(2px, 2px); } .eye:active svg { filter: drop-shadow(0 0 0 var(--sv-shadow-color)); }
  .eye .look { transition: transform 140ms ease-out; }
  /* the lid is a cream shutter that drops inside the ring and lifts again */
  .eye .shutter { transform: translateY(-106px); animation: blink 5.2s ease-in-out infinite; animation-delay: 1.8s; }
  .eye.wink .shutter { animation: wink 300ms ease-in-out; }
  @keyframes blink { 0%, 95%, 100% { transform: translateY(-106px); } 97.5% { transform: translateY(0); } }
  @keyframes wink { 0%, 100% { transform: translateY(-106px); } 50% { transform: translateY(0); } }
  .promise h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 16ch; }
  .promise .facts { display: grid; gap: 6px; margin: 0; font-size: 1.05rem; color: #3b3a2e; }
  /* ---- 5 · get it: one choice, two ways ---- */
  .get-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 32px; align-items: center; padding: 32px; align-content: center; }
  .os { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .os .vcard { text-align: left; }
  .os .vcard.on { background: var(--sv-yellow); }
  .way { display: grid; gap: 12px; padding: 18px 20px 20px; border: var(--border); border-radius: 7px; background: var(--sv-panel); box-shadow: 4px 4px 0 var(--sv-shadow-color); }
  .way[hidden] { display: none; }
  .way p { margin: 0; font-size: 0.98rem; }
  .way .req { margin: 0; }
  .way { grid-column: 1 / -1; }
  .way[hidden] { display: none; }
  .cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border: var(--border); border-radius: 6px; padding: 6px 6px 6px 12px; background: var(--sv-soft-white); }
  .cmd code { font: 400 0.76rem/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
  .cmd .btn { min-height: 34px; font-size: 0.68rem; }
  /* the card ends with its credit line: who made it, and a way to write back */
  /* the last line: who, and a way to write back */
  footer { width: min(100%, 880px); margin: 0 auto; padding: 18px 24px 0; }
  footer .card-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: var(--border); border-radius: 7px; background: var(--sv-panel); box-shadow: 4px 4px 0 var(--sv-shadow-color); }
  footer .who { display: flex; align-items: center; gap: 12px; }
  footer .who b { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
  footer .btn { min-height: 38px; padding: 0 14px; font-size: 0.7rem; gap: 8px; }
  footer .btn svg { width: 14px; height: 14px; }
  @media (max-width: 920px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; padding: 16px 0 24px; }
    .hero h1 { font-size: 2.2rem; }
    .fan { height: 360px; width: 100%; }
    .fcard { left: 8px; width: 220px; height: 270px; }
    .fcard.r1 { --r: 7deg; --x: 18px; } .fcard.r2 { --r: 14deg; --x: 36px; --y: 10px; } .fcard.r3 { --r: 21deg; --x: 54px; --y: 22px; }
    .first { overflow-x: clip; }
    .fcard .quote { font-size: 1.4rem; }
    .scene { height: 400vh; }
    .scene-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 16px; align-items: start; }
    .desk-wrap { order: 1; } .slides { order: 2; }
    .desk { height: 42vh; min-height: 300px; }
    .corner { width: 180px; right: 12px; top: 60px; }
    .corner.centered { width: min(320px, calc(100% - 24px)); }
    .yt .body { grid-template-columns: 1fr; }
    .yt .side { display: none; }
    .docs .sheet { width: 88%; }
    .cam, .decor { display: none; }
    .brand { font-size: 1.5rem; }
    header .tagline { display: none; }
    .stack { row-gap: 18px; padding-top: 48px; }
    .stack { padding-bottom: 24px; }
    .deal { position: static; grid-auto-flow: row; grid-auto-columns: auto; min-height: 0; }
    .get-grid { grid-template-columns: minmax(0, 1fr); }
    footer .card-line { flex-wrap: wrap; }
    .voice-sheet .pane, .get-grid { padding: 20px; }
    .voices { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    .deck .catch.land { animation: none; }
    .is-speaking .wave i { animation: none; }
    .eye .shutter { animation: none; }
  }
