/* Pauseme — pauseme.tworooms.app
 *
 * One stylesheet. Every colour, radius, space and duration comes from the
 * token block below, which is copied from assets/tokens/design_tokens.json
 * (the app's single source of truth) plus the text opacities in
 * docs/architecture/03-design-system.md §3.1. Nothing below the token block
 * may introduce a raw colour value.
 *
 * Accent jobs (§3, one each): gold = links and actions, sage = success and
 * the put-down, dusk = the Ink ritual, clay = the Walk ritual, danger =
 * destructive labels only. Serif italic is reserved for a person's own words.
 */

/* ---------- Tokens (from design_tokens.json) ---------- */
:root {
  /* color */
  --paper: #EEEAE4;
  --surface: #F4F1EC;
  --ink: #1E1C18;
  --gold: #7A5C2E;
  --sage: #4A6B4D;
  --dusk: #3D5F6E;
  --clay: #7A4E38;
  --danger: #A05050;

  /* text opacities on paper (§3.1) */
  --mid: rgba(30, 28, 24, 0.45);
  --soft: rgba(30, 28, 24, 0.28);
  --faint: rgba(30, 28, 24, 0.10);
  --line: rgba(30, 28, 24, 0.09);
  /* web-only: body copy needs WCAG AA on paper, which the app's 0.45 `mid`
     does not reach at paragraph sizes on a monitor. */
  --body: rgba(30, 28, 24, 0.74);
  --meta: rgba(30, 28, 24, 0.58);

  /* font */
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* radius */
  --r-button: 14px;
  --r-sheet: 24px;
  --r-chip: 20px;
  --r-input: 14px;
  --r-day: 8px;

  /* space */
  --margin: 26px;
  --gutter: 16px;
  --section: 28px;

  /* motion */
  --instant: 120ms;
  --calm: 280ms;
  --gentle: 450ms;
  --breath-in: 4000ms;
  --breath-out: 8000ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  color-scheme: light;
}

/* ---------- Fonts (self-hosted, OFL — see /assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent);
  transition: text-decoration-color var(--instant) var(--ease);
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--faint); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: var(--r-button);
  z-index: 10;
}
.skip:focus { top: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  .wrap { padding: 0 calc(var(--margin) * 1.5); }
}
.narrow { max-width: 44rem; }
.measure { max-width: 36rem; }

.section {
  padding: calc(var(--section) * 2.25) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .section { padding: calc(var(--section) * 3.5) 0; }
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
/* An eyebrow sits close to the heading it labels, wherever it appears. */
.eyebrow + .display, .eyebrow + .h1, .eyebrow + .h2, .eyebrow + .h3,
.stack-lg > .eyebrow + * { margin-top: 14px; }
.h2 + .body, .h2 + .lede, .h1 + .lede { margin-top: 18px; }

/* ---------- Marks: the app's Material icons, before a label (<icon> in build.py) ---------- */
.mark {
  width: 1.4em;
  height: 1.4em;
  flex: none;
  fill: currentColor;
  color: var(--meta);
}
.eyebrow:has(> .mark), .ritual-tag:has(> .mark) {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.ritual > .mark { width: 24px; height: 24px; color: var(--body); }
.step-num:has(> .mark) { display: flex; align-items: center; gap: 12px; }
.step-num > .mark { width: 20px; height: 20px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--meta);
}
.display {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 10vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(2.375rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 5vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.25;
}
.lede {
  font-size: clamp(1.125rem, 2.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--body);
}
.body { color: var(--body); }
.meta { font-size: 0.875rem; color: var(--meta); }
.small { font-size: 0.9rem; }
/* A person's own words — the only italic serif on the site. */
.own-words {
  font-family: var(--serif);
  font-style: italic;
}
.num { font-variant-numeric: tabular-nums; }
.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
}
kbd, .path {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}
.path { white-space: normal; }
.path .sep { color: var(--soft); padding: 0 0.15em; }

.prose { color: var(--body); }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.625rem;
  line-height: 1.2;
  margin-top: 2.2em;
}
.prose h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.25rem;
  margin-top: 1.8em;
}
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); font-weight: 500; }

/* A visible marker for text still waiting on the owner. */
.placeholder {
  background: var(--faint);
  color: var(--ink);
  border: 1px dashed var(--meta);
  border-radius: 4px;
  padding: 0 0.3em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--calm) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  font-size: 0.9375rem;
}
.nav a {
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}
.nav a.nav-cta { color: var(--gold); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-button);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity var(--instant) var(--ease), background-color var(--calm) var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary[disabled] { opacity: 0.5; cursor: progress; }
.btn-quiet {
  background: transparent;
  color: var(--gold);
  padding: 0 4px;
}
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--section) * 1.75) 0 calc(var(--section) * 2.5); }
.hero-grid {
  display: grid;
  gap: calc(var(--section) * 2);
  align-items: center;
}
.hero-copy > * + * { margin-top: 22px; }
.hero-copy .actions { margin-top: 34px; }
.hero-note { margin-top: 18px; }
@media (min-width: 900px) {
  .hero { padding: calc(var(--section) * 3) 0 calc(var(--section) * 3.5); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: calc(var(--section) * 3); }
}

/* ---------- Phone frame + screenshot slot ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: min(300px, 76vw);
  margin: 0 auto;
}
.phone-body {
  position: relative;
  border-radius: 20px;
  padding: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--soft), 0 24px 44px -26px var(--soft);
}
.phone-screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 17px;
  background: var(--surface);
  line-height: 0;
}
/* The frame keeps the screenshots' 9:20 shape even before the image has loaded; contain never crops. */
.phone-screen { aspect-ratio: 1080 / 2400; }
.phone-screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.phone-screen img.is-missing { display: none; }
.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage-screen video, .stage-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Until it has a frame, the video is transparent and the still shows. */
.phone-screen video, .stage-screen video { background: transparent; }

/* Wide, drawn clips (1200 x 600). */
.stage-wide { margin: 0; width: 100%; }
.stage-screen {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--r-sheet);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage-wide figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--meta); }
.prose .stage-wide { margin: 2em 0; }
/* Stops the loop (WCAG 2.2.2). Sits under the frame, an action in gold. */
.clip-toggle {
  display: block;
  margin: 10px auto 0;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.clip-toggle:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* Shown until the real PNG exists in /assets/screens/. */
.slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 22px 26px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    var(--surface);
}
.slot-top { display: flex; flex-direction: column; gap: 10px; }
.slot-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
}
.slot-file {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--meta);
}
.slot-mark { width: 28px; height: 28px; opacity: 0.18; }
.slot-mark rect { fill: var(--ink); }
.phone figcaption, .shot-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--meta);
}
.phone-sm { max-width: 240px; }

/* ---------- How it works ---------- */
.three {
  display: grid;
  gap: calc(var(--section) * 1.25);
  counter-reset: beat;
  list-style: none;
  padding: 0;
  margin-top: calc(var(--section) * 1.5);
}
.three > li { counter-increment: beat; }
.three > li::before {
  content: counter(beat);
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--soft);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.three h3 { margin-bottom: 8px; }
@media (min-width: 820px) {
  .three { grid-template-columns: repeat(3, 1fr); gap: calc(var(--section) * 1.5); }
}

/* ---------- Threshold specimen (typeset, not a screenshot) ---------- */
.split {
  display: grid;
  gap: calc(var(--section) * 1.75);
  align-items: center;
}
.split.top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: calc(var(--section) * 3); }
  .split.top > .card { position: sticky; top: var(--section); }
  .split.flip > :first-child { order: 2; }
}
.specimen {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  padding: 34px var(--margin) var(--margin);
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 24px 48px -32px var(--soft);
}
.specimen .eyebrow { color: var(--meta); }
.spec-app {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.05;
}
.spec-sub { color: var(--meta); font-size: 0.95rem; margin-top: 4px; }
.spec-goal {
  margin-top: 30px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border-radius: var(--r-input);
  box-shadow: inset 0 0 0 1px var(--line);
}
.spec-goal .eyebrow { font-size: 0.66rem; }
.spec-goal p {
  margin-top: 8px;
  font-size: 1.125rem;
  line-height: 1.5;
}
.spec-actions {
  margin-top: 30px;
  display: grid;
  gap: 8px;
}
.spec-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--r-button);
  font-weight: 500;
  font-size: 0.9375rem;
}
.spec-pill.fill { background: var(--ink); color: var(--paper); }
.spec-pill.quiet { color: var(--body); }

/* ---------- Rituals ---------- */
.rituals {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  overflow: hidden;
  margin-top: calc(var(--section) * 1.5);
}
.ritual {
  background: var(--paper);
  padding: var(--margin);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rituals + .body { margin-top: 22px; }
@media (min-width: 640px) {
  .rituals.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .rituals { grid-template-columns: repeat(3, 1fr); }
  .rituals.four { grid-template-columns: repeat(4, 1fr); }
  .rituals.two-up { grid-template-columns: repeat(2, 1fr); }
  .ritual { padding: calc(var(--margin) * 1.25); }
}
.ritual-glyph {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.ritual-glyph path, .ritual-glyph circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ritual-glyph .dot { fill: currentColor; stroke: none; }
.is-ink .ritual-glyph, .is-ink .ritual-tag { color: var(--dusk); }
.is-walk .ritual-glyph, .is-walk .ritual-tag { color: var(--clay); }
.is-breathe .ritual-glyph, .is-breathe .ritual-tag { color: var(--ink); }
.ritual-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ritual .quote {
  font-size: 0.9rem;
  color: var(--meta);
  border-left: 1px solid var(--faint);
  padding-left: 12px;
}

/* The breathing orb — one slow cycle, ≤6% scale, still under reduced motion. */
.orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.6px solid var(--ink);
  margin-bottom: 6px;
  animation: breathe calc(var(--breath-in) + var(--breath-out)) var(--ease) infinite;
}
@keyframes breathe {
  0%   { transform: scale(0.94); opacity: 0.55; }
  33%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.94); opacity: 0.55; }
}

/* ---------- Decode rows (term / plain), as in the app's sheets ---------- */
.decode { border-top: 1px solid var(--line); }
.body + .decode, .reason + .decode { margin-top: 18px; }
.decode > div {
  display: grid;
  gap: 4px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.decode dt { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); }
.decode dd { margin: 0; color: var(--body); }
@media (min-width: 720px) {
  .decode > div { grid-template-columns: 13rem minmax(0, 1fr); }
}

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-sheet);
  padding: var(--margin);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 720px) {
  .card { padding: calc(var(--margin) * 1.4); }
}
.note {
  border-left: 2px solid var(--faint);
  padding: 2px 0 2px 16px;
  color: var(--body);
  font-size: 0.95rem;
}
.cta-band { text-align: left; }
.cta-band .h2 { max-width: 20ch; }
.success { color: var(--sage); }
.ink-word { color: var(--dusk); }
.walk-word { color: var(--clay); }

/* ---------- Guide steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  gap: calc(var(--section) * 1.25);
  padding: calc(var(--section) * 2) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:first-child { border-top: 0; padding-top: var(--section); }
.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}
.step-copy > * + * { margin-top: 14px; }
.step-copy ul, .step-copy ol { padding-left: 1.2em; color: var(--body); }
.step-copy li + li { margin-top: 6px; }
.step-shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.step-shots .phone { max-width: 230px; flex: 1 1 180px; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: calc(var(--section) * 2.5); }
  .step.flip .step-shots { order: -1; }
  .step.solo { grid-template-columns: minmax(0, 44rem); }
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 26px;
}
.toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-chip);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--faint); }

/* ---------- Permissions ---------- */
.perm {
  display: grid;
  gap: calc(var(--section) * 1.25);
  padding: calc(var(--section) * 1.5) 0;
  border-top: 1px solid var(--line);
}
.perm-copy { max-width: 40rem; min-width: 0; }
.perm-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.perm-shots .phone { width: min(220px, 62vw); margin: 0; flex: 0 0 auto; }
@media (min-width: 900px) {
  .perm { grid-template-columns: minmax(0, 1fr) auto; gap: calc(var(--section) * 2); align-items: start; }
  .perm-shots { position: sticky; top: var(--section); justify-content: flex-end; max-width: 458px; }
}
.perm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--r-chip);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--body);
}
.chip.required { background: var(--ink); color: var(--paper); box-shadow: none; }
.perm .reason {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 18px;
}
.howto {
  margin-top: 18px;
  padding-left: 1.3em;
  color: var(--body);
}
.howto li + li { margin-top: 6px; }
.howto li::marker { color: var(--meta); font-variant-numeric: tabular-nums; }

/* ---------- Disclosure (FAQ, OEM help) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--meta);
  flex: none;
  transition: transform var(--calm) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; max-width: 40rem; }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer ul, .faq .answer ol { padding-left: 1.2em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
/* align-content: start — in a two-column row both fields stretch to one height, and a grid with fewer rows
   (Android version has no hint) would otherwise spread the spare height between them, pushing its control
   below its neighbour's. */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.field .opt { font-weight: 350; color: var(--meta); }
.field .hint { font-size: 0.85rem; color: var(--meta); }
.field .req, .check .req { margin-left: 0.4em; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--body); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { opacity: 0.4; cursor: not-allowed; }
#submit-hint { margin-top: -6px; font-size: 0.85rem; color: var(--meta); }
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-input);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow var(--instant) var(--ease);
}
.input:focus, .select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
/* A chevron drawn with two gradients: the CSP allows images from this origin only, so no data: SVG. */
.select {
  appearance: none;
  height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 44px;
  line-height: 52px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--meta) 50%),
    linear-gradient(135deg, var(--meta) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 17px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field-error { font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.field-error:empty { display: none; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--body);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 0.95rem; transition: opacity var(--calm) var(--ease); }
.form-status.is-quiet { opacity: 0; }
.form-status.is-ok { color: var(--sage); }
.form-status.is-error { color: var(--ink); font-weight: 500; }
.two { display: grid; gap: 22px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }

.next {
  list-style: none;
  padding: 0;
  counter-reset: next;
}
.next li {
  counter-increment: next;
  position: relative;
  padding: 0 0 22px 44px;
  color: var(--body);
}
.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}
.next li strong { color: var(--ink); font-weight: 500; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: calc(var(--section) * 1.5) 0 calc(var(--section) * 2);
  font-size: 0.9rem;
  color: var(--meta);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: baseline;
}
.foot-brand { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

/* ---------- Humane lockup ("6 of 7"), never a percentage ---------- */
.lockup { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.lockup-n {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
.lockup-of { font-size: 1rem; color: var(--body); }

/* ---------- 404: the pause mark, breathing ---------- */
.breathe-mark { width: 56px; height: 56px; margin-bottom: 8px; }
.breathe-mark rect { fill: var(--ink); }
.breathe-mark { animation: mark-breathe calc(var(--breath-in) + var(--breath-out)) var(--ease) infinite; transform-origin: 50% 50%; }
@keyframes mark-breathe {
  0%   { transform: scale(0.95); opacity: 0.55; }
  33%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.55; }
}

/* ---------- Beta: intro, then the form, one centred column ---------- */
.beta-card { max-width: 35rem; margin: 0; width: 100%; }
.beta-intro + .beta-card { margin-top: calc(var(--section) * 1.5); }

/* ---------- Phones (< 720px): a redesign, not a shrink ----------
   Fluid tokens set once; rules above that read --gutter, --margin or
   --section shrink with them. 720px and up is untouched.
   Disclosure (.fold-*) is added by site.js on phones only; without it
   every page is simply open and readable. */
.menu, .header-cta, .mobile-only { display: none; }
[hidden] { display: none !important; }

@media (max-width: 719px) {
  :root {
    --gutter: 18px;
    --margin: 18px;
    --section: 20px;
    --fs-display: clamp(1.625rem, 7.6vw, 1.875rem);
    --fs-h2: clamp(1.375rem, 6.2vw, 1.5rem);
    --fs-h3: 1.125rem;
    --fs-body: 1rem;
    --phone-w: min(200px, 52vw, 26svh);
    --head-h: 56px;
    --meta: rgba(30, 28, 24, 0.7);
  }
  html { scroll-padding-top: calc(var(--head-h) + 12px); }
  html.menu-open { overflow: hidden; }
  body { font-size: var(--fs-body); line-height: 1.5; }
  .display, .h1 { font-size: var(--fs-display); line-height: 1.1; }
  .h2 { font-size: var(--fs-h2); line-height: 1.15; }
  .h3 { font-size: var(--fs-h3); line-height: 1.25; }
  .lede { font-size: 1rem; line-height: 1.5; }
  .prose h2 { font-size: 1.25rem; }
  .prose h3 { font-size: 1.0625rem; }
  .spec-app { font-size: 1.5rem; }
  .faq summary { font-size: 1.0625rem; padding: 14px 0; }
  .eyebrow, .ritual-tag { font-size: 0.6875rem; color: var(--body); }
  .nav a, .meta, .small, .note, .toc a, .stage-wide figcaption, .phone figcaption, .shot-caption,
  .clip-toggle, .spec-sub, .field .hint, .field-error, .site-footer { font-size: 0.9375rem; }
  .path, .mono, kbd { overflow-wrap: anywhere; }
  .mobile-hide { display: none; }
  .mobile-only { display: block; margin-top: 16px; }

  /* Header: one slim sticky row. Sticky because the menu is the way around
     the site and a phone has no other nav; 56px is under a tenth of the screen. */
  .site-header { z-index: 30; }
  .site-header .wrap { flex-wrap: nowrap; height: var(--head-h); padding-top: 0; padding-bottom: 0; gap: 4px; }
  .nav { display: none; }
  .brand { margin-right: auto; font-size: 1.3125rem; }
  .header-cta {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
    color: var(--gold); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  }
  .menu { display: block; }
  .menu > summary {
    position: relative; z-index: 2; display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; list-style: none; cursor: pointer; color: var(--ink);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
  .menu .ic-close, .menu[open] .ic-open { display: none; }
  .menu[open] .ic-close { display: block; }
  .menu-sheet { display: none; }
  .menu[open] > .menu-sheet {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
    padding: calc(var(--head-h) + 8px) var(--gutter) 32px; overflow-y: auto; background: var(--paper);
  }
  .menu-sheet a {
    display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none;
  }
  .menu-sheet a[aria-current="page"] { color: var(--gold); }
  .menu-sheet .btn { margin-top: 24px; border: 0; font-family: var(--sans); font-size: 1rem; color: var(--paper); justify-content: center; }
  .menu-sheet .menu-small { margin-top: 20px; display: flex; gap: 20px; }
  .menu-sheet .menu-small a { min-height: 44px; border: 0; font-family: var(--sans); font-size: 0.9375rem; color: var(--meta); }

  /* Rhythm */
  .section { padding: calc(var(--section) * 2) 0; }
  .hero { padding: calc(var(--section) * 1.25) 0 calc(var(--section) * 2); }
  .hero-grid { gap: calc(var(--section) * 1.25); }
  .hero-copy > * + * { margin-top: 12px; }
  .hero-copy .actions { margin-top: 20px; }
  .hero-more { display: none; }
  .h2 + .body, .h2 + .lede, .h1 + .lede { margin-top: 10px; }
  .stack-lg > * + * { margin-top: 1rem; }
  .split, .hero-grid, .step, .perm { grid-template-columns: minmax(0, 1fr); }
  .split > *, .hero-grid > * { min-width: 0; }
  .step, .perm { padding: 0; gap: 0; }
  .step:first-child { padding-top: 0; }
  .btn { min-height: 48px; padding: 0 22px; }
  .btn-quiet { min-height: 44px; }
  .card { padding: 20px; }
  .split { gap: calc(var(--section) * 1.5); }

  /* Phone frames: small, and after the words */
  .phone, .phone-sm, .step-shots .phone { max-width: var(--phone-w); }
  .perm-shots .phone { width: var(--phone-w); }
  .split .phone { max-width: min(160px, 44vw, 22svh); }
  .phone-body { border-radius: 18px; padding: 3px; }
  .phone-screen { border-radius: 15px; }
  .step-shots, .perm-shots { gap: 12px; }
  .clip-toggle { min-height: 44px; }

  /* How it works: a sideways row of cards with the next one peeking */
  .three {
    display: flex; gap: 12px; margin: 20px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none;
  }
  .three::-webkit-scrollbar { display: none; }
  .three > li {
    flex: 0 0 85%; scroll-snap-align: start; padding: 18px; border-radius: var(--r-sheet);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .three > li::before { font-size: 1.5rem; margin-bottom: 8px; }
  .three h3 { margin-bottom: 6px; }

  /* Feature and tab cards: a tight list */
  .rituals { margin-top: 16px; }
  .ritual { gap: 4px; padding: 14px 16px; position: relative; }
  .ritual .h3 { font-size: 1.0625rem; }
  .ritual-glyph { width: 28px; height: 28px; margin-bottom: 0; }
  .ritual > .mark { width: 22px; height: 22px; }
  .ritual > .orb { width: 28px; height: 28px; margin-bottom: 0; }
  .rituals + .body { margin-top: 16px; }

  /* Jump-to chips: one row that scrolls sideways */
  .toc {
    flex-wrap: nowrap; overflow-x: auto; margin: 16px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px;
    gap: 8px; scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc li { flex: none; }
  .toc a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap; }
  .toc::before { content: "Jump to"; flex: none; align-self: center; font-size: 0.8125rem; color: var(--meta); letter-spacing: 0.04em; }

  /* Disclosure rows (added by site.js) */
  .step.fold-on, .perm.fold-on { border-top: 1px solid var(--line); }
  .step.fold-on, .perm.fold-on { padding: 0; }
  .fold-on .step-copy > * + *, .fold-on .perm-copy > * + * { margin-top: 12px; }
  .fold-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px;
    padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit;
    text-align: left; cursor: pointer;
  }
  .fold-btn .fold-chev { flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--meta); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform var(--calm) var(--ease); }
  .fold-btn[aria-expanded="true"] .fold-chev { transform: rotate(-135deg); }
  .step .fold-btn, .perm .fold-btn { min-height: 56px; }
  .step.fold-on .step-copy, .perm.fold-on .perm-copy { padding-bottom: 0; }
  .step.fold-on:not(.is-folded) .step-copy, .perm.fold-on:not(.is-folded) .perm-copy { padding-bottom: 8px; }
  .step.fold-on:not(.is-folded), .perm.fold-on:not(.is-folded) { padding-bottom: 24px; }
  .step.fold-on .step-shots, .perm.fold-on .perm-shots { margin-top: 16px; }
  .step-num { margin-bottom: 0; }
  .perm-head h2 { flex: 1 0 100%; }
  .perm-head { gap: 4px 12px; margin-bottom: 8px; }
  .perm .reason { font-size: 1.0625rem; }
  .ritual.fold-on { background: var(--paper); }
  .ritual .fold-btn::after { content: ""; position: absolute; inset: 0; }
  .ritual .fold-btn { padding: 4px 0; min-height: 28px; }
}

/* ---------- Redesign: home, guide ----------
   Flat sections with hairlines; the home page's two-column blocks (.hx),
   the real-media cards (.media-card), and the guide
   layout (.guide). Colours come from the token block only. */
.hero .phone, .hx .phone { max-width: min(280px, 66vw); }
/* Desktop hero: fits the window. Header 76px; the phone is sized by height
   (the frame is 9:20), leaving room for the Pause button under it. */
@media (min-width: 720px) {
  :root { --head-h: 76px; }
}
@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--head-h));
    display: flex;
    align-items: center;
    padding: 20px 0;
  }
  .hero-grid { width: 100%; }
  .hero .phone {
    max-width: none;
    width: min(320px, calc((100svh - var(--head-h) - 110px) * 0.45));
  }
}
.hero-note { color: var(--meta); }

.hx { display: grid; gap: calc(var(--section) * 1.5); align-items: center; }
.hx-copy > * + * { margin-top: 18px; }
.hx-copy .eyebrow + .h2 { margin-top: 14px; }
@media (min-width: 900px) {
  .hx { grid-template-columns: minmax(0, 1fr) 300px; gap: calc(var(--section) * 3); }
  .hx-flip { grid-template-columns: 300px minmax(0, 1fr); }
  .hx-flip > .hx-copy { order: 2; }
}

/* How it works: three numbered steps */
.how { list-style: none; padding: 0; margin-top: 28px; counter-reset: how; }
.how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.how li:last-child { border-bottom: 1px solid var(--line); }
.how li::before {
  content: counter(how);
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--meta);
}
.how .h3 { margin-bottom: 6px; }

/* What it does: five rows with line icons */
.does { list-style: none; padding: 0; margin-top: 32px; max-width: 44rem; }
.does li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.does li:last-child { border-bottom: 1px solid var(--line); }
.ico {
  width: 28px; height: 28px;
  fill: none; stroke: var(--body); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: 2px;
}
.does .h3 { font-size: 1.1875rem; margin-bottom: 4px; }

.cta-band .h2 { max-width: 20ch; }
.success { color: var(--sage); }
.ink-word { color: var(--dusk); }
.walk-word { color: var(--clay); }

/* ---------- Guide steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: grid;
  gap: calc(var(--section) * 1.25);
  padding: calc(var(--section) * 2) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:first-child { border-top: 0; padding-top: var(--section); }
.step-num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}
.step-copy > * + * { margin-top: 14px; }
.step-copy ul, .step-copy ol { padding-left: 1.2em; color: var(--body); }
.step-copy li + li { margin-top: 6px; }
.step-shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.step-shots .phone { max-width: 230px; flex: 1 1 180px; }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: calc(var(--section) * 2.5); }
  .step.flip .step-shots { order: -1; }
  .step.solo { grid-template-columns: minmax(0, 44rem); }
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 26px;
}
.toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-chip);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--faint); }

/* ---------- Permissions ---------- */
.perm {
  display: grid;
  gap: calc(var(--section) * 1.25);
  padding: calc(var(--section) * 1.5) 0;
  border-top: 1px solid var(--line);
}
.perm-copy { max-width: 40rem; min-width: 0; }
.perm-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.perm-shots .phone { width: min(220px, 62vw); margin: 0; flex: 0 0 auto; }
@media (min-width: 900px) {
  .perm { grid-template-columns: minmax(0, 1fr) auto; gap: calc(var(--section) * 2); align-items: start; }
  .perm-shots { position: sticky; top: var(--section); justify-content: flex-end; max-width: 458px; }
}
.perm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--r-chip);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--body);
}
.chip.required { background: var(--ink); color: var(--paper); box-shadow: none; }
.perm .reason {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 18px;
}
.howto {
  margin-top: 18px;
  padding-left: 1.3em;
  color: var(--body);
}
.howto li + li { margin-top: 6px; }
.howto li::marker { color: var(--meta); font-variant-numeric: tabular-nums; }

/* ---------- Disclosure (FAQ, OEM help) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--meta);
  flex: none;
  transition: transform var(--calm) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; max-width: 40rem; }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer ul, .faq .answer ol { padding-left: 1.2em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
/* align-content: start — in a two-column row both fields stretch to one height, and a grid with fewer rows
   (Android version has no hint) would otherwise spread the spare height between them, pushing its control
   below its neighbour's. */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.field .opt { font-weight: 350; color: var(--meta); }
.field .hint { font-size: 0.85rem; color: var(--meta); }
.field .req, .check .req { margin-left: 0.4em; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--body); }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { opacity: 0.4; cursor: not-allowed; }
#submit-hint { margin-top: -6px; font-size: 0.85rem; color: var(--meta); }
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-input);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--faint);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow var(--instant) var(--ease);
}
.input:focus, .select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
/* A chevron drawn with two gradients: the CSP allows images from this origin only, so no data: SVG. */
.select {
  appearance: none;
  height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 44px;
  line-height: 52px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--meta) 50%),
    linear-gradient(135deg, var(--meta) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 17px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field-error { font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.field-error:empty { display: none; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--body);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 0.95rem; transition: opacity var(--calm) var(--ease); }
.form-status.is-quiet { opacity: 0; }
.form-status.is-ok { color: var(--sage); }
.form-status.is-error { color: var(--ink); font-weight: 500; }
.two { display: grid; gap: 22px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }

.next {
  list-style: none;
  padding: 0;
  counter-reset: next;
}
.next li {
  counter-increment: next;
  position: relative;
  padding: 0 0 22px 44px;
  color: var(--body);
}
.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
}
.next li strong { color: var(--ink); font-weight: 500; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: calc(var(--section) * 1.5) 0 calc(var(--section) * 2);
  font-size: 0.9rem;
  color: var(--meta);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: baseline;
}
.foot-brand { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

/* ---------- Humane lockup ("6 of 7"), never a percentage ---------- */
.lockup { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.lockup-n {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
.lockup-of { font-size: 1rem; color: var(--body); }

/* ---------- 404: the pause mark, breathing ---------- */
.breathe-mark { width: 56px; height: 56px; margin-bottom: 8px; }
.breathe-mark rect { fill: var(--ink); }
.breathe-mark { animation: mark-breathe calc(var(--breath-in) + var(--breath-out)) var(--ease) infinite; transform-origin: 50% 50%; }
@keyframes mark-breathe {
  0%   { transform: scale(0.95); opacity: 0.55; }
  33%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.55; }
}

/* ---------- Beta: intro, then the form, one centred column ---------- */
.beta-card { max-width: 35rem; margin: 0; width: 100%; }
.beta-intro + .beta-card { margin-top: calc(var(--section) * 1.5); }

/* ---------- Phones (< 720px): a redesign, not a shrink ----------
   Fluid tokens set once; rules above that read --gutter, --margin or
   --section shrink with them. 720px and up is untouched.
   Disclosure (.fold-*) is added by site.js on phones only; without it
   every page is simply open and readable. */
.menu, .header-cta, .mobile-only { display: none; }
[hidden] { display: none !important; }

@media (max-width: 719px) {
  :root {
    --gutter: 18px;
    --margin: 18px;
    --section: 20px;
    --fs-display: clamp(1.625rem, 7.6vw, 1.875rem);
    --fs-h2: clamp(1.375rem, 6.2vw, 1.5rem);
    --fs-h3: 1.125rem;
    --fs-body: 1rem;
    --phone-w: min(200px, 52vw, 26svh);
    --head-h: 56px;
    --meta: rgba(30, 28, 24, 0.7);
  }
  html { scroll-padding-top: calc(var(--head-h) + 12px); }
  html.menu-open { overflow: hidden; }
  body { font-size: var(--fs-body); line-height: 1.5; }
  .display, .h1 { font-size: var(--fs-display); line-height: 1.1; }
  .h2 { font-size: var(--fs-h2); line-height: 1.15; }
  .h3 { font-size: var(--fs-h3); line-height: 1.25; }
  .lede { font-size: 1rem; line-height: 1.5; }
  .prose h2 { font-size: 1.25rem; }
  .prose h3 { font-size: 1.0625rem; }
  .spec-app { font-size: 1.5rem; }
  .faq summary { font-size: 1.0625rem; padding: 14px 0; }
  .eyebrow, .ritual-tag { font-size: 0.6875rem; color: var(--body); }
  .nav a, .meta, .small, .note, .toc a, .stage-wide figcaption, .phone figcaption, .shot-caption,
  .clip-toggle, .spec-sub, .field .hint, .field-error, .site-footer { font-size: 0.9375rem; }
  .path, .mono, kbd { overflow-wrap: anywhere; }
  .mobile-hide { display: none; }
  .mobile-only { display: block; margin-top: 16px; }

  /* Header: one slim sticky row. Sticky because the menu is the way around
     the site and a phone has no other nav; 56px is under a tenth of the screen. */
  .site-header { z-index: 30; }
  .site-header .wrap { flex-wrap: nowrap; height: var(--head-h); padding-top: 0; padding-bottom: 0; gap: 4px; }
  .nav { display: none; }
  .brand { margin-right: auto; font-size: 1.3125rem; }
  .header-cta {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
    color: var(--gold); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  }
  .menu { display: block; }
  .menu > summary {
    position: relative; z-index: 2; display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; list-style: none; cursor: pointer; color: var(--ink);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
  .menu .ic-close, .menu[open] .ic-open { display: none; }
  .menu[open] .ic-close { display: block; }
  .menu-sheet { display: none; }
  .menu[open] > .menu-sheet {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
    padding: calc(var(--head-h) + 8px) var(--gutter) 32px; overflow-y: auto; background: var(--paper);
  }
  .menu-sheet a {
    display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none;
  }
  .menu-sheet a[aria-current="page"] { color: var(--gold); }
  .menu-sheet .btn { margin-top: 24px; border: 0; font-family: var(--sans); font-size: 1rem; color: var(--paper); justify-content: center; }
  .menu-sheet .menu-small { margin-top: 20px; display: flex; gap: 20px; }
  .menu-sheet .menu-small a { min-height: 44px; border: 0; font-family: var(--sans); font-size: 0.9375rem; color: var(--meta); }

  /* Rhythm */
  .section { padding: calc(var(--section) * 2) 0; }
  .hero { padding: calc(var(--section) * 1.25) 0 calc(var(--section) * 2); }
  .hero-grid { gap: calc(var(--section) * 1.25); }
  .hero-copy > * + * { margin-top: 12px; }
  .hero-copy .actions { margin-top: 20px; }
  .hero-more { display: none; }
  .h2 + .body, .h2 + .lede, .h1 + .lede { margin-top: 10px; }
  .stack-lg > * + * { margin-top: 1rem; }
  .split, .hero-grid, .step, .perm { grid-template-columns: minmax(0, 1fr); }
  .split > *, .hero-grid > * { min-width: 0; }
  .step, .perm { padding: 0; gap: 0; }
  .step:first-child { padding-top: 0; }
  .btn { min-height: 48px; padding: 0 22px; }
  .btn-quiet { min-height: 44px; }
  .card { padding: 20px; }
  .split { gap: calc(var(--section) * 1.5); }

  /* Phone frames: small, and after the words */
  .phone, .phone-sm, .step-shots .phone { max-width: var(--phone-w); }
  .perm-shots .phone { width: var(--phone-w); }
  .split .phone { max-width: min(160px, 44vw, 22svh); }
  .phone-body { border-radius: 18px; padding: 3px; }
  .phone-screen { border-radius: 15px; }
  .step-shots, .perm-shots { gap: 12px; }
  .clip-toggle { min-height: 44px; }

  /* How it works: a sideways row of cards with the next one peeking */
  .three {
    display: flex; gap: 12px; margin: 20px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none;
  }
  .three::-webkit-scrollbar { display: none; }
  .three > li {
    flex: 0 0 85%; scroll-snap-align: start; padding: 18px; border-radius: var(--r-sheet);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .three > li::before { font-size: 1.5rem; margin-bottom: 8px; }
  .three h3 { margin-bottom: 6px; }

  /* Feature and tab cards: a tight list */
  .rituals { margin-top: 16px; }
  .ritual { gap: 4px; padding: 14px 16px; position: relative; }
  .ritual .h3 { font-size: 1.0625rem; }
  .ritual-glyph { width: 28px; height: 28px; margin-bottom: 0; }
  .ritual > .mark { width: 22px; height: 22px; }
  .ritual > .orb { width: 28px; height: 28px; margin-bottom: 0; }
  .rituals + .body { margin-top: 16px; }

  /* Jump-to chips: one row that scrolls sideways */
  .toc {
    flex-wrap: nowrap; overflow-x: auto; margin: 16px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 6px;
    gap: 8px; scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc li { flex: none; }
  .toc a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap; }
  .toc::before { content: "Jump to"; flex: none; align-self: center; font-size: 0.8125rem; color: var(--meta); letter-spacing: 0.04em; }

  /* Disclosure rows (added by site.js) */
  .step.fold-on, .perm.fold-on { border-top: 1px solid var(--line); }
  .step.fold-on, .perm.fold-on { padding: 0; }
  .fold-on .step-copy > * + *, .fold-on .perm-copy > * + * { margin-top: 12px; }
  .fold-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px;
    padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit;
    text-align: left; cursor: pointer;
  }
  .fold-btn .fold-chev { flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--meta); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform var(--calm) var(--ease); }
  .fold-btn[aria-expanded="true"] .fold-chev { transform: rotate(-135deg); }
  .step .fold-btn, .perm .fold-btn { min-height: 56px; }
  .step.fold-on .step-copy, .perm.fold-on .perm-copy { padding-bottom: 0; }
  .step.fold-on:not(.is-folded) .step-copy, .perm.fold-on:not(.is-folded) .perm-copy { padding-bottom: 8px; }
  .step.fold-on:not(.is-folded), .perm.fold-on:not(.is-folded) { padding-bottom: 24px; }
  .step.fold-on .step-shots, .perm.fold-on .perm-shots { margin-top: 16px; }
  .step-num { margin-bottom: 0; }
  .perm-head h2 { flex: 1 0 100%; }
  .perm-head { gap: 4px 12px; margin-bottom: 8px; }
  .perm .reason { font-size: 1.0625rem; }
  .ritual.fold-on { background: var(--paper); }
  .ritual .fold-btn::after { content: ""; position: absolute; inset: 0; }
  .ritual .fold-btn { padding: 4px 0; min-height: 28px; }
}

/* ---------- Redesign: home, guide ----------
   Flat sections with hairlines; the home page's two-column blocks (.hx),
   the real-media cards (.media-card), and the guide
   layout (.guide). Colours come from the token block only. */
.hero .phone, .hx .phone { max-width: min(280px, 66vw); }
/* Desktop hero: fits the window. Header 76px; the phone is sized by height
   (the frame is 9:20), leaving room for the Pause button under it. */
@media (min-width: 720px) {
  :root { --head-h: 76px; }
}
@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--head-h));
    display: flex;
    align-items: center;
    padding: 20px 0;
  }
  .hero-grid { width: 100%; }
  .hero .phone {
    max-width: none;
    width: min(320px, calc((100svh - var(--head-h) - 110px) * 0.45));
  }
}
.hero-note { color: var(--meta); }

.hx { display: grid; gap: calc(var(--section) * 1.5); align-items: center; }
.hx-copy > * + * { margin-top: 18px; }
.hx-copy .eyebrow + .h2 { margin-top: 14px; }
@media (min-width: 900px) {
  .hx { grid-template-columns: minmax(0, 1fr) 300px; gap: calc(var(--section) * 3); }
  .hx-flip { grid-template-columns: 300px minmax(0, 1fr); }
  .hx-flip > .hx-copy { order: 2; }
}

/* How it works: three numbered steps */
.how { list-style: none; padding: 0; margin-top: 28px; counter-reset: how; }
.how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.how li:last-child { border-bottom: 1px solid var(--line); }
.how li::before {
  content: counter(how);
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--meta);
}
.how .h3 { margin-bottom: 6px; }

/* What it does: five rows with line icons */
.does { list-style: none; padding: 0; margin-top: 32px; max-width: 44rem; }
.does li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.does li:last-child { border-bottom: 1px solid var(--line); }
.ico {
  width: 28px; height: 28px;
  fill: none; stroke: var(--body); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-top: 2px;
}
.does .h3 { font-size: 1.1875rem; margin-bottom: 4px; }

.cta-band .h2 { max-width: 20ch; }

/* Guide */
.g-head { padding-bottom: calc(var(--section) * 1.5); }
.g-body .wrap { padding-bottom: calc(var(--section) * 3); }
.guide { display: grid; gap: 8px; }
.gtoc-m {
  border-radius: var(--r-button); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gtoc-m summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none;
  font-weight: 500; color: var(--ink);
}
.gtoc-m summary::-webkit-details-marker { display: none; }
.gtoc-m summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 3px;
  border: solid var(--meta); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  transition: transform var(--calm) var(--ease);
}
.gtoc-m[open] summary::after { transform: rotate(-135deg); }
/* On this page: a vertical timeline like Today's day line. One dot per section on a thin line;
   the line fills sage from the top down to the section being read. Passed dots are sage, the
   current one has a soft halo, upcoming ones are hollow grey. site.js sets --tt, --th and --fh. */
.gtoc ol { position: relative; list-style: none; margin: 0; }
.gtoc ol::before, .gtoc ol::after {
  content: ""; position: absolute; left: var(--tx); width: 2px; border-radius: 2px;
  top: var(--tt, 14px);
}
.gtoc ol::before { height: var(--th, calc(100% - 28px)); background: var(--faint); }
.gtoc ol::after { height: var(--fh, 0px); background: var(--sage); transition: height 400ms var(--ease); }
.gtoc li > a { position: relative; color: var(--body); text-decoration: none; }
.gtoc li > a:hover { color: var(--ink); }
.gd {
  position: absolute; left: -22px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--soft);
  transition: background-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.gtoc li.is-past > a > .gd { background: var(--sage); box-shadow: 0 0 0 0 transparent; }
.gtoc li.is-now > a > .gd { background: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent); }
.gtoc li.is-now > a { color: var(--ink); font-weight: 500; }
.gtoc a[aria-current="true"] { color: var(--ink); }

.gtoc-m ol { --tx: 22px; padding: 4px 18px 12px 40px; }
.gtoc-m a { display: flex; align-items: center; min-height: 44px; }
.gtoc-m .gd { top: 50%; margin-top: -5px; }
.gtoc-d { display: none; }
.gtoc-d ol, .gtoc-d ul { padding: 0; }
.gtoc-d ul { list-style: none; margin: 0; }
.gtoc-d > ol { --tx: 4px; margin-top: 14px; padding-left: 22px; }
.gtoc-d li > ul { margin: 2px 0 8px; padding-left: 12px; }
.gtoc-d a { display: block; padding: 5px 0; font-size: 0.9375rem; }
.gtoc-d li > ul a { font-size: 0.875rem; color: var(--meta); }
.gtoc-d li > ul a:hover { color: var(--ink); }
.gtoc-d .gd { top: calc(5px + 0.675em - 5px); }
@media (min-width: 960px) {
  .guide { grid-template-columns: 14rem minmax(0, 1fr); gap: 56px; align-items: start; }
  .gtoc-m { display: none; }
  .gtoc {
    align-self: start; position: sticky; top: calc(var(--head-h) + 16px);
    max-height: calc(100vh - var(--head-h) - 32px);
  }
  .gtoc-d { display: block; }
  .gtoc-d .eyebrow { margin-bottom: 8px; }
  .gtoc-d > ol { margin-top: 0; }
  .gtoc-d a { padding: 4px 0; font-size: 0.9rem; line-height: 1.35; }
  .gtoc-d li > ul { margin: 0 0 4px; padding-left: 12px; }
  .gtoc-d li > ul a { padding: 2px 0; font-size: 0.8125rem; }
  .gtoc-d .gd { top: calc(4px + 0.675em - 5px); }
  .gtoc-d li > ul a[aria-current="true"] { color: var(--ink); font-weight: 500; }
  .gtoc-d.js-spy li > ul { display: none; }
  .gtoc-d.js-spy li.is-open > ul { display: block; }
}
.g-main { counter-reset: g; max-width: 50rem; min-width: 0; }
.g-sec { padding: 44px 0 48px; border-top: 1px solid var(--line); }
.g-sec:first-child { border-top: 0; padding-top: 8px; }
.g-sec > .h2::before {
  counter-increment: g; content: counter(g);
  display: block; margin-bottom: 10px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; color: var(--meta);
}
#help > .h2::before { content: none; counter-increment: none; }
.g-sec > * + * { margin-top: 16px; }
.g-sec .h3 { margin-top: 28px; }
.h4 { margin: 22px 0 0; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink); }
.g-list { padding-left: 1.2em; }
.g-list li + li { margin-top: 8px; }
.g-text > * + * { margin-top: 14px; }
.g-text > .h3 { margin-top: 28px; }
.g-split { display: grid; gap: 32px; }
.g-figs { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
.g-figs .phone { margin: 0; width: min(220px, 58vw); max-width: none; flex: 0 0 auto; }
@media (min-width: 1100px) {
  .g-split { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .g-split:has(.g-figs-2) { grid-template-columns: minmax(0, 1fr); }
  .g-figs { justify-content: flex-start; }
}
@media (min-width: 720px) {
  .g-figs-2 { gap: 16px; }
  .g-figs-2 .phone { width: 170px; }
}
.pm { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pm .decode { margin-top: 14px; }
.pm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pm-head .h3 { margin: 0; }
.pm-how { margin-top: 18px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--meta); }
.pm .howto { margin-top: 6px; }
.pm .note { margin-top: 14px; }
.g-sub { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.g-sub .faq { margin-top: 20px; }
/* A permission: words, then its Android Settings screen(s) beside or under them */
.pm { display: grid; gap: 20px; }
.pm-text { min-width: 0; }
.pm-figs { justify-content: flex-start; }
.pm-figs .phone { width: min(200px, 50vw); }
@media (min-width: 1100px) {
  .pm:has(> .pm-figs) { grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; }
  .pm-figs { flex-direction: column; flex-wrap: nowrap; }
  .pm-figs .phone { width: 200px; }
}
/* Phones: figures sit in one sideways row, so a subsection shows one phone at a time */
@media (max-width: 719px) {
  .g-figs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .g-figs::-webkit-scrollbar { display: none; }
  .g-figs .phone, .pm-figs .phone { width: 170px; scroll-snap-align: start; }
}

/* Real media from the phone, cropped to one part of a screen: a rounded card, not a phone frame. */
.hx-card { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .hx-card { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .hx-card.hx-flip { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
}
.media-card { margin: 0; width: 100%; max-width: 26rem; }
.mc-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sheet);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -36px var(--soft);
  line-height: 0;
}
/* The still sets the card's height from its own width/height attributes; an inline
   aspect-ratio would be dropped by the CSP (style-src 'self'). The video lies over it. */
.mc-screen img { display: block; width: 100%; height: auto; }
.mc-screen video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
.mc-screen video { background: transparent; }
.mc-screen img.is-missing { display: none; }
.media-card .clip-toggle { margin: 2px 0 0; padding: 0; }
.media-card figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--meta); }

/* ---------- Motion ---------- */
/* Scroll reveal: site.js marks only what starts below the fold, so nothing
   already on screen ever blinks. Runs once per element. */
.reveal-pending { opacity: 0; transform: translateY(12px); }
.reveal-pending.reveal-fade { transform: none; }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
/* A few pixels of drift for phone frames while they cross the screen. */
.phone-body { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orb, .breathe-mark { transform: none; opacity: 1; }
  .reveal-pending { opacity: 1; transform: none; }
  .phone-body { transform: none !important; }
}

@media print {
  .site-header .nav, .site-footer, .actions { display: none; }
  body { background: none; }
}

/* Spacing fixes found in the full-page walk */
.h1 + .meta { margin-top: 14px; }
.meta + .prose { margin-top: 28px; }
.h2 + .faq { margin-top: 22px; }

/* Beta: the sign-up card beside the intro on desktop */
.beta-grid { display: grid; gap: calc(var(--section) * 1.5); max-width: 70rem; }
.beta-grid .beta-card { margin: 0; max-width: none; }
.beta-grid .beta-intro + .beta-card { margin-top: 0; }
@media (min-width: 900px) {
  .beta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 64px; align-items: start; }
}
@media (min-width: 900px) and (min-height: 880px) {
  .beta-grid .beta-card { position: sticky; top: calc(var(--head-h) + 16px); }
}

/* Hero kicker: bigger than the site's other eyebrows */
.hero .eyebrow {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--body);
}
.hero .eyebrow + .display { margin-top: 20px; }
@media (max-width: 719px) {
  .hero .eyebrow { font-size: 0.9rem; letter-spacing: 0.14em; }
  .hero .eyebrow + .display { margin-top: 14px; }
}

/* Hero headline: two lines at desktop widths, so the whole hero fits the window */
@media (min-width: 900px) {
  .hero .display { font-size: clamp(2.5rem, 4.2vw, 4rem); }
  .hero-copy > * + * { margin-top: 16px; }
  .hero-copy .actions { margin-top: 24px; }
}

/* App language: hairlines only between sections, not between list rows */
.how li, .does li { border-top: 0; border-bottom: 0; }
.how li:last-child, .does li:last-child { border-bottom: 0; }
.how li { padding: 14px 0; }
.does li { padding: 16px 0; }

/* Beta: one email field, then what happens next */
.beta-wrap { max-width: 40rem; }
.beta-next { margin: 0; padding-left: 1.25rem; display: grid; gap: 8px; }

/* ---------- Home, launch: figures, feature sections, phone pairs ----------
   The app's hand-drawn figures (<art> in build.py) are ink on transparent,
   so they sit straight on paper with no frame. Headlines may dim their second
   half (.dim) so one phrase leads; colour stays ink, never an accent. */
.art { display: block; }
.art img { display: block; width: 100%; height: auto; }
.dim { color: var(--meta); }
.hx-copy .h2 .dim { display: block; }
.h2.big { font-size: clamp(2.125rem, 5.4vw, 3.375rem); line-height: 1.06; }
.hx-copy .chips + .h2 { margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px;
  border-radius: var(--r-chip); background: var(--surface); box-shadow: inset 0 0 0 1px var(--faint);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink); letter-spacing: 0.01em;
}

/* Hero: the pause screen, with a figure at the window beside it */
.hero-stage { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero-stage .phone { margin: 0; flex: none; }
.hero-fig { flex: none; width: 150px; margin-right: -18px; margin-bottom: -6px; opacity: 0.95; }
/* The moving window (assets/js/wind.js): canvases laid exactly over the still,
   which keeps the space and shows again if the motion stops. */
.hero-fig { position: relative; }
.wind-layer, .wind-layer canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-fig.is-live img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .wind-layer { display: none; }
  .hero-fig.is-live img { visibility: visible; }
}
@media (min-width: 900px) {
  .hero-fig { width: clamp(150px, 13vw, 200px); margin-right: -10px; }
}

/* How it works: three drawn moments */
.story { list-style: none; padding: 0; margin-top: calc(var(--section) * 1.5); display: grid; gap: 28px; counter-reset: story; }
.story > li { counter-increment: story; display: grid; align-content: start; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 18px; align-items: start; }
.story .art { grid-row: 1 / span 2; height: 124px; display: flex; align-items: flex-end; justify-content: center; }
.story .art img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left bottom; }
.story .h3::before {
  content: counter(story) ". "; color: var(--meta);
}
.story .h3 { margin-bottom: 6px; }
@media (min-width: 820px) {
  .story { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--section) * 1.5); }
  .story > li { grid-template-columns: minmax(0, 1fr); }
  .story .art { grid-row: auto; height: 240px; justify-content: flex-start; margin-bottom: 22px; }
  .story .h3::before { content: counter(story); display: block; margin-bottom: 8px; font-size: 1rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.18em; }
}

/* Feature sections: words, then one or two phones (and sometimes a figure) */
@media (min-width: 900px) {
  .hx:has(> .duo) { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: calc(var(--section) * 2.5); }
  .hx-flip:has(> .duo) { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); }
}
.duo { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.duo .phone { margin: 0; flex: none; width: 240px; max-width: 62vw; }
.duo-fig { flex: none; width: 170px; margin-left: -14px; }
.duo-fig-left { margin-left: 0; margin-right: -14px; }
.duo-phones { align-items: flex-start; gap: 20px; }
.duo-phones .phone { width: 220px; max-width: 44vw; }
.duo-phones .phone + .phone { margin-top: 56px; }
.feeds {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px; max-width: 30rem;
}
.feeds li { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.feeds li::before { content: ""; flex: none; width: 14px; height: 1.5px; background: var(--ink); }
.ways { display: grid; gap: 16px; max-width: 34rem; }
.ways dt { font-family: var(--serif); font-size: 1.1875rem; color: var(--ink); }
.ways dd { margin: 2px 0 0; color: var(--body); }

/* The two rituals, each with its figure */
.rites { display: grid; gap: 16px; margin-top: calc(var(--section) * 1.5); }
.rite {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 16px; align-items: end;
  padding: var(--margin); border-radius: var(--r-sheet); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.rite > * { grid-column: 1; }
.rite > .art { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.rite .h3 { margin-top: 8px; }
.rite .body { margin-top: 8px; }
.is-ink .ritual-tag { color: var(--dusk); }
.is-walk .ritual-tag { color: var(--clay); }
@media (min-width: 820px) {
  .rites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rite { grid-template-columns: minmax(0, 1fr) 170px; padding: calc(var(--margin) * 1.3); }
}

/* A figure that closes a section, centred under it */
.closer { margin-top: calc(var(--section) * 2.25); display: flex; flex-direction: column; align-items: center; text-align: center; }
.closer-fig { width: min(340px, 78vw); }
.closer-line { margin-top: 14px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; color: var(--body); }

/* A small figure under a section's words */
.inline-fig { width: 150px; margin-top: 28px; }

/* Private: words beside a figure */
.private { display: grid; gap: 28px; align-items: center; }
.private-fig { width: min(220px, 52vw); justify-self: center; }
@media (min-width: 900px) {
  .private { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: calc(var(--section) * 3); }
  .private-fig { width: 260px; }
}

/* Questions: heading and figure beside the answers */
.faq-wrap { display: grid; gap: 22px; }
.faq-sign { display: none; }
@media (min-width: 900px) {
  .faq-wrap { grid-template-columns: 16rem minmax(0, 46rem); gap: calc(var(--section) * 2.5); align-items: start; }
  .faq-head { position: sticky; top: calc(var(--head-h) + 24px); }
  .faq-sign { display: block; position: relative; width: 190px; margin-top: 32px; }
  .faq-fig { display: block; width: 100%; }
  .faq-sign span {
    position: absolute; left: 8%; right: 8%; top: 56%; height: 22%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  }
  .faq-wrap .faq { border-top: 0; }
}

/* Closing call, with the thumbs-up figure */
.cta-grid { display: grid; gap: 24px; align-items: end; }
.cta-fig { width: min(200px, 48vw); }
@media (min-width: 720px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .cta-fig { width: 240px; }
}

/* Phones: the same blocks, tighter */
@media (max-width: 719px) {
  .hero-stage .phone { width: var(--phone-w); max-width: var(--phone-w); }
  .hero-fig { width: 104px; margin-right: -8px; }
  .h2.big { font-size: clamp(1.625rem, 7.4vw, 2rem); line-height: 1.12; }
  .chip { font-size: 0.8125rem; }
  .duo .phone { width: var(--phone-w); max-width: var(--phone-w); }
  .duo-fig { width: 112px; margin-left: -8px; }
  .duo-fig-left { margin-left: 0; margin-right: -8px; }
  .duo-phones { gap: 12px; }
  .duo-phones .phone { width: min(168px, 43vw); max-width: none; }
  .duo-phones .phone + .phone { margin-top: 36px; }
  .feeds { gap: 8px 16px; }
  .feeds li { font-size: 1.0625rem; }
  .ways dt { font-size: 1.0625rem; }
  .rite { grid-template-columns: minmax(0, 1fr) 92px; padding: 18px; }
  .closer { margin-top: calc(var(--section) * 2); }
  .closer-line { font-size: 1.125rem; }
  .inline-fig { width: 112px; margin-top: 20px; }
}

/* ---------- Figures on Beta, Thanks, Help and the Guide ----------
   Beta: a figure beside the form on wide screens, under it on phones.
   Thanks: the figure beside the words, or above them on phones.
   Help: a figure above the "helpful to include" card.
   Guide: one figure by the page heading, and one each at Permissions and
   Something not working? (not one at every section). */
.beta-layout { display: grid; gap: 32px; }
.beta-fig { width: min(180px, 46vw); justify-self: center; order: -1; } /* phones: above the words, not after them */
.thanks-layout { display: grid; gap: 20px; }
.thanks-fig { width: min(150px, 40vw); }
@media (min-width: 960px) {
  .beta-layout { grid-template-columns: minmax(0, 40rem) minmax(0, 17rem); gap: 72px; justify-content: center; align-items: start; }
  .beta-fig { width: 100%; justify-self: start; position: sticky; top: calc(var(--head-h) + 48px); margin-top: 72px; order: 0; }
  .thanks-layout { grid-template-columns: minmax(0, 44rem) minmax(0, 15rem); gap: 72px; justify-content: center; align-items: center; }
  .thanks-layout > .narrow { grid-row: 1; grid-column: 1; }
  .thanks-fig { grid-row: 1; grid-column: 2; width: 100%; }
}

.g-sec > .sec-fig { float: right; width: auto; margin: 0 0 12px 28px; }
.g-sec > .sec-fig img { width: auto; height: 150px; }
.g-sec > .g-split, .g-sec > .g-figs, .g-sec > .pm, .g-sec > .g-sub { clear: both; }
/* Where the words sit in a split below the heading, the figure stays the heading's height. */
.g-sec:has(> .g-split) > .sec-fig img { height: 100px; }
/* .beta-next zeroes its margin; keep the stack's rhythm above it. */
.stack > .beta-next { margin-top: 1rem; }
.stack-lg > .beta-next { margin-top: 1.25rem; }
.g-head .head-fig { float: right; margin: 0 0 8px 28px; }
.g-head .head-fig img { width: auto; height: 210px; }
.help-side { display: grid; gap: 20px; align-content: start; }
.help-fig { width: min(260px, 60vw); justify-self: center; }
@media (max-width: 719px) {
  .g-head .head-fig { margin: 0 0 4px 12px; }
  .g-head .head-fig img { height: 120px; }
  .help-fig { width: 180px; }
  .g-sec > .sec-fig { margin: 0 0 8px 16px; }
  .g-sec > .sec-fig img { height: 104px; }
  .g-sec:has(> .g-split) > .sec-fig img { height: 76px; }
  .beta-fig { width: 128px; }
}
