/* TMRW — the app's own system (App/Design/Theme.swift, docs/specs/2026-09-17-redesign.md).
   Every value here comes from there; the web only adds page-scale type. */

:root {
  color-scheme: dark;

  /* Theme.Palette */
  --ground: #000;
  --surface: #1c1c1e;
  --raised: #2c2c2e;
  --hairline: rgb(255 255 255 / .08);
  --ink: #f5f5f7;
  --ink-2: #adadb5;
  --ink-3: #8f8f99;
  --glyph: #66666e;
  --accent: #4f85f5;
  --today: #ff453a;
  --overdue: #e6c994;
  --sheet: #f1f2f5;
  --sheet-card: #fff;
  --sheet-ink: #14161e;
  --sheet-ink-2: rgb(20 22 30 / .62);
  --sheet-rule: rgb(20 22 30 / .08);
  --sheet-well: rgb(20 22 30 / .05);
  --sheet-control: rgb(20 22 30 / .06);
  --sheet-delete: #b4475f;
  --done: #34a864;
  --done-glass: #5fd08a;
  /* Onboarding and Today's hero kicker */
  --kicker: #9ad0b1;

  /* Glass on dark (spec §2.1): the tab bar, the toast */
  --glass: rgb(44 44 46 / .62);
  --glass-edge: rgb(255 255 255 / .14);

  /* Theme.Radius */
  --r-screen-card: 22px;

  /* Theme.Motion */
  --ease-out: cubic-bezier(0, 0, .58, 1);
  --t-quick: 140ms;
  --t-fade: 320ms;
  /* The sheet: everything that moves into place settles on this one curve. */
  --ease-sheet: cubic-bezier(.32, 1.12, .5, 1);
  --t-sheet: 560ms;
  /* Motion.completion: spring(response 0.32, damping 0.72), sampled. */
  --spring: linear(0, .0946, .2946, .5127, .7028, .8469, .9439, 1.0012, 1.0293, 1.0382, 1.0361, 1.029, 1.0205, 1.0129, 1.0069, 1.0028, 1.0003, .999, .9986, .9986, 1);
  --t-spring: 500ms;
  --stagger: 60ms;
  --rise: 14px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
}

/* Reduce Motion: the app's rule — no overshoot, no stagger, eased 250 ms (spec §13). */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ease-sheet: var(--ease-out);
    --t-sheet: 250ms;
    --spring: var(--ease-out);
    --t-spring: 250ms;
    --stagger: 0ms;
    --rise: 0px;
  }
}

/* Item hues (Theme.ItemPalette), only ever on items. */
.h-green { --hue: rgb(115 184 143); }
.h-blue { --hue: rgb(107 153 224); }
.h-amber { --hue: rgb(219 178 107); }
.h-violet { --hue: rgb(153 138 219); }
.h-rose { --hue: rgb(219 128 148); }
.h-teal { --hue: rgb(107 179 189); }
.h-coral { --hue: rgb(219 148 117); }
.h-sky { --hue: rgb(122 184 224); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; transition: text-decoration-color var(--t-quick) var(--ease-out); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(79 133 245 / .4); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  padding: 10px 16px; border-radius: 22px;
  background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }

@keyframes rise { from { opacity: 0; translate: 0 var(--rise); } }
@keyframes appear { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

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

.kicker { margin-bottom: 10px; color: var(--kicker); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.4vw + 16px, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.lead { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.badge { display: inline-block; margin-top: 28px; transition: scale var(--t-quick) var(--ease-out); }
.badge img { height: 52px; width: auto; }
.badge:active, .pill:active { scale: .97; }
.fine { margin-top: 13px; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Top bar: floating chrome, the tab bar's material ---------- */

.bar { position: fixed; inset: 0 0 auto; z-index: 20; padding: max(12px, env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; height: 56px; margin-inline: auto; padding: 0 8px 0 22px;
  border-radius: 28px; background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  pointer-events: auto;
  animation: appear var(--t-fade) var(--ease-out) both;
}
.wordmark { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 20px; background: var(--ink); color: var(--ground);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: scale var(--t-quick) var(--ease-out);
}

/* ---------- The story: the drawer opens like the app, the words change ---------- */

.story { position: relative; }
.js .story { height: calc(100svh + 2700px); }
.js .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }

.copies { position: relative; margin: 84px var(--gutter) 0; }
.js .copies { height: 172px; flex: none; margin-top: 76px; }
.js .copy { position: absolute; inset: 0 0 auto; }
.js .copy > * { opacity: 0; transition: opacity 180ms var(--ease-out); }
.js .copy.on > * { opacity: 1; animation: rise var(--t-sheet) var(--ease-sheet) both; animation-delay: calc(80ms + var(--k, 0) * var(--stagger)); }
.copy > :nth-child(2) { --k: 1; } .copy > :nth-child(3) { --k: 2; } .copy > :nth-child(4) { --k: 3; } .copy > :nth-child(5) { --k: 4; }
html:not(.js) .copy { margin-bottom: 64px; }
.copy h1 { font-weight: 700; }
.h1-light { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 18px; font-weight: 400; letter-spacing: -.01em; }
.h1-bold, .copy h2 { display: block; font-size: clamp(30px, 3.4vw + 14px, 64px); line-height: 1.03; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.copy .kicker { margin-bottom: 6px; }
.copy .lead { margin-top: 10px; font-size: 15px; }
.copy .badge { margin-top: 16px; }
.copy .badge img { height: 44px; }
.copy .fine { margin-top: 8px; font-size: 12px; }
.note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-screen-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 16px; line-height: 1.4; }
.js [data-show="0"] .lead, .js [data-show="4"] .lead, .js .note { display: none; }

/* The app, drawn at its own sizes. Nothing in it is interactive; the words carry it. */
html:not(.js) .app { display: none; }
.app {
  --px: 12px; --top0: 64px; --gut: 44px; --hour: 44px;
  position: relative; flex: 1; margin-top: 8px; min-height: 0;
  font-size: 15px; line-height: 1.3;
  animation: appear var(--t-fade) var(--ease-out) 200ms both;
}
.app svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.hd { position: absolute; left: var(--px); right: var(--px); top: 0; height: 60px; display: flex; flex-direction: column; opacity: 0; transition: opacity var(--t-fade) var(--ease-out); }
.hd.on { opacity: 1; }
.hd-title { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.hd-sub { font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hd-sub.indent { padding-left: 18px; }
.hd-light { font-size: 17px; color: var(--ink-2); }
.back { width: 11px; height: 18px; color: var(--ink-3); stroke-width: 2.6; }
.hd-buttons { position: absolute; right: 0; top: 2px; display: flex; gap: 10px; }
.hd-buttons i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.hd-buttons svg { width: 17px; height: 17px; stroke-width: 1.9; }
.week { display: none; position: absolute; left: var(--px); right: var(--px); top: 76px; height: 52px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week b { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.week i { font-style: normal; font-size: 16px; font-weight: 500; }
.week .today { gap: 2px; }
.week .today b { color: var(--ink); }
.week .today i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--today); font-weight: 700; }

.view { position: absolute; inset: 0; opacity: 0; transition: opacity 420ms var(--ease-out); }
.view.on { opacity: 1; }
.hour { position: absolute; left: var(--px); right: var(--px); top: calc(var(--top0) + var(--n) * var(--hour)); height: 1px; }
.hour::after { content: ""; position: absolute; left: var(--gut); right: 0; height: 1px; background: var(--hairline); }
.hour span { position: absolute; left: 0; width: calc(var(--gut) - 8px); top: -7px; text-align: right; font-size: 11px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color var(--t-quick) var(--ease-out); }
.blk, .ph {
  position: absolute; left: calc(var(--px) + var(--gut) + 4px); right: calc(var(--px) + 8px);
  top: calc(var(--top0) + var(--s) * var(--hour) + 1px); height: calc(var(--l) * var(--hour) - 2px);
  border-radius: 9px; padding: 5px 10px; overflow: hidden;
}
.blk { background: rgb(from var(--hue) r g b / .18); box-shadow: inset 0 0 0 1px rgb(from var(--hue) r g b / .22); color: color-mix(in srgb, var(--hue), #fff 45%); }
.blk b { display: block; font-size: 13px; font-weight: 600; }
.blk span { display: block; font-size: 11px; opacity: .85; font-variant-numeric: tabular-nums; }
.slot30 { --s: 4; --l: .5; display: flex; align-items: center; gap: 8px; padding-block: 0; }
.blk.short span { display: inline; }
.now { position: absolute; left: calc(var(--px) + var(--gut) - 6px); right: var(--px); top: calc(var(--top0) + 1.333 * var(--hour)); height: 2px; background: var(--today); }
.now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--today); }
.ph { border: 1.5px dashed var(--accent); background: rgb(79 133 245 / .16); color: #8fb1f8; font-size: 11px; font-weight: 600; opacity: 0; transition: opacity 180ms var(--ease-out); }
.fly .ph { opacity: 1; }
.fly .h4 span { color: var(--accent); font-weight: 700; }
.nb { opacity: 0; scale: .96; transition: opacity 180ms var(--ease-out), scale var(--t-spring) var(--spring); }
.drop .nb, .placed .nb, .s4 .nb { opacity: 1; scale: 1; }
.reset .nb { opacity: 0; transition: opacity var(--t-fade) var(--ease-out); }

.dcard { position: absolute; left: var(--px); right: var(--px); top: var(--top0); border-radius: var(--r-screen-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.today { padding: 16px 18px; }
.today-top { display: flex; justify-content: space-between; gap: 12px; }
.now-k { font-size: 12px; font-weight: 600; letter-spacing: .6px; color: var(--kicker); }
.now-t { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.now-s { font-size: 14px; color: var(--ink-2); }
.count-ring { flex: none; width: 64px; height: 64px; }
.count-ring circle { stroke: var(--raised); stroke-width: 6; }
.count-ring .arc { stroke: rgb(153 138 219); }
.count-ring text { fill: var(--ink); stroke: none; font-size: 22px; font-weight: 700; text-anchor: middle; }
.count-ring .u { fill: var(--ink-2); font-size: 11px; font-weight: 400; }
.progress { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--raised); }
.progress span i { display: block; width: 40%; height: 6px; border-radius: 3px; background: var(--ink); }
.progress em { font-style: normal; color: var(--ink-2); }
.progress strong { color: var(--overdue); font-weight: 600; }
.toggles { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; font-size: 11px; }
.toggles > span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toggles .off { color: var(--ink-2); }
.tog { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); box-shadow: inset 0 0 0 2.5px rgb(from var(--hue) r g b / .7); transition: background var(--t-spring) var(--spring), box-shadow var(--t-spring) var(--spring); }
.tog svg { width: 18px; height: 18px; stroke: #000; stroke-width: 3; opacity: 0; scale: .4; transition: opacity var(--t-spring) var(--spring), scale var(--t-spring) var(--spring); }
.tog.done, .journal-on .journal .tog { background: var(--hue); box-shadow: none; }
.tog.done svg, .journal-on .journal .tog svg { opacity: 1; scale: 1; }
.habits { padding: 0 16px; }
.hrow { height: 60px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hairline); }
.hrow.new { border: 0; color: var(--ink-2); font-size: 15px; }
.hname { flex: 1; min-width: 0; }
.hname b { display: block; font-size: 15px; font-weight: 600; }
.hname small { display: block; font-size: 12px; color: var(--ink-3); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--raised); }
.dots i.y { background: var(--hue); }
.dots i.t { background: none; box-shadow: inset 0 0 0 2px var(--hue); }
.dots i.t.y, .journal-on .journal .dots i.t { background: var(--hue); box-shadow: none; }
.plus { width: 42px; height: 42px; border-radius: 50%; border: 1.5px dashed var(--glyph); display: grid; place-items: center; font-size: 22px; line-height: 1; }

.dim { position: absolute; inset: 0; background: #000; pointer-events: none; opacity: var(--dim, 0); transition: opacity var(--t-sheet) var(--ease-out); }
.scrub .dim { transition: none; }

/* The drawer: the app's stops, the app's curve. Following the scroll, it follows 1:1. */
.drawer {
  position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 160px);
  background: var(--sheet); color: var(--sheet-ink);
  border-radius: 36px 36px 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 -18px 48px rgb(0 0 0 / .6);
  transform: translateY(var(--y, 70%));
  transition: transform var(--t-sheet) var(--ease-sheet);
}
.scrub .drawer { transition: transform 90ms linear; }
.lift .drawer, .fly .drawer, .drop .drawer { transform: translateY(var(--lip)); }
.grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgb(20 22 30 / .2); }
.dv { position: absolute; inset: 0 0 auto; opacity: 0; translate: 0 10px; transition: opacity 180ms var(--ease-out), translate var(--t-sheet) var(--ease-sheet); }
.dv.on { opacity: 1; translate: 0 0; transition: opacity var(--t-fade) var(--ease-out) 80ms, translate var(--t-sheet) var(--ease-sheet) 80ms; }
.dt { position: absolute; left: 22px; top: 10px; height: 56px; display: flex; align-items: center; font-size: 26px; font-weight: 700; letter-spacing: -.5px; transform-origin: left center; transition: opacity 220ms var(--ease-out), scale var(--t-sheet) var(--ease-sheet); }
.dt2 { opacity: 0; scale: .69; }
.lift .dt1, .fly .dt1, .drop .dt1 { opacity: 0; scale: .69; }
.lift .dt2, .fly .dt2, .drop .dt2 { opacity: 1; scale: 1; }
.count { position: absolute; right: 22px; top: 10px; line-height: 56px; font-size: 14px; font-weight: 500; color: var(--sheet-ink-2); font-variant-numeric: tabular-nums; }
.lab { padding: 4px 9px 0; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .6px; text-transform: uppercase; color: var(--sheet-ink-2); }
.lab.sub { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--sheet-ink); }
.lab-cal { position: absolute; left: 12px; top: 75px; }
.card { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 15px; border-radius: 18px; background: var(--sheet-card); box-shadow: 0 1px 2px rgb(20 22 30 / .06), 0 8px 20px rgb(20 22 30 / .05); }
.ring { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hue); }
.ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--done); opacity: 0; transition: opacity var(--t-spring) var(--spring); }
.ring svg { position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; opacity: 0; scale: .4; transition: opacity var(--t-spring) var(--spring), scale var(--t-spring) var(--spring); }
.ct { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 600; letter-spacing: -.2px; transition: color var(--t-fade) var(--ease-out); }
.det { font-size: 13px; font-weight: 600; color: var(--sheet-delete); }
.grip { display: grid; grid-template-columns: repeat(2, 4px); gap: 4px; opacity: .28; }
.grip i { width: 4px; height: 4px; border-radius: 50%; background: var(--sheet-ink); }

.stack { position: absolute; left: 12px; right: 12px; top: 101px; }
.stack .card + .card { margin-top: 8px; }
.slot { display: grid; grid-template-rows: 60px; transition: grid-template-rows var(--t-sheet) var(--ease-sheet); }
.placed .slot, .reset .slot { grid-template-rows: 0px; }
.fc { position: absolute; left: 12px; right: 12px; top: 101px; z-index: 2; transition: transform 700ms var(--ease-sheet), opacity 180ms var(--ease-out); }
.fc .card { transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.lift .fc { transform: translateY(var(--liftc)); transition: transform var(--t-sheet) var(--ease-sheet); }
.lift .fc .card, .fly .fc .card { transform: scale(1.03) rotate(-2deg); box-shadow: 0 24px 48px rgb(0 0 0 / .6); }
.fly .fc, .drop .fc, .placed .fc { transform: translate(var(--fx), var(--fy)); }
.drop .fc, .placed .fc { opacity: 0; }
.reset .fc { transition: none; opacity: 0; }
.finger { position: absolute; right: 22%; top: 11px; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .35); box-shadow: 0 0 0 1px rgb(20 22 30 / .18); opacity: 0; scale: .4; transition: opacity 180ms var(--ease-out), scale var(--t-spring) var(--spring); }
.lift .finger, .fly .finger { opacity: 1; scale: 1; }

.list { position: absolute; left: 12px; right: 12px; top: 75px; }
.srow { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-sheet) var(--ease-sheet), opacity var(--t-fade) var(--ease-out); }
.inner { min-height: 0; clip-path: inset(0 -60px); }
/* The gap sits inside the row, so a leaving row takes its gap with it. */
.inner::before { content: ""; display: block; height: 8px; }
.srow.first .inner::before { display: none; }
.card.g { transition: transform var(--t-sheet) var(--ease-sheet), opacity var(--t-fade) var(--ease-out); }
.t1 .card.g, .t2 .card.g { opacity: .55; transform: translateX(28px) scale(.98); }
.t1 .card.g .ring::before, .t2 .card.g .ring::before, .t1 .card.g .ring svg, .t2 .card.g .ring svg { opacity: 1; scale: 1; }
.t1 .card.g .ct, .t2 .card.g .ct { color: var(--sheet-ink-2); text-decoration: line-through; }
.t2 .srow.g { grid-template-rows: 0fr; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .t1 .card.g, .t2 .card.g { opacity: 0; transform: none; } }

.toast {
  position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 44px;
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 18px;
  border-radius: 26px; background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 12px 32px rgb(0 0 0 / .5);
  opacity: 0; translate: 0 24px; visibility: hidden;
  transition: translate var(--t-sheet) var(--ease-sheet), opacity var(--t-fade) var(--ease-out), visibility 0s var(--t-fade);
}
.s1.t2 .toast { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
.toast svg { width: 15px; height: 15px; stroke: var(--done-glass); stroke-width: 2.8; }
.toast span { flex: 1; font-size: 15px; font-weight: 500; }
.toast b { height: 36px; padding: 0 16px; display: grid; place-items: center; border-radius: 18px; background: rgb(255 255 255 / .16); font-size: 15px; font-weight: 600; }

.place { padding: 22px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.qa-top { display: flex; align-items: center; gap: 5px; padding-left: 10px; font-size: 15px; }
.qa-top span { color: var(--sheet-ink-2); font-weight: 600; }
.qa-top svg { width: 14px; height: 14px; color: var(--sheet-ink-2); stroke-width: 1.6; }
.qa-line { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 4px 0 10px; }
.qa-line .ring { width: 26px; height: 26px; border-width: 2.5px; }
.qa-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 24px; font-weight: 600; letter-spacing: -.4px; }
.caret { flex: none; width: 2px; height: 28px; margin-left: -9px; background: var(--today); animation: blink 1s steps(1) infinite; }
.save { flex: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; background: var(--sheet-ink); display: grid; place-items: center; }
.save svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.chip { height: 38px; padding: 0 13px 0 11px; display: flex; align-items: center; gap: 6px; border-radius: 19px; background: var(--sheet-card); box-shadow: 0 1px 1px rgb(20 22 30 / .08), 0 6px 14px rgb(20 22 30 / .06); font-size: 14px; font-weight: 500; }
.chip svg { width: 16px; height: 16px; stroke-width: 1.8; }
.chip.lit { background: var(--sheet-ink); color: #fff; font-weight: 600; box-shadow: none; }
.panel { padding: 10px 12px 12px; border-radius: 18px; background: var(--sheet-well); display: flex; flex-direction: column; gap: 8px; }
.ptitle { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sheet-ink-2); }
.ptitle b { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.seg { position: relative; height: 34px; border-radius: 11px; background: var(--sheet-control); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; text-align: center; font-size: 15px; }
.seg::before { content: ""; position: absolute; left: 2px; top: 2px; width: calc(50% - 2px); height: 30px; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgb(20 22 30 / .12); }
.seg span { position: relative; }
.seg span:first-child { font-weight: 600; }
.seg span:last-child { color: var(--sheet-ink-2); }
.place-row { height: 50px; padding: 0 14px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: space-between; }
.place-row b { display: block; font-size: 15px; font-weight: 600; }
.place-row small { display: block; font-size: 12px; color: var(--sheet-ink-2); }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(20 22 30 / .28); display: grid; place-items: center; transition: box-shadow var(--t-spring) var(--spring); }
.radio i { width: 10px; height: 10px; border-radius: 50%; background: #fff; scale: 0; transition: scale var(--t-spring) var(--spring); }
.home-on .radio.home { box-shadow: inset 0 0 0 11px var(--sheet-ink); }
.home-on .radio.home i { scale: 1; }
.addp { height: 44px; border-radius: 14px; border: 1.5px dashed rgb(20 22 30 / .2); display: grid; place-items: center; font-size: 15px; color: var(--sheet-ink-2); }
.notes { height: 64px; padding: 12px 14px; border-radius: 16px; background: var(--sheet-well); font-size: 15px; color: rgb(20 22 30 / .35); }
.notes span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sheet-ink-2); }

.empty { padding-top: 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.disc { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(20 22 30 / .06), 0 8px 20px rgb(20 22 30 / .08); display: grid; place-items: center; scale: .6; opacity: 0; transition: scale var(--t-spring) var(--spring), opacity var(--t-fade) var(--ease-out); }
.on .disc { scale: 1; opacity: 1; transition-delay: 160ms; }
.disc svg { width: 24px; height: 24px; stroke: var(--done); stroke-width: 3; }
.empty-t { margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.empty-s { margin-top: 6px; font-size: 15px; color: var(--sheet-ink-2); }

/* ---------- Scroll reveals below the story ---------- */

.js [data-reveal=""] > * { opacity: 0; translate: 0 var(--rise); }
.js [data-reveal=""].in > * {
  opacity: 1; translate: 0 0;
  transition: translate var(--t-sheet) var(--ease-sheet), opacity var(--t-fade) var(--ease-out);
  transition-delay: calc(80ms + var(--i, 0) * var(--stagger));
}

/* ---------- Privacy promise ---------- */

.promise { padding-block: 72px; }
.list-card { display: grid; margin-top: 32px; padding: 0 18px; list-style: none; max-width: 680px; border-radius: var(--r-screen-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.list-card li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.list-card li + li { border-top: 1px solid var(--hairline); }
.list-card strong { color: var(--ink); font-weight: 600; }
.tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--raised); }
.tile svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.more { margin-top: 20px; font-size: 15px; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { padding-block: 72px; }
.qa { margin-top: 32px; max-width: 680px; border-radius: var(--r-screen-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.qa details + details { border-top: 1px solid var(--hairline); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px 14px 18px;
  font-size: 17px; font-weight: 600; line-height: 1.3;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--glyph); border-bottom: 2px solid var(--glyph);
  rotate: 45deg; translate: 0 -2px;
  transition: rotate var(--t-sheet) var(--ease-sheet), translate var(--t-sheet) var(--ease-sheet);
}
.qa details[open]:not(.closing) summary::after { rotate: 225deg; translate: 0 2px; }
.qa summary:focus-visible { outline-offset: -4px; border-radius: var(--r-screen-card); }
.answer { overflow: hidden; }
.answer p { padding: 0 18px 18px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* ---------- Closing ---------- */

.closing { padding-block: 96px 112px; text-align: center; }
.closing h2 { font-size: clamp(40px, 6vw + 16px, 80px); line-height: 1.02; letter-spacing: -.028em; }
.closing h2 span { display: inline-block; }
.closing .br { display: block; }
.closing .lead { margin: 20px auto 0; }

/* ---------- Footer ---------- */

.foot { padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.foot .wordmark { display: inline-block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 24px; }
.foot-links a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.legal { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.legal + .legal { margin-top: 6px; }

/* ---------- Privacy and support pages ---------- */

.doc { width: min(100% - 2 * var(--gutter), 720px); margin: 0 auto; padding: calc(max(12px, env(safe-area-inset-top)) + 56px + 48px) 0 72px; }
.doc h1 { font-size: clamp(34px, 4vw + 18px, 52px); line-height: 1.05; letter-spacing: -.025em; animation: rise var(--t-sheet) var(--ease-sheet) both; }
.doc .updated { margin-top: 10px; color: var(--ink-3); font-size: 15px; animation: rise var(--t-sheet) var(--ease-sheet) 80ms both; }
.doc-card { margin-top: 32px; padding: 8px 22px 24px; border-radius: var(--r-screen-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); animation: rise var(--t-sheet) var(--ease-sheet) 140ms both; }
.doc-card h2 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -.2px; line-height: 1.3; }
.doc-card p, .doc-card li { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.doc-card p + p { margin-top: 12px; }
.doc-card ul, .doc-card ol { margin: 0; padding-left: 20px; }
.doc-card a { color: var(--ink); }
.shot { margin: 24px auto 4px; max-width: 260px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--hairline); }
.doc-end { margin-top: 48px; text-align: center; }
.doc-end .lead { margin-inline: auto; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.doc-card li + li { margin-top: 10px; }
.doc-card strong { color: var(--ink); font-weight: 600; }
.doc-card hr { margin: 32px 0 20px; border: 0; border-top: 1px solid var(--hairline); }

/* ---------- Wider screens ---------- */

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .lead { font-size: 19px; }
  .js .stage {
    display: grid; grid-template-columns: minmax(0, 1fr) min(648px, 52vw); column-gap: clamp(40px, 6vw, 96px);
    padding-inline: max(var(--gutter), (100vw - 1180px) / 2);
  }
  .copies { margin: 120px 0 0; }
  .js .copies { align-self: center; height: 440px; margin: 40px 0 0; }
  .h1-light { font-size: 24px; margin-bottom: 6px; }
  .copy .kicker { margin-bottom: 10px; }
  .copy .lead { margin-top: 20px; font-size: 19px; }
  .copy .badge { margin-top: 28px; }
  .copy .badge img { height: 52px; }
  .copy .fine { margin-top: 13px; font-size: 13px; }
  .js [data-show="0"] .lead, .js [data-show="4"] .lead, .js .note { display: block; }
  .app { --px: 0px; --top0: 144px; --gut: 52px; margin-top: 96px; }
  .hd-title { font-size: 32px; letter-spacing: -.6px; }
  .hd-sub { font-size: 15px; }
  .hd-light { font-size: 20px; }
  .hd-buttons i { width: 44px; height: 44px; }
  .week { display: grid; }
  .now-t { font-size: 30px; }
  .count-ring { width: 72px; height: 72px; }
  .toggles { font-size: 12px; }
  .hrow { height: 68px; }
  .hname b { font-size: 16px; }
  .dots i { width: 10px; height: 10px; }
  .qa-text { font-size: 26px; }
  .promise, .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); column-gap: 64px; align-items: start; padding-block: 104px; }
  .promise .list-card, .faq .qa { margin-top: 0; }
  .promise .more { grid-column: 2; }
}
