/* ═══════════════════════════════════════════════════════════════════
   Celery — usecelery.io

   Dark ground, raking green light, white pill buttons, low-contrast
   grey continuations after a bold lead-in. Green is never decoration:
   it is the microphone being open, which is why the light in the hero
   is green and everything else is grey.

   The product parts — the mark, the pill, the stream that arrives,
   strikes, collapses and settles — are lifted from the app itself
   (Sources/Celery/UI/Style.swift, HUD.swift).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #08090b;
  --bg-2: #0d0e11;
  --surface: #141518;
  --surface-2: #1a1b1f;

  --edge: rgba(255, 255, 255, 0.09);
  --edge-2: rgba(255, 255, 255, 0.055);

  --text: #f4f4f5;
  --text-2: #a1a1a6;
  --text-3: #75757b;
  --text-4: #55555b;

  /* Brand.swift — green only ever means the mic is open. */
  --live: #29d673;
  --live-dim: #1fa757;
  --strike: #e0685f;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(0.2, 1.28, 0.35, 1);

  --nav-h: 62px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 8vw, 122px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.apple {
  fill: currentColor;
  stroke: none;
}

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

::selection {
  background: rgba(41, 214, 115, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: 5px;
}

.shell {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 90;
  padding: 9px 15px;
  border-radius: 9px;
  background: #fff;
  color: #08090b;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ─────────────────────  TYPE  ───────────────────── */

h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The house device: a bold white lead-in, then the rest in grey. Reads
   as one sentence, but the eye gets the point before it reads it. */
.cap,
.triple p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-3);
  letter-spacing: -0.004em;
}

.cap b,
.triple p b {
  color: var(--text);
  font-weight: 600;
}

.lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.55;
  color: var(--text-2);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.lede em {
  font-style: italic;
  color: var(--text);
}

.mono-label,
.mono-note {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-4);
}

.mono-label-live {
  color: var(--live-dim);
}

.mono-note {
  margin-top: 18px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-4);
  text-align: center;
}

.head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.head-sub {
  margin-top: 14px;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.5;
  color: var(--text-3);
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

/* ─────────────────────  BUTTONS  ─────────────────────
   White pill on black. The inversion is the point: the one thing you
   are meant to click is the brightest thing on the page. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.008em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 170ms ease, box-shadow 200ms var(--ease-out);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-light {
  background: #fff;
  color: #08090b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 20px -8px rgba(0, 0, 0, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .btn-light:hover {
    background: #e9e9ec;
  }
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 90ms;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.row-center {
  justify-content: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  transition: gap 200ms var(--ease-out);
}

.textlink span {
  color: var(--live);
}

@media (hover: hover) and (pointer: fine) {
  .textlink:hover {
    gap: 11px;
  }
}

/* ─────────────────────  NAV  ─────────────────────
   A floating pill, inset from the top, not a full-bleed bar. */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 14px var(--gutter) 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1000px, 100%);
  height: 52px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--edge-2);
  border-radius: 999px;
  background: rgba(13, 14, 17, 0.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.nav.is-stuck .nav-pill {
  border-color: var(--edge);
  background: rgba(13, 14, 17, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-2);
  transition: color 170ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--text);
  }
}

/* ═════════════  THE BEAMS  ═════════════
   Light raking across the dark at a low angle. Green, because green is
   the microphone. The cool pass behind it does the chromatic fringing
   that keeps it from reading as a flat gradient. */

.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 64% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 68% 64% at 50% 40%, #000 30%, transparent 78%);
}

.beam {
  position: absolute;
  inset: -40% -25%;
  display: block;
}

/* Parallax writes transform every frame — promote these so the drift
   composites on the GPU instead of repainting. */
[data-parallax] {
  will-change: transform;
}

/* Scrim: the light stays bright at the edges, but pulls back where the
   copy sits so nothing has to fight the background to be read. */
.beams::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 44% 46% at 50% 46%,
    rgba(8, 9, 11, 0.82) 12%,
    rgba(8, 9, 11, 0.42) 54%,
    transparent 76%
  );
}

.beam-green {
  background: repeating-linear-gradient(
    64deg,
    transparent 0 46px,
    rgba(41, 214, 115, 0.5) 46px 62px,
    rgba(150, 255, 200, 0.9) 62px 84px,
    rgba(41, 214, 115, 0.5) 84px 104px,
    transparent 104px 178px
  );
  filter: blur(22px) saturate(160%);
  opacity: 0.9;
}

.beam-cool {
  background: repeating-linear-gradient(
    64deg,
    transparent 0 46px,
    rgba(60, 200, 255, 0.55) 52px 78px,
    transparent 78px 178px
  );
  filter: blur(30px) saturate(150%);
  opacity: 0.65;
  transform: translateX(30px);
  mix-blend-mode: screen;
}

/* ═════════════  HERO  ═════════════ */

.hero {
  position: relative;
  padding-top: clamp(96px, 13vw, 176px);
  padding-bottom: clamp(72px, 9vw, 120px);
  scroll-margin-top: var(--nav-h);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero .lede {
  max-width: 46ch;
  margin-inline: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(20, 21, 24, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(41, 214, 115, 0.18);
}

/* Page-load sequence: one orchestrated arrival, not five scattered ones. */
.js .load-1,
.js .load-2,
.js .load-3,
.js .load-4,
.js .load-5 {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 700ms var(--ease-out) forwards;
}

.js .load-1 { animation-delay: 60ms; }
.js .load-2 { animation-delay: 130ms; }
.js .load-3 { animation-delay: 210ms; }
.js .load-4 { animation-delay: 290ms; }
.js .load-5 { animation-delay: 370ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═════════════  SECTIONS  ═════════════ */

.sec {
  position: relative;
  padding-block: var(--sec);
  scroll-margin-top: var(--nav-h);
}

.sec-tight {
  padding-top: clamp(20px, 3vw, 40px);
}

/* ═════════════  THE DEMO  ═════════════
   A walkthrough you choose to start, so it never plays at someone who
   didn't ask for it. Poster + play affordance until clicked, then the
   browser's own controls take over. */

.shell-wide {
  width: min(1560px, 100%);
}

.demo {
  position: relative;
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  background: #0d0e11;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 80px 140px -50px rgba(0, 0, 0, 0.9);
}

/* Ambient green wash — the mic is open in the clip. */
.display-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 60% 70% at 50% 55%, rgba(41, 214, 115, 0.14), transparent 70%);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.demo.is-playing .display-glow {
  opacity: 0;
}

.demo-video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  background: #0d0e11;
}

/* Full-area click target. Everything inside is absolutely centred, so
   the ring sits dead centre no matter what the label under it does. */
.demo-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(6, 7, 9, 0.4);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 300ms var(--ease-out), background-color 260ms ease;
}

.demo.is-started .demo-play {
  opacity: 0;
  pointer-events: none;
}

.demo-play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(10, 11, 14, 0.55);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32), 0 18px 50px -12px rgba(0, 0, 0, 0.85);
  transition: transform 240ms var(--ease-out), background-color 170ms ease;
}

/* A triangle's optical centre sits left of its bounding box. */
.tri {
  margin-left: 6px;
}

.demo-play-text {
  position: absolute;
  left: 50%;
  top: calc(50% + 86px);
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.008em;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
}

.ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  pointer-events: none;
}

@keyframes ripple {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.15);
  }
}

@media (hover: hover) and (pointer: fine) {
  .demo-play:hover {
    background: rgba(6, 7, 9, 0.26);
  }

  .demo-play:hover .demo-play-ring {
    background: rgba(14, 16, 20, 0.68);
    transform: translate(-50%, -50%) scale(1.06);
  }

  .demo-play:hover .ripple {
    animation: ripple 2.1s var(--ease-out) infinite;
  }

  .demo-play:hover .ripple:nth-child(2) {
    animation-delay: 0.7s;
  }

  .demo-play:hover .ripple:nth-child(3) {
    animation-delay: 1.4s;
  }
}

.demo-play:active .demo-play-ring {
  transform: translate(-50%, -50%) scale(0.97);
  transition-duration: 90ms;
}

.demo-play:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: -4px;
}

/* ─────────  custom controls  ─────────
   The browser's own bar is grey chrome from another design system.
   This one is ours: green fill, mono clock, glass ground. */

.ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.9));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

/* Once it has started: on hover, and whenever it is paused. */
.demo.is-started:hover .ctl,
.demo.is-started:not(.is-playing) .ctl,
.demo.is-started:focus-within .ctl {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ctl-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out);
}

.ctl-btn svg {
  stroke-width: 1.9;
}

@media (hover: hover) and (pointer: fine) {
  .ctl-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
  }
}

.ctl-btn:active {
  transform: scale(0.94);
  transition-duration: 90ms;
}

.ctl-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.ctl-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 99px;
  background: var(--live);
}

.ctl-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 160ms ease;
}

.ctl-track:hover .ctl-fill::after,
.ctl-track:focus-visible .ctl-fill::after {
  opacity: 1;
}

.ctl-time {
  flex: none;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
}

/* Icon pairs: one shows, its partner hides. */
.i-play,
.i-off {
  display: none;
}

.demo:not(.is-playing) .i-play {
  display: block;
}

.demo:not(.is-playing) .i-pause {
  display: none;
}

.demo.is-muted .i-off {
  display: block;
}

.demo.is-muted .i-on {
  display: none;
}

.head-label {
  margin-bottom: 14px;
}

.reel {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #0d0e11;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 24px 60px -22px rgba(0, 0, 0, 0.9);
}

.sec-tight .cap {
  max-width: 60ch;
  margin: 26px auto 0;
  text-align: center;
}

/* ═════════════  THE KEYBOARD  ═════════════
   Laid back in perspective and masked into the dark, so only the keys
   near the centre are legible. One key is lit, and it is the one you
   actually hold. */

.sec-kbd {
  padding-bottom: 0;
  overflow: hidden;
}

.kbd-stage {
  position: relative;
  /* Key height drives the body height, and the HUD hangs off it, so
     the two never drift apart when the keys resize. */
  --kh: 616px;
  /* How far the board floats above the section floor — the bloom under
     fn needs this much room or it gets clipped by the mask edge. */
  --kb: 150px;
  height: calc(var(--kh) + var(--kb) + 130px);
  margin-top: clamp(20px, 2.4vw, 34px);
}

/* Only the hardware is masked, so it dissolves into the dark rather
   than ending at an edge. The HUD in front of it stays sharp. */
.kbd-mask {
  position: absolute;
  inset: 0;
  /* Bright along the bottom row — where the lit key lives — falling
     off upward and into the corners. */
  -webkit-mask-image: radial-gradient(ellipse 94% 62% at 46% 74%, #000 26%, transparent 96%);
  mask-image: radial-gradient(ellipse 94% 62% at 46% 74%, #000 26%, transparent 96%);
}

/* The chassis. Keys sit in a body with a milled edge, rather than
   floating in space. */
.kbd {
  position: absolute;
  left: 2%;
  bottom: var(--kb);
  display: grid;
  gap: 12px;
  /* Wider than the frame on purpose: the body's corners fall outside
     the vignette, so you read rows of keys receding into the dark
     rather than a small gadget sitting in the middle of the page. */
  width: min(1760px, 168vw);
  padding: 22px;
  /* No body fill at all. The keys are drawn by their outlines alone;
     everything else is the page's own black. */
  background: none;
  /* Flat. Straight down on it — no tilt, no perspective. */
}

.krow {
  display: flex;
  gap: 9px;
}

.k {
  flex: var(--w, 1) 1 0;
  display: grid;
  place-items: center;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: none;
  color: rgba(255, 255, 255, 0.46);
  font-size: 23px;
  font-weight: 450;
  letter-spacing: -0.01em;
  user-select: none;
}

.k-lbl {
  font-size: 15px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.34);
}

/* The one key that matters. Outlined at rest, and on press it throws
   light onto the body around it — the glow belongs to the surface,
   not just to the keycap. */
.k-fn {
  position: relative;
  z-index: 2;
  color: rgba(210, 255, 228, 0.62);
  border-color: rgba(41, 214, 115, 0.3);
  transition: color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

/* The bloom: light thrown outward onto the black, wider than the key
   and reaching furthest below it — the surface is what's being lit,
   not the keycap. */
.k-fn::after {
  content: "";
  position: absolute;
  left: -150%;
  right: -150%;
  top: -60%;
  bottom: -120%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 34%,
    rgba(41, 214, 115, 0.42),
    rgba(41, 214, 115, 0.14) 46%,
    transparent 74%
  );
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}

.k-fn.is-down {
  color: #eafff4;
  border-color: rgba(41, 214, 115, 0.95);
  box-shadow: 0 0 22px -2px rgba(41, 214, 115, 0.55), inset 0 0 18px -6px rgba(41, 214, 115, 0.45);
}

.k-fn.is-down::after {
  opacity: 1;
}

/* The HUD sits in front of the keyboard, upright — it is screen furniture,
   not part of the hardware, so it must not share the perspective. */
/* Sits just above the chassis, not adrift in the middle of the section.
   The wrapper owns the centring so the pill's own transform is free
   to animate. */
.kbd-hud {
  position: absolute;
  left: 50%;
  bottom: calc(var(--kh) + var(--kb) + 22px);
  z-index: 3;
  transform: translateX(-50%);
}

/* Rises out of the keyboard and sinks back into it. Exit is quicker
   than entry — the system responding should never take as long as the
   thing you were waiting for. */
.kbd-hud .hud {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 170ms var(--ease-out), transform 230ms var(--ease-out),
    background-color 260ms ease, box-shadow 260ms ease;
}

.kbd-hud .hud.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 260ms var(--ease-out), transform 520ms var(--spring),
    background-color 260ms ease, box-shadow 260ms ease;
}

@media (max-width: 700px) {
  .kbd-stage {
    --kh: 392px;
    --kb: 90px;
  }

  .k {
    height: 62px;
    font-size: 15px;
    border-radius: 9px;
  }

  .k-lbl {
    font-size: 10px;
  }
}

/* ═════════════  SHOT GRID  ═════════════ */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

/* One line under the two examples, saying the thing they have in
   common. Centred, because it belongs to the section, not a column. */
.cap-note {
  max-width: 52ch;
  margin: clamp(38px, 4.6vw, 58px) auto 0;
  text-align: center;
}

.shot-card {
  margin: 0;
}

/* The two captures were shot at different sizes; a shared ratio keeps
   the captions on one line across the grid. */
.shot-card .reel {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px;
  border: 1px solid var(--edge-2);
}

.shot-card figcaption {
  margin-top: 18px;
}

.shot-card .mono-label {
  margin-bottom: 8px;
}

/* ═════════════  THE MARK  ═════════════
   Five bars in a squircle at the app's own proportions. */

.mark {
  --mk: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--mk) * 0.049);
  flex: none;
  width: var(--mk);
  height: var(--mk);
  border-radius: calc(var(--mk) * 0.2237);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.mark i {
  display: block;
  width: calc(var(--mk) * 0.0666);
  height: calc(var(--mk) * 0.4216);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleY(var(--w));
}

.mark i:nth-child(1) { --w: 0.46; --i: 0; }
.mark i:nth-child(2) { --w: 0.78; --i: 1; }
.mark i:nth-child(3) { --w: 1;    --i: 2; background: var(--live); }
.mark i:nth-child(4) { --w: 0.7;  --i: 3; }
.mark i:nth-child(5) { --w: 0.4;  --i: 4; }

.is-listening .mark {
  box-shadow: inset 0 0 0 1px rgba(41, 214, 115, 0.42);
}

.is-listening .mark i {
  background: rgba(41, 214, 115, 0.8);
  animation: markLive 900ms var(--ease-io) infinite alternate;
  animation-delay: calc(var(--i) * -130ms);
}

@keyframes markLive {
  from { transform: scaleY(calc(var(--w) * 0.24)); }
  to   { transform: scaleY(var(--w)); }
}

/* ═════════════  THE HUD  ═════════════
   Rebuilt from assets/new hud.mov, colours sampled off the recording:
   stadium shell #2a2a2e, a round badge on the left, a two-line middle
   (state over waveform), and a right column carrying the clock. On
   "Pasted" the waveform gives way to the words that just landed. */

.hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: #17181b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 40px -16px rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.hud.is-listening {
  box-shadow: inset 0 0 0 1px rgba(41, 214, 115, 0.32), 0 18px 40px -16px rgba(0, 0, 0, 0.85);
}

/* The badge is a circle here, not the app's squircle. */
.hud-badge {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b0a0e;
  box-shadow: inset 0 0 0 1px rgba(41, 214, 115, 0.34);
}

.hud-badge .mark {
  --mk: 22px;
  background: transparent;
  box-shadow: none;
}

.hud-tick,
.hud-done-tick {
  display: none;
  color: rgba(41, 214, 115, 0.82);
  stroke-width: 2.2;
}

.hud-badge .hud-tick {
  position: absolute;
}

.hud-mid {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.hud-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(41, 214, 115, 0.78);
}

.hud-state {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.014em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
}

.hud-said {
  display: none;
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-right {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 1px;
  margin-left: 6px;
}

.hud-time {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.66);
}

.hud-hint {
  font-size: 9px;
  letter-spacing: -0.004em;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* ─── pasted ─── */

.hud.is-done .hud-badge {
  background: #0b1a11;
  box-shadow: inset 0 0 0 1.2px rgba(41, 214, 115, 0.62);
}

.hud.is-done .hud-badge .mark {
  display: none;
}

.hud.is-done .hud-tick,
.hud.is-done .hud-done-tick {
  display: block;
}

.hud.is-done .hud-state {
  color: rgba(41, 214, 115, 0.86);
}

.hud.is-done .hud-dot,
.hud.is-done .wave,
.hud.is-done .hud-time,
.hud.is-done .hud-hint {
  display: none;
}

.hud.is-done .hud-said {
  display: block;
}

/* ─── waveform ─── */

.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  overflow: hidden;
}

.wave i {
  flex: none;
  width: 2px;
  height: 100%;
  border-radius: 99px;
  background: rgba(41, 214, 115, 0.55);
  transform: scaleY(var(--h, 0.4));
  transition: transform 320ms var(--ease-out);
}

.wave.live i {
  animation: wv 720ms var(--ease-io) infinite alternate;
  animation-delay: calc(var(--i) * -47ms);
}

@keyframes wv {
  from {
    transform: scaleY(0.16);
  }
  to {
    transform: scaleY(var(--h, 0.8));
  }
}

/* ═════════════  THE STREAM  ═════════════
   Arrive, strike, collapse, settle. The strike is the one red on the
   page, and it only ever marks a word Celery genuinely deletes. */

.stream {
  letter-spacing: -0.012em;
}

.w {
  position: relative;
  display: inline-block;
  max-width: 14em;
  padding-right: 0.27em;
  white-space: pre;
  transform: translateY(var(--y, 0.4em)) rotate(calc(var(--wob, 0) * var(--wm, 1) * 0.3deg));
  transition: opacity 300ms var(--ease-out), transform 460ms var(--ease-out), color 420ms ease,
    max-width 320ms var(--ease-io), padding-right 320ms var(--ease-io), filter 140ms linear;
}

.js .stream[data-stream] .w {
  opacity: 0;
}

.js .stream[data-stream] .w.in {
  opacity: 1;
  --y: calc(var(--wob, 0) * var(--wm, 1) * 0.06em);
}

.stream.is-raw .w {
  color: var(--text-3);
}

.stream.is-clean .w.in,
.stream.is-typed .w.in {
  --wm: 0;
  color: var(--text);
}

.w.cut {
  color: var(--strike);
}

.w.cut::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.27em;
  top: 54%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}

.w.cut.struck::after {
  transform: scaleX(1);
}

.w.gone {
  opacity: 0 !important;
  max-width: 0 !important;
  padding-right: 0;
  filter: blur(2px);
}

.w.fixing {
  opacity: 0.2 !important;
  filter: blur(2.5px);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  border-radius: 1px;
  background: var(--live);
  vertical-align: text-bottom;
  animation: blink 1.15s steps(1, end) infinite;
}

.caret.is-typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ─────────  scroll reveal  ───────── */

.js [data-observe] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

.js [data-observe].in-view {
  opacity: 1;
  transform: none;
}

/* ═════════════  CENTREPIECE  ═════════════ */

.cp-wrap {
  position: relative;
  height: 260vh;
}

.cp-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  background: var(--bg);
}

.cp-text {
  max-width: 1000px;
  padding-inline: var(--gutter);
  font-size: clamp(26px, 4.8vw, 58px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.032em;
  text-align: center;
}

/* Both labels occupy one grid cell so the crossfade doesn't shift the
   sentence underneath by a pixel. */
.cp-label {
  display: grid;
  place-items: center;
}

.cp-label > span {
  grid-area: 1 / 1;
  transition: opacity 320ms var(--ease-out);
}

.cp-label-clean {
  opacity: 0;
  color: var(--live-dim);
}

.cp-stage.is-clean .cp-label-raw {
  opacity: 0;
}

.cp-stage.is-clean .cp-label-clean {
  opacity: 1;
}

.cp-hint {
  position: absolute;
  bottom: clamp(30px, 5vw, 54px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
  transition: opacity 400ms ease;
}

.cp-hint.is-gone {
  opacity: 0;
}

/* ═════════════  PROOF  ═════════════ */

.ledger {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--edge-2);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.ledger-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
}

.ledger-rule {
  height: 1px;
  margin-block: clamp(20px, 2.6vw, 30px);
  background: var(--edge-2);
}

.heard {
  font-family: var(--mono);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--text-3);
}

.heard s {
  color: var(--strike);
  text-decoration-thickness: 1.5px;
}

.typed {
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 550;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Prose in, structure out. The numerals are the one thing Celery adds,
   so they're set in the utility face and kept dimmer than the words —
   scaffolding around your sentences, not part of them. */
.typed-out {
  display: grid;
  gap: 15px;
}

.typed-lead,
.typed-list li {
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--text);
}

.typed-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.typed-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  counter-increment: item;
}

.typed-list li::before {
  content: counter(item) ".";
  font-family: var(--mono);
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
  color: var(--text-4);
}

/* Each line arrives after the one above it, so the list assembles. */
.js [data-line] {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out);
}

.js [data-line].in {
  opacity: 1;
  transform: none;
}

.triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  max-width: 900px;
  margin: clamp(44px, 5vw, 68px) auto 0;
}

/* ═════════════  EVERYWHERE  ═════════════ */

/* ═════════════  PRICING  ═════════════ */

/* ═════════════  PRICING  ═════════════
   Three plans, the middle one carried. Free has no price to switch,
   so the billing control belongs to the section, not to each card. */

.billing {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  margin: 0 auto clamp(30px, 3.6vw, 44px);
  border: 1px solid var(--edge-2);
  border-radius: 999px;
  background: var(--bg-2);
}

.bill-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.008em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .bill-opt:hover {
    color: var(--text-2);
  }
}

.bill-opt.is-on {
  background: #23252a;
  color: var(--text);
}

.bill-save {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(41, 214, 115, 0.85);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--edge-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

/* The one we expect people to pick, lifted rather than recoloured. */
.plan-lead {
  border-color: rgba(41, 214, 115, 0.28);
  background: linear-gradient(180deg, #16211a, var(--bg-2));
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95);
}

.plan-flag {
  position: absolute;
  top: clamp(24px, 2.6vw, 32px);
  right: clamp(24px, 2.6vw, 32px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(41, 214, 115, 0.12);
  box-shadow: inset 0 0 0 1px rgba(41, 214, 115, 0.28);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(41, 214, 115, 0.9);
}

.plan-name {
  margin: 0;
  padding-right: 90px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-for {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
}

.plan-price {
  display: flex;
  align-items: flex-start;
  margin-top: 22px;
  font-size: clamp(38px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-price .cur {
  margin-top: 0.16em;
  font-size: 0.5em;
  color: var(--text-2);
}

.plan-cycle {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--edge-2);
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

/* A tick drawn in CSS — one less request, and it inherits the green. */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid rgba(41, 214, 115, 0.7);
  border-bottom: 1.6px solid rgba(41, 214, 115, 0.7);
  transform: rotate(-45deg);
}

.plan-plus {
  padding-left: 0;
  color: var(--text-3);
  font-weight: 550;
}

.plan-plus::before {
  display: none;
}

/* Buttons sit on the same line across all three cards. */
.plan .btn {
  margin-top: auto;
}

.btn-line {
  border-color: var(--edge);
  background: transparent;
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .btn-line:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
  }
}

.sec-end {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.beams-end {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000 10%, transparent 72%);
  opacity: 0.75;
}

.sec-end .shell {
  position: relative;
}

.end-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-3);
  letter-spacing: -0.01em;
}

.end-title {
  margin-top: 14px;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -0.04em;
}

/* ═════════════  FOOTER  ═════════════ */

.footer {
  border-top: 1px solid var(--edge-2);
  padding-block: 52px 34px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-cols {
  display: flex;
  gap: clamp(30px, 5vw, 72px);
}

.footer-cols div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-cols p {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.footer-cols a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 170ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-cols a:hover {
    color: var(--text);
  }
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--edge-2);
  font-size: 12.5px;
  color: var(--text-4);
}

/* ═════════════  LEGAL PAGES  ═════════════ */

.prose {
  max-width: 660px;
  margin-inline: auto;
  padding-block: clamp(60px, 8vw, 110px);
}

.prose h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 10px;
}

.prose .updated {
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.prose h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 20px;
}

.prose p,
.prose li {
  margin-bottom: 13px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.prose ul {
  padding-left: 20px;
  margin: 0 0 13px;
  list-style: disc;
}

.prose a {
  color: var(--live);
}

/* ═════════════════════  RESPONSIVE  ═════════════════════ */

@media (max-width: 980px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }
}

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

  .nav-pill {
    justify-content: space-between;
    gap: 12px;
  }

  .triple {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .row .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 26px 40px;
  }

  .footer-base {
    flex-direction: column;
    gap: 6px;
  }
}

/* ═════════════════════  REDUCED MOTION  ═════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-observe],
  .js .load-1,
  .js .load-2,
  .js .load-3,
  .js .load-4,
  .js .load-5 {
    opacity: 1;
    transform: none;
  }

  .js .stream[data-stream] .w {
    opacity: 1;
    --wm: 0;
  }

  /* No scroll-jacking without motion: the sentence just sits settled. */
  .cp-wrap {
    height: auto;
  }

  .cp-stage {
    position: static;
    height: auto;
    padding-block: clamp(80px, 10vw, 130px);
  }

  .cp-hint {
    display: none;
  }
}
