/* ---------------------------------------------------------------------------
   Retold — marketing site
   Every byte this page needs lives in this folder. No @import, no CDN, no
   webfont service, no analytics. The palette and motion values below are the
   app's own tokens (Aloud/Support/DesignSystem.swift, Design/LAMPLIT.md).
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader-Italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* --- tokens ------------------------------------------------------------- */

:root {
  color-scheme: dark light;

  /* Warm Dark — the closed book at night. */
  --ink:        #17100D;
  --ink-raised: #211812;
  --ink-deep:   #2A1F17;
  --edge:       #0B0806;
  --lamp:       #E7A54D;
  --lamp-deep:  #C07E30;
  --lamp-text:  #E7A54D;
  --paper:      #ECE3D6;
  --paper-dim:  #A89B8B;
  --marg:       #94887B;
  --faint:      #8A7D70;
  --hair:        rgba(236, 227, 214, 0.09);
  --hair-strong: rgba(236, 227, 214, 0.18);
  --hair-lamp:   rgba(231, 165, 77, 0.22);
  --lamp-wash:   rgba(231, 165, 77, 0.13);
  --lamp-glow:   rgba(231, 165, 77, 0.26);
  --vignette:    rgba(0, 0, 0, 0.45);
  --shade:       rgba(0, 0, 0, 0.45);
  --on-lamp:    #17100D;
  --body-weight: 350;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;

  /* Motion — Retold's Motion tokens, in milliseconds. */
  --settle: 900ms;
  --arrival: 600ms;
  --touch: 250ms;
  --breath: 3200ms;
  --stagger: 300ms;
  --rise: 6px;
  --ease: cubic-bezier(0, 0, 0.58, 1); /* SwiftUI .easeOut */

  --sheet: 56rem;
  --measure: 34rem;
  --gutter: 7rem;
}

/* Daylight — the app's light tokens: warm paper, deeper ochre lamp. */
@media (prefers-color-scheme: light) {
  :root {
    --ink:        #F4EFE7;
    --ink-raised: #EAE3D6;
    --ink-deep:   #E0D8C8;
    --edge:       #E6DCCB;
    --lamp:       #B26A12;
    --lamp-deep:  #8A5210;
    --lamp-text:  #8A5210;
    --paper:      #2A211C;
    --paper-dim:  #6E635A;
    --marg:       #6E635A;
    --faint:      #6E635A;
    --hair:        rgba(42, 33, 28, 0.12);
    --hair-strong: rgba(42, 33, 28, 0.22);
    --hair-lamp:   rgba(178, 106, 18, 0.34);
    --lamp-wash:   rgba(178, 106, 18, 0.10);
    --lamp-glow:   rgba(178, 106, 18, 0.20);
    --vignette:    rgba(120, 92, 54, 0.10);
    --shade:       rgba(90, 66, 34, 0.16);
    --on-lamp:    #FFF8ED;
    --body-weight: 400;
  }
}

/* --- base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

figure, blockquote { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The lamp: a fixed source above and to the right, so the page moves under
   the light rather than carrying it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 52% at 78% -10%, var(--lamp-wash), transparent 62%),
    radial-gradient(120% 60% at 50% 118%, var(--vignette), transparent 62%);
}

.layer { position: relative; z-index: 1; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink-raised);
  color: var(--paper);
  font-size: 0.8125rem;
  text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.sprite { display: none; }

/* --- shared type -------------------------------------------------------- */

.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marg);
  margin: 0;
}
.label-lamp { color: var(--lamp-text); }

.prose { max-width: var(--measure); }

.prose p {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--paper-dim);
  margin: 0 0 1.15rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose p.lead { color: var(--paper); font-size: 1.1875rem; }

/* a machine-chrome line inside running text: sans, letterspaced, quiet */
.prose p.spec {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--lamp-text);
  margin-top: 1.6rem;
}

.label-gap { margin-top: clamp(2.25rem, 6vw, 3rem); }
.prose em { color: var(--paper); font-style: italic; }
.prose .lit { color: var(--lamp); font-style: normal; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

/* --- masthead ----------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  border-bottom: 1px solid var(--hair);
}
@supports (backdrop-filter: blur(10px)) {
  .masthead {
    background: color-mix(in srgb, var(--ink) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.1);
  }
}

.masthead-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.mast-nav { display: none; gap: 1.15rem; }
.mast-nav a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marg);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.35rem;
  position: relative;
  transition: color var(--touch) var(--ease);
}
.mast-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 15px;
  height: 2px;
  background: var(--lamp);
  opacity: 0;
  transition: opacity var(--touch) var(--ease);
}
.mast-nav a:hover, .mast-nav a:focus-visible { color: var(--paper); }
.mast-nav a:hover::after, .mast-nav a:focus-visible::after { opacity: 1; }

.mast-get {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lamp-text);
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .mast-nav { display: flex; }
}

/* --- layout ------------------------------------------------------------- */

.sheet {
  width: 100%;
  max-width: var(--sheet);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.sec {
  position: relative;
  padding-block: clamp(3.25rem, 8vw, 5rem);
  border-top: 1px solid var(--hair);
  scroll-margin-top: 4.5rem;
}

.sec-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  color: var(--lamp-text);
  margin-bottom: 0.9rem;
}

@media (min-width: 880px) {
  .sec { padding-left: var(--gutter); }
  .sec-num {
    position: absolute;
    left: 0;
    top: clamp(3.25rem, 8vw, 5rem);
    width: calc(var(--gutter) - 2.25rem);
    text-align: right;
    margin-bottom: 0;
    line-height: 1.9;
  }
}

.sec h2 {
  font-size: clamp(1.85rem, 5.2vw, 2.5rem);
  line-height: 1.14;
  color: var(--paper);
  max-width: 22ch;
}

.sec .sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: var(--body-weight);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--lamp-text);
  margin: 0.9rem 0 0;
  max-width: var(--measure);
}

.sec .prose { margin-top: 1.9rem; }
.sec .prose + .prose { margin-top: clamp(2.25rem, 6vw, 3rem); }

/* --- hero --------------------------------------------------------------- */

.hero {
  padding-top: clamp(3rem, 9vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
  border-top: 0;
}
@media (min-width: 880px) { .hero { padding-left: 0; } }

.hero .eyebrow { margin-bottom: clamp(1.75rem, 5vw, 2.75rem); }

.hero h1 {
  font-size: clamp(4.25rem, 17vw, 8.5rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 5.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 1.5rem 0 0;
}

.promo {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--paper-dim);
  margin: 1.4rem 0 0;
  max-width: 36rem;
}

/* --- the signature: a live transcript settling into the refined one ------ */

.tx {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 3.25rem);
  max-width: 38rem;
  padding: 1.4rem 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-left: 2px solid var(--lamp);
  background: linear-gradient(100deg, var(--lamp-wash), transparent 58%);
}

.tx-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tx-when {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: oldstyle-nums;
}

/* LIVE → REFINED, crossfading in place */
.tx-state { display: grid; }
.tx-state > * {
  grid-area: 1 / 1;
  justify-self: end;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tx-state .is-live { color: var(--faint); }
.tx-state .is-refined { color: var(--lamp-text); }

.tx-body {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--paper);
  margin: 0;
}

.tx-swap { display: grid; margin-top: 0.35rem; }
.tx-swap > * { grid-area: 1 / 1; }
.tx-live { color: var(--paper-dim); }
.tx-refined { color: var(--paper); }

.tx-note {
  margin: 1.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--marg);
  max-width: 30rem;
}

/* the settle itself */
/* The provisional text leaves before the sharper one arrives — a settle, not a
   dissolve. Overlapping them reads as double vision. */
@media (prefers-reduced-motion: no-preference) {
  .tx-live,
  .tx-state .is-live {
    animation: fade-out 500ms var(--ease) 2600ms both;
  }
  .tx-refined,
  .tx-state .is-refined {
    animation: fade-in 700ms var(--ease) 2950ms both;
  }
  .tx-refined, .tx-state .is-refined { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-live, .tx-state .is-live { visibility: hidden; }
}

@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- calls to action ---------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 2.5rem);
  flex-wrap: wrap;
  margin-top: clamp(2.75rem, 7vw, 3.5rem);
}

/* The aperture — the app's one glowing object, used here as the primary mark. */
.aperture {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--lamp);
  background: radial-gradient(120% 120% at 50% 30%, var(--ink-deep), var(--ink));
  box-shadow:
    0 0 0 6px var(--lamp-wash),
    0 10px 30px var(--shade);
  text-decoration: none;
  transition: transform var(--touch) var(--ease);
}
.aperture::before {
  content: "";
  position: absolute;
  inset: -30px -38px -34px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 55% at 50% 55%, var(--lamp-glow), transparent 70%);
}
.aperture:active { transform: scale(0.97); }

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--lamp);
  transform-origin: center;
}
/* WaveStyle.falloff × 20pt, WaveStyle.opacities */
.wave i:nth-child(1) { height: 7px;  opacity: 0.55; }
.wave i:nth-child(2) { height: 13px; opacity: 0.80; }
.wave i:nth-child(3) { height: 20px; opacity: 1; }
.wave i:nth-child(4) { height: 13px; opacity: 0.80; }
.wave i:nth-child(5) { height: 7px;  opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: breathe var(--breath) var(--ease) infinite alternate; }
  .wave i:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
  .wave i:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
  .wave i:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
  .wave i:nth-child(5) { animation-delay: calc(var(--stagger) * 3); }
}
@keyframes breathe {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.62); }
}

.cta-copy { min-width: 0; }

/* App Store badge — placeholder. Swap in Apple's official artwork. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-raised);
  transition: border-color var(--touch) var(--ease), transform var(--touch) var(--ease);
}
.badge:hover, .badge:focus-visible { border-color: var(--hair-lamp); }
.badge:active { transform: scale(0.985); }
.badge svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--paper-dim); }
.badge b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.badge .badge-sub {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marg);
  margin-top: 0.15rem;
}

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--marg);
  max-width: 30rem;
}

/* --- contents ----------------------------------------------------------- */

.contents { border-top: 1px solid var(--hair); }

.contents ol {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: var(--measure);
  counter-reset: point;
}

.contents li { border-top: 1px solid var(--hair); }
.contents li:first-child { border-top: 0; }

.contents a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  padding: 1.05rem 0;
  text-decoration: none;
  transition: background-color var(--touch) var(--ease);
}
.contents a:hover, .contents a:focus-visible { background: var(--lamp-wash); }

.contents .n {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--lamp-text);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}
.contents .t {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--paper);
}
.contents .d {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
  margin-top: 0.3rem;
}

/* --- screenshot plates -------------------------------------------------- */

.plate { margin-top: clamp(2.25rem, 6vw, 3rem); }

.plate-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: flex-start;
}

.shot { margin: 0; flex: 0 1 auto; width: min(232px, 62vw); }
/* a plate on its own has room to be a plate */
.plate-row > .shot:only-child { width: min(288px, 66vw); }

@media (max-width: 640px) {
  .shot,
  .plate-row > .shot:only-child { width: min(260px, 68vw); }
}

.shot-frame {
  position: relative;
  aspect-ratio: 1290 / 2796;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 18px 44px var(--shade);
}

/* The screenshot paints over the placeholder. If the PNG is not there yet,
   .shot-img renders nothing and the slot names itself underneath. */
.shot-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.shot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem;
  text-align: center;
}
.shot-ph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--hair-strong);
  border-radius: 14px;
}
.shot-ph .n {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--lamp);
  opacity: 0.7;
  font-variant-numeric: oldstyle-nums;
}
.shot-ph .f {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--marg);
  word-break: break-all;
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--marg);
}

/* Slot → file. Paths are bundled alongside at screenshots/. */
[data-slot="01-hero"]      .shot-img { background-image: url('screenshots/01-hero.png'); }
[data-slot="02-model"]     .shot-img { background-image: url('screenshots/02-model.png'); }
[data-slot="03-languages"] .shot-img { background-image: url('screenshots/03-languages.png'); }
[data-slot="04-recording"] .shot-img { background-image: url('screenshots/04-recording.png'); }
[data-slot="05-observer"]  .shot-img { background-image: url('screenshots/05-observer.png'); }
[data-slot="06-weekly"]    .shot-img { background-image: url('screenshots/06-weekly.png'); }
[data-slot="07-export"]    .shot-img { background-image: url('screenshots/07-export.png'); }
[data-slot="08-free"]   .shot-img { background-image: url('screenshots/08-free.png'); }

/* --- languages ---------------------------------------------------------- */

.langs {
  list-style: none;
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0 clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--hair);
}
.langs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair);
}
.langs .l {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1rem;
  color: var(--paper);
}
.langs .c {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- the observer ------------------------------------------------------- */

.notice {
  margin-top: clamp(2rem, 5vw, 2.5rem);
  max-width: 38rem;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-left: 2px solid var(--lamp);
}
.notice .label { margin-bottom: 1rem; }
.notice .said {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
}

/* the echo — the app's signature margin pull-quote */
.echo {
  margin: 1.5rem 0 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 2px solid var(--lamp);
}
.echo blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3125rem;
  line-height: 1.46;
  color: var(--paper);
}
.echo .src {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--lamp-deep);
  font-variant-numeric: oldstyle-nums;
  font-style: normal;
}
.notice .shift {
  margin: 1.35rem 0 0;
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

.never {
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  max-width: var(--measure);
}
.never li {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marg);
}
.never li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  color: var(--faint);
}

/* --- price -------------------------------------------------------------- */

.tiers {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 2.5rem);
  max-width: var(--measure);
}
@media (min-width: 660px) {
  .tiers { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; max-width: 40rem; }
}

.tier { padding: 1.35rem 0 1.4rem; border-top: 1px solid var(--hair); }
.tier-lamp { border-left: 2px solid var(--lamp); padding-left: 1.25rem; }
.tier h3 {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--paper);
}
.tier .amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--lamp);
  font-variant-numeric: oldstyle-nums;
  margin: 0.6rem 0 0;
}
.tier .amount small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marg);
  margin-top: 0.5rem;
}
.tier ul { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.tier li {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--paper-dim);
  padding: 0.4rem 0;
  border-top: 1px solid var(--hair);
}
.tier li:first-child { border-top: 0; }

.tier-note {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--marg);
  max-width: var(--measure);
}

/* --- privacy ------------------------------------------------------------ */

.absent { list-style: none; margin: clamp(1.75rem, 5vw, 2.25rem) 0 0; padding: 0; max-width: var(--measure); }
.absent li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--hair);
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9688rem;
  line-height: 1.55;
  color: var(--paper-dim);
}
.absent li:first-child { border-top: 0; }
.absent svg { width: 1.15rem; height: 1.15rem; color: var(--lamp-text); margin-top: 0.18rem; }

.frameworks {
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 0;
  max-width: var(--measure);
  border-top: 1px solid var(--hair);
}
.frameworks div { padding: 0.85rem 0; border-bottom: 1px solid var(--hair); }
.frameworks dt {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.frameworks dd {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

.fineprint {
  margin: 1.6rem 0 0;
  max-width: var(--measure);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--marg);
}
.fineprint + .fineprint { margin-top: 0.9rem; }

/* --- footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--hair);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) clamp(3rem, 7vw, 4rem);
}
.foot-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
}
.foot p {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--marg);
}
.foot p:last-child { margin-bottom: 0; }
.foot .wink {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--paper-dim);
}
.foot .wink strong { color: var(--paper); font-weight: 500; }
.foot a { color: var(--lamp-text); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.foot .colophon { margin-top: 1.6rem; }
.foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--paper-dim);
}

/* --- document pages (privacy, support) ---------------------------------- */
/* Same material as the landing page, set quieter: a smaller title, numbered
   sections in the gutter, and running prose at the measure. No new colour, no
   new motion — only the existing tokens, arranged for reading. */

.doc {
  padding-top: clamp(2.5rem, 7vw, 3.75rem);
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  border-top: 0;
}
@media (min-width: 880px) { .doc { padding-left: 0; } }

.doc .eyebrow { margin-bottom: clamp(1.25rem, 4vw, 1.9rem); }

.doc h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin: 0;
}

.doc .sub { margin-top: 1.15rem; }

/* the plain-language summary — the app's lamp-edged aside */
.gist {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  max-width: 38rem;
  padding: 1.4rem 1.25rem 1.4rem 1.5rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  border-left: 2px solid var(--lamp);
  background: linear-gradient(100deg, var(--lamp-wash), transparent 58%);
}
.gist .label { margin-bottom: 0.95rem; }
.gist p {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--paper);
  margin: 0 0 0.95rem;
}
.gist p:last-child { margin-bottom: 0; }
.gist a { color: var(--lamp-text); text-decoration: none; }
.gist a:hover, .gist a:focus-visible { text-decoration: underline; }

/* a numbered document section: the same gutter, a smaller heading */
.sec-doc h2 {
  font-size: clamp(1.45rem, 4.4vw, 1.9rem);
  line-height: 1.2;
  max-width: 26ch;
}
.sec-doc { padding-block: clamp(2.5rem, 6vw, 3.25rem); }

.prose a { color: var(--lamp-text); text-decoration: none; }
.prose a:hover, .prose a:focus-visible { text-decoration: underline; }

/* an itemised run inside running prose */
.runs {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
/* Hairline rows with a bold lead-in — the same shape as .tier ul and .absent.
   No bullet: the sentences already open with an em dash, and two dashes on one
   line read as a stutter. */
.runs li {
  padding: 0.6rem 0 0.65rem;
  border-top: 1px solid var(--hair);
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--paper-dim);
}
.runs li:first-child { border-top: 0; }
.runs strong { color: var(--paper); font-weight: 500; }
.runs + .prose,
.absent + .prose,
.frameworks + .prose { margin-top: clamp(1.75rem, 4vw, 2.25rem); }

/* question and answer */
.qa {
  margin: clamp(1.75rem, 5vw, 2.25rem) 0 0;
  max-width: var(--measure);
  border-top: 1px solid var(--hair);
}
.qa > div { padding: 1.15rem 0 1.3rem; border-bottom: 1px solid var(--hair); }
.qa h3 {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--paper);
  max-width: 30ch;
}
.qa p {
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--paper-dim);
  margin: 0.6rem 0 0;
}
.qa em { color: var(--paper); font-style: italic; }
.qa code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.qa a { color: var(--lamp-text); text-decoration: none; }
.qa a:hover, .qa a:focus-visible { text-decoration: underline; }

/* numbered steps, set like the contents list */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hair);
  font-family: var(--serif);
  font-weight: var(--body-weight);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-dim);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--lamp-text);
  font-variant-numeric: oldstyle-nums;
}

/* the mail address, wherever it appears in running text */
.mail { overflow-wrap: anywhere; }

/* --- arrivals ----------------------------------------------------------- */

@keyframes settle-in {
  from { opacity: 0; transform: translateY(var(--rise)); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .d0, .d1, .d2, .d3 {
    animation: settle-in var(--arrival) var(--ease) both;
  }
  .d1 { animation-delay: var(--stagger); }
  .d2 { animation-delay: calc(var(--stagger) * 2); }
  .d3 { animation-delay: calc(var(--stagger) * 3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body::before { display: none; }
  .masthead { position: static; }
}
