/* Handled — tokens come from the app (ZephrUI). Light and dark follow the system. */
:root {
  --canvas: #ffffff;
  --surface: #f7f7f7;
  --card: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #3f3f46;
  --muted: #5c5c5c;
  --faint: #a3a3a3;
  --line: #f5f5f6;
  --line-strong: #ededf0;
  --button: #222222;
  --accent: #013fd9;
  --danger: #c81e2b;
  --done: #55555a;
  --live: #141416;

  --glass-bg: rgb(255 255 255 / .62);
  --glass-edge: rgb(255 255 255 / .7);
  --glass-ring: rgb(0 0 0 / .07);
  --glass-shadow: 0 6px 20px rgb(0 0 0 / .06), 0 1px 2px rgb(0 0 0 / .04);
  --thumb: rgb(0 0 0 / .075);
  --bezel: #0d0d0f;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: 24px;
  --edge: max(var(--gutter), calc((100% - 1100px) / 2)); /* keeps the nav and footer to the 1100px column */
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b0b0c;
    --surface: #151517;
    --card: #1c1c1e;
    --ink: #f7f7f8;
    --ink-soft: #d4d4d8;
    --muted: #9a9aa2;
    --faint: #6a6a72;
    --line: #1c1c1f;
    --line-strong: #252528;
    --button: #f4f4f5;
    --accent: #568df1;
    --danger: #f2646f;
    --done: #8a8a92;

    --glass-bg: rgb(44 44 48 / .6);
    --glass-edge: rgb(255 255 255 / .08);
    --glass-ring: rgb(255 255 255 / .04);
    --glass-shadow: 0 6px 20px rgb(0 0 0 / .35);
    --thumb: rgb(255 255 255 / .12);
    --bezel: #26262a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-optical-sizing: auto;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.wrap { width: min(1100px, 100% - var(--gutter) * 2); margin-inline: auto; }
.ic { width: 20px; height: 20px; stroke-width: 1.9; flex: none; }
.ic-s { width: 14px; height: 14px; }

/* Liquid Glass */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 .5px var(--glass-ring), var(--glass-shadow);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .22s ease-in-out, box-shadow .22s ease-in-out, opacity .22s ease-in-out;
}
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--button); color: var(--canvas); }
.btn-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 .5px var(--glass-ring), 0 1px 2px rgb(0 0 0 / .04);
}
.btn .apple { width: 17px; height: 17px; margin: -2px 7px 0 -3px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-glass:hover { box-shadow: 0 0 0 .5px var(--glass-ring), 0 2px 6px rgb(0 0 0 / .08); }
.btn-primary:hover { opacity: .88; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--edge);
  padding-top: max(14px, env(safe-area-inset-top));
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -18px 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
  opacity: 0; transition: opacity .3s ease;
}
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.nav-actions { display: flex; gap: 8px; }

/* ── 1 · Stage ─────────────────────────────────────────────── */
.stage { height: 460vh; position: relative; }
.stage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.pattern { position: absolute; pointer-events: none; color: var(--ink); }
.pattern-ripples { left: 0; bottom: 0; width: min(760px, 100%); height: min(520px, 70%); opacity: .7; }

.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; left: var(--x); top: var(--y); will-change: transform, opacity; }
.chip.r { left: auto; right: var(--x); }
.chip-in {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  font-size: 15px; letter-spacing: -.012em; white-space: nowrap; rotate: var(--r);
  animation: chipIn 1s var(--ease) both, chipBob 7s ease-in-out infinite;
  animation-delay: calc(.25s + var(--n) * .09s), calc(var(--n) * -1.3s);
}
.chip-in .ic { width: 17px; height: 17px; color: var(--muted); }
.chip-in .tick { display: block; width: 18px; height: 18px; }
.chip-in em { font-style: normal; color: var(--faint); }
.chip-in .over { font-weight: 400; font-size: 13px; height: 20px; }
@keyframes chipIn { from { opacity: 0; scale: .7; } }
@keyframes chipBob { 50% { translate: 0 -9px; } }
@media (max-width: 1200px) { .chip.mid { display: none; } .chip { --x: 3% !important; } }
@media (max-width: 760px) {
  .chip-in { height: 33px; font-size: 13px; padding: 0 12px 0 9px; gap: 7px; }
  .chip-in .tick, .chip-in .ic { width: 15px; height: 15px; }
  .chip:nth-child(1) { --x: 5% !important; --y: 13% !important; }
  .chip:nth-child(4) { --x: 5% !important; --y: 19% !important; }
  .chip:nth-child(3), .chip:nth-child(6) { display: none; }
}

.hero-copy {
  grid-area: 1 / 1;
  width: min(640px, 100% - 40px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: -2vh;
}
.hero-text { will-change: transform, opacity, filter; }
.hero-copy h1 { font-size: clamp(54px, 9vw, 116px); white-space: nowrap; }
.swap { display: inline-block; position: relative; font-style: italic; padding-right: .03em; transition: width .7s var(--ease); }
.swap span { display: inline-block; }
.swap .out { position: absolute; left: 0; top: 0; animation: swapOut .55s var(--ease) forwards; }
.swap .in { animation: swapIn .75s var(--ease) both; }
@keyframes swapOut { to { opacity: 0; transform: translateY(-.32em); filter: blur(10px); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(.32em); filter: blur(10px); } }
.hero-copy .lede { margin-top: 20px; }
.hero-slot { width: 100%; margin-top: clamp(36px, 6vh, 64px); aspect-ratio: 378 / 45; }
.hero-hint { margin-top: 22px; font-size: 14px; color: var(--faint); will-change: opacity; }

/* Phone — built at 402 × 874pt, scaled to fit with --ps */
.phone-wrap {
  --ps: 1;
  grid-area: 1 / 1;
  width: calc(422px * var(--ps)); height: calc(894px * var(--ps));
  margin-top: 44px;
  will-change: transform;
}
.phone {
  width: 422px; height: 894px; padding: 10px;
  transform: scale(var(--ps)); transform-origin: 0 0;
  border-radius: 66px;
  background: var(--bezel);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 40px 80px -30px rgb(0 0 0 / .28), 0 12px 30px -12px rgb(0 0 0 / .12);
  font: 400 16px/20px var(--sans);
  letter-spacing: -.012em;
  -webkit-user-select: none; user-select: none;
}
.screen {
  position: relative; width: 402px; height: 874px;
  border-radius: 56px; overflow: hidden;
  background: var(--canvas); color: var(--ink);
  isolation: isolate;
}
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 30; }
.statusbar { position: absolute; inset: 0 0 auto 0; height: 58px; z-index: 29; display: flex; justify-content: space-between; align-items: center; padding: 3px 34px 0 50px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-right svg { fill: currentColor; }

.app-head { position: absolute; inset: 59px 16px auto 17px; height: 49px; z-index: 12; display: flex; align-items: center; justify-content: space-between; }
.avatar { position: relative; width: 46px; height: 46px; }
.avatar img { width: 46px; height: 46px; border-radius: 50%; }
.badge { position: absolute; right: -15px; top: 8px; width: 17px; height: 17px; border-radius: 50%; background: #2f6be4; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--canvas), 0 1px 3px rgb(0 0 0 / .2); }
.circle { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.circle.sm { width: 32px; height: 32px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 31px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.seg { position: absolute; left: 50%; margin-left: -62px; width: 123px; height: 49px; border-radius: 999px; display: flex; padding: 4px; }
.seg button { flex: 1; position: relative; z-index: 1; font-size: 16px; font-weight: 500; }
.seg-thumb { position: absolute; top: 4px; left: 4px; width: 57px; height: 39px; border-radius: 999px; background: var(--thumb); transition: transform .45s var(--ease); }
.phone[data-tab="mind"] .seg-thumb { transform: translateX(56px); }

.view { position: absolute; inset: 0; padding: 127px 21px 120px; overflow: hidden; transition: opacity .35s ease, transform .5s var(--ease); }
.phone[data-tab="today"] .view-mind, .phone[data-tab="mind"] .view-today { opacity: 0; pointer-events: none; }
.phone[data-tab="today"] .view-mind { transform: translateX(24px); }
.phone[data-tab="mind"] .view-today { transform: translateX(-24px); }
.view::after { content: ""; position: absolute; inset: auto 0 0 0; height: 130px; background: linear-gradient(to top, var(--canvas) 62%, transparent); pointer-events: none; }

.date-row { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.date-row strong { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.pager { width: 79px; height: 33px; border-radius: 999px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.pager .ic { width: 15px; height: 15px; stroke-width: 2.4; }

.blk { margin-top: 32px; }
.blk:first-of-type { margin-top: 33px; }
.blk h3 { font-size: 16px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; height: 20px; }
.blk h3 em { font-style: normal; font-weight: 400; color: var(--faint); }
.blk h3 .ic { color: var(--faint); stroke-width: 2.2; }
.t-meta { display: block; color: var(--muted); }
.t-title { display: block; }
.inv { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; }
.inv-actions { display: flex; gap: 5px; }
.inv .pill { min-width: 43px; }
.ev { display: block; position: relative; width: 100%; text-align: left; margin-top: 15px; line-height: 19.5px; letter-spacing: inherit; }
h3 + .ev { margin-top: 17px; }
.ev .join { position: absolute; right: 0; top: 4px; min-width: 61px; }
.ev.past .t-title { color: var(--faint); }
.ev.past .join { display: none; }

.todos { margin-top: 9px; }
.todo { display: flex; align-items: center; gap: 15px; min-height: 54px; padding: 8px 0; line-height: 18.5px; }
.todo .t-title { flex: 1; min-width: 0; text-align: left; letter-spacing: inherit; transition: color .4s ease; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1px; }
.todo .t-title small { display: block; font-size: 16px; color: var(--faint); margin-top: 2px; }
.view-today .todos { padding-left: 2px; }
.view-today .todo { gap: 16px; }
.tick { width: 21px; height: 21px; border-radius: 50%; flex: none; border: 1.5px solid #d6d6d9; position: relative; transition: background .25s ease, border-color .25s ease, transform .3s var(--ease); }
@media (prefers-color-scheme: dark) { .tick { border-color: #45454b; } }
.tick::after { content: ""; position: absolute; left: 5.5px; top: 5.5px; width: 8px; height: 4.5px; border: solid var(--canvas); border-width: 0 0 1.6px 1.6px; transform: rotate(-48deg) scale(0); transition: transform .3s var(--ease); }
.tick:active { transform: scale(.88); }
.todo.done .tick { background: var(--done); border-color: var(--done); }
.todo.done .tick::after { transform: rotate(-48deg) scale(1); }
.todo.done .t-title { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.todo.done .over, .todo.done .when { opacity: 0; }
.over { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); height: 22px; padding: 0 8px; border-radius: 999px; font-size: 15px; display: inline-flex; align-items: center; transition: opacity .3s; }
.when { color: var(--muted); white-space: nowrap; transition: opacity .3s; }
.ic-g { color: var(--muted); width: 15px; height: 15px; margin-right: -7px; }
.todo.is-new { animation: rowIn .6s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; min-height: 0; height: 0; padding-block: 0; transform: translateY(-6px); } to { opacity: 1; height: 54px; } }
.blk-pinned { margin-top: 24px; }
.blk-inv { transition: opacity .4s ease, height .5s var(--ease), margin .5s var(--ease); overflow: hidden; height: 77px; }
.blk-inv.gone { opacity: 0; height: 0; margin-top: 0; }

/* stagger the Today rows in once the bar has landed */
.view-today > * { transition: opacity .6s ease, transform .8s var(--ease), height .5s var(--ease), margin .5s var(--ease); }
.phone:not(.is-live) .view-today > *, .phone:not(.is-live) .app-head { opacity: 0; transform: translateY(14px); }
.app-head { transition: opacity .6s ease, transform .8s var(--ease); }
.phone.is-live .view-today > :nth-child(2) { transition-delay: .07s; }
.phone.is-live .view-today > :nth-child(3) { transition-delay: .14s; }
.phone.is-live .view-today > :nth-child(4) { transition-delay: .21s; }
.phone.is-live .view-today > :nth-child(5) { transition-delay: .28s; }

/* Mind */
.view-mind { padding: 130px 21px 120px 19px; }
.log-day { text-align: center; font-size: 12px; color: var(--faint); margin: 30px 0 22px; }
.bm { display: flex; gap: 15px; align-items: flex-start; line-height: 19px; margin-bottom: 11px; }
.bm small { display: block; font-size: 16px; color: var(--faint); }
.fav { width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; background: var(--ink); color: var(--canvas); display: grid; place-items: center; flex: none; font: 600 13px/1 var(--serif); }
.fav .ic { width: 13px; height: 13px; }
.filter { position: absolute; left: 50%; margin-left: -23px; top: 723px; z-index: 11; width: 46px; height: 46px; transition: opacity .3s ease, transform .5s var(--ease); }
.phone[data-tab="today"] .filter { opacity: 0; transform: scale(.7); pointer-events: none; }

/* Sheets */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgb(0 0 0 / .2); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.sheet { position: absolute; z-index: 21; inset: 413px 9px 9px 9px; border-radius: 38px 38px 47px 47px; background: var(--card); padding: 16px 14px; transform: translateY(calc(100% + 12px)); transition: transform .55s var(--ease); box-shadow: 0 -10px 40px rgb(0 0 0 / .08); overflow: hidden; }
.phone[data-sheet] .scrim { opacity: 1; pointer-events: auto; }
.phone[data-sheet="event"] #sheetEvent, .phone[data-sheet="todo"] #sheetTodo { transform: none; }
.grab { position: absolute; top: 6px; left: 50%; width: 58px; height: 4px; margin-left: -29px; border-radius: 4px; background: var(--faint); opacity: .7; }
.sheet-bar { display: flex; justify-content: space-between; }
.sheet-bar .circle { width: 44px; height: 44px; }
.done-btn { height: 44px; padding: 0 17px; font-size: 17px; }
.sh-title { display: flex; align-items: center; gap: 11px; margin: 13px 0 0 14px; font-size: 17px; height: 20px; }
.sh-title strong, .sh-todo strong { font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9fe3e6; margin-top: -4px; }
.sh-meta { margin: 4px 0 0 35px; color: var(--muted); }
.meet { margin: 13px 0 0 34px; height: 39px; padding: 0 16px 0 15px; gap: 8px; font-size: 15px; }
.sh-row { display: flex; align-items: center; gap: 10px; margin: 0 0 0 15px; height: 30px; color: var(--ink-soft); }
.meet + .sh-row { margin-top: 13px; }
.sh-row .ic-s { color: var(--muted); margin-left: 2px; }
.sh-guests { margin-top: 8px; }
.sh-guests .ic-g { width: 17px; height: 17px; margin: 0; }
.sh-guest { display: flex; align-items: center; gap: 12px; margin-left: 46px; height: 25px; color: var(--ink-soft); }
.sh-guest span { color: var(--faint); margin-left: -3px; }
.sh-todo { display: flex; align-items: center; gap: 13px; margin: 14px 0 0 5px; font-size: 17px; }
.sh-notes { margin: 5px 0 0 39px; color: var(--faint); }
.chips { display: flex; gap: 7px; align-items: center; margin: 17px 0 0 38px; }
.chip-red { color: var(--danger); gap: 7px; font-size: 14px; height: 32px; }
.steps { margin: 15px 0 0 20px; }
.steps .todo { min-height: 33.6px; padding: 7px 0; gap: 12px; }
.steps .tick { width: 18px; height: 18px; }
.steps .tick::after { left: 4.2px; top: 4.2px; width: 7px; height: 4px; }
.grip { width: 14px; height: 14px; color: var(--faint); margin-right: 2px; }

/* The write bar */
.composer {
  position: absolute; left: 0; top: 0; z-index: 15;
  width: 378px; height: 45px;
  display: flex; align-items: center; gap: 8px;
  transform-origin: 0 0; will-change: transform;
  transition: opacity .3s ease;
  font: 400 16px/20px var(--sans);
}
.composer .bar { flex: 1; height: 41px; border-radius: 999px; display: flex; align-items: center; padding: 0 17px; cursor: text; }
.composer input { width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); letter-spacing: -.012em; caret-color: var(--accent); }
.composer input::placeholder { color: var(--faint); opacity: 1; }
.composer .mic { cursor: default; }
.stage-sticky.sheet-open .composer { opacity: 0; pointer-events: none; }

/* Captions */
.captions { grid-area: 1 / 1; width: min(1180px, 100% - 48px); display: flex; justify-content: space-between; align-items: center; pointer-events: none; margin-top: 44px; }
.cap-titles, .cap-notes { width: calc(50% - 280px); display: grid; }
.cap-titles { text-align: right; }
.cap-titles h2 { font-size: clamp(34px, 3.6vw, 54px); }
.cap-notes p { font-size: 16px; color: var(--muted); max-width: 270px; }
.cap { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .7s var(--ease); align-self: center; }
.captions[data-phase="today"] .cap[data-phase="today"],
.captions[data-phase="sheet"] .cap[data-phase="sheet"],
.captions[data-phase="mind"] .cap[data-phase="mind"] { opacity: 1; transform: none; }
.cap-dots { grid-area: 2 / 1; display: flex; gap: 6px; margin-top: 22px; opacity: 0; transition: opacity .5s; }
.captions[data-phase] .cap-dots { opacity: 1; }
.cap-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line-strong); transition: width .5s var(--ease), background .4s; }
.captions[data-phase="today"] .cap-dots i[data-phase="today"],
.captions[data-phase="sheet"] .cap-dots i[data-phase="sheet"],
.captions[data-phase="mind"] .cap-dots i[data-phase="mind"] { width: 22px; background: var(--ink); }
@media (max-width: 980px) { .captions { display: none; } }

/* ── 2 · Statement ─────────────────────────────────────────── */
.statement { padding: clamp(96px, 16vw, 220px) var(--gutter); }
.statement p { max-width: 1040px; margin: 0 auto; text-align: center; font-size: clamp(34px, 5.6vw, 88px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.statement .w { transition: opacity .25s linear; white-space: nowrap; }
.tok { display: inline-flex; vertical-align: middle; position: relative; top: -.085em; height: .8em; margin: 0 .02em; transition: opacity .25s linear, transform .6s var(--ease); }
.tok-app img { height: 100%; width: auto; border-radius: 50%; box-shadow: 0 .06em .18em rgb(0 0 0 / .14); }
.tok-stack i {
  position: relative; width: .8em; height: .8em; border-radius: 50%; display: grid; place-items: center; cursor: default;
  background: var(--ink); color: var(--canvas); box-shadow: 0 0 0 .035em var(--canvas);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.tok-stack i + i { margin-left: -.2em; }
.tok-stack i:hover { transform: translateY(-.14em); z-index: 2; }
.tok-stack i::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 7px 12px; border-radius: 999px;
  background: var(--ink); color: var(--canvas); font: 500 13px/1 var(--sans); letter-spacing: 0; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px) scale(.8); transform-origin: 50% 100%; filter: blur(4px);
  transition: opacity .2s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1), filter .25s ease;
}
.tok-stack i:hover::after { opacity: 1; transform: translate(-50%, 0) scale(1); filter: none; }
.tok-stack .ic, .tok-lock .ic { width: .4em; height: .4em; stroke-width: 1.7; }
.tok-lock { width: .8em; border-radius: 50%; background: var(--surface); align-items: center; justify-content: center; color: #ff553b; }
@media (prefers-color-scheme: dark) { .tok-lock { color: #ff7a5f; } }

/* ── 3 · Four things ───────────────────────────────────────── */
.eyebrow { font-size: 14px; color: var(--faint); margin-bottom: 20px; }
.four { padding-bottom: clamp(32px, 5vw, 72px); max-width: 940px; }
.four-list li { display: grid; grid-template-columns: 34px 1fr 290px; align-items: center; column-gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-strong); cursor: default; }
.four-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.four-list li > * { transition: opacity .3s ease, transform .5s var(--ease), color .22s ease-in-out; }
.four-list .ic { width: 22px; height: 22px; color: var(--muted); }
.four-list h3 { font-size: clamp(34px, 5vw, 58px); }
.four-list p { font-size: 16px; line-height: 1.45; color: var(--muted); }
.four-list p b { display: block; font-weight: 500; color: var(--ink); }
@media (hover: hover) {
  .four-list:hover li:not(:hover) > * { opacity: .28; }
  .four-list li:hover h3 { transform: translateX(8px); }
  .four-list li:hover .ic { color: var(--ink); }
}

/* a small widget follows the pointer down the list */
.peek { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.pk {
  position: absolute; left: -92px; top: -92px; width: 184px; height: 184px; padding: 18px; border-radius: 32px;
  background: var(--card); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -18px rgb(0 0 0 / .22), 0 8px 20px -8px rgb(0 0 0 / .1);
  display: flex; flex-direction: column; gap: 7px; overflow: hidden;
  font: 400 14px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink);
  opacity: 0; transform: scale(.5) rotate(-10deg); transition: opacity .2s ease, transform .55s cubic-bezier(.3, 1.35, .5, 1);
}
.pk.on { opacity: 1; transform: none; }
.pk-over { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; margin-bottom: 3px; }
.pk-over em { font-style: normal; }
.pk-date { color: var(--danger); }
.pk-row { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.pk-row .tick { display: block; width: 17px; height: 17px; }
.pk-row .tick::after { left: 3.7px; top: 3.9px; width: 7px; height: 3.8px; }
.pk-row.done { color: var(--faint); text-decoration: line-through; }
.pk-row.done .tick { background: var(--done); border-color: var(--done); }
.pk-row.done .tick::after { transform: rotate(-48deg) scale(1); }
.pk strong { font-size: 27px; line-height: 1; }
.pk-body { color: var(--muted); }
.pk-foot { margin-top: auto; font-size: 12px; color: var(--faint); }
.pk .fav { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 8px; }
.pk .fav .ic { width: 19px; height: 19px; }
.pk-ev { display: grid; grid-template-columns: 3px 1fr; column-gap: 9px; font-weight: 500; }
.pk-ev i { grid-row: 1 / 3; border-radius: 3px; background: #9fe3e6; }
.pk-ev span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ── 4 · Mind ──────────────────────────────────────────────── */
.live h2, .invite h2 { font-size: clamp(44px, 6vw, 84px); }
.live .lede { margin-top: 18px; }
.demo { height: 372px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; font-size: 17px; letter-spacing: -.012em; }
.demo-list { display: flex; flex-direction: column; justify-content: flex-end; height: 290px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); padding: 0 6px; }
.demo-row { display: flex; align-items: center; gap: 14px; height: 58px; flex: none; animation: demoIn .7s var(--ease) both; }
.demo-row.seed { animation: none; }
.demo-row .tick { pointer-events: none; }
.demo-row .ic { color: var(--muted); width: 19px; height: 19px; }
.demo-row .ic.lead { width: 21px; height: 21px; }
.demo-row span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row .when { white-space: nowrap; }
.demo-row .when { font-size: 16px; }
@keyframes demoIn { from { opacity: 0; height: 0; transform: translateY(18px); } }
.demo-bar { height: 54px; border-radius: 999px; display: flex; align-items: center; padding: 0 22px; color: var(--ink); }
.demo-bar span:empty::before { content: "What's on your mind?"; color: var(--faint); }
.caret { width: 2px; height: 22px; background: var(--accent); margin-left: 2px; border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
.demo-bar span:empty + .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }

/* the dark panel it sits in; the app's dark tokens apply inside */
.live { padding: 0 var(--gutter); margin-top: clamp(40px, 7vw, 100px); }
.live-panel {
  --ink: #f7f7f8; --muted: #9a9aa2; --faint: #6a6a72; --accent: #568df1; --canvas: #141416;
  --glass-bg: rgb(44 44 48 / .6); --glass-edge: rgb(255 255 255 / .08); --glass-ring: rgb(255 255 255 / .04); --glass-shadow: 0 6px 20px rgb(0 0 0 / .35);
  max-width: 1100px; margin: 0 auto; border-radius: 32px; background: var(--live); color: var(--ink);
  padding: clamp(40px, 7vw, 96px); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; overflow: hidden;
}
.live .lede { color: rgb(255 255 255 / .62); max-width: 420px; }
.live-panel .tick { border-color: #45454b; }

/* Headlines arrive a word at a time */
.sw { display: inline-block; opacity: 0; transform: translateY(.38em); filter: blur(10px); transition: opacity .7s ease, transform .9s var(--ease), filter .7s ease; transition-delay: calc(var(--i) * 70ms + var(--d, 0s)); }
.in .sw { opacity: 1; transform: none; filter: none; }

/* ── 7 · Invite ────────────────────────────────────────────── */
.invite { position: relative; overflow: hidden; text-align: center; padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(88px, 11vw, 150px); display: flex; flex-direction: column; align-items: center; }
.invite .lede { margin-top: 18px; }
.invite-actions { display: flex; gap: 10px; margin-top: 32px; position: relative; z-index: 1; }
.footer { position: relative; overflow: hidden; padding: 0 var(--edge); }
.footer-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--faint); }
.footer nav { display: flex; gap: 24px; }
.footer a { transition: color .22s ease-in-out; }
.footer a:hover { color: var(--ink); }
/* Footer: a ruled grid, then the app's Snake on its dot-matrix board */
.foot { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.3fr; border-top: 1px solid var(--line-strong); }
.foot-grid > * { padding: 28px 24px 34px; border-left: 1px solid var(--line-strong); }
.foot-grid > :first-child { padding-left: 0; border-left: 0; }
.foot-brand p { margin-top: 14px; max-width: 280px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 15px; }
.foot-col h4, .snake-hud, .foot .footer-row { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.foot-col h4 { margin: 0 0 8px; }
.foot-col a { color: var(--ink-soft); }
.snake { border-top: 1px solid var(--line-strong); padding: 14px 0 26px; }
.snake-hud { display: grid; grid-template-columns: 1fr auto 1fr; margin-bottom: 12px; }
.snake-hud span:last-child { text-align: right; }
.snake.playing .snake-hud { color: var(--ink); }
.snake canvas { display: block; width: 100%; cursor: pointer; }
.snake.playing canvas { cursor: default; touch-action: none; }
.foot .footer-row { padding: 16px 0; }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--line-strong); padding-bottom: 26px; }
  .foot-grid > :nth-child(2) { padding-left: 0; border-left: 0; }
  .foot-grid > * { padding: 22px 14px 26px; }
}



/* ── Legal pages ───────────────────────────────────────────── */
.legal { width: min(720px, 100% - var(--gutter) * 2); margin-inline: auto; padding: clamp(120px, 16vw, 180px) 0 clamp(72px, 10vw, 120px); font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.legal-head { margin-bottom: 40px; }
.legal h1 { font-size: clamp(44px, 7vw, 72px); color: var(--ink); }
.legal-date { margin-top: 14px; font-size: 14px; color: var(--faint); }
.legal h2 { margin-top: 56px; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.legal h3 { margin-top: 32px; font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.legal p, .legal ul, .legal-table { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--faint); }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { font-weight: 600; color: var(--ink); }
.legal-table { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-strong); }
.legal th { border-top: 0; background: var(--surface); font-weight: 600; font-size: 13px; color: var(--muted); }
.legal td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.footer a[aria-current] { color: var(--ink); }

/* ── Invite request page ───────────────────────────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ask { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 80px; text-align: center; }
.ask-in { width: min(520px, 100%); }
.ask h1 { font-size: clamp(48px, 8vw, 84px); }
.ask .lede { margin-top: 18px; text-wrap: balance; }
.ask-form { margin-top: 36px; }
.ask-field { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 24px; border-radius: 999px; cursor: text; transition: box-shadow .22s ease-in-out; }
.ask-field:focus-within { box-shadow: 0 0 0 .5px var(--glass-ring), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), var(--glass-shadow); }
.ask-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 17px/1.4 var(--sans); letter-spacing: -.012em; color: var(--ink); caret-color: var(--accent); }
.ask-field input::placeholder { color: var(--faint); opacity: 1; }
.ask-field .btn { height: 44px; padding: 0 20px; border: 0; cursor: pointer; }
.ask-field .btn:disabled { opacity: .55; cursor: default; transform: none; }
.ask-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-note { margin-top: 16px; font-size: 14px; color: var(--faint); transition: color .22s ease-in-out; }
.ask-note.bad { color: var(--danger); }
.ask-done { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.ask-done[hidden], .ask-form[hidden] { display: none; }
.ask-done .tick { display: block; width: 30px; height: 30px; transition: background .35s ease .15s, border-color .35s ease .15s; }
.ask-done .tick::after { left: 8px; top: 8.5px; width: 12px; height: 6px; border-width: 0 0 2px 2px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1) .3s; }
.ask-done.in .tick { background: var(--done); border-color: var(--done); }
.ask-done.in .tick::after { transform: rotate(-48deg) scale(1); }
.ask-done p { opacity: 0; transform: translateY(8px); transition: opacity .6s ease .2s, transform .8s var(--ease) .2s; }
.ask-done.in p { opacity: 1; transform: none; }
.ask-done strong { display: block; font-weight: 600; color: var(--ink); }
.ask-done span { font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .ask-field { height: 54px; padding-left: 18px; }
  .ask-field .btn { height: 40px; padding: 0 16px; }
}

/* ── 404 ───────────────────────────────────────────────────── */
.lost { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; padding: clamp(130px, 18vh, 200px) var(--edge) 0; }
.lost-in { text-align: center; padding-bottom: clamp(56px, 9vw, 110px); }
.lost-code { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--faint); margin-bottom: 22px; }
.lost h1 { font-size: clamp(44px, 7vw, 84px); text-wrap: balance; }
.lost .lede { margin-top: 18px; }
.lost .btn { margin-top: 32px; }
.lost .snake-hud { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.foot-col a { display: inline-flex; align-items: flex-start; }
.foot-col .apple { width: 15px; height: 15px; margin: 2px 7px 0 0; fill: currentColor; flex: none; }

/* Scroll-ins */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Small screens ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .live-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; border-radius: 28px; text-align: center; padding: 48px 20px 28px; }
  .live-panel .demo { text-align: left; }
  .demo { font-size: 15px; }
  .demo-row { gap: 11px; }
  .demo-row .when { font-size: 14px; }
  .live .lede { margin-inline: auto; }
  .four-list li { grid-template-columns: 30px 1fr; row-gap: 6px; padding: 18px 0; }
  .four-list p { grid-column: 2; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav .btn-glass, .nav .btn .long { display: none; }
  .nav .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .stage { height: 420vh; }
  .phone-wrap { margin-top: 52px; }
  .invite-actions { flex-direction: column; width: 100%; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sw { opacity: 1; transform: none; filter: none; transition: none; }
  .chip-in { animation: none; }
  .pk { transition: opacity .2s ease; transform: none; }
  .btn:hover, .src-list li:hover .tile, .four-list li:hover h3 { transform: none; }
  .view, .view-today > *, .app-head, .sheet, .seg-thumb, .cap { transition-duration: .01s; }
  .caret { animation: none; }
}
