/* Cloud Notch — website
 *
 * Black and white, set in the Mac's own typeface. The only colour on the page
 * is the product's: the glow round the notch (--g1, --g2, --g3 are the app's
 * palette presets, and the "Tune" section swaps them) and the status colours,
 * copied with their animation timings from StatusIndicator.swift and
 * BUSINESS-LOGIC.md section 4.
 *
 * The page follows the visitor's light or dark setting, and js/theme.js lets
 * them choose. Every colour token is a light-dark() pair, so a theme is one
 * property: color-scheme. Replicas of the app's own interface set it to dark,
 * because the notch is black whatever the desktop behind it looks like.
 */

:root {
  /* Glow palette, as space-separated RGB so alpha can be applied. "Cloud". */
  --g1: 77 217 115;
  --g2: 102 153 255;
  --g3: 140 115 242;

  --bg: light-dark(#ffffff, #000000);
  --ink: light-dark(#1d1d1f, #f5f5f7);
  --ink-2: light-dark(#6e6e73, #a1a1a6);
  --ink-3: light-dark(#75757a, #86868b);
  --card: light-dark(#f5f5f7, #111113);
  --card-2: light-dark(rgb(0 0 0 / .06), rgb(255 255 255 / .1));
  --line: light-dark(rgb(0 0 0 / .1), rgb(255 255 255 / .12));
  --line-2: light-dark(rgb(0 0 0 / .18), rgb(255 255 255 / .2));
  --bar: light-dark(rgb(255 255 255 / .72), rgb(0 0 0 / .64));

  --s-new: #ffffff;
  --s-running: #4cd973;
  --s-done: #59a6ff;
  --s-input: #fa8073;
  --s-approval: #ffa633;
  --s-error: #ff5959;
  --s-stuck: #fad959;
  --s-compact: #66d9d9;
  --s-finished: #8e8e93;

  /* San Francisco where there is one; the platform's own sans elsewhere.
     Nothing is downloaded: Apple does not license SF as a web font. */
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The replicas of the app's own UI use the same system font, as the app does. */
  --f-mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-spring: cubic-bezier(.3, 1.3, .5, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --menubar: 38px;
  --gutter: 24px;

  color-scheme: light dark;
}

/* Set by js/theme.js when the visitor picks one; absent, the system decides. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Browsers from before light-dark() (2024) get the dark page. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #000000;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --card: #111113;
    --card-2: rgb(255 255 255 / .1);
    --line: rgb(255 255 255 / .12);
    --line-2: rgb(255 255 255 / .2);
    --bar: rgb(0 0 0 / .64);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--menubar) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Replicas of the app. Black in either theme, with the page's tokens
   resolving to their dark values inside. */
.notch-rig, .status-card, .mac-panel, .jump-notch, .term, .budget-card, .cue,
.todo-demo, .recap-demo, .notes-demo, .chip {
  color-scheme: dark;
  color: var(--ink);
}

img, svg, canvas { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--f-code); font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--card-2); }
q { quotes: "“" "”"; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: calc(var(--menubar) + 12px); }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- Type */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

/* The second half of a headline steps back to grey. */
h1 em, h2 em { font-style: normal; color: var(--ink-3); }

h2 { font-size: clamp(34px, 4.6vw, 60px); }

h3 {
  font-size: 21px;
  letter-spacing: -.012em;
  line-height: 1.2;
}

p { margin: 0; text-wrap: pretty; }

.eyebrow, .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.kicker { display: flex; align-items: center; gap: 10px; }
.kicker span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker span::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-2);
}

/* -------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease-spring), background-color .2s, border-color .2s, opacity .2s;
}

.btn:active { transform: scale(.97); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .84; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--card); }

/* Before the first release there is nothing to download, and the button says so. */
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.i-down { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.i-sound { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.i-sound .spk { fill: currentColor; stroke: none; }
[aria-pressed] > .i-sound .wave { display: none; }
[aria-pressed="true"] > .i-sound .wave { display: inline; }
[aria-pressed="true"] > .i-sound .mute { display: none; }
.sound-toggle[aria-pressed="true"] { border-color: var(--ink); }

/* -------------------------------------------------------------- Menu bar */

.menubar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--menubar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  font-family: var(--f-mac);
  font-size: 13.5px;
  background: var(--bar);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
}

/* The app icon is a white tile; the hairline keeps its edge on a white page. */
.eye, .footer-brand svg, .legal-bar .brand svg { border-radius: 5px; box-shadow: 0 0 0 1px var(--line-2); }
.eye { width: 20px; height: 20px; overflow: hidden; }
.eye .pupil { transition: transform .35s var(--ease-out); }
.eye .lid { transform-origin: 16px 6px; transform: scaleY(0); }
.eye.blink .lid { animation: blink .22s ease-in-out; }
@keyframes blink {
  0%, 100% { transform: scaleY(0); }
  45%, 55% { transform: scaleY(1); }
}

.menu-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
  margin-left: 14px;
}

.menu-links a, .menu-cta {
  padding: 3px 9px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
}
.menu-links a:hover, .menu-cta:hover { background: var(--card-2); }

.menubar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.menu-cta { font-weight: 600; }

/* One button that steps through System, Light and Dark; it shows the one in force. */
.theme-toggle {
  width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
}
.theme-toggle:hover { background: var(--card-2); }
.theme-toggle svg { width: 15px; height: 15px; grid-area: 1 / 1; display: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme]) .theme-toggle [data-icon="auto"],
:root[data-theme="light"] .theme-toggle [data-icon="light"],
:root[data-theme="dark"] .theme-toggle [data-icon="dark"] { display: block; }
.menu-cloud { width: 17px; height: 17px; }
.clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----------------------------------------------------------------- Notch */

.notch-rig {
  --nw: 188px;
  --nh: var(--menubar);
  --nr: 11px;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  width: var(--nw);
  height: var(--nh);
  transform: translateX(-50%);
  transition: width .55s var(--ease-spring), height .55s var(--ease-spring);
}

.notch-rig[data-mode="banner"] { --nr: 20px; }
.notch-rig[data-mode="panel"] { --nr: 26px; }

.notch {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 0 0 var(--nr) var(--nr);
  cursor: default;
  outline: none;
  transition: border-radius .45s var(--ease-out), box-shadow .45s;
}
/* Collapsed it casts nothing, so it sits flush like the hardware. */
.notch-rig:not([data-mode="collapsed"]) .notch { box-shadow: 0 14px 44px -14px rgb(0 0 0 / .5); }
.notch:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* The concave "ears" where the notch meets the top edge. */
.notch::before, .notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
}
.notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px); }
.notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #000 10px); }

.notch-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* The glow: a blurred, swirling gradient behind the notch that bleeds past its edges. */
.notch-glow {
  position: absolute;
  inset: -2px -13px -13px;
  z-index: -1;
  overflow: hidden;
  border-radius: 0 0 calc(var(--nr, 11px) + 13px) calc(var(--nr, 11px) + 13px);
  filter: blur(11px);
  animation: breathe 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.notch-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;
  height: 1100px;
  background: conic-gradient(rgb(var(--g1)), rgb(var(--g2)), rgb(var(--g3)), rgb(var(--g2)), rgb(var(--g1)));
  transform: translate(-50%, -50%);
  animation: swirl 5.5s linear infinite;
}

.no-swirl .notch-glow::before {
  animation: none;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background: linear-gradient(90deg, rgb(var(--g1)), rgb(var(--g2)), rgb(var(--g3)));
}

@keyframes swirl {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes breathe { from { opacity: .5; } to { opacity: .85; } }
@keyframes breathe-soft { from { opacity: .22; } to { opacity: .42; } }
.notch-rig[data-mode="panel"] .notch-glow { animation-name: breathe-soft; }

.notch-rig[data-idle="true"] .notch-glow { opacity: 0; animation: none; transition: opacity .6s; }

.notch-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #000;
  font-family: var(--f-mac);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity .25s;
}
.notch-rig:not([data-mode="collapsed"]) .notch-badge { opacity: 0; pointer-events: none; }
.notch-badge .dot { width: 5.5px; height: 5.5px; border-radius: 50%; background: var(--c, var(--s-running)); }
.notch-badge .dot.pulse { animation: badge-pulse .8s ease-in-out infinite alternate; }
.notch-badge .num b { color: rgb(255 255 255 / .85); font-weight: 600; }
.notch-badge .num i { font-style: normal; color: rgb(255 255 255 / .3); }
.notch-badge .num s { text-decoration: none; color: rgb(255 255 255 / .45); }
.notch-badge svg { width: 9px; height: 9px; fill: none; stroke: rgb(255 255 255 / .4); stroke-width: 1.8; stroke-linecap: round; }
@keyframes badge-pulse { to { transform: scale(1.4); opacity: .5; } }

/* Banner and panel layers inside the notch */
.n-banner, .n-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mac);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.n-banner { width: 392px; max-width: calc(100vw - 24px); padding: calc(var(--menubar) - 2px) 16px 12px; }
.n-panel { width: 468px; max-width: calc(100vw - 16px); padding: calc(var(--menubar) + 4px) 16px 14px; }

.notch-rig[data-mode="banner"] .n-banner,
.notch-rig[data-mode="panel"] .n-panel {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s .14s;
}

.nb-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
}
.nb-line b { font-weight: 600; }
.nb-line .what { color: var(--c); overflow: hidden; text-overflow: ellipsis; }
.nb-line .x {
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: rgb(255 255 255 / .6);
  font-size: 12px;
  line-height: 1;
}
.nb-line .x:hover { background: rgb(255 255 255 / .16); }

.nb-cmd {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nb-cmd code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgb(255 255 255 / .07);
  color: rgb(255 255 255 / .85);
}
.nb-sub { margin-top: 5px; padding-left: 23px; font-size: 12px; color: rgb(255 255 255 / .5); }

/* Pill buttons, as in the app */
.pill {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--f-mac);
  font-size: 12.5px;
  font-weight: 600;
  background: rgb(255 255 255 / .1);
  color: #fff;
  white-space: nowrap;
  transition: transform .2s var(--ease-spring), filter .2s, background-color .2s;
}
.pill:hover { background: rgb(255 255 255 / .16); }
.pill:active, .pill.pressed { transform: scale(.92); }
.pill.primary { background: var(--c, var(--s-approval)); color: #1a1206; }
.pill.primary:hover { filter: brightness(1.08); }
.pill:disabled { opacity: .35; cursor: default; }

/* Panel */
.np-top {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}
.np-tab {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgb(255 255 255 / .5);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.np-tab[aria-selected="true"] { background: rgb(255 255 255 / .1); color: #fff; }
.np-tab .count {
  font-size: 10px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--s-input);
  color: #1a0d0b;
  line-height: 15px;
  text-align: center;
}
.np-spacer { flex: 1; }
.np-icon {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / .6);
  display: grid;
  place-items: center;
}
.np-icon:hover { background: rgb(255 255 255 / .1); color: #fff; }
.np-icon .i-sound { width: 15px; height: 15px; }

.np-plan {
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgb(255 255 255 / .05);
  margin-bottom: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgb(255 255 255 / .6);
}
.bar {
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / .1);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: inherit;
  background: rgb(115 217 153);
  transition: width 1.2s var(--ease-out);
}
.bar-row .pct { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .85); }
.spend { font-size: 11.5px; color: rgb(255 255 255 / .55); font-variant-numeric: tabular-nums; }
.spend b { color: #fff; font-weight: 600; }

.np-list { display: grid; gap: 2px; }
.np-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  width: 100%;
  font-family: var(--f-mac);
  transition: background-color .2s;
}
.np-row { cursor: pointer; line-height: 1.35; }
.np-row:hover { background: rgb(255 255 255 / .06); }
.np-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.np-row .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row .m { font-size: 11.5px; color: rgb(255 255 255 / .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row .m .st { color: var(--c); }
.np-row .r { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgb(255 255 255 / .4); font-variant-numeric: tabular-nums; }
.np-row .strip {
  grid-column: 2 / -1;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
}
.np-row .strip code {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgb(255 255 255 / .07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-row .strip .pill { padding: 3px 10px; font-size: 11.5px; }

.ctx { font-weight: 600; color: rgb(255 255 255 / .45); }
.ctx.mid { color: var(--s-stuck); }
.ctx.high { color: var(--s-error); }

.np-body { min-height: 206px; }
.np-detail h4 { margin: 2px 0 10px; font-size: 14px; font-weight: 600; }
.np-back {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #fff;
  margin-bottom: 8px;
}
.np-empty { padding: 30px 8px; text-align: center; font-size: 12.5px; color: rgb(255 255 255 / .45); }
.np-todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.np-notes {
  width: 100%;
  height: 190px;
  resize: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgb(255 255 255 / .05);
  font-family: var(--f-mac);
  font-size: 13px;
  line-height: 1.5;
}
.np-notes:focus { outline: 1px solid rgb(255 255 255 / .2); }

/* ------------------------------------------------------ Status indicators */

.si {
  --c: var(--s-running);
  --sz: 14px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--sz);
  height: var(--sz);
  color: var(--c);
  vertical-align: middle;
}
.si[data-s="new"] { --c: var(--s-new); }
.si[data-s="running"] { --c: var(--s-running); }
.si[data-s="done"] { --c: var(--s-done); }
.si[data-s="input"] { --c: var(--s-input); }
.si[data-s="approval"] { --c: var(--s-approval); }
.si[data-s="error"] { --c: var(--s-error); }
.si[data-s="stuck"] { --c: var(--s-stuck); }
.si[data-s="compact"] { --c: var(--s-compact); }
.si[data-s="finished"] { --c: var(--s-finished); }
.si > * { grid-area: 1 / 1; }
.si svg { width: 100%; height: 100%; overflow: visible; }

/* New session: a slow breathing ring */
.si .breathe {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  border: calc(var(--sz) * .093) solid rgb(255 255 255 / .7);
  animation: si-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes si-breathe {
  from { transform: scale(.85); opacity: .45; }
  to { transform: scale(1.18); opacity: .95; }
}

/* Running: an arc with a counter-orbiting dot */
.si .spin { animation: si-rotate 1.05s linear infinite; }
.si .orbit { width: 100%; height: 100%; animation: si-rotate 1.05s linear infinite reverse; }
.si .orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.4%;
  width: 18.5%;
  height: 18.5%;
  margin-left: -9.25%;
  border-radius: 50%;
  background: currentColor;
}
@keyframes si-rotate { to { transform: rotate(360deg); } }

/* Task completed: the check draws itself, once */
.si .check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: si-draw .45s var(--ease-out) forwards; }
.si .check.static { animation: none; stroke-dashoffset: 0; }
@keyframes si-draw { to { stroke-dashoffset: 0; } }

/* Waiting for you: staggered ripples */
.si .ring {
  width: 57%;
  height: 57%;
  border-radius: 50%;
  border: calc(var(--sz) * .1) solid currentColor;
  animation: si-ripple 1.4s ease-out infinite;
}
.si .ring + .ring { animation-delay: .7s; }
.si .core { width: 50%; height: 50%; border-radius: 50%; background: currentColor; }
@keyframes si-ripple {
  from { transform: scale(.9); opacity: .8; }
  to { transform: scale(2.1); opacity: 0; }
}

/* Needs permission: a key knocking at the lock */
.si .key { width: 72%; height: 72%; transform-origin: 0 100%; animation: si-knock .5s ease-in-out infinite alternate; }
@keyframes si-knock { from { transform: rotate(-6deg); } to { transform: rotate(16deg); } }

/* Error: a short, sharp shake */
.si .alert { width: 78%; height: 78%; animation: si-shake .09s ease-in-out infinite alternate; }
@keyframes si-shake { from { transform: translateX(-10%); } to { transform: translateX(10%); } }

/* Possibly stuck: a sweep that has almost stopped */
.si .sweep { animation: si-rotate 3.4s linear infinite, si-dim 1.1s ease-in-out infinite alternate; }
@keyframes si-dim { to { opacity: .35; } }

/* Compacting: two halves pressing together */
.si .bars { display: flex; justify-content: center; gap: calc(var(--sz) * .36); animation: si-press .7s ease-in-out infinite alternate; }
.si .bars i { width: calc(var(--sz) * .16); height: calc(var(--sz) * .64); border-radius: 1px; background: currentColor; }
.si .bars i + i { opacity: .45; }
@keyframes si-press { to { gap: calc(var(--sz) * .07); } }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--menubar) + 12vh) 0 12vh;
  overflow: hidden;
}

.hero-copy {
  text-align: center;
  max-width: 980px;
  padding: 0 var(--gutter);
  display: grid;
  justify-items: center;
}

h1 {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.lede {
  margin-top: 28px;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--ink-2);
}

.cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Which version the button fetches and what it runs on, filled in from the feed. */
.dl-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.dl-meta a { text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* The notch does nothing until asked. These ask it. */
.try { margin-top: 48px; display: grid; justify-items: center; gap: 12px; }
.try-label { font-size: 13px; color: var(--ink-3); }
.try-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16);
  background: #000;
  font-family: var(--f-mac);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform .25s var(--ease-spring), border-color .2s;
}
.chip:hover { border-color: rgb(255 255 255 / .4); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { border-color: var(--c); }
.chip .si { --sz: 13px; }

.hint {
  position: absolute;
  top: calc(var(--menubar) + 4px);
  left: calc(50% + 106px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: opacity .5s;
}
.hint svg {
  width: 26px;
  height: 40px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1) rotate(-18deg);
  animation: hint-bob 2.4s ease-in-out infinite;
}
.hint span { margin-top: 22px; }
.hint-touch { display: none; }
.hint.gone { opacity: 0; }
@keyframes hint-bob { 50% { transform: scaleX(-1) rotate(-18deg) translateY(-5px); } }

@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}

/* ------------------------------------------------------------ The lull */

.lull { padding: 16vh 0 10vh; }
.lull-line {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 17em;
}
.lull-wait { color: var(--ink-3); }
.lull-wait .si { --sz: .42em; margin: 0 .12em .1em 0; }
.counter { color: var(--ink); font-variant-numeric: tabular-nums; }
.lull-sub { margin-top: 36px; max-width: 620px; color: var(--ink-2); font-size: 19px; }
.lull-sub strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------- Sections */

.section { padding: 14vh 0; position: relative; }
.section-head { max-width: 560px; }
.section-head-wide { max-width: 820px; }
.section-lede { margin-top: 24px; color: var(--ink-2); font-size: 18px; }
.section-head h2 + .section-lede { margin-top: 28px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.facts li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.facts b { color: var(--ink); font-weight: 600; }

/* Status grid */
.status-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 18px;
  row-gap: 8px;
  padding: 24px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgb(255 255 255 / .1);
  background: #000;
  text-align: left;
  overflow: hidden;
  transition: transform .35s var(--ease-spring), border-color .3s, background-color .3s;
}
.status-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.status-card:active { transform: translateY(-1px) scale(.99); }
.status-card .si { --sz: 30px; grid-row: 1 / 3; margin-top: 2px; }
.status-card .card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.012em;
}
.status-card .card-desc { grid-column: 2; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.status-card .card-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status-card .tag { display: inline-flex; align-items: center; gap: 7px; }
.status-card .tag.speaks { color: var(--c); }
.status-card .tag svg { width: 12px; height: 12px; fill: currentColor; }
.status-card .foot-right { display: inline-flex; align-items: center; gap: 10px; }
.status-card .needs {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.status-card .quiet-note {
  position: absolute;
  inset: auto 14px 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgb(28 28 30 / .97);
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .3s var(--ease-spring);
  pointer-events: none;
}
.status-card.show-note .quiet-note { opacity: 1; transform: none; }

.speak {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.speak-col {
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
}
.speak-col p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* Answer replica */
.answer-stage { display: grid; justify-items: center; gap: 18px; }

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }

.mac-panel {
  --c: var(--s-approval);
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 300px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: #000;
  font-family: var(--f-mac);
  color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 80px -30px rgb(0 0 0 / .45);
}
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mp-head span { display: inline-flex; align-items: center; gap: 8px; }
.mp-head svg { width: 14px; height: 14px; fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mp-title { font-size: 15.5px; font-weight: 600; margin-bottom: 9px; }
.mp-box {
  padding: 12px 13px;
  border-radius: 12px;
  background: rgb(255 255 255 / .07);
  font-size: 13px;
  line-height: 1.55;
  min-height: 106px;
}
.mp-box.code { font-family: var(--f-code); font-size: 12.5px; white-space: pre-wrap; }
.mp-box ol { margin: 8px 0 0; padding-left: 18px; }
.mp-box code { background: none; padding: 0; }
.mp-input {
  margin-top: 9px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: rgb(255 255 255 / .07);
  font-family: var(--f-mac);
  font-size: 13px;
}
.mp-input::placeholder { color: rgb(255 255 255 / .35); }
.mp-input:focus { outline: 1px solid rgb(255 255 255 / .22); }
.mp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 11px; }
.mp-actions .left { margin-right: auto; font-size: 12px; color: rgb(255 255 255 / .45); }
.mp-actions .pill { font-size: 13px; padding: 6px 13px; }

.mp-opts { display: grid; gap: 7px; }
.mp-opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .08);
  text-align: left;
  font-family: var(--f-mac);
  transition: border-color .2s, background-color .2s;
}
.mp-opt:hover { background: rgb(255 255 255 / .08); }
.mp-opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .45); display: grid; place-items: center; }
.mp-opt[aria-checked="true"] { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.mp-opt[aria-checked="true"] .radio { border-color: var(--c); }
.mp-opt[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mp-opt b { display: block; font-size: 13.5px; }
.mp-opt small { font-size: 12px; color: rgb(255 255 255 / .5); }
.mp-opt input { border: 0; background: transparent; font-size: 13.5px; padding: 0; width: 100%; font-family: var(--f-mac); }
.mp-opt input::placeholder { color: rgb(255 255 255 / .4); }
.mp-opt input:focus { outline: none; }

.mp-sent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border-radius: inherit;
  background: rgb(0 0 0 / .88);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 0 30px;
}
.mp-sent small { font-weight: 400; color: rgb(255 255 255 / .55); font-size: 13px; }
.mp-sent .si { --sz: 34px; }
.mac-panel.sent .mp-sent { opacity: 1; }
.stage-note { font-size: 13px; color: var(--ink-3); }

/* Jump */
.jump-stage {
  position: relative;
  min-height: 510px;
}
.term {
  position: absolute;
  right: 0;
  top: 232px;
  width: min(100%, 520px);
  border-radius: 14px;
  background: #0c0c0d;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .45);
  overflow: hidden;
  font-family: var(--f-code);
  font-size: 12.5px;
  transition: transform .5s var(--ease-spring), box-shadow .5s, filter .5s;
  filter: brightness(.7) saturate(.8);
  transform: scale(.97);
}
.term.front {
  filter: none;
  transform: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .28), 0 40px 100px -30px rgb(0 0 0 / .6);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #1c1c1e;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; }
.term.front .term-bar i:nth-child(1) { background: #ff5f57; }
.term.front .term-bar i:nth-child(2) { background: #febc2e; }
.term.front .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-family: var(--f-mac); font-size: 12px; color: rgb(255 255 255 / .5); }
.term-tabs { display: flex; background: #141415; border-bottom: 1px solid var(--line); }
.term-tabs span {
  flex: 1;
  padding: 7px 10px;
  text-align: center;
  font-family: var(--f-mac);
  font-size: 11.5px;
  color: rgb(255 255 255 / .4);
  border-right: 1px solid var(--line);
  transition: background-color .3s, color .3s;
}
.term-tabs span.on { background: #0c0c0d; color: #fff; }
.term-body { padding: 14px 16px 18px; min-height: 196px; line-height: 1.7; color: rgb(255 255 255 / .75); }
.term-body .you { color: rgb(255 255 255 / .45); }
.term-body .tool { color: var(--s-running); }
.term-body .cursor { display: inline-block; width: 7px; height: 14px; background: rgb(255 255 255 / .7); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.jump-notch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  isolation: isolate;
  width: min(92%, 360px);
  padding: 14px 10px 10px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .1);
  font-family: var(--f-mac);
}
/* The black panel is its own layer so the glow stays behind it and only shows past the edges. */
.jump-notch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #000;
}
.jump-notch .glowline {
  position: absolute;
  inset: -2px -13px -13px;
  z-index: -2;
  border-radius: 0 0 37px 37px;
  background: linear-gradient(90deg, rgb(var(--g1)), rgb(var(--g2)), rgb(var(--g3)));
  filter: blur(11px);
  opacity: .5;
  pointer-events: none;
}
.jump-notch .np-row.on { background: rgb(255 255 255 / .1); }
.jump-notch .np-row .go { opacity: 0; transition: opacity .2s; }
.jump-notch .np-row:hover .go, .jump-notch .np-row.on .go { opacity: 1; }
.jump-notch .go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.support { margin: 34px 0 0; display: grid; gap: 0; }
.support div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.support div:last-child { border-bottom: 1px solid var(--line); }
.support dt { font-weight: 600; }
.support dd { margin: 0; color: var(--ink-2); }

/* Budget */
.budget-stage { display: grid; gap: 14px; }
.budget-card {
  padding: 22px;
  border-radius: 24px;
  background: #000;
  font-family: var(--f-mac);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 80px -30px rgb(0 0 0 / .45);
}
.budget-card .label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .4);
  margin-bottom: 14px;
}
.budget-card .bar-row { font-size: 13px; grid-template-columns: 104px 1fr auto; }
.budget-card .bar { height: 7px; }
.budget-card .reset { font-size: 12px; color: rgb(255 255 255 / .4); margin: 4px 0 14px 114px; }
.budget-card .spend {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / .08);
  font-size: 14px;
}
.spend-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--f-mac);
  color: inherit;
  text-align: left;
  border-bottom: 1px dashed rgb(255 255 255 / .25);
}
.spend-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease-spring);
  pointer-events: none;
}
.spend-tip div { display: flex; justify-content: space-between; gap: 18px; }
.spend:hover .spend-tip, .spend-btn:focus + .spend-tip, .spend.open .spend-tip { opacity: 1; transform: none; }

.ctx-card .np-row { cursor: default; }
.ctx-card .np-row:hover { background: transparent; }
.ctx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / .08);
  font-size: 12px;
  color: rgb(255 255 255 / .5);
}
.ctx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ctx-legend i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .45); }
.ctx-legend i.mid { background: var(--s-stuck); }
.ctx-legend i.high { background: var(--s-error); }
.illus { font-size: 12.5px; color: var(--ink-3); }

/* Sounds */
.cues {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cue {
  --c: var(--s-running);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgb(255 255 255 / .1);
  background: #000;
  display: grid;
  gap: 14px;
  transition: border-color .3s;
}
.cue.playing { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.cue-head { display: flex; align-items: center; gap: 12px; }
.cue-head .si { --sz: 18px; }
.cue-head h3 { font-size: 18px; }
.cue-char { font-size: 14.5px; color: var(--ink-2); min-height: 2.9em; }
.rhythm {
  position: relative;
  height: 34px;
  border-radius: 10px;
  background: rgb(255 255 255 / .03);
  overflow: hidden;
}
.rhythm::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: var(--line-2);
}
.rhythm .note {
  position: absolute;
  top: 50%;
  width: calc(6px + var(--v) * 10px);
  height: calc(6px + var(--v) * 10px);
  margin: calc((6px + var(--v) * 10px) / -2) 0 0 calc((6px + var(--v) * 10px) / -2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .15s, background-color .15s, box-shadow .2s;
}
.rhythm .note.long { border-radius: 999px; width: var(--len); margin-left: 0; }
.rhythm .note.hit { background: var(--c); transform: scale(1.35); box-shadow: 0 0 16px var(--c); }
.rhythm .note.long.hit { transform: scaleY(1.35); }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.choice svg { width: 10px; height: 10px; fill: currentColor; }
.choice:hover { background: rgb(255 255 255 / .06); }
.choice[aria-pressed="true"] { border-color: var(--c); color: var(--c); }
.cue-mac { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: .02em; }
.cue-rules { margin-top: 32px; color: var(--ink-2); font-size: 15px; max-width: 720px; }

/* Tune */
.swatches { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.swatch i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--a), var(--b), var(--c3), var(--b), var(--a));
  box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .25s, transform .3s var(--ease-spring);
}
.swatch:hover i { transform: scale(1.06); }
.swatch[aria-checked="true"] { color: var(--ink); }
.swatch[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.switch { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .25s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transition: transform .3s var(--ease-spring); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 3px; }

.tune-stage {
  position: relative;
  padding: 90px 28px 32px;
  border-radius: 28px;
  background: var(--card);
  overflow: hidden;
  display: grid;
  gap: 40px;
}
.mini-notch {
  --nr: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  width: 210px;
  height: 40px;
  transform: translateX(-50%);
}
.mini-notch-body { position: absolute; inset: 0; background: #000; border-radius: 0 0 16px 16px; }
.search-label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--f-mac);
}
.search-box:focus-within { border-color: var(--ink); }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; font-family: var(--f-mac); }
.search-box input:focus { outline: none; }
.search-box kbd { font-family: var(--f-mac); font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; min-height: 172px; font-family: var(--f-mac); }
.search-results li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  animation: pop-in .35s var(--ease-spring) both;
}
.search-results li:first-child { background: var(--card-2); }
.search-results li small { color: var(--ink-3); font-size: 12.5px; }
.search-results .none { color: var(--ink-3); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } }

/* Remember */
.trio { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trio-card {
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: var(--card);
  display: grid;
  align-content: start;
  gap: 12px;
}
.trio-card > p { color: var(--ink-2); font-size: 15px; }
.todo-demo, .recap-demo, .notes-demo {
  margin-top: 10px;
  border-radius: 16px;
  background: #000;
  font-family: var(--f-mac);
  font-size: 13px;
}
.todo-demo { list-style: none; padding: 8px; display: grid; gap: 2px; }
.todo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-family: var(--f-mac);
  font-size: 13px;
}
.todo:hover { background: rgb(255 255 255 / .06); }
.todo .box {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid rgb(255 255 255 / .4);
  display: grid;
  place-items: center;
  transition: background-color .2s, border-color .2s;
}
.todo .box svg { width: 10px; height: 10px; fill: none; stroke: #04110a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.todo[aria-checked="true"] .box { background: var(--s-running); border-color: var(--s-running); }
.todo[aria-checked="true"] .box svg { animation: si-draw .3s var(--ease-out) forwards; }
.todo[aria-checked="true"] span { color: rgb(255 255 255 / .4); text-decoration: line-through; }
.todo-count { padding: 4px 9px 2px; font-size: 11.5px; color: rgb(255 255 255 / .4); }

.recap-demo { padding: 14px; display: grid; gap: 8px; }
.recap-day { display: flex; justify-content: space-between; align-items: baseline; }
.recap-day span { font-weight: 600; }
.recap-day small { color: rgb(255 255 255 / .45); font-size: 11.5px; }
.recap-stats { display: flex; gap: 12px; font-size: 12px; color: rgb(255 255 255 / .5); padding-bottom: 8px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.recap-stats .ok { color: rgb(76 217 115 / .8); }
.recap-stats .open { color: rgb(255 166 51 / .75); }
.recap-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; font-size: 12.5px; }
.recap-row b { font-weight: 600; color: rgb(255 255 255 / .6); }
.recap-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recap-row time { color: rgb(255 255 255 / .4); font-variant-numeric: tabular-nums; }

.notes-demo {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 0;
  padding: 14px;
  line-height: 1.55;
  color: #fff;
}
.notes-demo:focus { outline: 1px solid rgb(255 255 255 / .35); }

/* Trust */
.pillars { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pillar {
  position: relative;
  padding: 22px 0 0;
  border-top: 1px solid var(--ink);
}
.pillar-mark {
  display: block;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pillar h3 { font-size: 20px; }
.pillar p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.edges {
  margin-top: 72px;
  padding: 34px 36px;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1fr);
  gap: 28px;
}
.edges h3 { font-size: 28px; }
.edges ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.edges li { color: var(--ink-2); font-size: 15.5px; padding-left: 26px; position: relative; }
.edges li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

/* Boarding pass */
.pass-form { margin-top: 34px; }
.pass-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.pass-input { display: flex; gap: 8px; flex-wrap: wrap; }
.pass-input input {
  flex: 1 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 16px;
}
.pass-input input:focus { outline: none; border-color: var(--ink); }

.pass-stage { position: relative; perspective: 1200px; padding-top: 6px; }
.pass-slot {
  height: 12px;
  margin: 0 -8px;
  border-radius: 6px;
  background: #000;
  box-shadow: inset 0 3px 6px rgb(0 0 0 / .9), 0 1px 0 rgb(255 255 255 / .08);
  position: relative;
  z-index: 2;
}
.pass-clip { overflow: hidden; margin-top: -6px; padding: 0 6px 60px; margin-left: -6px; margin-right: -6px; }
.pass {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  aspect-ratio: 520 / 216;
  line-height: 1.15;
  border-radius: 18px;
  background: #1c1c1e;
  border: 1px solid rgb(255 255 255 / .12);
  font-family: var(--f-code);
  color: #fff;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out;
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .5);
  container-type: inline-size;
  overflow: hidden;
}
.pass.printing { animation: print 1s steps(12) both; }
@keyframes print { from { transform: translateY(-104%); } to { transform: translateY(0); } }
.pass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1.3cqw;
  background: linear-gradient(90deg, var(--s-running), var(--s-compact), var(--s-done), var(--s-input), var(--s-approval));
}
.pass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / .16), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pass-stage:hover .pass::after { opacity: 1; }
.pass-main { position: absolute; inset: 0 27% 0 0; padding: 5.6cqw 4.4cqw 4.4cqw 5.4cqw; display: grid; align-content: space-between; }
.pass-stub { position: absolute; inset: 0 0 0 73%; padding: 5.6cqw 4cqw 4.4cqw 4.4cqw; border-left: 1.5px dashed rgb(255 255 255 / .22); display: grid; align-content: start; gap: 2.4cqw; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -2.2cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--bg); }
.pass-stub::before { top: -2.2cqw; }
.pass-stub::after { bottom: -2.2cqw; }
.pass .row { display: flex; justify-content: space-between; align-items: center; }
.pass .logo { display: flex; align-items: center; gap: 1.3cqw; font-family: var(--f-mac); font-weight: 700; letter-spacing: .2em; font-size: 2.4cqw; }
.pass .logo svg { width: 3.4cqw; height: 3.4cqw; fill: #fff; }
.pass .kind { font-family: var(--f-mac); font-weight: 700; letter-spacing: .2em; font-size: 2.2cqw; color: rgb(255 255 255 / .45); }
.pass .lbl { font-family: var(--f-mac); font-weight: 700; letter-spacing: .14em; font-size: 1.75cqw; color: rgb(255 255 255 / .45); text-transform: uppercase; margin-bottom: .5cqw; }
.pass .val { font-weight: 700; font-size: 3.1cqw; letter-spacing: .01em; white-space: nowrap; }
.pass .meta .val { font-size: 2.8cqw; }
.pass .route { display: grid; grid-template-columns: auto 1fr auto; gap: 3cqw; align-items: center; }
.pass .city b { display: block; font-family: var(--f-mac); font-size: 6.6cqw; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.pass .city small { display: block; margin-top: .6cqw; font-family: var(--f-mac); font-size: 2.1cqw; color: rgb(255 255 255 / .5); }
.pass .flightline { position: relative; height: 2px; background: linear-gradient(90deg, var(--s-running), var(--s-done), var(--s-approval)); margin-top: -2.6cqw; }
.pass .flightline svg { position: absolute; left: 50%; top: 50%; width: 4.6cqw; height: 4.6cqw; transform: translate(-50%, -110%); fill: rgb(255 255 255 / .85); }
.pass .meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
.pass .seat { font-size: 5.6cqw; font-weight: 800; font-family: var(--f-mac); line-height: 1; }
.pass .barcode { margin-top: auto; height: 8cqw; background: repeating-linear-gradient(90deg, #ddd 0 .35cqw, transparent .35cqw .7cqw, #ddd .7cqw 1.4cqw, transparent 1.4cqw 1.75cqw, #ddd 1.75cqw 2cqw, transparent 2cqw 2.6cqw); }
.pass-stub .val.gate { font-size: 3cqw; }
.stamp {
  position: absolute;
  left: 41%;
  top: 47%;
  padding: .8cqw 2.4cqw;
  border: .7cqw solid var(--s-running);
  border-radius: 1.6cqw;
  color: var(--s-running);
  font-family: var(--f-mac);
  font-weight: 900;
  letter-spacing: .3em;
  font-size: 4.2cqw;
  transform: rotate(-9deg) scale(2.2);
  opacity: 0;
  mix-blend-mode: screen;
}
.stamp.down { animation: stamp .32s cubic-bezier(.5, 0, .7, 1.5) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-9deg) scale(2.2); }
  100% { opacity: .95; transform: rotate(-9deg) scale(1); }
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

/* Closing */
.closing {
  position: relative;
  padding: 22vh 0 18vh;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing-inner { display: grid; justify-items: center; gap: 0; }
.closing h2 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -.03em; }
.closing .section-lede { margin-top: 24px; font-size: 20px; }
.closing .cta-row { margin-top: 32px; }
.closing .again { margin-top: 44px; font-size: 14px; color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.reqs { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reqs li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer a { text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.footer-meta { display: grid; justify-items: end; gap: 12px; }
.theme-seg button { padding: 5px 12px; font-size: 12.5px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-family: var(--f-mac); }
.footer-brand svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- Reveal */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.2s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .42s; }
.hero .reveal:nth-child(5) { transition-delay: .5s; }
.hero .reveal:nth-child(6) { transition-delay: .62s; }
.hero .hint.reveal { transform: none; transition-delay: 1.4s; }
.status-card.reveal:nth-child(3n+2) { transition-delay: .08s; }
.status-card.reveal:nth-child(3n) { transition-delay: .16s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
  .menu-links { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .split-rev .jump-stage { order: 2; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .speak { grid-template-columns: minmax(0, 1fr); }
  .edges { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer-meta { justify-items: start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --menubar: 34px; }
  body { font-size: 16px; }
  .menubar { padding: 0 12px; font-size: 12.5px; }
  .brand-name, .menu-cloud, .menu-cta, .clock { display: none; }
  .notch-rig { --nw: 124px; }
  .notch-badge { left: calc(100% + 12px); }
  .hero { padding-top: calc(var(--menubar) + 16vh); }
  .hint { left: 50%; top: calc(var(--menubar) + 16px); transform: translateX(-50%); font-size: 15px; }
  .hint svg { display: none; }
  .hint span { margin-top: 0; }
  .hint span::before { content: "↑ "; font-style: normal; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .btn { white-space: normal; text-align: center; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 10vh 0; }
  .speak-col, .edges { padding: 24px; }
  .jump-stage { min-height: 500px; }
  .jump-notch { width: 100%; }
  .term { width: 100%; }
  .support div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tune-stage { padding: 80px 16px 20px; }
  .budget-card { padding: 18px 16px; }
  .budget-card .bar-row { grid-template-columns: 86px 1fr auto; }
  .budget-card .reset { margin-left: 96px; }
  .np-row .r .ago { display: none; }
  .n-panel { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .si .check, .todo[aria-checked="true"] .box svg { stroke-dashoffset: 0; }
  .notch-glow { opacity: .7; }
  .reveal { opacity: 1; transform: none; }
}

/* The chips are drawn by script; without it their label would point at nothing. */
.no-js .try { display: none; }

/* The hint sits where an open notch lands, so it steps aside while one is. */
.notch-rig:not([data-mode="collapsed"]) ~ main .hint { opacity: 0; }
