/* Storypause website. Colours, type and the book covers come from the app's own library shell (endpaper/app/app.css, night theme). */
:root {
  --bg: #100e0c; --bg2: #181512; --card: #1e1a16; --ink: #f4ecdf; --mute: #a59c8d; --faint: rgba(244, 236, 223, .07); --line: rgba(244, 236, 223, .14);
  --accent: #eaa54b; --accent-ink: #1a1206;
  --navy: #101936; --star: #ffe07d;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: 16px; --max: 1180px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --book: 0 1px 1px rgba(0, 0, 0, .45), 0 4px 8px -2px rgba(0, 0, 0, .45), 0 16px 28px -10px rgba(0, 0, 0, .6);
  --page: #efe6d4; --page2: #d8ccb6;
  --plank-top: #5c4a37; --plank-face: #352a20; --plank-low: #1f1914;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: calc(var(--sat) + 10px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ── top bar ── */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--max); margin: 0 auto;
  padding: calc(var(--sat) + 10px) calc(var(--pad) + var(--sar)) 8px calc(var(--pad) + var(--sal)); }
.brand { display: flex; align-items: center; gap: 9px; font: 500 22px/1 var(--serif); letter-spacing: -.01em; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.badge { display: inline-block; flex: none; border-radius: 9px; }
.badge img { height: 40px; width: auto; }
.badge-bar img { height: 40px; }

/* ── hero ── */
.hero { max-width: var(--max); margin: 0 auto; overflow-x: clip; padding: 6px calc(var(--pad) + var(--sar)) 0 calc(var(--pad) + var(--sal)); }
.hero h1 { font: 400 clamp(27px, 8.1vw, 34px)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 13em; }
.lede { margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 1.45; max-width: 30em; }
.lede em { font-style: italic; font-family: var(--serif); color: var(--ink); font-size: 1.06em; }
.hero .eyebrow { margin: 4px 0 9px; text-wrap: balance; }
.hero-more { display: none; }
.facts { list-style: none; margin: 0; padding: 0; }

.stage { margin-top: 14px; position: relative; }
.stage::before { content: ''; position: absolute; left: 50%; top: 40%; width: 140%; height: 90%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(234, 165, 75, .13), rgba(234, 165, 75, 0)); }

/* the sample is a small hardback, opened: square at the spine, page edges at the fore-edge (as the app draws its covers) */
.device { position: relative; z-index: 1; height: clamp(440px, calc(100svh - 238px), 700px); margin-right: 5px; border-radius: 6px 18px 18px 6px; background: var(--navy); overflow: hidden; isolation: isolate;
  box-shadow: 1.5px 1px 0 var(--page), 3px 2px 0 var(--page2), 4.5px 3px 0 var(--page), 6px 4px 0 rgba(0, 0, 0, .35), 0 0 60px rgba(255, 224, 125, .08), 0 30px 50px -20px rgba(0, 0, 0, .8); }
@supports not (height: 1svh) { .device { height: clamp(440px, calc(100vh - 238px), 700px); } }
.device::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .08) 1.4%, rgba(0, 0, 0, .14) 3%, rgba(255, 255, 255, 0) 6%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--navy); }
.stage-note { margin: 12px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); position: relative; z-index: 1; }

.mute { position: absolute; z-index: 4; top: 10px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: rgba(250, 243, 223, .8); background: rgba(16, 25, 54, .35); transition: background .2s, color .2s, opacity .3s; }
.mute svg { width: 21px; height: 21px; }
.mute .snd-off { display: none; } .mute[aria-pressed="true"] .snd-on { display: none; } .mute[aria-pressed="true"] .snd-off { display: inline; }
.mute:active { background: rgba(16, 25, 54, .7); }
.device.paused .mute { opacity: 0; pointer-events: none; }

/* the pause: where the sample stops and the app takes over */
.pause { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.pause[hidden] { display: none; }
.pause.on { opacity: 1; }
.pause-in { width: 100%; padding: 56px 22px calc(22px + var(--sab)); color: #faf3df; pointer-events: auto;
  background: linear-gradient(to bottom, rgba(10, 16, 38, 0), rgba(10, 16, 38, .92) 40px, #0a1026 56px); }
.pause-in > * { max-width: 24rem; margin-left: auto; margin-right: auto; }
.device iframe { transition: height 1s cubic-bezier(.3, .7, .2, 1); }
.pause-in > * { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.pause.on .pause-in > * { opacity: 1; transform: none; }
.pause.on .pause-in > :nth-child(2) { transition-delay: .25s; } .pause.on .pause-in > :nth-child(3) { transition-delay: .5s; }
.pause.on .pause-in > :nth-child(4) { transition-delay: .7s; } .pause.on .pause-in > :nth-child(5) { transition-delay: .9s; } .pause.on .pause-in > :nth-child(6) { transition-delay: 1.1s; }
.pause-mark { font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--star); margin-bottom: 16px; }
.pause-mark::before, .pause-mark::after { content: ''; display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 12px; opacity: .55; }
.pause h2 { font: 700 clamp(25px, 7vw, 30px)/1.15 var(--round); letter-spacing: -.01em; text-wrap: balance; outline: none; }
.pause-next { margin-top: 10px; font: 400 16px/1.4 var(--serif); color: rgba(250, 243, 223, .82); text-wrap: pretty; }
.pause-left { margin-top: 8px; font-size: 14px; color: rgba(250, 243, 223, .75); }
.pause-left b { color: var(--star); font-weight: 650; }
.pause .badge { margin-top: 16px; }
.pause .badge img { height: 50px; }
.again { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 14px; border: 0; background: none; color: rgba(250, 243, 223, .7); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(250, 243, 223, .3); }

/* ── library ── */
.library { max-width: var(--max); margin: 0 auto; padding: 64px 0 0; }
.lib-head, .filters, .count { padding-left: calc(var(--pad) + var(--sal)); padding-right: calc(var(--pad) + var(--sar)); }
.library h2, .end h2 { font: 400 clamp(27px, 7.6vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin-top: 10px; }
.sub { margin-top: 10px; color: var(--mute); font-size: 15px; max-width: 32em; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pills { display: inline-flex; gap: 3px; padding: 3px; border-radius: 30px; background: var(--faint); border: 1px solid var(--line); }
.pills button { border: 0; background: none; padding: 0 13px; min-height: 38px; border-radius: 26px; font-size: 13px; font-weight: 600; color: var(--mute); transition: color .2s, background .2s; white-space: nowrap; }
.pills button.on { background: var(--ink); color: var(--bg); }
.surprise { display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; min-height: 44px; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, var(--card)); font-size: 13px; font-weight: 600; transition: transform .14s ease; white-space: nowrap; }
.surprise svg { width: 15px; height: 15px; color: var(--accent); }
.surprise:active { transform: scale(.96); }
.shelves { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding: 2px calc(var(--pad) + var(--sar)) 4px calc(var(--pad) + var(--sal)); scroll-padding: 0 var(--pad); }
.shelves::-webkit-scrollbar { display: none; }
.shelves button { flex: none; min-height: 36px; padding: 0 13px; border-radius: 20px; border: 1px solid var(--line); background: none; color: var(--mute); font-size: 13px; font-weight: 550; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.shelves button.on { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.count { margin-top: 14px; font: 500 13px/1.3 var(--sans); color: var(--mute); }
.count i { font-family: var(--serif); font-size: 15px; color: var(--ink); }

/* a real shelf: books stand on a lit plank, the row slides along it */
.plank { position: relative; margin-top: 10px; }
.plank::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 16px; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--plank-top), var(--plank-face) 30%, var(--plank-low)); box-shadow: 0 12px 22px rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 220, 170, .12); }
.plank::before { content: ''; position: absolute; left: 0; right: 0; bottom: 22px; height: 70%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(234, 165, 75, .1), rgba(234, 165, 75, 0)); }
.row { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 18px calc(var(--pad) + var(--sar)) 22px calc(var(--pad) + var(--sal)); scroll-padding: 0 var(--pad); min-height: 230px; }
.row::-webkit-scrollbar { display: none; }
.card { flex: none; width: 132px; scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: left; border-radius: 4px 11px 11px 4px; transition: transform .45s cubic-bezier(.2, .9, .3, 1.25); }
.card:active { transform: scale(.955) translateY(1px); transition: transform .12s ease-out; }
@media (hover: hover) { .card:hover { transform: translateY(-6px) rotate(-.4deg); } }
.card.enter { animation: book-in .5s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes book-in { from { opacity: 0; transform: translateY(14px); } }
.empty { color: var(--mute); font-size: 14px; padding: 60px 0; }

.slide { display: none; }
@media (hover: hover) and (pointer: fine) {
  .slide { display: grid; place-items: center; position: absolute; z-index: 3; top: calc(50% - 30px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 88%, transparent); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transition: opacity .25s, background .2s; }
  .slide svg { width: 20px; height: 20px; }
  .slide:hover { background: var(--card); }
  .slide.prev { left: 6px; } .slide.next { right: 6px; }
  .slide[disabled] { opacity: 0; pointer-events: none; }
}

/* covers: the app's own cover component */
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 4px 11px 11px 4px; overflow: hidden; background: var(--c-bg); color: var(--c-ink); box-shadow: var(--book); isolation: isolate; transform: translateZ(0); container-type: inline-size; }
.cover::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .17) 2.4%, rgba(0, 0, 0, .2) 4.8%, rgba(255, 255, 255, .06) 6.6%, rgba(255, 255, 255, 0) 11%),
    linear-gradient(158deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .16)); }
.cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .14), inset -1px 0 0 rgba(0, 0, 0, .25); pointer-events: none; z-index: 4; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-scrim { position: absolute; inset: 42% 0 0; z-index: 2; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--c-bg) 74%, transparent) 42%, var(--c-bg) 86%); }
.cover-txt { position: absolute; left: 12%; right: 8%; bottom: 8%; z-index: 3; display: flex; flex-direction: column; gap: .35em; }
.cover-title { font-size: clamp(13px, 10.4cqw, 44px); line-height: 1.06; letter-spacing: -.012em; text-wrap: balance; font-weight: 500; }
.f-serif { font-family: var(--serif); } .f-sans { font-family: var(--sans); } .f-round { font-family: var(--round); } .f-mono { font-family: var(--mono); }
.f-round .cover-title { font-weight: 700; letter-spacing: -.005em; } .f-sans .cover-title { font-weight: 650; letter-spacing: -.025em; } .f-mono .cover-title { font-size: clamp(11px, 8.4cqw, 36px); letter-spacing: -.03em; }
.cover-series { font: 650 clamp(6.5px, 3.3cqw, 12px)/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--c-accent); }
.cover-sub { font: italic 400 clamp(9px, 4.8cqw, 17px)/1.2 var(--serif); opacity: .85; }
.cover-min { position: absolute; right: 7%; top: 5.5%; z-index: 3; font: 650 clamp(8.5px, 4.2cqw, 12.5px)/1 var(--sans); letter-spacing: .04em; padding: .5em .75em; border-radius: 20px; color: var(--c-ink); background: color-mix(in srgb, var(--c-bg) 62%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ── title sheet (the app's book page) ── */
.sheet { width: min(100%, 460px); max-width: 100%; max-height: 100%; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--bg2); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-up .45s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(5, 4, 3, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-x-form { position: sticky; top: 0; height: 0; z-index: 3; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(16, 14, 12, .5); color: var(--ink); display: grid; place-items: center; }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-body { padding: 0 0 calc(26px + var(--sab)); text-align: center; }
.ts-stage { padding: 40px 0 26px; display: grid; place-items: center; background: radial-gradient(ellipse 70% 80% at 50% 40%, color-mix(in srgb, var(--c-accent) 22%, transparent), transparent 70%), linear-gradient(var(--c-bg), var(--bg2)); }
.ts-stage .cover { width: min(52vw, 210px); border-radius: 4px 12px 12px 4px; box-shadow: 1.5px 1px 0 var(--page), 3px 2px 0 var(--page2), 4.5px 3px 0 var(--page), 5.5px 3.5px 0 rgba(0, 0, 0, .3), 0 34px 60px -8px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .3); }
.ts-body { padding: 4px 24px 0; }
.ts-body .kicker { margin-bottom: 10px; }
.ts-body h3 { font: 400 28px/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.ts-sub { font: italic 17px/1.3 var(--serif); color: var(--mute); margin-top: 4px; }
.ts-meta { margin-top: 10px; font: 500 13px/1.3 var(--sans); color: var(--mute); letter-spacing: .02em; }
.ts-blurb { margin: 14px auto 0; max-width: 24em; font: 400 17px/1.5 var(--serif); text-wrap: pretty; }
.ts-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ts-cta p { font-size: 13px; color: var(--mute); }
.ts-cta .badge img { height: 48px; }
.ts-read { min-height: 44px; padding: 0 22px; border-radius: 30px; border: 0; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 15px; }

/* ── reasons ── */
.why { max-width: var(--max); margin: 0 auto; padding: 44px 0 0; }
.reasons { list-style: none; margin: 0; padding: 0 calc(var(--pad) + var(--sar)) 0 calc(var(--pad) + var(--sal)); counter-reset: r; }
.reasons li { counter-increment: r; padding: 20px 0 20px 46px; border-top: 1px solid var(--line); position: relative; }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 24px; font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--accent); }
.reasons h3 { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.reasons p { margin-top: 6px; color: var(--mute); font-size: 15px; line-height: 1.5; max-width: 34em; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 30px; padding: 4px calc(var(--pad) + var(--sar)) 10px calc(var(--pad) + var(--sal)); scroll-padding: 0 var(--pad); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; width: min(62vw, 240px); scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -16px rgba(0, 0, 0, .7); background: var(--card); }

/* ── questions: a contents page, ruled like the reasons above ── */
.faq { max-width: var(--max); margin: 0 auto; padding: 72px calc(var(--pad) + var(--sar)) 0 calc(var(--pad) + var(--sal)); }
.faq h2 { font: 400 clamp(27px, 7.6vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin-top: 10px; }
.faq-list { margin-top: 22px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer;
  font: 400 19px/1.3 var(--serif); letter-spacing: -.005em; color: var(--ink); border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--accent), var(--accent)) center / 9px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 9px no-repeat;
  transition: transform .25s ease, background-size .25s ease; }
.faq details[open] > summary::after { transform: rotate(180deg); background-size: 9px 1.5px, 1.5px 0; }
.faq summary:focus-visible { outline-offset: 2px; }
.faq-a { padding: 0 38px 20px 0; }
.faq-a p { color: var(--mute); font-size: 15px; line-height: 1.55; max-width: 36em; }
.faq-a a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ── end ── */
.end { max-width: 640px; margin: 0 auto; padding: 84px calc(var(--pad) + var(--sar)) 72px calc(var(--pad) + var(--sal)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.end-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(228, 87, 46, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.end h2 { margin-top: 22px; }
.end > p { margin-top: 12px; color: var(--mute); font-size: 16px; max-width: 24em; }
.end .badge { margin-top: 24px; }
.end .badge img { height: 54px; }
.end .fine { font-size: 12.5px; margin-top: 14px; }

.foot { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 22px calc(var(--pad) + var(--sar)) calc(26px + var(--sab)) calc(var(--pad) + var(--sal)); border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot nav { display: flex; gap: 4px; margin-left: -10px; }
.foot nav a { padding: 12px 10px; }
.foot nav a:hover { color: var(--ink); }
.foot .more { flex-basis: 100%; display: block; margin: 2px 0 0; padding-top: 14px; border-top: 1px solid var(--faint); }
.foot .more h2 { font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.foot .more h2 a { display: inline-block; padding: 14px 0; margin: -14px 0; color: var(--ink); }
.foot .more ul { list-style: none; margin: 4px 0 0 -10px; padding: 0; display: flex; flex-wrap: wrap; }
.foot .more li a { display: inline-block; padding: 12px 10px; }
.foot .more a:hover { color: var(--ink); }

/* ── small phones ── */
@media (max-width: 359px) {
  .badge-bar img { height: 40px; }
  .brand { font-size: 19px; gap: 7px; } .brand img { width: 26px; height: 26px; }
  .pills button { padding: 0 10px; }
  .card { width: 118px; }
}

/* ── tablets and up ── */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .device { max-width: 460px; margin: 0 auto; height: min(760px, calc(100svh - 230px)); min-height: 560px; }
  .stage-note { text-align: center; }
  .card { width: 150px; }
  .gallery figure { width: 230px; }
  .sheet { margin: auto; border-radius: 24px; }
  .reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
  .reasons li { padding: 26px 0 0; border-bottom: 0 !important; }
  .reasons li::before { position: static; display: block; margin-bottom: 14px; }
}

/* ── desktop: the story stands in a phone, the words sit beside it ── */
@media (min-width: 1000px) {
  :root { --pad: 48px; }
  .bar { padding-top: 22px; }
  .badge-bar { display: none; }
  .hero { display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: center; padding-top: 10px; min-height: min(860px, calc(100vh - 80px)); }
  .hero h1 { font-size: clamp(48px, 4.6vw, 64px); }
  .lede { margin-top: 18px; font-size: 19px; }
  .hero-more { display: block; margin-top: 34px; }
  .hero-more .badge img { height: 54px; }
  .facts { display: flex; gap: 34px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
  .facts li { font-size: 13px; color: var(--mute); line-height: 1.35; max-width: 9em; }
  .facts b { display: block; font: 400 32px/1.15 var(--serif); color: var(--ink); letter-spacing: -.01em; margin-bottom: 4px; }
  .stage { margin: 0; }
  .device { width: 400px; max-width: none; height: min(820px, calc(100vh - 110px)); min-height: 640px; margin: 0; border-radius: 54px; padding: 0;
    box-shadow: 0 0 0 11px #0b0a09, 0 0 0 12px #3a332c, 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 120px rgba(255, 224, 125, .07); }
  .device::after { background: none; box-shadow: none; }
  .device iframe { border-radius: 54px; }
  .mute { top: 22px; right: 22px; }
  .pause-in { padding-bottom: 40px; }
  .stage-note { margin-top: 28px; }
  .library { padding-top: 90px; }
  .shelves { flex-wrap: wrap; overflow: visible; }
  .lede { max-width: 24em; }
  .row { gap: 22px; padding-top: 26px; }
  .card { width: 168px; }
  .why { padding-top: 100px; }
  .faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 0 72px; align-items: start; padding-top: 110px; }
  .faq-head { position: sticky; top: 32px; padding-top: 18px; }
  .faq-list { margin-top: 0; }
  .faq summary { font-size: 21px; min-height: 64px; }
  .gallery { justify-content: center; }
  .gallery figure { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ── privacy, support and 404: long-form pages in the same hand ── */
.doc-nav { display: flex; gap: 2px; font-size: 14px; font-weight: 550; }
.doc-nav a { padding: 12px 10px; color: var(--mute); border-radius: 10px; }
.doc-nav a[aria-current="page"] { color: var(--ink); }
.prose { max-width: 720px; margin: 0 auto; padding: 36px calc(var(--pad) + var(--sar)) 70px calc(var(--pad) + var(--sal)); }
.prose .eyebrow { font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.prose h1 { font: 400 clamp(36px, 9vw, 56px)/1.08 var(--serif); letter-spacing: -.02em; margin-bottom: 18px; }
.prose .lead { font: 400 clamp(18px, 4.6vw, 21px)/1.5 var(--serif); color: var(--ink); margin-bottom: 18px; }
.prose h2 { font: 400 clamp(23px, 5.6vw, 28px)/1.2 var(--serif); letter-spacing: -.01em; margin: 40px 0 12px; }
.prose p { color: #cfc6b8; font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.prose .fine { font-size: 13px; color: var(--mute); }
.prose .note { margin: 26px 0; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.prose .note p { margin: 0; color: var(--ink); }
.prose .contact { display: inline-block; font: 400 clamp(22px, 6vw, 28px)/1.3 var(--serif); color: var(--ink); text-decoration-color: var(--accent); margin: 4px 0 18px; padding: 6px 0; }
.foot nav { flex-wrap: wrap; }
.lost { max-width: 640px; margin: 0 auto; padding: 60px calc(var(--pad) + var(--sar)) 90px calc(var(--pad) + var(--sal)); text-align: center; }
.lost .mark { font: 600 11.5px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--mute); }
.lost .mark::before, .lost .mark::after { content: ''; display: inline-block; width: 34px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 14px; opacity: .6; }
.lost h1 { margin-top: 28px; font: 400 clamp(30px, 8vw, 46px)/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lost p { margin-top: 14px; color: var(--mute); }
.lost .home { display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px; padding: 0 26px; border-radius: 40px; background: var(--ink); color: var(--bg); font-weight: 650; }
.lost .badge { display: block; width: max-content; margin: 22px auto 0; }

/* short frames (small phones, landscape): keep the window scene visible above the pause */
.device { container-type: size; }
@container (max-height: 600px) {
  .pause-next { display: none; }
  .pause-mark { margin-bottom: 12px; }
  .pause .badge { margin-top: 12px; }
}
