/* Yap landing page. The Mac's own typefaces (SF Pro, with New York italics) and no third-party requests at all:
   a page about privacy shouldn't hand its visitors to a font CDN. */
:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --card: #fff;
  --ink: #1d1d1f;
  --ink-fg: #fff;
  --panel: #000;
  --panel-fg: #f5f5f7;
  --panel-muted: #a1a1a6;
  --panel-line: rgba(255, 255, 255, 0.14);
  --bezel: #1d1d1f;
  --wall: radial-gradient(120% 90% at 20% 0%, #e9e9ee 0%, #dcdce3 45%, #cfd0d8 100%);
  --menubar: rgba(255, 255, 255, 0.55);
  --window: #fff;
  --window-bar: #f6f6f6;
  --bubble: #e9e9eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.12), 0 32px 80px rgba(0, 0, 0, 0.1);
  /* Silver aluminium around black keys, as on a silver MacBook. */
  --deck: linear-gradient(165deg, #eceef1 0%, #dcdee2 45%, #cdd0d5 100%);
  --deck-edge: rgba(255, 255, 255, 0.85);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #101012;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #6e6e73;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --card: #161618;
    --ink: #f5f5f7;
    --ink-fg: #000;
    --panel: #101012;
    --panel-line: rgba(255, 255, 255, 0.1);
    --bezel: #2c2c2e;
    --wall: radial-gradient(120% 90% at 20% 0%, #3a3a42 0%, #26262c 50%, #1b1b20 100%);
    --menubar: rgba(30, 30, 34, 0.6);
    --window: #1e1e20;
    --window-bar: #2a2a2d;
    --bubble: #3a3a3c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45), 0 32px 80px rgba(0, 0, 0, 0.4);
    /* Space black. */
    --deck: linear-gradient(165deg, #3b3c40 0%, #2c2d31 50%, #222326 100%);
    --deck-edge: rgba(255, 255, 255, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; word-spacing: 0.06em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(36px, 5.6vw, 60px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.intro p, .points p { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-fg);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-1px); opacity: 0.88; }
.button:active { transform: translateY(0) scale(0.98); }
.button.secondary { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.button.secondary:hover { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--fg); }
.button.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.button.wide { width: 100%; }
/* Until launch, in place of Buy and Download. */
.button.soon { background: var(--bg-alt); color: var(--muted); cursor: default; }
.button.soon:hover, .button.soon:active { transform: none; opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; }
.nav nav a:not(.button) { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav nav a:not(.button):hover { color: var(--fg); }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(24px, 4vw, 48px); text-align: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 0 auto; max-width: 15ch; line-height: 1; }
.hero .lede { max-width: 36em; margin: 28px auto 34px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); text-wrap: pretty; }
.hero .meta, .closing .meta { margin-top: 18px; font-size: 14px; color: var(--faint); }
.scroll-cue { display: inline-flex; align-items: center; gap: 6px; margin-top: clamp(36px, 6vw, 64px); font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.scroll-cue svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

.rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* The story: once it's on screen, each scene plays out in turn. */
.story { padding: 0; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(56px, 8vw, 110px);
}

.phases { display: flex; gap: 6px; margin: 0 0 30px; padding: 0; list-style: none; }
.phases li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.phases li.on { background: var(--ink); color: var(--ink-fg); }
.phases .glyph { font-size: 14px; }
.scenes { display: grid; }
.caption { grid-area: 1 / 1; }
.js .caption { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.js .caption.active { opacity: 1; transform: none; }
.caption:not(:first-child) { display: none; }
.js .caption:not(:first-child) { display: block; }
.caption h2 { font-size: clamp(32px, 3.6vw, 50px); }
.caption .desc { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--muted); }
.said { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--line-strong); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--fg); }
.said s { color: var(--faint); }
.w { display: inline-block; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.4s; }
.js .w:not(.in) { opacity: 0; transform: translateY(8px); }
.w.struck { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.scene-controls { display: none; align-items: flex-end; gap: 22px; margin-top: 36px; }
.js .scene-controls { display: flex; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tabs button {
  position: relative;
  padding: 4px 0 11px;
  border: 0;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}
.tabs button::before, .tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--line-strong); }
.tabs button::after { background: var(--fg); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.tabs button:hover, .tabs button[aria-pressed="true"] { color: var(--fg); }
.playback {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg);
  cursor: pointer;
}
.playback svg { display: none; width: 12px; height: 12px; fill: currentColor; }
.playback .replay { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.playback[data-state="playing"] .pause, .playback[data-state="paused"] .play, .playback[data-state="ended"] .replay { display: block; }
.tabs button:focus-visible, .playback:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.story.paused .bars i, .story.paused .caret { animation-play-state: paused !important; }

/* The Mac */
.device { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.screen {
  position: relative;
  height: clamp(320px, 54vh, 540px);
  border: clamp(6px, 0.9vw, 11px) solid var(--bezel);
  border-bottom: 0;
  border-radius: clamp(16px, 2.2vw, 26px) clamp(16px, 2.2vw, 26px) 0 0;
  background: var(--wall);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
  --notch-w: clamp(92px, 16%, 140px);
  --notch-h: 24px;
}
.menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--notch-h);
  padding: 0 14px;
  background: var(--menubar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
}
.menus { display: flex; gap: 14px; }
.status { display: flex; align-items: center; gap: 10px; }
.yap-glyph { fill: currentColor; }

/* Yap's overlay, as the app draws it: a black extension of the notch that drops down while you talk. */
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: var(--notch-w);
  height: var(--notch-h);
  background: #000;
  border-radius: 0 0 9px 9px;
  transform: translateX(-50%);
  transition: width 0.35s var(--spring), height 0.35s var(--spring), border-radius 0.35s var(--spring);
}
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 9px; height: 9px; }
.notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 8.5px, #000 9px); }
.notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 8.5px, #000 9px); }
.notch[data-state="listening"] { width: calc(var(--notch-w) + 20px); height: calc(var(--notch-h) + 34px); border-radius: 0 0 16px 16px; }
.notch[data-state="transcribing"] { width: calc(var(--notch-w) + 20px); height: calc(var(--notch-h) + 22px); border-radius: 0 0 16px 16px; }
.bars { display: flex; align-items: center; gap: 3px; height: 34px; opacity: 0; transition: opacity 0.15s; }
.notch[data-state="transcribing"] .bars { height: 22px; }
.notch:not([data-state="idle"]) .bars { opacity: 1; transition-delay: 0.06s; }
.bars i { width: 3px; height: 22px; border-radius: 2px; background: #fff; transform: scaleY(0.14); }
.notch[data-state="listening"] .bars i { animation: murmur 0.9s ease-in-out var(--delay) infinite alternate; }
.notch[data-state="listening"].speaking .bars i { animation: talk var(--d) ease-in-out var(--delay) infinite alternate; }
.notch[data-state="transcribing"] .bars i { background: rgba(255, 255, 255, 0.55); animation: wave 0.55s ease-in-out infinite; animation-delay: calc(var(--i) * -40ms); }
@keyframes murmur { from { transform: scaleY(0.14); } to { transform: scaleY(0.32); } }
@keyframes talk { from { transform: scaleY(0.18); } to { transform: scaleY(var(--peak)); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.14); } 50% { transform: scaleY(0.36); } }

/* App windows, one per scene */
.app {
  position: absolute;
  top: calc(var(--notch-h) + clamp(36px, 5.5vh, 64px));
  left: 50%;
  width: min(580px, 84%);
  border-radius: 14px;
  background: var(--window);
  box-shadow: var(--shadow), 0 0 0 0.5px var(--line-strong);
  overflow: hidden;
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.45;
  transform: translateX(-50%);
}
.app:not(:nth-child(3)) { display: none; }
.js .app { display: block; opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
.js .app.active { opacity: 1; transform: translateX(-50%); }
.titlebar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lights { position: absolute; left: 14px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.row { padding: 9px 18px; border-bottom: 1px solid var(--line); }
.row span { color: var(--muted); margin-right: 4px; }
.mail .body { min-height: 7.5em; padding: 16px 18px; }
.messages .thread { display: grid; gap: 6px; justify-items: start; padding: 18px 16px 10px; }
.bubble { padding: 7px 13px; border-radius: 18px; background: var(--bubble); }
.messages .field { margin: 6px 14px 14px; min-height: 2.4em; padding: 7px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.note { padding: 18px 22px 22px; min-height: 9.5em; }
.note p { color: var(--muted); }
.note .title { margin-bottom: 6px; color: var(--fg); font-size: 1.35em; font-weight: 700; letter-spacing: -0.01em; }
.note .new { color: var(--fg); }
.assistant .hello { padding: 28px 18px 18px; text-align: center; font-size: 1.25em; font-weight: 600; letter-spacing: -0.01em; }
.prompt { display: flex; align-items: flex-end; gap: 10px; margin: 0 16px 16px; min-height: 4.6em; padding: 12px 12px 12px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.prompt p { flex: 1; align-self: flex-start; }
.send { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.send svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: #0a84ff; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app.pasted .out { animation: paste 0.24s var(--ease); }
@keyframes paste { from { opacity: 0; filter: blur(3px); } }

/* The keyboard close-up: the bottom-right corner of a MacBook keyboard. Each key sits in its own cut-out in the
   aluminium; pressing Right Option sinks its cap by --press (0 to 1). */
.keyboard {
  --u: clamp(42px, 5vw, 74px);
  --g: calc(var(--u) * 0.1);
  position: absolute;
  right: clamp(-28px, -2vw, 0px);
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--g);
  width: calc(var(--u) * 6.5);
  padding: calc(var(--u) * 0.32);
  border-radius: calc(var(--u) * 0.42);
  /* Fine grain over the gradient, like bead-blasted aluminium. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), var(--deck);
  box-shadow: inset 0 1px 0 var(--deck-edge), 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 30px 70px rgba(0, 0, 0, 0.28), 0 8px 20px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.krow { display: flex; align-items: flex-end; justify-content: flex-end; gap: var(--g); }
.key {
  position: relative;
  flex: none;
  width: calc(var(--u) * var(--w, 1) + var(--g) * (var(--w, 1) - 1));
  height: var(--u);
  border-radius: calc(var(--u) * 0.13);
  /* The dark gap around each key, where the backlight sits. */
  background: #050505;
  box-shadow: inset 0 calc(var(--u) * 0.02) calc(var(--u) * 0.05) rgba(0, 0, 0, 0.9), 0 1px 0 var(--deck-edge);
}
.key.half { height: calc((var(--u) - var(--g) / 2) / 2); }
.pair { display: grid; gap: calc(var(--g) / 2); }
.cap {
  position: absolute;
  inset: calc(var(--u) * 0.035);
  border-radius: calc(var(--u) * 0.105);
  background: linear-gradient(180deg, #2a2a2c 0%, #1e1e20 46%, #18181a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.55),
    0 calc(var(--u) * 0.03) calc(var(--u) * 0.02) rgba(0, 0, 0, 0.7);
  color: rgba(244, 244, 246, 0.92);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1;
}
.option .cap {
  transform: translateY(calc(var(--press) * var(--u) * 0.05)) scale(calc(1 - var(--press) * 0.03));
  filter: brightness(calc(1 - var(--press) * 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, calc(0.09 - var(--press) * 0.05)),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.55),
    0 calc(var(--u) * 0.03 * (1 - var(--press))) calc(var(--u) * 0.02) rgba(0, 0, 0, 0.7);
}
/* Down quickly, back up a touch slower, like a real key. */
@property --press { syntax: "<number>"; inherits: true; initial-value: 0; }
.option { --press: 0; transition: --press 0.15s cubic-bezier(0.25, 0.8, 0.3, 1); }
.option.down { --press: 1; transition-duration: 0.07s; }
.cap b { position: absolute; font-weight: 400; }
.cap .mid { inset: 0; display: grid; place-items: center; font-size: calc(var(--u) * 0.26); }
.cap .top, .cap .bottom { left: 0; right: 0; text-align: center; font-size: calc(var(--u) * 0.23); }
.cap .top { top: 16%; }
.cap .bottom { bottom: 16%; }
.cap .tl, .cap .bl { left: 13%; }
.cap .tr, .cap .br { right: 13%; }
.cap .tl, .cap .tr { top: 13%; font-size: calc(var(--u) * 0.2); }
.cap .bl, .cap .br { bottom: 14%; font-size: calc(var(--u) * 0.155); letter-spacing: 0.01em; }
.cap .arrow { position: absolute; inset: 0; margin: auto; width: calc(var(--u) * 0.24); height: calc(var(--u) * 0.24); fill: currentColor; }

/* Secure by default */
.secure { background: var(--panel); color: var(--panel-fg); border-block: 1px solid var(--panel-line); }
.secure .intro p, .secure .points p { color: var(--panel-muted); }
.secure .intro { max-width: 1040px; margin: 0 auto; }
.secure h2 { margin-top: 14px; }
.secure .intro p { margin-top: 22px; max-width: 34em; font-size: 19px; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); max-width: 1040px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 0; list-style: none; }
.points li { padding-top: 22px; border-top: 1px solid var(--panel-line); }
.points svg { width: 28px; height: 28px; margin-bottom: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.points h3 { margin-bottom: 6px; }
.points p { font-size: 16px; }

/* Comparison */
.compare { max-width: calc(1040px + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 96px); align-items: end; }
.compare .intro p { margin-top: 22px; max-width: 30em; }
.tally { display: grid; gap: 10px; }
.tally > div { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px; border-radius: 18px; }
.tally .who { font-size: 15px; font-weight: 600; }
.tally .sum { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tally .them { background: var(--bg-alt); color: var(--muted); }
.tally .them .sum { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--faint); }
.tally .us { background: var(--ink); color: var(--ink-fg); }
.table-wrap { grid-column: 1 / -1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 15px; color: var(--muted); font-weight: 600; }
thead th:nth-child(2) { color: var(--fg); }
tbody th { font-weight: 500; color: var(--muted); width: 30%; }
td { color: var(--muted); }
td b { color: var(--fg); font-weight: 600; }
.footnote { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* Pricing */
.pricing { background: var(--bg-alt); text-align: center; }
.card {
  max-width: 420px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.08);
  text-align: left;
}
.plan { font-size: 15px; font-weight: 600; color: var(--muted); }
.amount { display: flex; align-items: baseline; margin: 6px 0 22px; font-size: 88px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.currency { align-self: flex-start; margin-top: 10px; font-size: 36px; letter-spacing: 0; }
.amount em { margin-left: 12px; font: italic 400 30px var(--serif); letter-spacing: -0.01em; color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 17px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  transform: translateY(3px);
  border-radius: 5px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.text-link { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.fine { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }
.teams { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; }
.faq h2 { margin-bottom: clamp(28px, 4vw, 44px); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--muted); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; max-width: 40em; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding-bottom: clamp(96px, 14vw, 170px); }
.closing img { margin: 0 auto 20px; }
.closing h2 { max-width: 16ch; margin: 0 auto 36px; font-size: clamp(38px, 6vw, 72px); }

footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Scroll reveals, only when scripts run */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].shown { opacity: 1; transform: none; }
.points li:nth-child(2) { transition-delay: 0.08s; }
.points li:nth-child(3) { transition-delay: 0.16s; }
.points li:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
  /* The story stacks: words on top, the Mac underneath. */
  .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 80px; padding-bottom: 64px; }
  .phases { margin-bottom: 14px; }
  .caption h2 { font-size: clamp(28px, 7vw, 40px); }
  .caption .desc { margin-top: 10px; font-size: 16px; }
  .said { margin-top: 14px; font-size: 16px; }
  .scene-controls { margin-top: 22px; }
  .device { padding-bottom: 0; }
  .screen { height: clamp(280px, 92vw, 440px); }
  .app { top: calc(var(--notch-h) + 26px); width: 90%; }
  .keyboard { --u: clamp(36px, 10.5vw, 50px); right: -6px; bottom: -4px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hide-small { display: none; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .actions .button { flex: 1 1 100%; }
  .amount { font-size: 76px; }
  th, td { padding: 14px 8px; font-size: 15px; }
  tbody th { width: 34%; }
  .tally > div { padding: 16px 18px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
