/*
 * KEPT website. Tokens mirror app/src/lib/theme.ts one to one: warm paper,
 * near-black ink, one burnt-orange accent; Plex Serif Bold for display,
 * Plex Sans for everything else; almost-square corners.
 */

/* —— fonts (self-hosted, Latin + Turkish subset; SIL OFL, see fonts/OFL.txt) —— */
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans_400Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans_400Regular_Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans_500Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans_600SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/IBMPlexSerif_700Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../fonts/IBMPlexSerif_400Regular_Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* —— tokens —— */
:root {
  color-scheme: light dark;

  --bg: #F7F1E8;
  --surface: #EFE7DC;
  --surface-sunk: #E7DDD0;
  --border: rgba(31, 29, 26, 0.12);
  --text: #1F1D1A;
  --text-muted: #6D675F;
  --on-image: #FFFDF8;
  --accent: #C8661A;
  --accent-soft: #E9C7A8;
  --on-accent: #FFFDF8;
  --skipped: #756C63;
  --danger: #A4452A;

  --card-sage: #DCE3CC;
  --card-clay: #EED3C3;
  --card-mist: #D2DEE6;
  --card-ochre: #EEDFB8;
  --card-mauve: #E2D3E0;
  --card-eucalyptus: #CBE2DA;

  --chip-on-bg: #E9C7A8;
  --chip-on-fg: #6E3309;

  --card-shadow: 0 1px 2px rgba(31, 29, 26, 0.10), 0 3px 8px rgba(31, 29, 26, 0.08);
  --lift-shadow: 0 2px 4px rgba(31, 29, 26, 0.08), 0 24px 48px -12px rgba(31, 29, 26, 0.28);

  /* The check-in poster stands in for a habit photo: a warm, dark print. */
  --poster: radial-gradient(120% 80% at 80% 15%, #7A4A22 0%, #3A2617 45%, #17110C 100%);

  --serif: "Plex Serif", "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --page: 20px;
  --radius: 4px;
  --radius-control: 6px;
  --radius-modal: 12px;
  --max: 1120px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --surface: #211D19;
    --surface-sunk: #2A2520;
    --border: rgba(247, 241, 232, 0.12);
    --text: #F3EBDF;
    --text-muted: #A89E91;
    --accent: #D9793A;
    --accent-soft: #4A2E1A;
    --skipped: #9A9086;
    --danger: #D98466;

    --card-sage: #353B2C;
    --card-clay: #46322A;
    --card-mist: #2C363E;
    --card-ochre: #433A26;
    --card-mauve: #3C303C;
    --card-eucalyptus: #273833;

    --chip-on-bg: #4A2E1A;
    --chip-on-fg: #F1B98C;

    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.40), 0 3px 8px rgba(0, 0, 0, 0.28);
    --lift-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  }
}

/* —— base —— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Drawn app screens set their own spacing. */
.phone p, .tile p, .briefing p, .poster p, .reason-card p, .stat p, .paywall p { margin: 0; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--text); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--page); top: -60px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* —— type (app/src/components/ui.tsx `variants`) —— */
.overline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.overline-12 { font-size: 12px; }
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.heading { font-weight: 600; font-size: 17px; line-height: 23px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-muted); max-width: 34em; }
.muted { color: var(--text-muted); }
.caption { font-size: 12px; line-height: 16px; }
.accent { color: var(--accent); }
.num {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--accent);
}

/* The handwritten aside: Plex Sans Italic, tilted, with a short accent stroke. */
.note {
  display: inline-block;
  font-style: italic;
  font-size: 17px;
  line-height: 24px;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.note::after { content: ""; display: block; width: 44px; height: 2px; border-radius: 1px; background: var(--accent); margin-top: 4px; }
.note-lg { font-size: 20px; line-height: 28px; }

/* —— controls —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), filter 120ms var(--ease), background-color 120ms var(--ease);
}
.btn:hover { color: inherit; filter: brightness(0.92); }
.btn:active { transform: scale(0.985); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.btn-secondary:hover { background: var(--surface); filter: none; }
.btn-store { flex-direction: row; justify-content: flex-start; min-width: 230px; }
.btn-store .store { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .store small { font-weight: 400; font-size: 11px; letter-spacing: 1px; opacity: 0.75; }
.btn-store .icon { width: 22px; height: 22px; }
.btn-store .arrow { margin-left: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: var(--chip-on-bg);
  color: var(--chip-on-fg);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* KEPT / SKIPPED stamp (StatusMark). */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.4px;
  color: var(--on-accent);
  background: var(--accent);
}
.mark .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.mark-skipped { background: var(--skipped); }

/* —— top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.wordmark {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 5px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.wordmark:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--text-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 13px; color: var(--bg); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* —— sections —— */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .title { margin-bottom: 20px; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

/* —— hero —— */
.hero { padding: 72px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-copy .overline { margin-bottom: 20px; }
.hero-copy .display { margin-bottom: 28px; }
.hero-copy .note { margin: 0 0 36px; }
.hero-copy .lede { margin-bottom: 36px; }
.hero-copy .caption { margin-top: 16px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .mascot {
  position: absolute;
  width: 200px;
  left: -24px;
  bottom: -48px;
  z-index: 2;
  filter: drop-shadow(0 18px 24px rgba(31, 29, 26, 0.18));
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-art .mascot { width: 150px; left: -8px; bottom: -36px; }
}

/* —— the phone (a drawing of Home, not a screenshot) —— */
.phone {
  position: relative;
  width: 320px;
  max-width: 100%;
  border-radius: 46px;
  padding: 11px;
  background: #1F1D1A;
  box-shadow: var(--lift-shadow), inset 0 0 0 1.5px #3A3632;
  transform: rotate(2deg);
}
.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 19.2;
  display: flex;
  flex-direction: column;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 4px; font-weight: 600; font-size: 12px; }
.phone-status .dots { display: flex; gap: 4px; align-items: center; }
.phone-status .dots i { display: block; width: 14px; height: 8px; border-radius: 2px; background: var(--text); }
.phone-status .dots i:first-child { width: 12px; opacity: 0.85; }
.phone-island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 0; }
.phone-top .wm { font-weight: 500; font-size: 15px; letter-spacing: 3.5px; }
.phone-top .icon { width: 18px; height: 18px; }
.phone-body { flex: 1; padding: 10px 14px 0; display: flex; flex-direction: column; min-height: 0; }
.phone-hello { position: relative; margin-bottom: 14px; padding-right: 64px; }
.phone-hello .overline { font-size: 8px; line-height: 11px; letter-spacing: 1.6px; margin-bottom: 4px; }
.phone-hello .big { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.02; letter-spacing: -0.4px; }
.phone-hello .big .num { font-size: 46px; display: inline-block; vertical-align: -6px; margin-right: 4px; }
.phone-hello .big small { display: inline-block; font-size: 15px; line-height: 1; vertical-align: 2px; }
.phone-hello .aside { position: absolute; right: 0; top: 2px; font-style: italic; font-size: 10px; line-height: 13px; transform: rotate(-4deg); width: 64px; }
.phone-hello .aside::after { content: ""; display: block; width: 24px; height: 1.5px; background: var(--accent); margin-top: 3px; }
.phone-label { display: flex; justify-content: space-between; margin-bottom: 7px; }
.phone-label .overline { font-size: 8px; line-height: 10px; letter-spacing: 1.6px; }
.phone-label .overline.muted { letter-spacing: 1.2px; }

.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 3px; flex: 1; min-height: 0; }
.mosaic .tile:nth-child(1) { grid-row: span 2; }
.mosaic .tile:nth-child(4) { grid-column: 1; }

.phone-tabs { display: flex; justify-content: space-around; align-items: center; padding: 8px 18px 16px; margin-top: 8px; border-top: 1px solid var(--border); }
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 8px; color: var(--text-muted); }
.phone-tabs span.on { color: var(--text); font-weight: 500; }
.phone-tabs .icon { width: 16px; height: 16px; }
.phone-tabs .add { width: 28px; height: 22px; border-radius: 4px; background: var(--text); color: var(--bg); display: grid; place-items: center; }
.phone-tabs .add .icon { width: 14px; height: 14px; stroke-width: 2.2; }

/* —— tiles (EditorialTile) —— */
.tile {
  --tile-bg: var(--surface);
  --tile-fg: var(--text);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%), var(--tile-bg);
  color: var(--tile-fg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-height: 0;
}
.tile .icon { width: 16px; height: 16px; }
.tile .t-title { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.05; letter-spacing: -0.4px; }
.tile .t-sub { font-size: 9px; line-height: 12px; margin-top: 2px; opacity: 0.85; }
.tile .t-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.tile .t-foot .ring { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px currentColor; }
.tile .t-foot .done { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.tile .t-foot .done .icon { width: 9px; height: 9px; stroke-width: 3; }
.tile .t-foot .overline { font-size: 7px; line-height: 9px; letter-spacing: 1.4px; }
.tile-lg .t-title { font-size: 26px; }
.tile-lg .icon { width: 20px; height: 20px; }
.tile-sage { --tile-bg: var(--card-sage); }
.tile-clay { --tile-bg: var(--card-clay); }
.tile-mist { --tile-bg: var(--card-mist); }
.tile-ochre { --tile-bg: var(--card-ochre); }
.tile-mauve { --tile-bg: var(--card-mauve); }
.tile-eucalyptus { --tile-bg: var(--card-eucalyptus); }
.tile-ink { --tile-bg: var(--text); --tile-fg: var(--bg); background: var(--tile-bg); }

/* —— two moments —— */
.moments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.moment {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  min-height: 600px;
  overflow: hidden;
}
.moment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.moment-head .icon { width: 18px; height: 18px; color: var(--accent); }
.moment h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.4px; margin-bottom: 10px; }
.moment > p { color: var(--text-muted); max-width: 30em; }
.moment-stage { margin-top: auto; padding-top: 28px; }
@media (max-width: 900px) {
  .moments { grid-template-columns: minmax(0, 1fr); }
  .moment { min-height: 0; padding: 24px; }
}

/* Morning: Today's Briefing. */
.briefing { position: relative; background: var(--bg); border-radius: var(--radius-modal); box-shadow: var(--card-shadow); padding: 22px 20px 20px; }
.briefing .mascot { position: absolute; right: -6px; top: -64px; width: 128px; }
.briefing .date { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 8px 0 18px; }
.briefing .count { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.briefing .count .num { font-size: 64px; }
.briefing .count span:last-child { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; padding-bottom: 6px; }
.brief-list { display: grid; gap: 6px; }
.brief-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--card-shadow); background: var(--tile-bg, var(--surface)); }
.brief-card .icon { width: 18px; height: 18px; }
.brief-card b { display: block; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.15; }
.brief-card span { display: block; font-size: 12px; line-height: 16px; opacity: 0.8; }
.briefing .btn { width: 100%; margin-top: 16px; min-height: 46px; font-size: 13px; }

/* Night: the check-in poster deck. */
.deck { position: relative; height: 430px; }
.deck .back {
  position: absolute;
  left: 50%;
  width: 84%;
  height: 100%;
  border-radius: var(--radius);
  background: var(--surface-sunk);
  box-shadow: var(--card-shadow);
  transform: translateX(-50%);
}
.deck .back-1 { top: -12px; width: 90%; opacity: 0.9; }
.deck .back-2 { top: -22px; width: 80%; opacity: 0.6; }
.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--poster);
  color: var(--on-image);
  box-shadow: var(--lift-shadow);
  overflow: hidden;
}
.poster .progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.poster .progress i { display: block; width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 253, 248, 0.35); }
.poster .progress i:first-of-type { background: var(--accent); }
.poster .name { font-family: var(--serif); font-weight: 700; font-size: 54px; line-height: 1; letter-spacing: -1.5px; margin-top: auto; }
.poster .overline { margin-bottom: 0; }
.poster .why { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 6px 0 22px; opacity: 0.92; }
.poster .q { font-family: var(--serif); font-size: 17px; text-align: center; margin-bottom: 14px; }
.poster .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poster .answers > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border-radius: var(--radius);
  text-align: center;
}
.poster .answers b { display: block; font-weight: 600; font-size: 13px; letter-spacing: 1.6px; }
.poster .answers small { display: block; font-size: 11px; opacity: 0.8; }
.poster .answers .skip { background: rgba(117, 108, 99, 0.85); }
.poster .answers .keep { background: var(--accent); }
.poster .stamp {
  position: absolute;
  top: 38%;
  right: 22px;
  transform: rotate(-8deg) scale(1.6);
  opacity: 0;
  font-size: 15px;
  padding: 7px 14px;
  box-shadow: 0 0 0 2px var(--on-image);
}

/* One swipe right, then the next card settles: physical, fast, no bounce. */
@media (prefers-reduced-motion: no-preference) {
  .poster-live { animation: swipe-kept 7s var(--ease) infinite; }
  .poster-live .stamp { animation: stamp 7s var(--ease) infinite; }
  .poster-next { animation: rise 7s var(--ease) infinite; }
}
.poster-next { z-index: 0; }
.poster-live { z-index: 1; }
@keyframes swipe-kept {
  0%, 30% { transform: none; opacity: 1; }
  44% { transform: translateX(6%) rotate(2deg); opacity: 1; }
  58% { transform: translateX(130%) rotate(12deg); opacity: 0; }
  59%, 88% { transform: translateX(0) scale(0.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes stamp {
  0%, 32% { opacity: 0; transform: rotate(-8deg) scale(1.6); }
  38%, 56% { opacity: 1; transform: rotate(-8deg) scale(1); }
  60%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); }
}
@keyframes rise {
  0%, 44% { transform: translateY(-12px) scale(0.94); opacity: 0.6; }
  60%, 86% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 0; }
}

/* —— if you didn't —— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.reason-card { position: relative; background: var(--surface); border-radius: var(--radius-modal); padding: 28px; }
.reason-card .mascot { position: absolute; width: 128px; right: -16px; top: -84px; }
.reason-lede { max-width: 25em; margin-bottom: 72px !important; }
.reason-card h3 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 6px 0 4px; }
.reason-card .hint { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 17px;
}
.field .typed { flex: 1; }
.field .typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .field .typed::after { animation: caret 1.1s steps(1) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }
.field .mic { width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--text); color: var(--bg); display: grid; place-items: center; flex: none; }
.field .mic .icon { width: 18px; height: 18px; }
.reason-card .btn-row { margin-top: 16px; }
.reason-card .btn-row .btn { flex: 1; min-height: 48px; justify-content: center; font-size: 13px; }

.reasons { border-top: 1px solid var(--border); }
.reasons li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.reasons .n { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--accent); width: 18px; }
.reasons .r { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; }
.reasons .c { font-size: 14px; color: var(--text-muted); }
ol.reasons, ul.plain { list-style: none; margin: 0; padding: 0; }

/* —— won't —— */
.wont { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.wont li { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--border); }
.wont li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--border); }
.wont .no { font-weight: 500; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.wont .no .icon { width: 16px; height: 16px; }
.wont b { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.15; }
.wont span { color: var(--text-muted); font-size: 15px; }
@media (max-width: 900px) {
  .wont { grid-template-columns: 1fr 1fr; }
  .wont li, .wont li:not(:nth-child(3n + 1)) { padding: 24px 20px 24px 0; border-left: 0; }
  .wont li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .wont { grid-template-columns: 1fr; }
  .wont li:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* —— stat blocks —— */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.stat .num { font-size: 88px; line-height: 0.95; margin: 16px 0 8px; }
.stat b { display: block; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 22px; }
.stat p:last-child { margin: 8px 0 0; font-size: 15px; line-height: 20px; color: var(--text-muted); }
.stat-dark { background: var(--text); color: var(--bg); }
.stat-dark .num { color: var(--bg); }
.stat-dark p:last-child { color: inherit; opacity: 0.75; }
.stat-accent { background: var(--accent); color: var(--on-accent); }
.stat-accent .num { color: var(--on-accent); }
.stat-accent p:last-child { color: inherit; opacity: 0.9; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.below-stats { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* —— pricing (the paywall) —— */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.paywall { background: var(--bg); border-radius: var(--radius-modal); box-shadow: var(--lift-shadow); padding: 32px 28px 24px; max-width: 420px; margin: 0 auto; }
.paywall img { width: 150px; margin: 0 auto 16px; }
.paywall h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.checks .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; margin-top: 3px; }
.paywall .caption { text-align: center; color: var(--text-muted); margin: 20px 0 12px; }
.paywall h3 .paw { white-space: nowrap; }
.paywall .btn { width: 100%; justify-content: center; }
.paywall .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; }
.paywall .links a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.paywall .links a:hover { color: var(--text); }

.terms-line { font-size: 14px; color: var(--text-muted); margin-top: 20px; max-width: 34em; }

/* —— good night —— */
.night { background: #000; color: #F3EBDF; padding: 96px 0 0; overflow: hidden; }
.night .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.night .overline { color: #A89E91; margin-bottom: 18px; }
.night .display { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 24px; }
.night .note { margin-bottom: 36px; }
.night .note::after { background: #D9793A; }
.night .btn-primary { background: #F3EBDF; color: #171411; }
.night .btn-secondary { color: #F3EBDF; box-shadow: inset 0 0 0 1px #F3EBDF; }
.night .btn-secondary:hover { background: #211D19; }
.night .langs { margin-top: 28px; color: #A89E91; font-size: 14px; }
.night img { width: 100%; margin-bottom: -4%; }
@media (max-width: 900px) {
  .night { padding-top: 72px; }
  .night .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* —— footer —— */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--border); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer .wordmark { font-size: 18px; letter-spacing: 4px; display: inline-block; margin-bottom: 8px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer nav a { text-decoration: none; color: var(--text-muted); }
.footer nav a:hover { color: var(--text); }
.footer .small { color: var(--text-muted); font-size: 13px; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

/* —— documents (privacy, terms, support, delete) —— */
.doc { max-width: 760px; padding-top: 64px; padding-bottom: 112px; }
.doc-head { position: relative; padding-right: 150px; margin-bottom: 48px; }
.doc-head .overline { margin-bottom: 12px; }
.doc-head .display { font-size: clamp(40px, 6vw, 60px); margin-bottom: 20px; }
.doc-head .meta { margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.doc-head .mascot { position: absolute; right: -24px; top: -8px; width: 160px; }
@media (max-width: 640px) {
  .doc-head { padding-right: 0; }
  .doc-head .mascot { position: static; width: 120px; margin: 0 0 8px -8px; }
}

.summary { background: var(--surface); border-radius: var(--radius); padding: 24px 24px 8px; margin-bottom: 48px; }
.summary .overline { margin-bottom: 14px; }
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.summary li .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; margin-top: 3px; }

.toc { margin-bottom: 56px; }
.toc .overline { margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; border-top: 1px solid var(--border); }
.toc a { display: flex; gap: 12px; padding: 10px 0; text-decoration: none; font-size: 15px; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-weight: 700; color: var(--accent); min-width: 22px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.prose { font-size: 16px; line-height: 1.65; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 64px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.prose h2 .n { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.prose h3 { font-weight: 600; font-size: 17px; line-height: 23px; margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose .callout { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.2px; }

/* Data tables stack into labelled rows on narrow screens. */
.table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14px; line-height: 1.5; }
.table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); padding: 0 16px 10px 0; border-bottom: 1px solid var(--text); }
.table td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); }
.table td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .table td { padding: 2px 0; border: 0; }
  .table td::before { content: attr(data-label); display: block; font-weight: 500; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
  .table td:first-child::before { display: none; }
}

/* Settings-style rows. */
.rows { list-style: none; margin: 16px 0 24px; padding: 0; border-bottom: 1px solid var(--border); }
.rows li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.rows .icon { width: 19px; height: 19px; color: var(--text-muted); margin-top: 3px; }
.prose .rows { padding-left: 0; }
.prose .rows li { margin-bottom: 0; }
.rows .danger { color: var(--danger); }
.rows .danger .icon { color: var(--danger); }
.rows b { display: block; font-weight: 500; }
.rows span { display: block; font-size: 14px; color: var(--text-muted); }

/* FAQ: native disclosure, no script. */
.faq { border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--text-muted); transition: transform 200ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--text); max-width: 40em; }
.faq .a p:last-child { margin-bottom: 0; }

.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 28px; margin-bottom: 56px; }
.contact-card .title { font-size: 28px; }
.contact-card .title { margin: 0; }
.contact-card p:not(.title) { margin: 6px 0 0; opacity: 0.75; font-size: 15px; }
.contact-card .btn { background: var(--bg); color: var(--text); text-transform: none; letter-spacing: 0.2px; }
.contact-card .btn:hover { color: var(--text); }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-muted); margin-bottom: 40px; }
.back-link .icon { width: 16px; height: 16px; }

/* —— 404 —— */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: 200px; margin: 0 auto 24px; }
.lost .note { transform-origin: center; margin: 16px 0 32px; }
.lost .note::after { margin: 4px auto 0; }

@media print {
  .topbar, .footer, .skip-link, .back-link { display: none; }
  body { background: #fff; color: #000; }
  .doc { padding: 0; }
}
