/* Sahife — marketing site, second edition.
   Values come from .ai/18-BRAND-IDENTITY.md (P-13, P-26); Inter only (P-28).
   Motion: "a page settling into place" — ease-out, no bounce, no springs.
   Everything honours prefers-reduced-motion. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (18 §12, §13, §18–§20, §26, P-26) ---------- */
:root {
  color-scheme: light;
  --ds-bg-app: #FAF8F4;
  --ds-bg-surface: #FFFEFC;
  --ds-bg-subtle: #F5F1E9;
  --ds-bg-elevated: #FFFFFF;
  --ds-text-primary: #211C19;
  --ds-text-secondary: #625247;
  --ds-text-tertiary: #7A6C62;
  --ds-text-disabled: #B8AEA5;
  --ds-text-inverse: #FAF8F4;
  --ds-border-soft: #ECE5DA;
  --ds-border-default: #DDD1C2;
  --ds-border-strong: #B9AA9A;
  --ds-border-input: #9D8A7A;
  --ds-accent-primary: #7F8B78;
  --ds-accent-hover: #65705F;
  --ds-accent-soft: #EEF1EC;
  --ds-selection-background: #E7ECE4;
  --ds-state-hover: #F5F1E9;
  --ds-focus-ring: #65705F;
  --ds-danger: #A75F55;
  --ds-warning: #B18A55;
  --ds-shadow-low: 0 1px 2px rgba(33, 28, 25, 0.05);
  --ds-shadow-medium: 0 4px 16px rgba(33, 28, 25, 0.08);
  --ds-shadow-high: 0 12px 32px rgba(33, 28, 25, 0.12);
  --ink-btn-bg: #211C19;
  --ink-btn-text: #FAF8F4;
  --ink-btn-hover: #332B27;

  /* The night chapter: ink and dark paper in both themes. */
  --night-bg: #1A1715;
  --night-surface: #221E1B;
  --night-subtle: #2A2521;
  --night-border: #403832;
  --night-text: #F6F2EB;
  --night-text-2: #D6CDC2;
  --night-text-3: #A99E93;
  --night-accent: #9FAB97;
  --night-accent-soft: #30382E;

  --ds-radius-xs: 6px;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 24px;

  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-page: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 140ms;
  --motion-standard: 200ms;
  --motion-panel: 260ms;
  --motion-page: 900ms;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ds-bg-app: #1A1715;
    --ds-bg-surface: #221E1B;
    --ds-bg-subtle: #2A2521;
    --ds-bg-elevated: #302A26;
    --ds-text-primary: #F6F2EB;
    --ds-text-secondary: #D6CDC2;
    --ds-text-tertiary: #A99E93;
    --ds-text-disabled: #756C65;
    --ds-text-inverse: #211C19;
    --ds-border-soft: #302A26;
    --ds-border-default: #403832;
    --ds-border-strong: #5A5048;
    --ds-border-input: #83766B;
    --ds-accent-primary: #9FAB97;
    --ds-accent-hover: #B8C3B2;
    --ds-accent-soft: #30382E;
    --ds-selection-background: #30382E;
    --ds-state-hover: #2A2521;
    --ds-focus-ring: #9FAB97;
    --ds-danger: #D39487;
    --ds-warning: #CDA873;
    --ds-shadow-low: 0 1px 2px rgba(0, 0, 0, 0.30);
    --ds-shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.36);
    --ds-shadow-high: 0 12px 32px rgba(0, 0, 0, 0.44);
    --ink-btn-bg: #F6F2EB;
    --ink-btn-text: #211C19;
    --ink-btn-hover: #D6CDC2;
    --night-bg: #120F0E;
    --night-surface: #1A1715;
    --night-subtle: #221E1B;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ds-bg-app: #1A1715;
  --ds-bg-surface: #221E1B;
  --ds-bg-subtle: #2A2521;
  --ds-bg-elevated: #302A26;
  --ds-text-primary: #F6F2EB;
  --ds-text-secondary: #D6CDC2;
  --ds-text-tertiary: #A99E93;
  --ds-text-disabled: #756C65;
  --ds-text-inverse: #211C19;
  --ds-border-soft: #302A26;
  --ds-border-default: #403832;
  --ds-border-strong: #5A5048;
  --ds-border-input: #83766B;
  --ds-accent-primary: #9FAB97;
  --ds-accent-hover: #B8C3B2;
  --ds-accent-soft: #30382E;
  --ds-selection-background: #30382E;
  --ds-state-hover: #2A2521;
  --ds-focus-ring: #9FAB97;
  --ds-danger: #D39487;
  --ds-warning: #CDA873;
  --ds-shadow-low: 0 1px 2px rgba(0, 0, 0, 0.30);
  --ds-shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.36);
  --ds-shadow-high: 0 12px 32px rgba(0, 0, 0, 0.44);
  --ink-btn-bg: #F6F2EB;
  --ink-btn-text: #211C19;
  --ink-btn-hover: #D6CDC2;
  --night-bg: #120F0E;
  --night-surface: #1A1715;
  --night-subtle: #221E1B;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ds-bg-app);
  color: var(--ds-text-primary);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 26px;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--ds-selection-background); color: var(--ds-text-primary); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ds-focus-ring); outline-offset: 3px; border-radius: 4px; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em; padding: 0 .4em;
  font: 500 .78em/1 var(--font-ui);
  color: var(--ds-text-secondary);
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-bottom-width: 2px;
  border-radius: var(--ds-radius-xs);
  vertical-align: .08em;
}
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 18px; height: 18px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ds-bg-elevated); border-radius: var(--ds-radius-sm); }
.skip:focus { top: 16px; }
.soft { color: var(--ds-text-tertiary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--ds-radius-sm);
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}
.btn-ink { background: var(--ink-btn-bg); color: var(--ink-btn-text); }
.btn-ink:hover { background: var(--ink-btn-hover); }
.btn-ink:hover .icon { transform: translateX(2px); }
.btn .icon { transition: transform var(--motion-standard) var(--ease); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.fineprint { font-size: 13px; line-height: 20px; color: var(--ds-text-tertiary); }

/* ---------- Sign-up switch and the waitlist form (D-139) ---------- */
/* <html data-signup="waitlist"> during the alpha; "open" brings back the "Start free" links. */
html[data-signup='waitlist'] .when-open,
html:not([data-signup='waitlist']) .when-waitlist { display: none !important; }
/* The waitlist's honeypot (D-140): out of sight and out of the tab order. */
.wl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.waitlist { position: relative; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; max-width: 520px; }
.hero-cta.center .waitlist { justify-content: center; margin: 0 auto; }
.wl-input {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ds-text-primary);
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-input); border-radius: 10px;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.wl-input::placeholder { color: var(--ds-text-tertiary); }
.wl-input:focus-visible { outline: none; border-color: var(--ds-focus-ring); box-shadow: 0 0 0 1px var(--ds-focus-ring); }
.wl-input[aria-invalid='true'] { border-color: var(--ds-danger); }
.waitlist .btn { flex: none; border: 0; cursor: pointer; }
.waitlist .btn[disabled] { cursor: progress; opacity: .7; }
.wl-msg { flex-basis: 100%; }
.hero-cta.center .wl-msg { text-align: center; }
.wl-msg a { color: var(--ds-text-secondary); }
.wl-msg.is-error { color: var(--ds-danger); }
.waitlist.is-done .wl-input, .waitlist.is-done .btn { display: none; }
.waitlist.is-done .wl-msg { font-size: 15px; line-height: 24px; color: var(--ds-text-secondary); }
@media (max-width: 520px) {
  .waitlist { gap: 10px; }
  .hero-copy { width: 100%; }
  .waitlist { flex-wrap: nowrap; }
  .wl-input { flex-basis: 0; width: 0; }
  .wl-long { display: none; }
  .wl-msg { position: absolute; left: 0; right: 0; top: calc(100% + 12px); }
  .waitlist.is-done .wl-msg { position: static; }
}

/* ---------- Nav with a running head ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background var(--motion-panel) var(--ease), border-color var(--motion-panel) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--ds-bg-app); border-bottom-color: var(--ds-border-soft); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 20px; height: 25px; }
.runhead { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ds-text-tertiary); min-width: 0; opacity: 0; transform: translateY(4px); transition: opacity var(--motion-panel) var(--ease), transform var(--motion-panel) var(--ease); }
.runhead.on { opacity: 1; transform: none; }
.runhead-n { font-variant-numeric: tabular-nums; color: var(--ds-text-secondary); font-weight: 500; }
.runhead-n::after { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--ds-border-strong); vertical-align: middle; margin-left: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ds-text-secondary); padding: 6px 10px; border-radius: var(--ds-radius-xs); transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease); }
.nav-links a:hover { background: var(--ds-state-hover); color: var(--ds-text-primary); }
.nav-links a[aria-current='true'] { color: var(--ds-text-primary); }
@media (max-width: 860px) { .nav-links { display: none; } .runhead { margin-left: auto; } }
@media (max-width: 520px) { .runhead { display: none; } .nav-inner .btn { margin-left: auto; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--motion-page) var(--ease-page), transform var(--motion-page) var(--ease-page); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Hero — the noise leaves, the page settles
   ========================================================= */
.hero { position: relative; height: 250vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-grid { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; padding-top: 64px; pointer-events: none; }
.hero-copy { max-width: 780px; pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; color: var(--ds-text-secondary); margin-bottom: 28px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-accent-primary); box-shadow: 0 0 0 4px var(--ds-accent-soft); }
.hero-title {
  font-weight: 600;
  font-size: clamp(56px, 9vw, 150px);
  line-height: .9;
  letter-spacing: -0.058em;
  margin-left: -0.05em;
}
.ht-line { display: block; white-space: nowrap; }
.ht-word { display: inline-block; }
.ht-soft { color: var(--ds-text-tertiary); transition: color 1.2s var(--ease-page); }
.hero.arrived .ht-soft { color: var(--ds-text-primary); }
.js .ht-word { opacity: 0; transform: translateY(.28em); filter: blur(6px); animation: word-in 1.1s var(--ease-page) forwards; animation-delay: calc(120ms + var(--i) * 90ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hero-lede { margin-top: 32px; max-width: 30em; font-size: 19px; line-height: 29px; color: var(--ds-text-secondary); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-cta.center { justify-content: center; }
.js .hero-lede, .js .hero-copy .hero-cta, .js .eyebrow { opacity: 0; animation: fade-up 1s var(--ease-page) forwards; }
.js .eyebrow { animation-delay: 60ms; }
.js .hero-lede { animation-delay: 620ms; }
.js .hero-copy .hero-cta { animation-delay: 760ms; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* The noise: fragments of other apps' attention economy. */
.noise { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.frag {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap;
  color: var(--ds-text-secondary);
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-radius: 10px;
  box-shadow: var(--ds-shadow-medium);
  will-change: transform, opacity, filter;
}
.frag .icon { width: 16px; height: 16px; color: var(--ds-text-tertiary); }
.frag b { font-weight: 600; color: var(--ds-text-primary); }
.frag.alarm { color: var(--ds-danger); border-color: color-mix(in srgb, var(--ds-danger) 35%, var(--ds-border-default)); }
.frag.alarm .icon { color: var(--ds-danger); }
.frag.pill { border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; background: var(--ds-danger); color: #FFFEFC; border-color: transparent; }
.frag.count { border-radius: 999px; padding: 4px 10px; font-weight: 600; background: var(--ds-text-primary); color: var(--ds-bg-app); border-color: transparent; font-variant-numeric: tabular-nums; }
.frag.bar { flex-direction: column; align-items: stretch; gap: 6px; min-width: 190px; }
.frag.bar i { display: block; height: 4px; border-radius: 2px; background: var(--ds-border-soft); overflow: hidden; }
.frag.bar i::after { content: ''; display: block; height: 100%; width: var(--w, 30%); background: var(--ds-warning); }
.frag.card { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; }
.frag.card small { font-weight: 400; color: var(--ds-text-tertiary); font-size: 12px; }

/* The leaf that arrives. */
.leaf {
  position: absolute; z-index: 1;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  top: 50%;
  width: min(440px, 38vw);
  transform: translateY(-40%);
  opacity: 0;
  will-change: transform, opacity;
}
.leaf-body {
  position: relative;
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-high);
  padding: 24px 24px 18px;
}
.leaf-edge { position: absolute; inset: 0; border-radius: var(--ds-radius-lg); background: var(--ds-bg-subtle); border: 1px solid var(--ds-border-default); }
.leaf-edge.e2 { transform: translate(-10px, 10px); }
.leaf-edge.e3 { transform: translate(-20px, 20px); background: var(--ds-border-soft); }
.leaf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ds-accent-hover); }
.leaf-title { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; color: var(--ds-text-primary); }
.leaf-date { margin-left: auto; font-size: 13px; color: var(--ds-text-tertiary); }
.leaf-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ds-border-soft); font-size: 13px; color: var(--ds-text-tertiary); font-variant-numeric: tabular-nums; }

/* Task rows (18 §22–§23): quiet, unboxed, a circular completion control. */
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 4px; border-bottom: 1px solid var(--ds-border-soft); font-size: 15px; line-height: 23px; }
.row:last-child { border-bottom: 0; }
.row-t { flex: 1; min-width: 0; }
.row-t small { display: block; font-size: 12px; line-height: 16px; color: var(--ds-text-tertiary); }
.row-m { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ds-text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-m .icon { width: 15px; height: 15px; }
.row-m.due { color: var(--ds-danger); }
.row-m.late { color: var(--ds-danger); font-weight: 500; }
.ck { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--ds-border-input); transition: background var(--motion-standard) var(--ease), border-color var(--motion-standard) var(--ease); }
.ck::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--ds-bg-surface); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform var(--motion-standard) var(--ease), opacity var(--motion-fast) var(--ease); }
.done .ck { background: var(--ds-accent-primary); border-color: var(--ds-accent-primary); }
.done .ck::after { opacity: 1; transform: rotate(45deg) scale(1); }
.done .row-t { color: var(--ds-text-tertiary); text-decoration: line-through; text-decoration-color: var(--ds-border-strong); }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--ds-text-tertiary); transition: opacity var(--motion-panel) var(--ease); }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(var(--ds-border-strong), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { height: 230vh; }
  .hero-grid { align-items: flex-start; padding-top: 112px; }
  .leaf { right: auto; left: 50%; top: auto; bottom: 7vh; width: min(420px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); }
  .hero-lede { font-size: 17px; line-height: 26px; margin-top: 24px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px), (max-width: 900px) and (max-height: 760px) {
  .hero-lede { display: none; }
}

/* =========================================================
   Definition
   ========================================================= */
.definition { padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--ds-border-soft); }
.def-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.def-word { font-size: clamp(64px, 12vw, 184px); line-height: .9; font-weight: 600; letter-spacing: -0.06em; color: var(--ds-text-primary); }
.def-pos { font-size: 15px; color: var(--ds-text-tertiary); margin-bottom: 20px; }
.def-senses { display: grid; gap: 16px; }
.def-senses li { display: grid; grid-template-columns: 28px 1fr; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ds-text-secondary); }
.def-senses b { font-weight: 500; color: var(--ds-text-primary); }
.def-senses .n { font-size: 13px; color: var(--ds-text-tertiary); padding-top: .5em; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .def-grid { grid-template-columns: 1fr; gap: 24px; } }

/* =========================================================
   Chapters
   ========================================================= */
.chapter { padding: clamp(96px, 12vw, 168px) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--ds-border-soft); }
.ch-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
.ch-n { font-size: 13px; line-height: 20px; color: var(--ds-text-tertiary); font-variant-numeric: tabular-nums; padding-top: .9em; grid-row: span 2; }
.ch-n span { display: block; color: var(--ds-text-secondary); font-weight: 500; }
.ch-title { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 14em; text-wrap: balance; }
.ch-title .soft { display: inline; }
.ch-lede { margin-top: 24px; max-width: 34em; font-size: 19px; line-height: 29px; color: var(--ds-text-secondary); }
@media (max-width: 820px) {
  .ch-head { grid-template-columns: 1fr; }
  .ch-n { grid-row: auto; padding: 0 0 12px; display: flex; gap: 10px; }
  .ch-n span { display: inline; }
  .ch-lede { font-size: 17px; line-height: 26px; }
}

/* ---------- 01 Capture ---------- */
.qa { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-left: 212px; }
.qa-dialog { background: var(--ds-bg-surface); border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-xl); box-shadow: var(--ds-shadow-medium); padding: 20px 28px 32px; display: flex; flex-direction: column; }
.qa-bar { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ds-text-tertiary); margin-bottom: 24px; }
.qa-bar-l { display: inline-flex; gap: 8px; align-items: center; color: var(--ds-text-secondary); }
.qa-bar-r { text-align: right; }
.qa-field { position: relative; flex: 1; min-height: 120px; }
.qa-mirror, .qa-input {
  font: 500 clamp(24px, 2.6vw, 34px)/1.3 var(--font-ui);
  letter-spacing: -0.02em;
  padding: 0; margin: 0; border: 0;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
}
.qa-mirror { position: absolute; inset: 0; color: var(--ds-text-primary); pointer-events: none; }
.qa-input { position: relative; width: 100%; height: 100%; min-height: 120px; resize: none; background: transparent; color: transparent; caret-color: var(--ds-accent-hover); outline: none; }
.qa-input::placeholder { color: var(--ds-text-disabled); }
.qa-input:focus-visible { outline: none; }
.qa-dialog:focus-within { border-color: var(--ds-border-strong); }
.tok { border-radius: 6px; box-shadow: inset 0 -.12em 0 var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent); transition: background var(--motion-standard) var(--ease); }
.tok.when, .tok.time { --tint: var(--ds-accent-primary); }
.tok.duration { --tint: var(--ds-border-strong); }
.tok.deadline { --tint: var(--ds-danger); }
.tok.tags { --tint: var(--ds-warning); }
.tok.lifted { color: transparent; background: transparent; box-shadow: none; }
.qa-mirror .fading { transition: opacity 360ms var(--ease); opacity: 0; }

.qa-out { background: var(--ds-bg-subtle); border-radius: var(--ds-radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.qa-task { display: flex; align-items: center; gap: 12px; background: var(--ds-bg-surface); border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-md); padding: 14px 16px; font-size: 17px; line-height: 24px; font-weight: 500; min-height: 56px; }
.qa-task-t { min-width: 0; overflow-wrap: anywhere; }
.qa-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ds-border-soft); border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-md); overflow: hidden; }
.slot { background: var(--ds-bg-surface); padding: 12px 14px; min-height: 70px; }
.slot dt { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--ds-text-tertiary); }
.slot dt .icon { width: 14px; height: 14px; }
.slot dd { margin-top: 6px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ds-text-disabled); transition: color var(--motion-standard) var(--ease); overflow-wrap: anywhere; }
.slot.on dd { color: var(--ds-text-primary); }
.slot.pop dd { animation: settle 520ms var(--ease-page); }
.slot.dest { grid-column: 1 / -1; min-height: 0; display: flex; align-items: center; justify-content: space-between; }
.slot.dest dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ds-accent-hover); }
.slot.dest dd .icon { width: 16px; height: 16px; }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flyer { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; white-space: pre; font-weight: 500; letter-spacing: -0.02em; color: var(--ds-text-primary); border-radius: 6px; padding: 0 2px; background: color-mix(in srgb, var(--tint) 22%, var(--ds-bg-surface)); box-shadow: var(--ds-shadow-medium); transform-origin: 0 0; }
.qa-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0 212px; }
.qa-notes p { font-size: 15px; line-height: 23px; color: var(--ds-text-secondary); border-top: 1px solid var(--ds-border-default); padding-top: 16px; }
.qa-notes b { display: block; color: var(--ds-text-primary); font-weight: 500; margin-bottom: 4px; }
.qa-notes kbd { font-size: 12px; }
@media (max-width: 1100px) { .qa, .qa-notes { margin-left: 0; } }
@media (max-width: 860px) {
  .qa { grid-template-columns: 1fr; }
  .qa-notes { grid-template-columns: 1fr; gap: 16px; }
  .qa-dialog { padding: 16px 20px 24px; border-radius: var(--ds-radius-lg); }
  .qa-out { border-radius: var(--ds-radius-lg); padding: 16px; }
  .qa-bar-r { display: none; }
}

/* ---------- 02 Lists: a deck of pages ---------- */
.deck { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; }
.deck-tabs { display: flex; flex-direction: column; gap: 2px; }
.deck-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--ds-radius-sm); background: transparent; text-align: left; font-size: 15px; color: var(--ds-text-secondary); cursor: pointer; transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease); }
.deck-tab:hover { background: var(--ds-state-hover); color: var(--ds-text-primary); }
.deck-tab[aria-selected='true'] { background: var(--ds-accent-soft); color: var(--ds-text-primary); font-weight: 500; }
.deck-tab[aria-selected='true'] .icon { color: var(--ds-accent-hover); }
.deck-tab kbd { margin-left: auto; font-size: 11px; opacity: 0; transition: opacity var(--motion-fast) var(--ease); }
.deck-tab:hover kbd, .deck-tab[aria-selected='true'] kbd { opacity: 1; }
.deck-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
.deck-q { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; min-height: 3.2em; }
.deck-q .q-sub { display: block; margin-top: 20px; font-size: 17px; line-height: 26px; letter-spacing: 0; font-weight: 400; color: var(--ds-text-secondary); max-width: 26em; }
.deck-q .q-anim { display: block; animation: settle 600ms var(--ease-page); }
.deck-pages { position: relative; height: 420px; }
.page {
  position: absolute; inset: 0;
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--ds-shadow-low);
  transform-origin: 0 100%;
  transition: transform 560ms var(--ease-page), opacity 420ms var(--ease), box-shadow 560ms var(--ease-page), background 420ms var(--ease);
  cursor: pointer;
}
.page.front { box-shadow: var(--ds-shadow-high); cursor: default; }
.page.gone { opacity: 0; pointer-events: none; }
.page-head { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.page-head .icon { color: var(--ds-accent-hover); }
.page-head small { margin-left: auto; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ds-text-tertiary); }
.page .group { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ds-text-tertiary); padding: 14px 4px 2px; border-bottom: 1px solid var(--ds-border-soft); }
.page .group b { color: var(--ds-text-primary); font-weight: 600; margin-right: 6px; }
.page:not(.front) > *:not(.page-head) { opacity: 0; transition: opacity 200ms var(--ease); }
.page.front > * { transition: opacity 400ms 120ms var(--ease); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--ds-bg-subtle); color: var(--ds-text-secondary); font-size: 12px; }
@media (max-width: 1100px) { .deck-stage { grid-template-columns: 1fr; gap: 24px; } .deck-q { min-height: 0; } }
@media (max-width: 820px) {
  .deck { grid-template-columns: 1fr; }
  .deck-tabs { flex-direction: row; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .deck-tab { flex: none; }
  .deck-tab kbd { display: none; }
  .deck-pages { height: 400px; }
}

/* ---------- 03 Time ---------- */
.week { margin-left: 212px; background: var(--ds-bg-surface); border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-xl); padding: 28px; box-shadow: var(--ds-shadow-medium); }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd { text-align: center; padding: 10px 0 12px; border-radius: var(--ds-radius-md); font-size: 12px; color: var(--ds-text-tertiary); transition: background var(--motion-panel) var(--ease), color var(--motion-panel) var(--ease); }
.wd b { display: block; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; color: var(--ds-text-secondary); font-variant-numeric: tabular-nums; transition: color var(--motion-panel) var(--ease); }
.wd.is-today { background: var(--ds-accent-soft); color: var(--ds-accent-hover); }
.wd.is-today b { color: var(--ds-text-primary); }
.wd.is-past b { color: var(--ds-text-disabled); }
.week-track { position: relative; height: 64px; margin-top: 8px; }
.week-span { position: absolute; top: 10px; height: 10px; left: calc(100% / 7 * 2 + 100% / 14); width: calc(100% / 7 * 2); border-radius: 5px; background: linear-gradient(90deg, var(--ds-accent-primary), var(--ds-danger)); opacity: .55; }
.week-span span { position: absolute; top: 18px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); }
.week-span .icon { width: 14px; height: 14px; }
.ws-start { left: 0; color: var(--ds-accent-hover); }
.ws-due { left: 100%; color: var(--ds-danger); }
.week-range { position: absolute; inset: -84px 0 auto; width: 100%; height: 84px; margin: 0; opacity: 0; cursor: ew-resize; }
.week-range:focus-visible + * { outline: none; }
.week:focus-within .wd.is-today { outline: 2px solid var(--ds-focus-ring); outline-offset: 2px; }
.week-read { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; align-items: center; border-top: 1px solid var(--ds-border-soft); padding-top: 20px; }
.wr-where { display: flex; flex-direction: column; gap: 4px; }
.wr-lbl { font-size: 12px; color: var(--ds-text-tertiary); }
.wr-list { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.wr-list .icon { color: var(--ds-accent-hover); }
.wr-list.swap { animation: settle 480ms var(--ease-page); }
.wr-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--ds-border-soft); border-radius: var(--ds-radius-md); font-size: 15px; }
.wr-say { grid-column: 2; font-size: 15px; line-height: 23px; color: var(--ds-text-secondary); min-height: 46px; }
.time-notes { margin: 48px 0 0 212px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tn { border-top: 1px solid var(--ds-border-default); padding-top: 16px; font-size: 15px; line-height: 23px; color: var(--ds-text-secondary); }
.tn-h { display: flex; align-items: center; gap: 8px; color: var(--ds-text-primary); font-weight: 500; margin-bottom: 6px; }
.tn-h .icon { color: var(--ds-accent-hover); width: 18px; height: 18px; }
@media (max-width: 1100px) { .week, .time-notes { margin-left: 0; } }
@media (max-width: 760px) {
  .week { padding: 16px; border-radius: var(--ds-radius-lg); }
  .wd { font-size: 11px; padding: 8px 0; }
  .week-read { grid-template-columns: 1fr; }
  .wr-say { grid-column: 1; }
  .time-notes { grid-template-columns: 1fr; gap: 16px; }
  .week-span span { font-size: 11px; }
}

/* ---------- 04 Privacy: the lens ---------- */
.night { background: var(--night-bg); color: var(--night-text); border-top: 0 !important; }
.night + .chapter { border-top: 0; }
.night .ch-n { color: var(--night-text-3); }
.night .ch-n span { color: var(--night-text-2); }
.night .soft { color: var(--night-text-3); }
.night .ch-lede { color: var(--night-text-2); }
.night ::selection { background: var(--night-accent-soft); color: var(--night-text); }
.night :focus-visible { outline-color: var(--night-accent); }
.lens { margin-left: 212px; }
.lens-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--night-text-3); margin-bottom: 12px; }
.lens-labels span { display: inline-flex; align-items: center; gap: 8px; }
.lens-labels .icon { width: 16px; height: 16px; }
.lens-view { --x: 50%; position: relative; border: 1px solid var(--night-border); border-radius: var(--ds-radius-xl); background: var(--night-surface); overflow: hidden; touch-action: pan-y; user-select: none; }
.lens-layer { padding: 12px 28px; }
.lens-layer li { display: flex; align-items: center; gap: 14px; height: 60px; border-bottom: 1px solid var(--night-border); font-size: 17px; white-space: nowrap; overflow: hidden; }
.lens-layer li:last-child { border-bottom: 0; }
.lens-layer .ck { border-color: #83766B; }
.lens-layer .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: clip; }
.lens-layer .m { font-size: 13px; color: var(--night-text-3); font-variant-numeric: tabular-nums; }
.lens-layer .m .tag { background: var(--night-subtle); color: var(--night-text-2); margin-left: 6px; }
.lens-layer.cipher { position: absolute; inset: 0; background: #0E0C0B; clip-path: inset(0 0 0 var(--x)); color: var(--night-accent); }
.lens-layer.cipher li { border-bottom-color: #231F1C; }
.lens-layer.cipher .t, .lens-layer.cipher .m { font-feature-settings: 'tnum', 'zero'; letter-spacing: .04em; font-size: 14px; color: #8D9886; }
.lens-layer.cipher .m { color: #5E6A58; }
.lens-layer.cipher .ck { border-style: dashed; border-color: #3E4A3A; }
.lens-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; }
.lens-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--night-accent); }
.lens-grip { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night-bg); border: 1px solid var(--night-accent); color: var(--night-accent); box-shadow: 0 0 0 6px rgba(159, 171, 151, 0.08); transition: transform var(--motion-fast) var(--ease); }
.lens-handle:active .lens-grip { transform: scale(.96); }
.lens-handle:focus-visible { outline: none; }
.lens-handle:focus-visible .lens-grip { outline: 2px solid var(--night-accent); outline-offset: 3px; }
.facts { margin: 64px 0 0 212px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.fact { border-top: 1px solid var(--night-border); padding-top: 20px; }
.fact .icon { color: var(--night-accent); }
.fact h3 { margin: 12px 0 6px; font-size: 17px; line-height: 24px; font-weight: 500; }
.fact p { font-size: 15px; line-height: 23px; color: var(--night-text-3); }
.footnote { margin: 56px 0 0 212px; max-width: 60em; font-size: 13px; line-height: 20px; color: var(--night-text-3); }
@media (max-width: 1100px) { .lens, .facts, .footnote { margin-left: 0; } }
@media (max-width: 760px) {
  .lens-layer { padding: 4px 16px; }
  .lens-layer li { font-size: 15px; height: 54px; gap: 10px; }
  .lens-layer .m { display: none; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .lens-labels { font-size: 12px; }
}

/* ---------- 05 Local-first ---------- */
.offline-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.offline-grid .ch-head { margin-bottom: 0; }
.plug { grid-column: 2; margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-lg); background: var(--ds-bg-surface); cursor: pointer; text-align: left; justify-self: start; transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease); }
.plug:hover { border-color: var(--ds-border-strong); }
.plug-sw { position: relative; width: 56px; height: 32px; border-radius: 16px; background: var(--ds-accent-primary); transition: background var(--motion-standard) var(--ease); }
.plug-knob { position: absolute; top: 3px; left: 27px; width: 26px; height: 26px; border-radius: 50%; background: var(--ds-bg-elevated); box-shadow: var(--ds-shadow-low); transition: left var(--motion-standard) var(--ease); }
.plug[aria-pressed='true'] .plug-sw { background: var(--ds-border-strong); }
.plug[aria-pressed='true'] .plug-knob { left: 3px; }
.plug-t b { display: block; font-weight: 600; font-size: 17px; }
.plug-t small { display: block; font-size: 13px; line-height: 18px; color: var(--ds-text-tertiary); }
.device { position: relative; background: var(--ds-bg-surface); border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-xl); padding: 20px 24px 24px; box-shadow: var(--ds-shadow-high); }
.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.device-list { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.device-list .icon { color: var(--ds-accent-hover); }
.sync { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--ds-radius-sm); font-size: 13px; color: var(--ds-text-tertiary); background: var(--ds-bg-subtle); transition: color var(--motion-standard) var(--ease), background var(--motion-standard) var(--ease); }
.sync .icon { width: 16px; height: 16px; }
.sync.paused { color: var(--ds-warning); }
.sync.busy .icon { animation: pulse 1s var(--ease) infinite alternate; }
@keyframes pulse { to { opacity: .35; } }
.device .row { cursor: pointer; border-radius: var(--ds-radius-sm); transition: background var(--motion-fast) var(--ease); }
.device .row:hover { background: var(--ds-state-hover); }
.device .row.new { animation: settle 420ms var(--ease-page); }
.device .row .pending { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-warning); opacity: 0; transition: opacity var(--motion-standard) var(--ease); }
.device .row.queued .pending { opacity: 1; }
.add-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; background: none; color: var(--ds-text-tertiary); font-size: 15px; cursor: pointer; border-radius: var(--ds-radius-sm); }
.add-row:hover { color: var(--ds-text-primary); background: var(--ds-state-hover); }
.wire { position: relative; height: 40px; margin-top: 12px; display: flex; align-items: center; }
.wire-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ds-border-strong) 0 6px, transparent 6px 10px); transition: opacity var(--motion-standard) var(--ease); }
.device.off .wire-line { opacity: .25; }
.wire-end { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ds-border-default); color: var(--ds-text-tertiary); margin-left: 8px; }
.packet { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 6px; display: grid; place-items: center; background: var(--ds-accent-soft); color: var(--ds-accent-hover); }
.packet .icon { width: 13px; height: 13px; }
.device-note { font-size: 13px; line-height: 20px; color: var(--ds-text-tertiary); min-height: 20px; }
@media (max-width: 960px) { .offline-grid { grid-template-columns: 1fr; gap: 40px; } .plug { grid-column: 1; } }

/* ---------- 06 Restraint ---------- */
.struck { margin-left: 212px; border-top: 1px solid var(--ds-border-default); }
.strike { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ds-border-soft); }
.strike .w { position: relative; justify-self: start; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 600; color: var(--ds-text-primary); transition: color 700ms var(--ease) 300ms; }
.strike .w::after { content: ''; position: absolute; left: -.08em; right: -.08em; top: 54%; height: .07em; background: var(--ds-text-primary); border-radius: .04em; transform: scaleX(0) rotate(-1.2deg); transform-origin: 0 50%; transition: transform 700ms var(--ease-page); }
.strike .why { font-size: 15px; line-height: 23px; color: var(--ds-text-secondary); opacity: 0; transform: translateX(-8px); transition: opacity 600ms var(--ease) 400ms, transform 600ms var(--ease-page) 400ms; }
.strike.in .w { color: var(--ds-text-disabled); }
.strike.in .w::after { transform: scaleX(1) rotate(-1.2deg); background: var(--ds-text-tertiary); }
.strike.in .why { opacity: 1; transform: none; }
.no-js .strike .why, html:not(.js) .strike .why { opacity: 1; transform: none; }
@media (max-width: 1100px) { .struck { margin-left: 0; } }
@media (max-width: 700px) { .strike { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; } }

/* ---------- 07 Price ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.price-grid .ch-n { padding: 0; margin-bottom: 8px; display: flex; gap: 10px; }
.price-grid .ch-n span { display: inline; }
.zero { font-size: clamp(160px, 26vw, 380px); line-height: .8; font-weight: 600; letter-spacing: -0.075em; margin: 16px 0 32px -0.06em; color: var(--ds-text-primary); }
.price-grid .ch-title { font-size: clamp(36px, 4.4vw, 64px); }
.price-body .ch-lede { margin-top: 0; }
.ticks { margin: 32px 0 8px; display: grid; gap: 0; border-top: 1px solid var(--ds-border-soft); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ds-border-soft); font-size: 15px; line-height: 23px; }
.ticks .icon { color: var(--ds-accent-hover); margin-top: 1px; width: 18px; height: 18px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 08 Contents ---------- */
.toc { margin-left: 212px; border-top: 1px solid var(--ds-border-default); counter-reset: toc; }
.toc li { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--ds-border-soft); }
.toc-t { font-size: clamp(24px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; color: var(--ds-text-secondary); }
.toc-t small { display: inline-block; margin-left: 14px; font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--ds-text-tertiary); }
.toc-dots { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--ds-border-strong); transform: translateY(-.35em); }
.toc-n { font-size: 15px; color: var(--ds-text-tertiary); font-variant-numeric: tabular-nums; }
.toc li.now .toc-t { color: var(--ds-text-primary); }
.toc li.now .toc-n { color: var(--ds-accent-hover); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.toc li.now .toc-n::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-accent-primary); box-shadow: 0 0 0 4px var(--ds-accent-soft); }
.later { margin: 32px 0 0 212px; max-width: 52em; font-size: 15px; line-height: 23px; color: var(--ds-text-tertiary); }
.later span { color: var(--ds-text-primary); font-weight: 500; }
@media (max-width: 1100px) { .toc, .later { margin-left: 0; } }
@media (max-width: 600px) { .toc-t small { display: block; margin: 4px 0 0; } .toc li { align-items: flex-end; } .toc-dots { transform: translateY(-.5em); } }

/* ---------- 09 Questions ---------- */
.faq-grid { display: grid; grid-template-columns: 212px minmax(0, 1fr); }
.faq-grid header { grid-column: 1 / -1; display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 32px; margin-bottom: 48px; }
.faq-grid header .ch-n { padding-top: .9em; }
.faq { grid-column: 2; border-top: 1px solid var(--ds-border-default); }
.faq details { border-bottom: 1px solid var(--ds-border-soft); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ds-text-secondary); }
.pm { position: relative; width: 16px; height: 16px; flex: none; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 1.75px; border-radius: 1px; background: var(--ds-text-tertiary); transition: transform var(--motion-standard) var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
.ans { padding: 0 0 24px; max-width: 42em; color: var(--ds-text-secondary); font-size: 16px; line-height: 25px; }
details[open] .ans { animation: settle 420ms var(--ease-page); }
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid header { grid-template-columns: 1fr; }
  .faq-grid header .ch-n { padding: 0 0 12px; display: flex; gap: 10px; }
  .faq-grid header .ch-n span { display: inline; }
  .faq { grid-column: 1; }
}

/* ---------- Closing: the mark assembles ---------- */
.closing { padding: clamp(96px, 12vw, 176px) 0 clamp(96px, 10vw, 144px); text-align: center; border-top: 1px solid var(--ds-border-soft); overflow: hidden; }
.build { width: clamp(88px, 10vw, 128px); height: auto; margin: 0 auto 48px; display: block; overflow: visible; }
.build path { stroke: var(--ds-bg-app); }
.js .build .bl { opacity: 0; transform: translate(-90px, 0); transition: transform 1100ms var(--ease-page), opacity 700ms var(--ease); transition-delay: calc(var(--k) * 110ms); }
.js .build .br { transform: translate(0, 140px); }
.js .build .bf { transform: translate(40px, -60px); }
.js .build.in .bl { opacity: 1; transform: none; }
.closing-title { font-size: clamp(48px, 8.4vw, 136px); line-height: .92; letter-spacing: -0.058em; font-weight: 600; text-wrap: balance; }
.closing .hero-cta { margin-top: 48px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ds-border-soft); padding: 32px 0 48px; font-size: 14px; color: var(--ds-text-secondary); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { text-decoration: none; color: var(--ds-text-secondary); }
.footer nav a:hover { color: var(--ds-text-primary); text-decoration: underline; text-underline-offset: 3px; }
.theme-switch { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; background: var(--ds-bg-subtle); border-radius: 10px; }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; color: var(--ds-text-secondary); cursor: pointer; }
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button[aria-pressed='true'] { background: var(--ds-bg-elevated); color: var(--ds-text-primary); box-shadow: var(--ds-shadow-low); }
.colophon { margin-top: 32px; max-width: 60em; font-size: 13px; line-height: 20px; color: var(--ds-text-tertiary); }
.colophon b { color: var(--ds-text-secondary); font-weight: 500; }
@media (max-width: 700px) { .theme-switch { margin-left: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: 100vh; overflow: visible; padding-bottom: 64px; }
  .hero-grid { height: auto; padding-top: 144px; }
  .noise, .scroll-cue { display: none; }
  .leaf { position: relative; opacity: 1 !important; transform: none !important; right: auto; left: auto; top: auto; bottom: auto; margin: 64px var(--gutter) 0 auto; }
  .ht-soft { color: var(--ds-text-primary); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .leaf { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; margin: 0; transform: translateY(-40%) !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .leaf { margin: 48px auto 0; width: min(420px, calc(100vw - 2 * var(--gutter))); }
}
.row-m .due { display: inline-flex; align-items: center; gap: 4px; color: var(--ds-danger); }
.slot[data-slot='tags'] { grid-column: 1 / -1; }
.qa-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ds-border-soft); font-size: 13px; color: var(--ds-text-tertiary); }
.qa-try button { height: 28px; padding: 0 10px; border: 1px solid var(--ds-border-default); border-radius: var(--ds-radius-xs); background: var(--ds-bg-app); font-size: 13px; color: var(--ds-text-secondary); cursor: pointer; transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.qa-try button:hover { background: var(--ds-state-hover); color: var(--ds-text-primary); border-color: var(--ds-border-strong); }
