/* ==========================================================================
   Deadline — marketing site
   Dark only, because the app is dark only. Colour on this page comes from
   exactly two places in the app: the urgency ladder (utils/urgency.ts) and
   the subject palette (app/(tabs)/index.tsx). Aurora indigo is the accent.
   ========================================================================== */

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2-variations'),
       url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #0A0A0B;
  --screen: #121212;          /* app screen ground */
  --sheet: #1E1E1E;           /* app modal sheets */
  --hair: rgba(255,255,255,.07);
  --hair-2: rgba(255,255,255,.13);
  --ink: #F4F4F5;
  --ink-2: #A0A0A0;           /* app secondary text */
  --ink-3: #82828A;

  --accent: #5E5CE6;          /* Aurora — swapped by the theme picker */
  --accent-rgb: 94, 92, 230;
  --accent-ink: #A8A7FF;

  --calm: #22C55E;            /* 5+ days     */
  --soon: #EAB308;            /* 2–4 days    */
  --move: #F97316;            /* 24–48 hours */
  --now:  #EF4444;            /* < 24 hours  */

  --sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --rounded: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, var(--sans);

  --gut: clamp(16px, 5vw, 64px);
  --e-enter: cubic-bezier(.16, 1, .3, 1);
  --e-soft: cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.center { text-align: center; margin-inline: auto; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: #000; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }

section { padding-block: clamp(64px, 8.5vw, 124px); position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
h1 {
  font-size: clamp(32px, 4.3vw, 56px); font-weight: 900; letter-spacing: -.035em; line-height: 1.04;
}
h2 {
  font-size: clamp(34px, 5vw, 64px); font-weight: 900; letter-spacing: -.045em; line-height: 1;
}
h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.55; max-width: 44ch; }
.fine { font-size: 14px; color: var(--ink-3); line-height: 1.5; max-width: 60ch; }
.fine a { color: var(--ink-2); }
.fine em, .lede em { font-style: normal; color: var(--ink); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .lede { margin-top: 4px; }

/* ── time rail ─────────────────────────────────────────────────────────── */
.timerail { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: rgba(255,255,255,.04); }
.timerail span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--calm), var(--soon) 40%, var(--move) 70%, var(--now)) 0 0 / 100vw 100% no-repeat;
}

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; padding-top: 3px;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,.78); border-bottom-color: var(--hair);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.03em; }
.brand img { border-radius: 7px; }
.brand b, .wordmark b { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 880px) { .nav-links { display: none; } .nav-in > .btn { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--e-enter), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -8px rgba(var(--accent-rgb), .9); }
.btn-accent:hover { box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), 1); }

/* App Store button — Apple’s official badge can replace this 1:1 */
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  background: #fff; color: #000; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 30px -12px rgba(255,255,255,.35);
  transition: transform .2s var(--e-enter), box-shadow .2s;
}
.badge:hover { box-shadow: 0 14px 40px -12px rgba(255,255,255,.5); transform: translateY(-1px); }
.badge:active { transform: scale(.97); }
.badge svg { width: 28px; height: 28px; margin-top: -3px; }
.badge small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }
.badge-lg { height: 64px; font-size: 25px; padding: 0 26px 0 20px; border-radius: 16px; }
.badge-lg svg { width: 32px; height: 32px; }

.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.textlink svg { width: 16px; height: 16px; transition: transform .2s var(--e-enter); }
.textlink:hover { color: var(--ink); }
.textlink:hover svg { transform: translateY(2px); }

.facts { display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.facts li + li::before { content: '·'; margin: 0 10px; color: var(--ink-3); }
.facts.center { justify-content: center; }

/* ── phone ─────────────────────────────────────────────────────────────── *
   Deliberately minimal: a thin black band and a hairline. The screens are
   the product; the device isn’t.                                           */
.phone {
  /* % padding resolves against the parent (= our width); a radius of
     14.5% / 6.7% is a circular corner at a 924×2000 screen ratio.        */
  container-type: inline-size; position: relative; margin: 0;
  padding: 2.2%; border-radius: 14.5% / 6.7%;
  background: linear-gradient(160deg, #202024, #0b0b0d 45%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -40px rgba(0,0,0,.9);
}
.phone img, .phone video { width: 100%; height: auto; border-radius: 12.5cqw; background: var(--screen); }
.phone-rec { border-radius: 14.5% / 7%; }
.phone-rec video { aspect-ratio: 600 / 1236; object-fit: cover; }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy { container-type: inline-size; display: grid; gap: 22px; }
.hero-copy .eyebrow { margin-bottom: 4px; }

.morph { --n: 13; position: relative; font-size: min(calc(100cqw / (var(--n) * .6)), 112px); line-height: 1; height: 1.08em; font-weight: 900; letter-spacing: -.035em; white-space: nowrap; }
.morph-vague, .morph-exact { position: absolute; inset: 0 auto auto 0; }
.morph-vague { color: #6B6B72; font-weight: 500; letter-spacing: -.03em; transition: opacity .22s var(--e-soft), transform .22s var(--e-soft), filter .22s; }
.caret { display: inline-block; width: .06em; height: .8em; margin-left: .06em; vertical-align: -.06em; background: var(--accent); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.morph-exact { opacity: 0; transform: scale(.96); transform-origin: left center; transition: opacity .12s, transform .38s var(--e-enter); }
.morph-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; color: var(--uc, var(--ink)); }
.morph.swapped .morph-vague { opacity: 0; transform: translateY(-.18em); filter: blur(6px); }
.morph.swapped .morph-exact { opacity: 1; transform: none; }
.morph-note { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .02em; margin-top: -8px; min-height: 1.4em; }
.morph-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uc, var(--ink-3)); flex: none; }
.morph-note .dot.live { animation: pulse 1.6s ease-in-out infinite; }

.hero h1 { margin-top: 10px; max-width: 15ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 350px, calc((100svh - 150px) / 2.2)); min-width: 260px; }
.glow-red { inset: 12% -10% 20% -10%; background: rgba(255,59,48,.30); }
.phone-hero { animation: rise .9s var(--e-enter) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(78vw, 360px); margin-top: 16px; }
}

/* ── problem ───────────────────────────────────────────────────────────── */
.problem { padding-top: clamp(40px, 6vw, 80px); }
.hideouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); }
.hideouts li { font-size: clamp(26px, 3.3vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; color: #8E8E95; }
.hideouts .src { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hideouts .src i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
@media (max-width: 640px) { .hideouts { grid-template-columns: 1fr; } }

.pivot { margin-top: clamp(72px, 10vw, 136px); display: grid; gap: 24px; }
.pivot-big { font-size: clamp(38px, 6.4vw, 88px); font-weight: 900; letter-spacing: -.048em; line-height: .98; }
.pivot-big span { color: var(--now); }
.pivot-small { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; }

/* ── assignment card: components/TaskCard.tsx, in em so it can scale ───── */
.tc {
  --uc: var(--calm);
  font-size: 16px; line-height: 1.22; border-radius: 1.25em; position: relative;
  box-shadow: 0 2px 4px #191919, 0 8px 12px -6px color-mix(in srgb, var(--sc) 45%, transparent);
}
.tc-in {
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 1em; border-radius: 1.25em;
  border: 1px solid transparent; border-left-width: 4px;
  background: #1B1B1C;
  transition: background-color .2s, border-color .2s, opacity .3s;
}
.tc-box {
  flex: none; width: 1.5em; height: 1.5em; margin-right: 1em; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); background: transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.tc-box svg { width: .875em; height: .875em; color: #fff; opacity: 0; transition: opacity .2s; }
.tc-info { flex: 1; min-width: 0; }
.tc-t { font-size: 1em; font-weight: 800; color: #fff; margin-bottom: .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.tc-d { font-size: .75em; font-weight: 750; color: #A0A0A0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-u { margin-left: auto; padding-left: 12px; font-size: .75em; font-weight: 800; letter-spacing: .5px; color: var(--uc); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The shipping card’s bar sits 12pt in on the left and stops short on the right. */
.tc-bar { position: absolute; left: .75em; right: 1.9em; bottom: 0; height: 3px; background: var(--uc); }
.tc.live .tc-bar { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* completing → completed, as in AnimatedCheckbox + taskCardCompleted */
.tc.completing .tc-in { border-color: var(--sc); background-color: color-mix(in srgb, var(--sc) 5%, #1B1B1C); }
.tc.completing .tc-box { background: var(--sc); border-color: var(--sc); animation: pop .42s cubic-bezier(.3, 1.8, .5, 1); }
.tc.completing .tc-box svg { opacity: 1; }
.tc.completing .tc-u, .tc.completing .tc-bar, .tc.done .tc-u, .tc.done .tc-bar { visibility: hidden; }
@keyframes pop { 40% { transform: scale(1.2); } }
.tc.done .tc-in { opacity: .5; background: #151516; border-color: color-mix(in srgb, var(--sc) 12%, transparent); border-left-color: color-mix(in srgb, var(--sc) 50%, transparent); }
.tc.done .tc-box { background: rgba(255,255,255,.1); border-color: transparent; }
.tc.done .tc-box svg { opacity: .4; }
.tc.done .tc-t { text-decoration: line-through; color: #888; }
.tc.done .tc-d { text-decoration: line-through; color: #666; }

/* ── mechanic ──────────────────────────────────────────────────────────── */
.mech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.mech-copy { display: grid; gap: 22px; align-content: start; }
.ladder { display: grid; gap: 8px; margin-top: 10px; max-width: 460px; }
.ladder li {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--hair);
  transition: border-color .2s, background-color .2s;
}
.ladder i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ladder b { font-weight: 700; font-size: 16px; }
.ladder span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.ladder [data-band=calm] { --c: var(--calm); } .ladder [data-band=soon] { --c: var(--soon); }
.ladder [data-band=move] { --c: var(--move); } .ladder [data-band=now]  { --c: var(--now); }
.ladder li.on { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.ladder li.on span { color: var(--c); }

.demo-screen {
  position: relative; overflow: hidden; border-radius: 32px; padding: 28px 22px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc, #FF3B30) 10%, var(--screen)), var(--screen) 150px);
  border: 1px solid var(--hair); display: grid; gap: 22px;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.9);
}
.demo-screen .tc { font-size: 17px; }
.demo-head { display: grid; gap: 12px; }
.demo-sub { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--pc, #fff); background: rgba(255,255,255,.05);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff;
}
.pill svg { width: 12px; height: 12px; }
.pill.urg { color: var(--uc); border-color: var(--uc); }
.pill.urg.live { animation: pulse 1.6s ease-in-out infinite; }
.demo-state { display: none; }

.scrub { display: grid; gap: 10px; }
.scrub-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.scrub-label .mono { font-size: 12.5px; color: var(--uc, var(--ink-2)); }
.scrub-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer;
  --p: 0%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--calm) 0 28.4%, var(--soon) 28.4% 71.0%, var(--move) 71.0% 85.2%, var(--now) 85.2%);
  opacity: .85;
}
input[type=range]::-moz-range-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--calm) 0 28.4%, var(--soon) 28.4% 71.0%, var(--move) 71.0% 85.2%, var(--now) 85.2%);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.6);
}
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 51px; height: 31px; border-radius: 99px; background: rgba(120,120,128,.36); position: relative; transition: background-color .2s; }
.switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--e-enter); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.switch b { display: block; font-size: 15px; font-weight: 700; }
.switch small { display: block; font-size: 13px; color: var(--ink-2); }

.own { border-radius: 16px; border: 1px solid var(--hair); }
.own summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.own summary::-webkit-details-marker { display: none; }
.own summary::after { content: '+'; font-family: var(--mono); font-size: 18px; color: var(--ink-3); }
.own[open] summary::after { content: '−'; }
.own-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.own-body label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.own-body input {
  font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
  color-scheme: dark;
}
.own-body input:focus { outline: none; border-color: var(--accent); }
.chip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
  color: var(--sc, #FF3B30); background: color-mix(in srgb, var(--sc, #FF3B30) 16%, transparent);
}
.chip-btn svg { width: 16px; height: 16px; }
.demo-caption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 16px; }

@media (max-width: 880px) { .mech-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .demo-screen .tc { font-size: 15px; } .demo-screen { padding: 22px 14px 16px; } }

/* ── screens ───────────────────────────────────────────────────────────── */
.screens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.screen-item { display: grid; gap: 14px; }
.screen-item .phone { width: min(100%, 320px); margin: 0 auto 18px; }
.screen-item p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.screen-item:nth-child(2) { margin-top: clamp(0px, 6vw, 72px); }
@media (max-width: 880px) {
  .screens-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78vw, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 8px; scrollbar-width: none; }
  .screens-grid::-webkit-scrollbar { display: none; }
  .screen-item { scroll-snap-align: center; }
  .screen-item:nth-child(2) { margin-top: 0; }
}

.builder {
  margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 48px);
  border-radius: 32px; background: var(--screen); border: 1px solid var(--hair);
}
.builder-copy { display: grid; gap: 12px; }
.builder-copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.builder-copy p { color: var(--ink-2); }
.builder-ui { display: grid; gap: 22px; }
@media (max-width: 880px) { .builder { grid-template-columns: 1fr; } }

/* subject card: app/(tabs)/index.tsx subjectCard */
.sc {
  font-size: 17px; line-height: 1.22; display: flex; align-items: center; padding: 1em; border-radius: 1.25em;
  border: 1px solid color-mix(in srgb, var(--sc) 50%, transparent); border-left: 4px solid var(--sc);
  background: color-mix(in srgb, var(--sc) 6%, var(--screen));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--sc) 30%, transparent);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-size: 1.125em; font-weight: 800; color: #fff; margin-bottom: .25em; letter-spacing: -.01em; }
.sc-det { font-size: .8125em; font-weight: 700; color: #A0A0A0; }
.sc-icon { flex: none; width: 2.75em; height: 2.75em; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 15%, transparent); color: var(--sc); transition: color .2s, background-color .2s; }
.sc-icon svg { width: 1.5em; height: 1.5em; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed=true] { box-shadow: inset 0 0 0 3px #fff; }
.iconpick { display: flex; flex-wrap: wrap; gap: 10px; }
.iconbtn { width: 48px; height: 48px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.05); color: #888; display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.iconbtn svg { width: 24px; height: 24px; }
.iconbtn[aria-pressed=true] { color: var(--sc); border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); }

/* ── how ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: none; }
.step { display: grid; gap: 10px; align-content: start; }
.step .phone { width: min(100%, 300px); margin: 0 auto 22px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .1em; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 32ch; }
.step em { font-style: normal; color: var(--ink); }
@media (max-width: 880px) {
  .steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78vw, 300px);
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 8px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; }
}

.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(56px, 7vw, 96px); }
.extra { margin: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 28px; overflow: hidden; background: var(--screen); border: 1px solid var(--hair); padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0; }
.extra img { width: min(100%, 380px); height: auto; margin: 0 auto; aspect-ratio: 610 / 760; object-fit: cover; object-position: center top; border-radius: 22px; }
.extra .crop-recurring { object-position: center 88%; }
.extra figcaption { padding: 22px 8px 26px; color: var(--ink-2); font-size: 16px; }
.extra figcaption b { color: var(--ink); display: block; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 720px) { .extras { grid-template-columns: 1fr; } }

/* ── reminders ─────────────────────────────────────────────────────────── */
.rem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy notifs" "daily notifs"; gap: 0 clamp(40px, 7vw, 112px); align-items: start; }
.rem-copy { grid-area: copy; } .notifs { grid-area: notifs; } .daily { grid-area: daily; }
.rem-copy { display: grid; gap: 22px; }
.notifs { display: grid; gap: 14px; }
.nt { display: grid; gap: 6px; }
.nt-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-left: 6px; }
.nt-hot .nt-when { color: var(--now); }
.nt-card {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 22px;
  background: rgba(38,38,42,.82); border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', var(--sans);
  font-size: 15px; line-height: 1.3; letter-spacing: -.01em;
}
.nt-card img { border-radius: 9px; }
.nt-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.nt-top b { font-weight: 600; }
.nt-top span { color: rgba(255,255,255,.5); font-size: 13px; }
.nt-hot .nt-top span { color: rgba(255,255,255,.6); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; font-weight: 600; padding-top: 2px; }
.nt-card p:last-child { color: rgba(255,255,255,.92); }
.js .nt { opacity: 0; transform: translateY(-26px) scale(.98); }
.js .notifs.in .nt { opacity: 1; transform: none; transition: opacity .35s, transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.js .notifs.in .nt:nth-child(2) { transition-delay: .16s; } .js .notifs.in .nt:nth-child(3) { transition-delay: .32s; }
.js .notifs.in .nt:nth-child(4) { transition-delay: .48s; } .js .notifs.in .nt:nth-child(5) { transition-delay: .64s; }

.daily { margin-top: 40px; padding: 26px; border-radius: 28px; background: var(--screen); border: 1px solid var(--hair); display: grid; gap: 14px; }
.daily-kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.daily-kicker svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.daily-line { font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; letter-spacing: -.035em; line-height: 1.06; }
.daily-alt { color: var(--ink-2); transition: opacity .3s; }
.daily-alt.fade { opacity: 0; }
.daily-note { font-size: 14px; color: var(--ink-3); }
.film { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 8px 16px 8px 8px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); cursor: pointer; text-align: left; width: fit-content; transition: background-color .2s; }
.film:hover { background: rgba(255,255,255,.09); }
.film-thumb { position: relative; width: 44px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; }
.film-thumb svg { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.8)); }
.film-t b { display: block; font-size: 15px; }
.film-t small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 880px) { .rem-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "notifs" "daily"; } .notifs { margin-top: 36px; } .daily { margin-top: 48px; } }

.filmbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.filmbox::backdrop { background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.filmbox video { width: min(90vw, calc(86vh * 9 / 16)); height: auto; border-radius: 24px; background: #000; }
.filmbox-x { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-2); background: #1E1E1E; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.filmbox-x svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .filmbox-x { top: 8px; right: 8px; } }

/* ── widgets (plugins/deadline-widget/ios/DeadlineWidget.swift) ─────────── */
.wid-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); }
.wid-home, .wid-lock { border-radius: 32px; padding: clamp(20px, 2.4vw, 28px); background: var(--screen); border: 1px solid var(--hair); display: grid; gap: 22px; align-content: start; }
.wid-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wid-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: start; justify-content: center; }
.w {
  font-family: var(--rounded); color: #fff; border-radius: 22px; padding: 16px;
  background: linear-gradient(135deg, #17151F, #09090B);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 40px -24px rgba(0,0,0,.9);
  display: flex; flex-direction: column; height: 170px;
}
.w-small { width: 170px; }
.w-medium { width: 364px; max-width: 100%; }
.w-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.w-head b { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; color: rgba(255,255,255,.72); }
.w-head span { font-size: 9px; font-weight: 600; letter-spacing: .8px; color: rgba(255,255,255,.38); }
.w-sub { font-size: 10px; font-weight: 700; letter-spacing: .8px; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-title { font-size: 19px; font-weight: 700; line-height: 1.12; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-cd { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); margin-top: 5px; }
.w-cap { height: 3px; border-radius: 99px; margin-top: 10px; }
.w-cols { display: flex; gap: 12px; margin-top: 11px; flex: 1; }
.w-col { flex: 1; min-width: 0; display: grid; gap: 8px; align-content: start; }
.w-col + .w-col { border-left: 1px solid rgba(255,255,255,.1); padding-left: 12px; }
.w-col > b { font-size: 10px; font-weight: 700; letter-spacing: .7px; }
.w-item p:first-child { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-item p:last-child { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); }

.lock {
  border-radius: 28px; padding: 22px 20px 26px; text-align: center; display: grid; gap: 6px; justify-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #2a2447 0%, #13121c 55%, #0b0b10 100%);
  font-family: var(--rounded); color: rgba(255,255,255,.92);
}
.lock-inline { font-size: 14px; font-weight: 600; opacity: .85; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-time { font-size: clamp(64px, 8vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.lock-row { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; }
.w-circ { width: 72px; height: 72px; flex: none; position: relative; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.w-circ svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); transform: rotate(135deg); }
.w-circ b { font-size: 17px; font-weight: 700; position: relative; }
.w-rect { flex: 1; max-width: 180px; height: 72px; border-radius: 14px; padding: 8px 12px; text-align: left; display: grid; align-content: center; gap: 1px; background: rgba(255,255,255,.14); }
.w-rect span { font-size: 9px; font-weight: 600; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rect b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rect small { font-size: 11px; font-weight: 600; opacity: .65; }
.widgets .fine { margin-top: 26px; }
@media (max-width: 880px) { .wid-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .wid-row { gap: 14px; }
  .w-small { width: calc(50% - 7px); min-width: 150px; height: 160px; }
  .w-medium { width: 100%; }
}

/* ── private ───────────────────────────────────────────────────────────── */
.truths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.truths li { display: grid; gap: 8px; align-content: start; padding: 26px 24px 28px; border-radius: 24px; background: var(--screen); border: 1px solid var(--hair); }
.truths svg { width: 26px; height: 26px; color: var(--accent-ink); margin-bottom: 10px; }
.truths b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.truths span { color: var(--ink-2); font-size: 15.5px; }
.private .fine { margin-top: 30px; }
@media (max-width: 980px) { .truths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .truths { grid-template-columns: 1fr; } }

/* ── reviews ───────────────────────────────────────────────────────────── */
.reviews { padding-top: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.quote { margin: 0; padding: 28px 26px; border-radius: 24px; border: 1px solid var(--hair); display: grid; gap: 14px; align-content: start; }
.stars { color: #FFD60A; letter-spacing: 3px; font-size: 15px; }
.quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.quote figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ── details ───────────────────────────────────────────────────────────── */
.det-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.det-grid > div:first-child { display: grid; gap: 22px; position: sticky; top: 110px; }
.det-list { display: grid; }
.det-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--hair); }
.det-list > div:last-child { border-bottom: 1px solid var(--hair); }
.det-list dt { font-weight: 800; font-size: 17px; }
.det-list dd { color: var(--ink-2); font-size: 16px; }
.themes { display: flex; gap: 10px; margin-top: 12px; }
.theme { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; opacity: .75; transition: transform .15s, opacity .15s; }
.theme:hover { opacity: 1; transform: scale(1.08); }
.theme[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 3px var(--void), 0 0 0 5px #fff, 0 0 16px 2px var(--c); }
@media (max-width: 880px) { .det-grid { grid-template-columns: 1fr; } .det-grid > div:first-child { position: static; } }
@media (max-width: 520px) { .det-list > div { grid-template-columns: 1fr; gap: 6px; } }

/* ── faq ───────────────────────────────────────────────────────────────── */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--hair); }
.faq-list details:last-child { border-bottom: 1px solid var(--hair); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 700; letter-spacing: -.015em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--ink-3); transition: rotate .2s; }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 0 24px; color: var(--ink-2); max-width: 60ch; }
.faq-list a { color: var(--accent-ink); }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── final ─────────────────────────────────────────────────────────────── */
.final { text-align: center; overflow: hidden; }
.final::before {
  content: ''; position: absolute; left: 50%; top: 42%; width: min(900px, 120vw); height: 420px; translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--uc, var(--now)) 22%, transparent), transparent); pointer-events: none;
}
.final-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; }
.final h2 { max-width: 14ch; }
.tc-final { font-size: 18px; width: min(100%, 520px); min-width: 0; text-align: left; }
@media (max-width: 420px) { .tc-final { font-size: 15px; } }
.tc-final .tc-box { cursor: default; }
.final-note { color: var(--ink-2); margin-top: -8px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--hair); padding-block: 44px 56px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.foot-brand { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 14px; }
.foot-brand img { border-radius: 10px; }
.wordmark { font-weight: 900; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-small { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }

/* ── reveal ────────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .38s var(--e-enter), transform .6s var(--e-enter); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .nt { opacity: 1; transform: none; }
  .caret { animation: none; }
}

/* ── document pages: privacy, support ──────────────────────────────────── */
.docpage .nav { position: sticky; }
.doc { max-width: 820px; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.doc h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; margin: 14px 0 18px; }
.doc-date { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.doc-short { margin-top: 32px; padding: 24px 26px; border-radius: 22px; background: var(--screen); border: 1px solid var(--hair); color: var(--ink-2); font-size: 17px; }
.doc-short strong { color: var(--ink); }
.doc section { padding: 0; margin-top: 44px; }
.doc section h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.2; display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.doc section h2 span { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); letter-spacing: .06em; }
.doc section p, .doc-faq p { color: var(--ink-2); margin-top: 12px; max-width: 68ch; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--accent-ink); }
.doc-faq { margin-top: 40px; }
.doc-faq details p:last-child { padding-bottom: 24px; }
.doc-faq details p { padding-bottom: 0; }
.doc-ladder { display: grid; gap: 10px; margin-top: 14px; }
.doc-ladder li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.doc-ladder i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.doc-ladder b { color: var(--ink); min-width: 56px; }
.doc-contact { margin-top: 72px !important; padding: clamp(24px, 4vw, 40px) !important; border-radius: 28px; background: var(--screen); border: 1px solid var(--hair); }
.mailbox { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); text-decoration: none; color: var(--ink) !important; font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); word-break: break-all; }
.mailbox:hover { background: rgba(255,255,255,.08); }
.mailbox svg { width: 26px; height: 26px; color: var(--accent-ink); flex: none; }
.mailbox small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); word-break: normal; }
.foot nav a[aria-current=page] { color: var(--ink); }
