/* Cringe Vault · marketing site, "Candlelight"
   A crypt at night, lit by candles. The page is a walk down into the vault:
   pixel art, blackletter titles, lots of air, and colour that carries meaning. */

/* Served from this site (latin subset, SIL Open Font License, see fonts/), so pages make no third-party requests. */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/alegreya.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/fonts/alegreya-italic.woff2") format("woff2"); }
@font-face { font-family: "Jacquard 24"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jacquard-24.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/pixelify-sans.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #1f1c19;
  --bg-deep: #171513;
  --bg-abyss: #100e0c;
  --panel: #27231f;
  --raised: #302b26;
  --line: #3f3a33;
  --line-2: #574f45;
  --ink: #f3ecdd;
  --ink-2: #bdb3a1;
  --ink-3: #978d7e;
  --bone: #efe4cc;
  --on-bone: #1c1916;
  --ghost: #9ff0da;       /* the ghost's take (AI) */
  --ghost-deep: #1f2c28;
  --brass: #e7b54f;       /* keeping, time, revisiting */
  --brass-deep: #2d2619;
  --ember: #ef6a3a;       /* bury, recording */
  --ember-deep: #2c1c16;

  --heat-1: #f6e3a1; --heat-2: #f7d27c; --heat-3: #f8c05f; --heat-4: #f9a94a; --heat-5: #f8913f;
  --heat-6: #f27637; --heat-7: #e95c31; --heat-8: #d9442c; --heat-9: #c1322b; --heat-10: #a3242b;

  --display: "Jacquard 24", "UnifrakturCook", Georgia, serif;
  --pixel: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  --read: "Alegreya", Georgia, "Times New Roman", serif;

  --u: 3px; /* one "pixel" of UI chrome */
  --notch: polygon(0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u), calc(var(--u) * 2) 0,
    calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2),
    100% calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u) * 2) calc(100% - var(--u)), calc(100% - var(--u) * 2) 100%,
    calc(var(--u) * 2) 100%, calc(var(--u) * 2) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - var(--u) * 2), 0 calc(100% - var(--u) * 2));

  /* 9-slice pixel frames with stepped corners (same art as PX.frame in sprites.js) */
  --f-panel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%233f3a33' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%2327231f' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-panel-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%236b6257' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%232b2722' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%235fbfa9' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%231e2926' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-brass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e7b54f' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%232b2418' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-slab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%234a443c' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%231a1815' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-ember: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23ef6a3a' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%232a1c17' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-bone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23efe4cc' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%23efe4cc' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%2357504a' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%23100e0c' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");
  --f-dark-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23b8ad9a' d='M2 0H5V1H6V2H7V5H6V6H5V7H2V6H1V5H0V2H1V1H2Z'/%3E%3Cpath fill='%23100e0c' d='M2 1H5V2H6V5H5V6H2V5H1V2H2Z'/%3E%3C/svg%3E");

  /* crypt wall: pixel bricks */
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' shape-rendering='crispEdges'%3E%3Cg fill='%23000' fill-opacity='.28'%3E%3Crect y='10' width='48' height='2'/%3E%3Crect y='22' width='48' height='2'/%3E%3Crect x='22' width='2' height='10'/%3E%3Crect x='46' width='2' height='10'/%3E%3Crect x='10' y='12' width='2' height='10'/%3E%3Crect x='34' y='12' width='2' height='10'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.025'%3E%3Crect width='22' height='2'/%3E%3Crect x='24' width='22' height='2'/%3E%3Crect x='12' y='12' width='22' height='2'/%3E%3C/g%3E%3C/svg%3E");

  --gutter: 24px;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--ink);
  /* the deeper you scroll, the darker the crypt */
  background: linear-gradient(180deg, #221e1b 0, #1f1c19 22%, #1a1714 55%, #141210 82%, var(--bg-abyss) 100%) var(--bg-deep);
  font: 400 19px/1.55 var(--read);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px dashed var(--ghost); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
px-n { display: inline-block; position: relative; margin: 0 .08em; }
px-n .num { display: inline; vertical-align: baseline; }
[hidden] { display: none !important; }
.px { display: block; image-rendering: pixelated; flex: none; }
.pxi { display: inline-block; vertical-align: middle; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--bone); color: var(--on-bone); font: 600 15px var(--pixel); clip-path: var(--notch); }
.skip:focus { top: 12px; }

/* glows and tilted cards may spill sideways; never let them widen the page */
main > section, .foot { overflow-x: clip; }
.wrap { width: min(100% - var(--gutter) * 2, 1160px); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 760px); }
.center { text-align: center; }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 18px; } }

/* ───────── type ───────── */
.label {
  display: flex; align-items: center; gap: 8px;
  font: 500 13px/1.2 var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.label--center { justify-content: center; }
.label--ghost { color: var(--ghost); }
.label--brass { color: var(--brass); }
.h-display { font: 400 clamp(46px, 7.2vw, 86px)/.95 var(--display); letter-spacing: .005em; text-wrap: balance; }
.label + .h-display { margin-top: 14px; }
.h-chapter { font: 400 clamp(40px, 5.2vw, 62px)/.98 var(--display); text-wrap: balance; }
.h-chapter--sm { font-size: clamp(36px, 4vw, 48px); }
.label + .h-chapter { margin-top: 16px; }
.lede { max-width: 34ch; margin: 16px auto 0; font: italic 400 clamp(19px, 2vw, 23px)/1.45 var(--read); color: var(--ink-2); text-wrap: balance; }
.body { max-width: 32em; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 20px); }
.h-chapter + .body, .h-display + .body { margin-top: 20px; }
.body + .body { margin-top: 12px; }
.aside { margin-top: 20px; font: 500 15px/1.4 var(--pixel); letter-spacing: .03em; color: var(--ink-3); }
.small { font-size: 16px; color: var(--ink-3); }
.fine { margin-top: 16px; font: 500 14px var(--pixel); letter-spacing: .05em; color: var(--ink-3); }
.footnote { margin-top: 12px; text-align: center; font: 500 13px var(--pixel); color: var(--ink-3); letter-spacing: .03em; }
.footnote--wide { margin-top: 20px; }
.hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font: 500 13px var(--pixel); color: var(--ink-3); letter-spacing: .04em; }
.link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; margin-top: 18px;
  font: 500 16px var(--pixel); color: var(--ink-2);
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link:hover { color: var(--ink); }

/* ───────── buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px;
  font: 600 18px/1.1 var(--pixel); letter-spacing: .02em;
  background: var(--bone); color: var(--on-bone);
  clip-path: var(--notch);
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / .22);
  transition: transform .06s steps(2);
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .22); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--on-bone), inset 0 0 0 6px var(--bone); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .22); }
.btn--ghost { background: var(--ghost); color: #0f2621; }
.btn--brass { background: var(--brass); color: #231a07; }
.btn--ember { background: var(--ember); color: #1f0d06; }
.btn--brass:focus-visible { box-shadow: inset 0 0 0 3px #231a07, inset 0 0 0 6px var(--brass); }
.btn--ember:focus-visible { box-shadow: inset 0 0 0 3px #1f0d06, inset 0 0 0 6px var(--ember); }
.btn--stone { background: none; color: var(--ink); clip-path: none; box-shadow: none; border: 6px solid transparent; border-image: var(--f-panel-on) 3 fill / 6px stretch; }
.btn--stone:focus-visible { box-shadow: none; outline: 2px dashed var(--ghost); outline-offset: 3px; }

/* store buttons: stand-ins for the official badges */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px; min-height: 64px; padding: 6px 20px 6px 12px;
  color: var(--ink); border: 6px solid transparent; border-image: var(--f-dark) 3 fill / 6px stretch;
  transition: transform .06s steps(2);
}
.store:hover { border-image-source: var(--f-dark-on); }
.store:active { transform: translateY(2px); }
.store .pxi { color: var(--bone); }
.store__txt { display: grid; text-align: left; line-height: 1.1; }
.store small { font: 500 12px var(--pixel); letter-spacing: .05em; color: var(--ink-2); }
.store b { font: 600 21px var(--pixel); letter-spacing: .01em; }

/* ───────── pixel frames ───────── */
.frame { border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch; }
.frame--ghost { border-image-source: var(--f-ghost); }
.frame--brass { border-image-source: var(--f-brass); }
.frame--slab { border-image-source: var(--f-slab); }
.frame--ember { border-image-source: var(--f-ember); }
.web { position: absolute; width: 24px; height: 24px; opacity: .55; color: var(--c, var(--ink-3)); pointer-events: none; }
.web.tl { top: 2px; left: 2px; }
.web.tr { top: 2px; right: 2px; transform: scaleX(-1); }
.web .px { width: 100%; height: 100%; }
.gem { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.gem i { width: 6px; height: 6px; background: var(--line-2); }
.gem i:nth-child(2) { background: var(--c, var(--ghost)); transform: rotate(45deg); }
.tag { font: 600 11px var(--pixel); letter-spacing: .08em; padding: 1px 6px; background: var(--ghost); color: #0f2621; clip-path: var(--notch); --u: 1px; }
.tag--brass { background: var(--brass); color: #231a07; }
.tag--stone { background: var(--line-2); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  font: 500 15px var(--pixel); color: var(--ink-2);
  border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-image-source: var(--f-bone); color: var(--on-bone); }

/* glows: candlelight on stone */
.glow { position: absolute; inset: -20px -10px auto; height: 260px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 160 70 / var(--glow, .16)), transparent); }
.glow--ghost { background: radial-gradient(closest-side, rgb(159 240 218 / .12), transparent); }

/* ───────── wall + arches ───────── */
.wall { position: relative; isolation: isolate; }
.wall::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 78%; z-index: -1; pointer-events: none; opacity: .75;
  background-image: var(--bricks); background-size: 96px 48px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
}
.wall--bottom::before { inset: auto 0 0; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); }

/* A stepped stone arch. site.js sets --arch, --arch-1 and --arch-2 from its size. */
.arch { position: relative; isolation: isolate; background: #2a2622; clip-path: var(--arch, var(--notch)); }
.arch::before, .arch::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.arch::before { background: #4a443c; clip-path: var(--arch-1, inset(6px)); }
.arch::after {
  background: radial-gradient(90% 70% at 50% 72%, #2b2119 0, #17130f 62%, #110f0c 100%);
  clip-path: var(--arch-2, inset(9px));
}
.arch > * { position: relative; z-index: 1; }
.arch > .glow, .arch > .embers, .arch > .web, .arch > .arch__ledge { position: absolute; }
.arch > .web { z-index: 2; }
.arch__ledge { left: 0; right: 0; bottom: 0; height: 18px; z-index: 1; background: #3a352f; box-shadow: inset 0 3px 0 #4f483f, inset 0 -3px 0 #26221e; }

/* ───────── nav ───────── */
.nav { position: sticky; top: 0; z-index: 30; background: rgb(28 25 22 / .94); transition: box-shadow .2s steps(2); }
.nav.is-scrolled { box-shadow: 0 2px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; }
.brand__mark .ghost { width: 32px; height: auto; }
.brand__name { font: 400 32px/.9 var(--display); letter-spacing: .01em; white-space: nowrap; }
.nav__cta { white-space: nowrap; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font: 500 15px var(--pixel); color: var(--ink-2); letter-spacing: .02em; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 380px) { .nav__in { gap: 12px; } .brand__name { font-size: 26px; } .brand__mark .ghost { width: 26px; } .nav__cta { padding-inline: 10px; font-size: 14px; } }

/* ───────── hero ───────── */
.hero { position: relative; padding: 56px 0 72px; }
.hero::after { /* warm pool of light behind the arch */
  content: ""; position: absolute; left: 50%; top: 38%; width: min(1100px, 200vw); height: 60%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 150 60 / .085), transparent);
}
.hero__copy { text-align: center; }
.hero__title { font: 400 clamp(40px, calc(17.5vw - 6px), 132px)/.9 var(--display); letter-spacing: .005em; text-wrap: balance; }
.hero__title span { display: inline-block; }
.hero__sub { max-width: 32ch; margin: 24px auto 0; font: italic 400 clamp(19px, 2.2vw, 24px)/1.45 var(--read); color: var(--ink-2); text-wrap: balance; }
.hero__stage { display: grid; justify-items: center; margin-top: 64px; padding-inline: var(--gutter); }
.arch--hero {
  display: flex; align-items: flex-end; justify-content: center; gap: 0;
  width: min(600px, 100%); padding: 104px 0 18px;
}
.glow--hero { inset: 24% -10% auto; height: 70%; --glow: .22; }
.hero__candles { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 2px; flex: 1; }
.hero__candles--l { justify-content: flex-end; padding-right: 14px; }
.hero__candles--r { justify-content: flex-start; padding-left: 14px; }
.hero__candles .candle { width: 42px; height: auto; }
.embers { inset: 0; pointer-events: none; }
.embers i { position: absolute; bottom: 90px; width: 3px; height: 3px; background: #ffc36a; opacity: 0; animation: ember 6s steps(24) infinite; }
.embers i:nth-child(1) { left: 12%; animation-delay: .2s; --dx: 12px; }
.embers i:nth-child(2) { left: 20%; animation-delay: 2.4s; --dx: -8px; }
.embers i:nth-child(3) { left: 16%; animation-delay: 4.1s; --dx: 18px; bottom: 160px; }
.embers i:nth-child(4) { left: 82%; animation-delay: 1.1s; --dx: -14px; }
.embers i:nth-child(5) { left: 88%; animation-delay: 3.3s; --dx: 8px; bottom: 150px; }
.embers i:nth-child(6) { left: 78%; animation-delay: 5.2s; --dx: -20px; }
.embers i:nth-child(7) { left: 50%; animation-delay: 1.8s; --dx: 16px; bottom: 700px; }
.embers i:nth-child(8) { left: 44%; animation-delay: 4.6s; --dx: -12px; bottom: 680px; }
@keyframes ember { 0% { opacity: 0; transform: none; } 12% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 10px), -240px); } }

/* the phone and its loop */
.phone {
  position: relative; flex: none; width: clamp(214px, 52vw, 296px); padding: 9px; margin-bottom: 18px;
  background: #0d0b0a; clip-path: var(--notch); --u: 5px;
  box-shadow: inset 0 0 0 3px #4a443c, inset 0 0 0 5px #0d0b0a;
}
.phone__screen { position: relative; aspect-ratio: 1 / 2; overflow: hidden; background: var(--bg); clip-path: var(--notch); --u: 3px; }
.reel-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; max-width: 100%; }
.reel-steps { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 2px; }
.reel-steps button {
  position: relative; display: grid; gap: 7px; min-height: 44px; padding: 8px 8px 6px;
  font: 500 13px var(--pixel); letter-spacing: .04em; color: var(--ink-3);
}
.reel-steps button:hover { color: var(--ink-2); }
.reel-steps button[aria-current="step"] { color: var(--ink); }
.reel-steps .bar { display: block; height: 4px; background: var(--line); overflow: hidden; }
.reel-steps .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--bone); }
.reel-steps .done .bar i { width: 100%; background: var(--line-2); }
.reel-toggle { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-2); border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch; }
.reel-toggle:hover { color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-3); animation: bob 2.4s steps(2) infinite; }
@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero__stage { margin-top: 44px; }
  .arch--hero { padding-top: 76px; }
  .hero__candles { gap: 4px; }
  .hero__candles--l { padding-right: 8px; }
  .hero__candles--r { padding-left: 8px; }
  .hero__candles .candle { width: 26px; }
  .hero__candles--l > :last-child, .hero__candles--r > :first-child { display: none; }
  .reel-steps button { padding-inline: 5px; font-size: 12px; }
  .scroll-cue { display: none; }
}

/* ───────── reruns ───────── */
.reruns { padding: 110px 0 60px; overflow: hidden; }
.reruns__more { margin-top: 40px; }
@media (max-width: 600px) { .reruns { padding-top: 64px; } .how, .ghosts, .trust, .pricing, .faq { padding-block: 80px; } .epilogue { padding-block: 64px; } }
.marquee { display: grid; gap: 14px; margin-top: 52px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; gap: 14px; width: max-content; list-style: none; animation: slide 70s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 84s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.moment { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; white-space: nowrap; }
.moment .candle { width: 24px; height: auto; }
.moment span { font: 600 18px/1.2 var(--read); }
.moment b { display: block; margin-left: 6px; line-height: 0; color: var(--hc, var(--ink-2)); }

/* ───────── chapters ───────── */
.how { padding: 110px 0 40px; }
.how__head { margin-bottom: 24px; }
.chapter { padding: 84px 0; }
.chapter__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.chapter--flip .chapter__text { order: 2; }
.chapter__art { display: grid; justify-items: center; }
.chapter__text--center { max-width: 640px; margin: 0 auto; text-align: center; }
.chapter__text--center .body { margin-inline: auto; }
.lamp .candle { width: 21px; height: auto; margin: -6px 2px 0 0; }
.js .chapter:not(.is-lit) .lamp .flame { visibility: hidden; }
.chapter.is-lit .lamp .candle { filter: drop-shadow(0 0 6px rgb(255 160 70 / .55)); }
@media (max-width: 899px) {
  .chapter { padding: 56px 0; }
  .chapter__in { grid-template-columns: 1fr; }
  .chapter--flip .chapter__text { order: 0; }
}

/* I · tell */
.arch--altar { display: grid; justify-items: center; width: min(460px, 100%); padding: 92px 0 46px; }
.altar { display: grid; justify-items: center; gap: 14px; }
.altar__row { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.altar__row .candle { width: 42px; height: auto; margin-bottom: 4px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; }
.wave i { width: 4px; height: 4px; background: var(--ink-3); transition: height .1s steps(3); }
.wave.is-live i { background: var(--ink); }
.mic-wrap { position: relative; display: grid; place-items: center; width: 124px; height: 124px; }
.mic {
  position: relative; display: grid; place-items: center; width: 124px; height: 124px;
  background: var(--bone); color: var(--on-bone);
}
.mic .pxi { width: 44px; height: 44px; }
.mic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -8px 0 rgb(0 0 0 / .18); }
.mic.is-rec { background: var(--ember); color: #1f0d06; }
.mic.is-busy { background: var(--raised); color: var(--ink-2); }
.mic.is-busy .pxi { animation: spin 1s steps(8) infinite; }
.ring { position: absolute; inset: 0; background: var(--ember); opacity: 0; pointer-events: none; z-index: -1; }
.mic.is-rec ~ .ring { animation: ring 1.6s steps(6) infinite; }
.mic.is-rec ~ .ring.r2 { animation-delay: .8s; }
@keyframes ring { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.cap { min-height: 26px; font: 500 17px var(--pixel); color: var(--ink-2); }
.cap b { margin-left: 6px; font-weight: 600; color: var(--ember); }
.transcript { position: relative; z-index: 2; width: min(420px, calc(100% - 24px)); margin-top: -22px; padding: 12px 14px 14px; }
.heard { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 14px var(--pixel); color: var(--ghost); }
.transcript__txt { min-height: 4.5em; font: 400 18px/1.5 var(--read); color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--ghost); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* II · gut check */
.pyre-stage { position: relative; display: grid; justify-items: center; width: min(440px, 100%); padding-top: 12px; }
.pyre-stage > .glow { inset: -40px -30px auto; height: 360px; }
.pyre { position: relative; display: grid; justify-items: center; min-height: 240px; align-items: end; }
.pyre .candle { width: 112px; height: auto; }
.reading { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-top: 18px; }
.reading b { display: block; line-height: 0; color: var(--hc, var(--ink)); }
.reading span { display: block; line-height: 0; color: var(--ink-3); }
.reading-word { min-height: 34px; margin-top: 6px; text-align: center; font: italic 400 23px/1.4 var(--read); }
.meter { position: relative; width: 100%; margin-top: 22px; }
.meter__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 30px; }
.meter--big .meter__bar { height: 38px; gap: 5px; }
.meter__bar i { background: var(--raised); clip-path: var(--notch); --u: 2px; transition: background .12s steps(2); }
.meter input { position: absolute; inset: -10px 0; width: 100%; height: calc(100% + 20px); margin: 0; opacity: 0; cursor: pointer; }
.meter:focus-within { outline: 2px dashed var(--ghost); outline-offset: 6px; }
.meter__ends { display: flex; justify-content: space-between; width: 100%; margin-top: 10px; font: 500 13px var(--pixel); color: var(--ink-3); letter-spacing: .04em; }

/* III · the ghost's take */
.take-stage { position: relative; display: grid; justify-items: center; width: min(460px, 100%); }
.take-stage__ghost { position: absolute; right: 15%; top: 4px; z-index: 2; animation: float 2.6s steps(4) infinite; }
.take-stage__ghost .ghost { width: 56px; height: auto; }
.ledge { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 64px; margin-top: 26px; }
.ledge::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -10px; height: 10px; background: #3a352f; box-shadow: inset 0 2px 0 #4f483f, inset 0 -3px 0 #26221e; }
.ledge .candle { position: relative; width: 70px; height: auto; }
.ledge > .glow { inset: -40px -40px auto; height: 260px; }
.ledge--sm { gap: 60px; margin-top: 10px; }
.ledge--sm .candle { width: 56px; }
.readings { display: flex; justify-content: center; gap: 64px; margin-top: 24px; }
.readings > div { width: 110px; text-align: center; }
.readings b { display: flex; justify-content: center; line-height: 0; }
.readings small { display: block; margin-top: 8px; font: 500 13px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.readings .you b { color: var(--hc); }
.readings .gh b, .readings .gh small { color: var(--ghost); }
/* as in the app, "You felt" takes the flame's colour, capped at heat 7 so it stays readable */
.readings:not(.readings--sm) .you small { color: var(--lc, var(--hc)); }
.readings--sm { gap: 40px; }
.tale { position: relative; width: 100%; margin-top: 30px; padding: 22px 20px 20px; --c: var(--ghost); }
.tale__head { margin-top: 12px; text-align: center; font: italic 500 26px/1.2 var(--read); color: var(--ink); text-wrap: balance; }
.tale__body { margin-top: 12px; text-align: center; font-size: 18px; color: var(--ink-2); }
.tale__step { margin-top: 4px; text-align: center; font-size: 17px; }
.tale__step b { display: block; margin-bottom: 4px; font: 500 12px var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--ghost); }
.take-stage .readings .gh, .take-stage .tale, .take-stage .footnote { transition: opacity .5s steps(5), transform .5s steps(5); }
.take-stage .tale { transition-delay: .25s; }
.take-stage .footnote { transition-delay: .5s; }
.js .take-stage.is-waiting .ledge__ghost-candle .flame { visibility: hidden; }
.js .take-stage.is-waiting .readings .gh, .js .take-stage.is-waiting .tale, .js .take-stage.is-waiting .footnote { opacity: 0; transform: translateY(10px); }
.tale--left .tale__head, .tale--left .tale__body, .tale--left .tale__step { text-align: left; }
.tale--left .gem { justify-content: flex-start; }
.tale__foot { margin-top: 14px; font: 500 13px var(--pixel); color: var(--ink-3); letter-spacing: .03em; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes bob { 50% { transform: translate(var(--bx, -50%), -4px); } }

/* IV · bury or keep */
.endings { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 52px auto 0; }
.ending { display: grid; justify-items: center; align-content: start; text-align: center; padding: 0 0 28px; border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch; overflow: hidden; }
.ending--keep { border-image-source: var(--f-brass); }
.ending__t { margin-top: 22px; font: 600 24px var(--pixel); letter-spacing: .01em; }
.ending--keep .ending__t { color: var(--brass); }
.ending__d { max-width: 28ch; margin-top: 8px; padding: 0 16px; font-size: 18px; color: var(--ink-2); }
.ending__done { min-height: 1.5em; margin-top: 6px; font: 500 15px var(--pixel); color: var(--ink); letter-spacing: .02em; }
.ending .btn { min-width: 176px; margin-top: 10px; }

.grave-stage, .keep-stage { position: relative; width: 100%; height: 300px; overflow: hidden; background: linear-gradient(#13110f, #1b1714); }
.grave-stage__stone { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
.grave-stage__tomb { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 110%); }
.grave-stage__tomb .tomb { width: 96px; height: auto; }
.grave-stage__soul { position: absolute; left: 50%; bottom: 60px; opacity: 0; transform: translateX(-50%); }
.grave-stage__soul .ghost { width: 36px; height: auto; }
.soil { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(#6aa152 0 4px, #4f7d3c 4px 8px, #5b4331 8px); }
.clods i { position: absolute; bottom: 14px; left: var(--x, 50%); width: 6px; height: 6px; background: #5b4331; opacity: 0; }
.stone {
  position: relative; width: 176px; min-height: 196px; padding: 50px 16px 26px; text-align: center;
  background: #6f6a62; color: #2a2622;
  box-shadow: inset 6px 0 0 #8e877c, inset -8px 0 0 #58534c, inset 0 -8px 0 #58534c;
  clip-path: polygon(0 100%, 0 26%, 5% 26%, 5% 16%, 11% 16%, 11% 9%, 19% 9%, 19% 4%, 31% 4%, 31% 0, 69% 0, 69% 4%, 81% 4%, 81% 9%, 89% 9%, 89% 16%, 95% 16%, 95% 26%, 100% 26%, 100% 100%);
}
.stone small { display: block; font: 600 11px var(--pixel); letter-spacing: .2em; text-transform: uppercase; color: #3b3733; }
.stone__name { display: block; margin-top: 8px; font: 400 26px/1 var(--display); color: #25211d; text-shadow: 0 1px 0 #8e877c; text-wrap: balance; }
.stone__when { display: block; margin-top: 10px; font: 500 12px var(--pixel); color: #3b3733; }

/* As in the app: the stone gives way, then a tombstone rises out of the soil, clods fly and a small ghost floats off. */
.is-buried .grave-stage__stone { animation: gone .3s steps(3) forwards; }
.is-buried .grave-stage__tomb { animation: rise .8s steps(8) forwards .8s; }
.is-buried .grave-stage__soul { animation: soul 1.2s steps(10) forwards .5s; }
.is-buried .clods i { animation: clod .6s steps(6) forwards; animation-delay: var(--d, .8s); }
@keyframes gone { to { opacity: 0; } }
@keyframes rise { to { transform: translate(-50%, 0); } }
@keyframes soul { 0% { opacity: 0; transform: translate(-50%, 0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150px); } }
@keyframes clod { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), -70px); } }

.keep-stage { display: grid; justify-items: center; align-content: end; gap: 16px; padding-bottom: 16px; isolation: isolate; }
.keep-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--bricks); background-size: 48px 24px; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.arch--niche { display: grid; place-items: end center; width: 150px; height: 196px; padding-bottom: 18px; }
.arch--niche > .glow { inset: 0; height: auto; background: radial-gradient(circle at 50% 62%, rgb(255 160 70 / .32), transparent 65%); opacity: 0; }
.arch > .gate { position: absolute; inset: 0 0 18px; clip-path: var(--arch-2, inset(10px)); }
.is-kept .arch--niche > .glow { opacity: 1; transition: opacity .4s steps(3) .7s; }
.niche {
  position: relative; display: grid; place-items: end center; width: 150px; height: 190px; padding-bottom: 16px; overflow: hidden;
  background: #14120f;
  clip-path: polygon(0 100%, 0 30%, 6% 30%, 6% 20%, 12% 20%, 12% 13%, 20% 13%, 20% 7%, 32% 7%, 32% 3%, 44% 3%, 44% 0, 56% 0, 56% 3%, 68% 3%, 68% 7%, 80% 7%, 80% 13%, 88% 13%, 88% 20%, 94% 20%, 94% 30%, 100% 30%, 100% 100%);
  box-shadow: inset 0 0 0 6px #3a352f, inset 0 0 0 9px #26221e;
}
.niche::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: #3a352f; box-shadow: inset 0 3px 0 #4f483f; }
.niche > .glow { inset: 0; height: auto; background: radial-gradient(circle at 50% 60%, rgb(255 160 70 / .24), transparent 65%); opacity: 0; }
.niche__candle { position: relative; z-index: 1; transform: translateY(-230px); }
.niche__candle .candle { width: 56px; height: auto; }
.niche__letter { position: absolute; right: 18px; bottom: 18px; z-index: 1; opacity: 0; }
.niche__letter .letter { width: 32px; height: auto; }
.is-kept .niche__letter { opacity: 1; transition: opacity .3s steps(3) .8s; }
.gate { position: absolute; inset: 0 6px 16px; z-index: 2; transform: translateY(-100%);
  background: repeating-linear-gradient(90deg, transparent 0 14px, #4a453f 14px 20px), linear-gradient(transparent calc(100% - 8px), #4a453f 0); }
.is-kept .niche__candle { animation: drop .7s steps(7) forwards .1s; }
.is-kept .niche > .glow { opacity: 1; transition: opacity .4s steps(3) .7s; }
.is-kept .gate { animation: gate .6s steps(6) forwards .95s; }
@keyframes drop { from { transform: translateY(-230px); } to { transform: none; } }
@keyframes gate { from { transform: translateY(-100%); } to { transform: none; } }
.moons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.moons--mini { gap: 4px; width: min(100%, 330px); padding: 0 10px; }
.moons--mini > span { display: grid; justify-items: center; gap: 6px; padding: 8px 2px 6px; font: 500 12px var(--pixel); color: var(--ink-3); border: 4px solid transparent; border-image: var(--f-panel) 3 fill / 4px stretch; }
.moons--mini > span.is-on { border-image-source: var(--f-brass); color: var(--brass); }
.moons--mini .pxi { color: inherit; }
.moons--mini em { font-style: normal; }

.note-row { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 640px; margin: 36px auto 0; }
.note-row > p { font-size: 18px; color: var(--ink-2); }
.note-row .note-card { flex: none; }
.note-card--sealed small, .note-card--sealed p { white-space: nowrap; }
.note-row strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .endings { grid-template-columns: 1fr; max-width: 440px; }
  .note-row { flex-direction: column; text-align: center; }
}

/* V · look again */
.vault-stage { display: grid; justify-items: center; width: min(440px, 100%); }
.shelf { position: relative; width: 100%; padding: 0 18px; }
.shelf > .glow { inset: -30px 0 auto; height: 200px; --glow: .1; }
.shelf__row { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2vw, 14px); min-height: 110px; }
.shelf__row .candle { width: 36px; height: auto; }
.shelf__row .is-ready { position: relative; }
.shelf__row .is-ready::before { content: ""; position: absolute; left: 50%; bottom: 10px; width: 70px; height: 70px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgb(231 181 79 / .4), transparent); }
.shelf::after { content: ""; display: block; height: 12px; margin: 0 -18px; background: #3a352f; box-shadow: inset 0 3px 0 #4f483f, inset 0 -3px 0 #26221e; }
.revisit { display: grid; width: 100%; margin-top: 28px; padding: 22px 18px 20px; text-align: center; }
.revisit__sealed, .revisit__open { grid-area: 1 / 1; transition: opacity .4s steps(4), visibility 0s .4s; }
.revisit__open { opacity: 0; visibility: hidden; }
.revisit.is-open .revisit__sealed { opacity: 0; visibility: hidden; }
.revisit.is-open .revisit__open { opacity: 1; visibility: visible; transition: opacity .4s steps(4); }
.revisit__q { margin-top: 12px; font: 600 24px/1.2 var(--read); }
.pyre--sm { min-height: 150px; margin-top: 8px; }
.pyre--sm .candle { width: 60px; }
.verdict { margin-top: 16px; font: italic 500 22px/1.3 var(--read); }
/* The note to future you, as the app's card shows it: sealed, then opened */
.note-card { display: flex; align-items: center; gap: 16px; padding: 12px 14px; text-align: left; }
.note-card__art { flex: none; padding: 4px; background: #14120f; }
.note-card__art .letter { width: 56px; height: auto; }
.note-card p { font: italic 400 17px/1.45 var(--read); color: var(--ink); }
.note-card small { display: block; margin-bottom: 4px; font: 500 12px var(--pixel); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.note-card--sealed p { font: 500 13px/1.5 var(--pixel); font-style: normal; letter-spacing: .03em; color: var(--ink-2); }
.revisit .note-card { margin-top: 18px; }

/* ───────── epilogue: share card ───────── */
.epilogue { padding: 100px 0; }
.epilogue__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.h-display--left { text-align: left; }
.cards { position: relative; display: grid; place-items: center; min-height: 500px; }
/* The share card, laid out like the app's 4:5 image: bricks, the ghost sitting on the frame, the story's name, both
   readings, the story, the take's headline, and the address. */
.share-card {
  position: relative; z-index: 1; overflow: hidden; width: min(360px, calc(100% - 24px)); aspect-ratio: 4 / 5; padding: 36px 14px 14px;
  background: var(--bg-deep) var(--bricks); background-size: 48px 24px; transform: rotate(-3deg);
  box-shadow: 0 30px 60px rgb(0 0 0 / .45);
}
.share-card__ghost { position: absolute; z-index: 2; top: 6px; left: 50%; transform: translateX(-50%); }
.share-card__ghost .ghost { width: 48px; height: auto; }
.share-card__frame {
  display: grid; align-content: space-between; justify-items: center; height: 100%; padding: 30px 18px 12px; text-align: center;
  background: var(--bg); border: 6px solid transparent; border-image: var(--f-panel-on) 3 fill / 6px stretch;
}
.share-card__name { font: 400 24px/1.05 var(--display); color: var(--ink); text-wrap: balance; }
.share-card__ratings { display: flex; justify-content: center; gap: 26px; width: 100%; padding-bottom: 4px; box-shadow: inset 0 -3px 0 #3a352f; }
.share-card__rating { display: flex; align-items: flex-end; gap: 6px; text-align: left; --lc: var(--ghost); }
.share-card__rating .candle { width: 25px; height: auto; }
.share-card__num { display: flex; align-items: flex-end; gap: 2px; line-height: 0; color: var(--hc); }
.share-card__num span { color: var(--ink-3); }
.share-card__rating--ghost .share-card__num { color: var(--ghost); }
.share-card__rating small { display: block; margin-top: 5px; font: 600 9px var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--lc); }
.share-card__rating i { display: block; font: italic 400 13px/1.2 var(--read); color: var(--lc); }
.share-card__story { width: 100%; padding-left: 8px; box-shadow: inset 2px 0 0 var(--line-2); text-align: left; font: italic 400 15px/1.35 var(--read); color: var(--ink); }
.share-card__take { position: relative; width: 100%; padding: 8px 10px; border: 4px solid transparent; border-image: var(--f-ghost) 3 fill / 4px stretch; --c: var(--ghost); }
.share-card__take .web { width: 14px; height: 14px; }
.share-card__label { display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 9px var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--ghost); }
.share-card__label .tag { font-size: 10px; padding: 0 5px; }
.share-card__head { margin-top: 3px; font: italic 500 16px/1.25 var(--read); color: var(--ink); }
.share-card__foot { display: flex; align-items: baseline; justify-content: space-between; width: 100%; font: 500 11px var(--pixel); letter-spacing: .04em; color: var(--brass); }
.share-card__brand { font: 400 19px/1 var(--display); letter-spacing: 0; color: var(--ink); }
@media (max-width: 899px) {
  .epilogue__in { grid-template-columns: 1fr; }
  .cards { min-height: 470px; }
}

/* ───────── ghosts ───────── */
.ghosts { padding: 110px 0; }
.personas { margin-top: 48px; }
.persona-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 800px; margin: 0 auto; }
.persona-btn {
  display: grid; justify-items: center; align-content: end; gap: 10px; min-height: 150px; padding: 18px 6px 14px;
  border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch;
  transition: transform .08s steps(2);
}
.persona-btn:hover { border-image-source: var(--f-panel-on); }
.persona-btn:active { transform: translateY(2px); }
.persona-btn[aria-checked="true"] { border-image-source: var(--f-ghost); }
.persona-btn .ghost { width: 52px; height: auto; }
.persona-btn[aria-checked="true"] .ghost { animation: float 2.4s steps(4) infinite; }
.persona-btn b { font: 600 16px/1.2 var(--pixel); }
.persona-btn .tag { justify-self: center; }
.persona-stage { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 860px; margin: 40px auto 0; }
.persona-stage__ghost { position: relative; display: grid; place-items: center; min-height: 260px; }
.persona-stage__ghost > .glow { inset: 0; height: auto; }
.persona-stage__ghost [data-persona-art] { position: relative; animation: float 2.6s steps(4) infinite; }
.persona-stage__ghost .ghost { width: 144px; height: auto; }
.persona-stage__about { font: italic 400 20px/1.4 var(--read); color: var(--ink-2); }
.persona-stage .tale { margin-top: 18px; }
.swap { animation: arrive .35s steps(4) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

.say-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 980px; margin: 96px auto 0; padding: 36px 36px 34px; }
.say-now__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.say-now__chips .chip { padding: 4px 11px; font-size: 14px; }
.say-now__story { margin-top: 18px; font: italic 400 17px/1.45 var(--read); color: var(--ink-3); }
.say-now__story b { font: 500 12px var(--pixel); font-style: normal; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.bubble { position: relative; margin-top: 12px; padding: 16px 18px 18px; background: var(--bone); color: var(--on-bone); clip-path: var(--notch); font: 400 19px/1.45 var(--read); }
.bubble small { display: block; margin-bottom: 4px; font: 600 11px var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: #6b6154; }
.bubble--advice { background: var(--ghost-deep); color: var(--ink); box-shadow: inset 0 0 0 3px #5fbfa9; }
.bubble--advice small { color: var(--ghost); }
@media (max-width: 820px) {
  .persona-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona-stage { grid-template-columns: 1fr; gap: 8px; }
  .persona-stage__ghost { min-height: 150px; }
  .persona-stage__ghost .ghost { width: 88px; }
  .persona-stage__about { text-align: center; }
  .say-now { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; margin-top: 72px; }
}

/* ───────── trust ───────── */
.trust { padding: 110px 0; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 52px; list-style: none; }
.flow-grid li { display: grid; align-content: start; gap: 8px; padding: 22px 18px 20px; border: 6px solid transparent; border-image: var(--f-panel) 3 fill / 6px stretch; }
.flow-grid__ic { color: var(--ghost); margin-bottom: 6px; }
.flow-grid b { font: 600 17px var(--pixel); letter-spacing: .02em; }
.flow-grid li > span:last-child { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.consent { max-width: 40ch; margin: 26px auto 0; text-align: center; font: italic 400 19px/1.45 var(--read); color: var(--ink-2); text-wrap: balance; }
.pledges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pledge { padding: 20px 20px 18px; }
.pledge ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; list-style: none; font: 500 16px/1.4 var(--pixel); color: var(--ink); }
.pledge li { display: flex; align-items: center; gap: 10px; }
.pledge li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--ghost); }
.pledge__none li::before { content: none; }
.pledge__x { display: grid; color: var(--ember); }
@media (max-width: 960px) { .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flow-grid, .pledges { grid-template-columns: 1fr; } }

/* ───────── pricing ───────── */
.pricing { padding: 110px 0; }
.billing { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
/* One free allowance: the number on the left, what never counts on the right. */
.allowance { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; gap: 24px 44px; max-width: 760px; margin: 40px auto 22px; padding: 28px 32px 26px; }
.allowance__count { display: grid; justify-items: center; gap: 12px; text-align: center; }
.allowance__num { line-height: 0; color: var(--brass); }
.allowance__unit { font: 600 18px var(--pixel); color: var(--ink); }
.allowance__free .plan__list { margin-top: 12px; }
.allowance__foot { grid-column: 1 / -1; padding-top: 16px; box-shadow: inset 0 2px 0 #4a3f28; font: italic 500 18px/1.4 var(--read); color: var(--ink); }
@media (max-width: 640px) { .allowance { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 22px; } }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 840px; margin: 22px auto 26px; }
.plan { display: grid; align-content: start; padding: 26px 24px 24px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.plan__price b { font: 700 50px/1 var(--pixel); letter-spacing: -.01em; }
.plan__price span { font: 500 16px var(--pixel); color: var(--ink-2); }
.plan__save { margin-top: 6px; font: 500 14px var(--pixel); color: var(--brass); }
.plan__h { margin-top: 14px; font: 600 24px/1.2 var(--read); }
.plan__list { display: grid; gap: 10px; margin-top: 16px; list-style: none; }
.plan__list li { position: relative; padding-left: 22px; font-size: 18px; color: var(--ink-2); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--ink-3); }
.plan--plus .plan__list li::before { background: var(--brass); }
.plan__foot { margin-top: 20px; padding-top: 14px; box-shadow: inset 0 2px 0 #4a3f28; font: italic 500 18px var(--read); color: var(--ink); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ───────── faq ───────── */
.faq { padding: 110px 0; }
.folds { display: grid; gap: 10px; margin-top: 44px; }
.fold summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; list-style: none; cursor: pointer; font: 500 18px var(--pixel); letter-spacing: .01em; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--ink-3); }
.fold[open] summary::after { content: "–"; }
.fold[open] { border-image-source: var(--f-panel-on); }
.fold p { padding: 0 16px 18px; max-width: 60ch; color: var(--ink-2); }
.fold p + p { margin-top: -6px; }
.fold p .link { display: inline; min-height: 0; margin: 0; padding: 0; font: inherit; color: var(--ink); text-underline-offset: 5px; }

/* ───────── download ───────── */
.download { padding: 120px 0 130px; }
/* Joining the Android test: three steps in a row, stacked on phones. */
.join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: 36px auto 0; padding: 0; list-style: none; text-align: left; }
.join__step { display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px; padding: 18px 18px 20px; }
.join__n { color: var(--brass); }
.join__step b { font: 600 18px/1.25 var(--pixel); color: var(--ink); }
.join__step > span:not([class]) { font: 400 17px/1.4 var(--read); color: var(--ink-2); }
/* The buttons sit at the foot of their steps, so they line up when a title wraps. */
.join__step .join__go { justify-self: start; align-self: end; margin-top: 8px; }
@media (max-width: 720px) { .join { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }
.download__altar { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 44px; margin-bottom: 36px; }
.download__altar > .glow { inset: -40px 10% auto; height: 300px; --glow: .2; }
.download__altar .candle { position: relative; width: 42px; height: auto; }
.download__ghost { position: relative; margin-bottom: 24px; animation: float 2.4s steps(4) infinite; }
.download__ghost .ghost { width: 96px; height: auto; }

/* ───────── footer ───────── */
.foot { padding: 40px 0 48px; background: var(--bg-abyss); box-shadow: inset 0 2px 0 var(--line); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot__brand p { margin-top: 10px; font: italic 400 17px var(--read); color: var(--ink-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; font: 500 15px var(--pixel); color: var(--ink-2); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a:hover { color: var(--ink); }
.foot__legal { grid-column: 1 / -1; font: 500 13px var(--pixel); color: var(--ink-3); letter-spacing: .04em; }
@media (max-width: 640px) { .foot__in { grid-template-columns: 1fr; } }

/* ───────── toast ───────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 40px); padding: 12px 18px;
  font: 500 15px var(--pixel); color: var(--on-bone); background: var(--bone); clip-path: var(--notch);
  transition: opacity .2s steps(3), transform .2s steps(3);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── reveal on scroll ───────── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s steps(6), transform .6s steps(6); }
/* With reduced motion, sections are simply there. */
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ───────── the app, inside the phone: a recording of the real app (scripts/hero.sh) ───────── */
.phone__screen video { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }

/* ───────── flames: two frames, stepped ───────── */
.candle .f1 { animation: fa .9s steps(1) infinite; animation-delay: var(--fd, 0s); }
.candle .f2 { animation: fb .9s steps(1) infinite; animation-delay: var(--fd, 0s); }
@keyframes fa { 0% { opacity: 1; } 55% { opacity: 0; } }
@keyframes fb { 0% { opacity: 0; } 55% { opacity: 1; } }
.candle .smoke { animation: smoke 1.4s steps(4) infinite; }
@keyframes smoke { 50% { transform: translateY(-1px); opacity: .5; } }

/* ───────── inner pages: privacy, support ───────── */
.page-hero { padding: 56px 0 24px; text-align: center; }
/* The art is drawn by site.js; its height is reserved so the page doesn't shift when it appears. */
.page-hero__art { display: flex; justify-content: center; align-items: flex-end; gap: 22px; height: 72px; margin-bottom: 26px; }
.page-hero__art .candle { width: 34px; height: auto; }
.page-hero__art .ghost { width: 72px; height: auto; animation: float 2.4s steps(4) infinite; }
.page-hero__art .big { width: 60px; height: auto; color: var(--ghost); }
.page-hero__art .big--moon { width: 64px; }
.big--moon .moon { width: 64px; height: auto; }
.page-hero .h-display { font-size: clamp(46px, 7vw, 80px); }
.updated { margin-top: 14px; font: 500 13px var(--pixel); letter-spacing: .06em; color: var(--ink-3); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding: 56px 0 110px; }
.doc__toc { position: sticky; top: 104px; display: grid; gap: 2px; font: 500 14px var(--pixel); color: var(--ink-3); letter-spacing: .02em; }
.doc__toc p { margin-bottom: 8px; }
.doc__toc a { display: flex; align-items: center; min-height: 36px; padding-left: 12px; box-shadow: inset 2px 0 0 var(--line); }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a[aria-current="true"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--bone); }
.prose { max-width: 680px; }
.prose section { padding-top: 12px; }
.prose section + section { margin-top: 44px; }
.prose h2 { display: flex; align-items: center; gap: 12px; font: 600 28px/1.2 var(--read); }
.prose h2 .pxi { color: var(--ink-3); }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 + p, .prose h2 + ul, .prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--line-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.prose .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 28px; }
.callout { display: flex; gap: 14px; padding: 16px 18px; margin-top: 18px; }
.callout .pxi { flex: none; margin-top: 4px; color: var(--ghost); }
.callout--ember .pxi { color: var(--ember); }
.callout p { margin: 0; }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 22px 20px; margin-top: 18px; }
.contact .ghost { width: 56px; height: auto; }
.prose .contact__t { font-size: 24px; }
.prose .callout + p { margin-top: 18px; }
.faq-group h2 { margin-bottom: 16px; }
.contact p { margin-top: 4px; font-size: 17px; }
.contact > div { min-width: 0; }
.contact .btn { max-width: 100%; margin-top: 14px; overflow-wrap: anywhere; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group .label { margin-bottom: 12px; }
.faq-group .folds { margin-top: 0; }
@media (max-width: 899px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .doc__toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__toc p { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .prose .flow-grid { grid-template-columns: 1fr; } .contact { grid-template-columns: 1fr; justify-items: start; } }

/* ───────── reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .candle .f2 { display: none; }
  .marquee__row { animation: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .embers { display: none; }
}
