/* nurilang.com: the homepage, in the "Hanji" look (CORE DOCS/design-philosophy.md).
   The site is light only (founder call, 2026-10-05): every page sets data-theme="light", which
   switches off tokens.css's dark Paper variant even when the visitor's device is in dark mode.
   The phone keeps its dark Theatre screen: that's the feed's design, not a page theme.
   Paper everywhere, one Theatre (the phone). 70% paper, 20% ink, 10% blush. Ink text on blush,
   never white. Thick lines, big radii, no hairlines, no pure black or white on Paper. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper-0);
  color: var(--ink-900);
  font: 400 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p, h1, h2, h3, ul, figure { margin: 0; }
::selection { background: var(--blush-soft); color: var(--ink-900); }
:focus-visible { outline: 2.5px solid var(--ink-900); outline-offset: 3px; border-radius: 8px; }

/* Hangul in a Latin run: Pretendard, a touch larger (design §5, mixed-script rule). */
.ko { font-family: var(--font-ko); font-size: 1.06em; letter-spacing: 0; }
.ko .ko { font-size: 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--r-full); background: var(--ink-900); color: var(--paper-0); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons (design §9) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-full);
  font: 700 16px/1.2 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink-900); color: var(--paper-0); }
.btn-secondary { background: var(--paper-2); color: var(--ink-900); box-shadow: inset 0 0 0 var(--border) var(--line); }
.btn-blush { background: var(--blush-500); color: var(--on-blush); }
.btn-blush:hover, .btn-blush:active { background: var(--blush-600); }
.btn-quiet { background: transparent; color: var(--ink-700); box-shadow: inset 0 0 0 var(--border) var(--line-strong); cursor: default; font-weight: 600; }
.btn-quiet:active { transform: none; }
@media (hover: hover) { .btn-primary:hover { background: var(--ink-700); } .btn-secondary:hover { background: var(--line); } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper-0) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: var(--border) solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 23px/1 var(--font-ui); letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a { text-decoration: none; font: 600 15px/1 var(--font-ui); color: var(--ink-700); padding: 8px 0; }
.nav a:hover { color: var(--ink-900); }
.soon {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 14px; border-radius: var(--r-full);
  background: var(--paper-2); box-shadow: inset 0 0 0 var(--border) var(--line);
  font: 700 14px/1 var(--font-ui); color: var(--ink-900);
}
.soon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font: 600 16px/1.4 var(--font-ui); color: var(--ink-700); margin-bottom: 20px; }
.eyebrow .ko { color: var(--ink-900); font-weight: 700; }
.eyebrow .rr { font-style: italic; margin-right: 2px; }
h1 {
  font: 800 clamp(40px, 4.7vw, 58px)/1.1 var(--font-ui);
  letter-spacing: -0.025em;
}
/* The second line wears the tapped-word mark: a --blush-soft fill and a blush underline
   (design §9, word chip). Text stays ink in both modes, never on a full blush fill (§4.2). */
.mark {
  display: inline;
  background-color: var(--blush-soft);
  background-image: linear-gradient(transparent calc(100% - 0.12em), var(--blush-500) calc(100% - 0.12em));
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  border-radius: 0.14em;
  padding: 0 0.1em;
  margin: 0 -0.04em;
}
.lede { margin-top: 24px; max-width: 34ch; font-size: 19px; line-height: 1.5; color: var(--ink-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; }
/* Flat paper shapes behind the phone. Not a glow: design §6 bans glows and coloured shadows. */
.glow { position: absolute; inset: 0; pointer-events: none; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; }
.glow::before { width: 470px; height: 470px; left: 50%; top: 46%; transform: translate(-54%, -50%); background: var(--blush-soft); }
.glow::after { width: 170px; height: 170px; left: 50%; top: 14%; transform: translateX(78%); background: var(--apricot-soft); }

/* ---------- The phone: the one Theatre on the page (design §3) ---------- */
.phone {
  position: relative; width: 316px; height: 656px; padding: 7px; flex: none;
  border: 2px solid var(--ink-900); border-radius: 52px;
  background: var(--theatre-2); box-shadow: var(--shadow-lift);
}
.ph-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 43px;
  background: var(--theatre); color: var(--theatre-text);
  font-family: var(--font-latin);
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 30px; font: 700 14px/1 var(--font-system); }
.ph-status i { position: absolute; top: 11px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: var(--r-full); background: #0B0706; }
.ph-top { display: flex; justify-content: center; gap: 18px; height: 28px; font: 600 14px/1 var(--font-ui); color: var(--theatre-dim); }
.ph-top b { color: var(--theatre-text); font-weight: 700; }
.ph-stage { position: absolute; top: 74px; left: 0; right: 0; bottom: 70px; display: flex; flex-direction: column; }

/* The YouTube player. It letterboxes the 16:9 picture in a tall frame, 200 px tall at least (RMF). Nothing of ours is drawn over it: the still is a poster behind
   the player, shown on its own only when YouTube can't play here. */
.ph-player { position: relative; flex: none; height: 236px; background: #0B0706; overflow: hidden; }
.ph-player img, .ph-player iframe, #ph-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-player img { object-fit: contain; }
.ph-player.still-only iframe { display: none; }
.ph-progress { position: relative; flex: none; height: 3px; background: rgb(255 255 255 / 0.16); }
.ph-progress i { display: block; height: 100%; background: var(--theatre-text); transform-origin: left; transform: scaleX(0); }

/* The clip bar below the player: what's playing, and the sound, the one control we add */
.ph-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 6px 8px 6px 14px; }
.ph-src { display: flex; flex-direction: column; min-width: 0; }
.ph-src b { font: 700 12.5px/1.3 var(--font-ko); color: var(--theatre-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-src span { font: 600 11px/1.3 var(--font-latin); color: var(--theatre-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-ctl { display: flex; align-items: center; gap: 2px; flex: none; }
.ph-ctl button {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--theatre-dim); cursor: pointer;
}
.ph-ctl button:hover { color: var(--theatre-text); }
.ph-ctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-ctl .sound { display: flex; gap: 5px; width: auto; padding: 0 9px; color: var(--theatre-text); }
.ph-ctl .sound:not(.on) svg .i-on, .ph-ctl .sound.on svg .i-off { display: none; }
.ph-ctl .sound span { font: 700 11.5px/1 var(--font-ui); white-space: nowrap; }
.ph-ctl .sound:has(span:not([hidden])) { background: var(--theatre-2); box-shadow: inset 0 0 0 1.5px rgb(255 179 172 / 0.45); }
.ph-ctl .sound[hidden] { display: none; }

/* Captions sit below the player, never on it (clip-pipeline §4). The line being said in a raised
   card, the next one under it if it fits whole. Hangul large, romanisation small and dim under
   each word, English under the line (language §8.2, architecture §6). */
.ph-captions { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 44px; }   /* 44: room for the hint */
.ph-captions.probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; flex: none; height: auto; }
.ph-card { padding: 4px 4px 8px; border-radius: 16px; background: var(--theatre-2); color: var(--theatre-text); }
.ph-card.in { animation: card-in 220ms var(--ease-out) both; }
.ph-card.upnext { background: transparent; color: var(--theatre-faint); padding-top: 0; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ph-words { display: flex; flex-wrap: wrap; gap: 0 1px; }
.w {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; padding: 3px 5px; border: 0; border-radius: var(--r-sm);
  background: transparent; cursor: pointer; color: inherit;
  transition: background-color 120ms ease, transform 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
span.w { cursor: default; }
.w .ko { font: 500 21px/1.22 var(--font-ko); }
.w .rr { font: 600 10px/1.2 var(--font-latin); letter-spacing: 0.01em; opacity: 0.62; margin-top: 1px; }
.w.lit { background: rgb(255 179 172 / 0.22); }
button.w:active { transform: scale(1.06); }
.w.tapped { background: rgb(255 179 172 / 0.16); box-shadow: inset 0 -2px 0 var(--theatre-blush); }
.w.saved .ko { text-decoration: underline 2px var(--apricot-500); text-underline-offset: 5px; }
.w:focus-visible { outline: 2px solid var(--theatre-blush); outline-offset: 1px; }
.ph-card .en { margin: 2px 6px 0; font: 500 12.5px/1.35 var(--font-latin); color: var(--theatre-dim); }
.ph-card.upnext .en { color: inherit; }

.ph-hint {
  position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: var(--r-full); background: var(--theatre-2); box-shadow: inset 0 0 0 1.5px rgb(255 179 172 / 0.45);
  font: 700 12.5px/1 var(--font-ui); color: var(--theatre-text); white-space: nowrap;
  animation: hint-nudge 2.4s ease-in-out infinite; transition: opacity 240ms ease;
}
.ph-hint svg { width: 12px; height: 12px; fill: none; stroke: var(--theatre-blush); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-hint.gone { opacity: 0; animation: none; }
@keyframes hint-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* Tab bar: three items, dark glass in the Theatre, blush for selected (design §9). */
.ph-tabbar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; border-radius: var(--r-full);
  background: rgb(38 27 24 / 0.92); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.ph-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 66px; padding: 5px 0 4px; border-radius: var(--r-full); font: 600 10.5px/1 var(--font-ui); color: var(--theatre-dim); }
.ph-tabbar span.on { color: var(--theatre-blush); background: rgb(255 179 172 / 0.12); }
.ph-tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The word sheet: Paper rising over the captions and stopping below the player. */
.ph-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--sheet-top, 260px); z-index: 5;
  padding: 10px 18px 20px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0; background: var(--paper-1); color: var(--ink-900);
  font-family: var(--font-ui);
  transform: translateY(102%); transition: transform 380ms var(--ease-drawer);
}
.ph-sheet.open { transform: none; }
.grab { width: 36px; height: 5px; margin: 0 auto 10px; border-radius: var(--r-full); background: var(--ink-300); }
.sheet-x {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: var(--r-full); background: var(--paper-2); cursor: pointer;
}
.sheet-x svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-700); stroke-width: 2; stroke-linecap: round; }
.sheet-ko { font: 700 30px/1.15 var(--font-ko); }
.sheet-rr { margin-top: 2px; font: 600 14px/1.3 var(--font-latin); color: var(--ink-700); }
.sheet-tags, .wc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sheet-tags span, .wc-tags span { padding: 4px 9px; border-radius: var(--r-sm); background: var(--paper-2); font: 600 12px/1.3 var(--font-ui); color: var(--ink-700); }
.sheet-gloss { margin-top: 10px; font: 700 17px/1.35 var(--font-ui); }
.sheet-save { width: 100%; min-height: 46px; margin: 14px 0 16px; font-size: 15px; }
.sheet-h, .wc-h { font: 700 13px/1.3 var(--font-ui); color: var(--ink-700); }
.sheet-why { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-700); }

.next {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--r-full); background: var(--paper-1); box-shadow: inset 0 0 0 var(--border) var(--line);
  font: 700 15px/1 var(--font-ui); color: var(--ink-700); cursor: pointer; position: relative;
}
.next svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.next:hover { color: var(--ink-900); }

/* ---------- How it works ---------- */
.how { padding: 40px 0 32px; }
.section-h { text-align: center; font: 800 clamp(30px, 4vw, 40px)/1.1 var(--font-ui); letter-spacing: -0.02em; margin-bottom: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature.flip .feature-copy { order: 2; }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: var(--r-full); background: var(--blush-500); color: var(--on-blush); font: 800 19px/1 var(--font-ui);
}
.feature h3 { font: 800 clamp(26px, 3vw, 34px)/1.14 var(--font-ui); letter-spacing: -0.015em; max-width: 19ch; margin-bottom: 18px; }
.feature-copy p { max-width: 46ch; color: var(--ink-900); }
.feature-copy p + p { margin-top: 14px; }
.feature-copy .muted { color: var(--ink-700); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-900); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--blush-500); }
.feature-demo { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--paper-2); box-shadow: inset 0 0 0 var(--border) var(--line); overflow: hidden; }
.card { background: var(--paper-1); border-radius: var(--r-lg); box-shadow: inset 0 0 0 var(--border) var(--line); }

/* 1. A few scenes, laid out like stickers on a sheet */
.demo-feed { padding-bottom: 20px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { border-radius: var(--r-md); overflow: hidden; background: var(--theatre); color: var(--theatre-text); box-shadow: var(--shadow-lift); }
.mini:nth-child(1) { transform: rotate(-2.2deg) translateY(6px); }
.mini:nth-child(2) { transform: rotate(1.4deg) translateY(-6px); }
.mini:nth-child(3) { transform: rotate(-1deg) translateY(4px); }
.mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0B0706; }
.mini .mini-show { font: 700 11px/1.3 var(--font-ko); color: var(--theatre-dim); margin-bottom: 4px; }
.mini .mini-show em { font: 600 10.5px/1.3 var(--font-latin); font-style: normal; display: block; opacity: 0.85; }
.mini figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font: 500 12px/1.3 var(--font-latin); color: var(--theatre-dim); }
.mini figcaption .ko { font: 600 16px/1.3 var(--font-ko); color: var(--theatre-text); }
.moments { margin: 18px -28px -20px; overflow: hidden; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.moments-row { display: flex; gap: 10px; width: max-content; animation: marquee 36s linear infinite; }
.moments-row span { flex: none; padding: 9px 15px; border-radius: var(--r-full); background: var(--paper-1); box-shadow: inset 0 0 0 var(--border) var(--line); font: 600 14px/1.2 var(--font-ui); color: var(--ink-700); white-space: nowrap; }
.moments-row b { color: var(--ink-900); font-weight: 700; margin-right: 4px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* 2. The word card */
.demo-line { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dw {
  display: inline-flex; flex-direction: column; align-items: center; min-height: 52px; padding: 4px 12px;
  border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; color: var(--ink-900);
}
.dw .ko { font: 600 28px/1.2 var(--font-ko); }
.dw .rr { font: 600 12px/1.3 var(--font-latin); color: var(--ink-700); }
.dw:hover { background: var(--paper-1); }
.dw.on { background: var(--blush-soft); box-shadow: inset 0 -2px 0 var(--blush-500); }
.demo-en { text-align: center; margin: 6px 0 18px; font-size: 15px; color: var(--ink-700); }
.demo-src { margin-top: 12px; text-align: center; font: 600 13px/1.4 var(--font-ko); color: var(--ink-700); }
.word-card { padding: 22px 22px 24px; }
.wc-ko { font: 700 32px/1.15 var(--font-ko); }
.wc-rr { margin-top: 2px; font: 600 15px/1.3 var(--font-latin); color: var(--ink-700); }
.wc-gloss { margin: 12px 0 16px; font: 700 19px/1.35 var(--font-ui); }
.wc-why { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--ink-700); }

/* 3. The review card: the scene on top, Again and Got it, never red or green (design §9) */
.demo-review { display: grid; place-items: center; }
.review-card { width: 100%; max-width: 380px; overflow: hidden; padding-bottom: 20px; text-align: center; }
.rv-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--theatre); }
.rv-tag { margin: 10px 14px 0; font: 600 12.5px/1.3 var(--font-ko); color: var(--ink-700); }
.rv-line { margin: 14px 18px 0; font: 600 28px/1.3 var(--font-ko); }
.rv-line mark { background: none; color: inherit; text-decoration: underline 2.5px var(--apricot-500); text-underline-offset: 6px; }
.rv-reveal { margin: 18px auto 0; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-full); background: var(--paper-2); box-shadow: inset 0 0 0 var(--border) var(--line); font: 700 15px/1 var(--font-ui); cursor: pointer; }
.rv-answer { margin: 16px 20px 0; animation: answer-in 260ms var(--ease-out) both; }
.rv-gloss { font: 700 19px/1.3 var(--font-ui); }
.rv-why { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.rv-grades { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 18px 0; }
.rv-grades .btn { flex-direction: column; gap: 3px; min-height: 58px; padding: 0 12px; font-size: 16px; }
.rv-grades small { font: 500 12px/1 var(--font-ui); opacity: 0.85; }
.rv-note { min-height: 22px; margin: 14px 18px 0; font: 600 15px/1.4 var(--font-ui); color: var(--ink-700); }
@keyframes answer-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Why ---------- */
.why { padding: 88px 0; background: var(--apricot-soft); }
.why .section-h { margin-bottom: 40px; }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beat { padding: 26px; border-radius: var(--r-lg); background: var(--paper-1); box-shadow: inset 0 0 0 var(--border) var(--line); }
.beat-k { margin-bottom: 10px; font: 800 19px/1.25 var(--font-ui); }
.beat p:not(.beat-k) { color: var(--ink-700); }
.promises { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li { padding: 0 6px 0 34px; position: relative; color: var(--ink-700); font-size: 16px; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blush-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.5 3 3 6-6.5' fill='none' stroke='%234D2721' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.promises b { display: block; color: var(--ink-900); font-size: 17px; margin-bottom: 2px; }

/* ---------- Closing ---------- */
.cta { padding: 88px 0 72px; text-align: center; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta-nuri { width: 180px; height: 180px; margin-bottom: 12px; }
.cta h2 { font: 800 clamp(30px, 4vw, 42px)/1.1 var(--font-ui); letter-spacing: -0.02em; }
.cta p { max-width: 38ch; margin: 14px 0 28px; font-size: 18px; color: var(--ink-700); }

.foot { border-top: var(--border) solid var(--line); padding: 26px 0 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-700); }
.foot-note { margin-right: auto; }
.foot a { color: var(--ink-900); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature.flip .feature-copy { order: 0; }
  .beats, .promises { grid-template-columns: 1fr; }
  .promises { gap: 16px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; height: 60px; }
  .soon { font-size: 13px; padding: 8px 12px; }
  .lede { font-size: 18px; }
  .feature-demo { padding: 20px; }
  .minis { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 4px; margin: -8px -4px 0; scrollbar-width: none; }
  .minis::-webkit-scrollbar { display: none; }
  .mini { scroll-snap-align: center; }
  .moments { margin: 6px -20px -12px; }
  .foot-note { margin-right: 0; }
}
@media (max-width: 360px) {
  .soon svg { display: none; }
  .phone { transform: scale(0.92); margin: -26px 0; }
}

/* ---------- Reduced motion (design §7): nothing is load-bearing on animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .ph-hint, .moments-row { animation: none; }
  .moments-row { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 20px; }
  .moments-row span:nth-child(n+7) { display: none; }
  .moments { -webkit-mask: none; mask: none; }
  .ph-sheet { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .ph-card.in { animation: none; }
  .ph-sheet.open { opacity: 1; }
  .rv-answer { animation: none; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 48px 0; }
.lost h1 { font-size: clamp(30px, 4vw, 42px); }

/* ---------- Document pages: /privacy, /terms, /support (built from legal/*.md) ---------- */
.doc { padding: 48px 0 72px; }
.doc-in { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 8px; }
.doc h2 { margin: 40px 0 10px; font: 800 23px/1.25 var(--font-ui); letter-spacing: -0.01em; }
.doc h3 { margin: 24px 0 6px; font: 700 18px/1.35 var(--font-ui); }
.doc h3.q { margin-top: 22px; }
.doc p, .doc li { color: var(--ink-700); font-size: 17px; line-height: 1.6; }
.doc p { margin-top: 12px; }
.doc strong { color: var(--ink-900); font-weight: 700; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--blush-600); }
.doc a { color: var(--ink-900); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* An unfilled placeholder, kept visible on purpose until it's filled in legal/*.md */
mark.todo { background: var(--warning-soft); color: var(--ink-900); border-radius: 6px; padding: 0 4px; box-shadow: inset 0 0 0 1.5px var(--warning); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
