/* BookZEN landing — shelf first (2026-10-06). The app's own palette and type: SlowTheme.swift. */
:root {
  --cream: #f1ede4;
  --card: #faf7f0;
  --parchment: #f7f4ec;
  --ink: #21201c;
  --sub: #53524a;
  --faint: #64625a;
  --brand: #1e3a30;
  --brand-2: #2b4f42;
  --clay: #c4623a;
  --gold: #b0842f;
  --rule: rgba(33, 32, 28, 0.12);
  --shadow: 0 18px 50px rgba(30, 26, 18, 0.18), 0 4px 12px rgba(30, 26, 18, 0.10);
  --radius: 22px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Lora", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 20px; }

/* ── navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(241, 237, 228, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px var(--display); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--sub); }
.nav nav a:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--parchment) !important;
  padding: 9px 18px; border-radius: 999px; text-decoration: none; font: 600 15px var(--body);
}
@media (max-width: 760px) { .nav nav a:not(.pill) { display: none; } }

/* ── hero ──────────────────────────────────────────────────── */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow {
  font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--brand); }
.lede { font-size: 19px; color: var(--sub); margin-top: 18px; max-width: 30em; font-style: italic; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; flex: 1 1 170px; max-width: 240px;
  background: var(--ink); color: var(--parchment); text-decoration: none;
  padding: 12px 20px; border-radius: 14px;
}
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font: 400 11px/1.1 var(--body); opacity: 0.8; }
.store b { display: block; font: 600 18px/1.15 var(--display); white-space: nowrap; }
@media (max-width: 420px) { .store { padding: 11px 14px; } .store b { font-size: 16px; } }
.note { margin-top: 16px; font-size: 14px; color: var(--faint); }
/* The other platform's store, when the visitor's own is known: still there, quieter. */
.store.other { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(33,32,28,.28); }
.cta .store.other { background: transparent; color: var(--parchment); box-shadow: inset 0 0 0 1.5px rgba(247,244,236,.45); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 34px; }
}

/* ── a shelf scene, drawn by the app and set down here ───────── */
.scene {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: #3b2614 center / cover no-repeat;
  isolation: isolate;
}
.scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.scene .bg.next { opacity: 0; }
.scene .thing {
  position: absolute; max-width: none; pointer-events: none;
  transition: left 0.7s cubic-bezier(.2,.8,.2,1), top 0.7s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.scene .thing.waiting { opacity: 0; }
.scene .thing.fall { animation: fall 0.62s cubic-bezier(.25,.9,.3,1.12) both; }
.scene .thing.appear { animation: appear 0.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fall {
  0% { transform: translateY(-120%) rotate(-4deg); opacity: 0; }
  12% { opacity: 1; }
  72% { transform: translateY(2%) rotate(0.6deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes appear {
  0% { transform: translateY(10px) scale(0.86); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.scene .light { position: absolute; inset: 0; pointer-events: none; transition: background-color 0.7s ease; z-index: 5; }
.scene .glow { position: absolute; pointer-events: none; z-index: 6; mix-blend-mode: screen; transition: opacity 0.7s ease; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 196, 120, 0.55), rgba(255, 180, 100, 0) 70%); }
.scene .scrim { position: absolute; inset: 0 0 auto 0; height: 22%; background: linear-gradient(rgba(20,12,4,.35), transparent); z-index: 4; pointer-events: none; }
.replay {
  position: absolute; right: 12px; bottom: 12px; z-index: 8;
  background: rgba(20, 14, 8, 0.55); color: var(--parchment); border: 0; border-radius: 999px;
  font: 500 13px var(--body); padding: 6px 12px; cursor: pointer; backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.3s;
}
.scene:hover .replay, .replay:focus-visible { opacity: 1; }
@media (hover: none) { .replay { opacity: 0.85; } }

/* The app's toast: the book that just landed, its cover beside its title. */
.toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 9; transform: translate(-50%, 30px); opacity: 0;
  display: flex; align-items: center; gap: 10px; max-width: 86%;
  background: var(--brand); color: var(--parchment); border-radius: 16px; padding: 8px 14px 8px 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.3); font-size: 14px; line-height: 1.25;
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1.1), opacity 0.35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast img { height: 42px; width: auto; border-radius: 3px; }
.toast b { font-family: var(--display); font-weight: 600; display: block; }

/* ── sections ─────────────────────────────────────────────── */
.section { padding-block: 84px; scroll-margin-top: 60px; }
.hero, .cta { scroll-margin-top: 60px; }
.section.alt { background: var(--card); border-block: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split > *, .hero .wrap > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.section .copy p.text { margin-top: 16px; color: var(--sub); font-size: 18px; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--ink); font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--clay); border-radius: 2px; }
.caption { margin-top: 14px; font-style: italic; color: var(--faint); font-size: 15px; text-align: center; }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 34px; }
  .split.flip > :first-child { order: 0; }
  .section { padding-block: 60px; }
}

/* ── chips (Make it yours, the sets) ──────────────────────── */
.chooser { margin-top: 22px; display: grid; gap: 14px; }
.chooser .label { font: 600 11px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); background: var(--parchment); color: var(--ink);
  border-radius: 999px; padding: 6px 14px 6px 6px; font: 500 14px var(--body); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.chip:hover { border-color: rgba(30, 58, 48, 0.45); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--parchment); border-color: var(--brand); }
.chip .swatch { width: 26px; height: 26px; border-radius: 50%; background: center / cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.chip .pic { width: 26px; height: 26px; object-fit: contain; }
.chip.plain { padding: 7px 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.setline { margin-top: 14px; font-style: italic; color: var(--sub); min-height: 1.6em; text-align: center; }

/* ── the evening: a sitting ───────────────────────────────── */
.sitting {
  background: linear-gradient(160deg, #22382f, #142520); color: var(--parchment);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
}
.sitting .book { width: 96px; aspect-ratio: 113 / 180; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.sitting .title { font: 600 20px var(--display); }
.sitting .author { font-style: italic; opacity: 0.75; font-size: 14px; }
.sitting .clock { font: 600 64px/1 var(--display); letter-spacing: 0.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.sitting .bar { height: 4px; background: rgba(247,244,236,.18); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.sitting .bar i { display: block; height: 100%; width: 0; background: #e3b56a; border-radius: 4px; }
.sitting .plantpot { position: absolute; right: 22px; bottom: 14px; height: 110px; width: 90px; display: flex; align-items: flex-end; justify-content: center; }
.sitting .plantpot img { position: absolute; bottom: 0; max-height: 100%; width: auto; transition: opacity 0.8s ease, transform 0.8s ease; opacity: 0; transform: scale(0.9); transform-origin: bottom center; }
.sitting .plantpot img.on { opacity: 1; transform: none; }
.sounds { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sounds .chip { padding: 6px 14px; }
.rain { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; background-image:
  repeating-linear-gradient(105deg, rgba(255,255,255,.0) 0 14px, rgba(255,255,255,.09) 14px 15px);
  background-size: 160px 160px; animation: rain 0.6s linear infinite; }
.sitting.mood-rain .rain { opacity: 1; }
@keyframes rain { to { background-position: -40px 160px; } }
.fire { position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(60% 80% at 50% 110%, rgba(255,140,50,.35), rgba(255,100,30,0) 70%); animation: flicker 1.8s ease-in-out infinite alternate; }
.sitting.mood-fire .fire { opacity: 1; }
@keyframes flicker { 0% { opacity: .55; } 40% { opacity: .9; } 70% { opacity: .65; } 100% { opacity: 1; } }
.sitting.mood-cafe { background: linear-gradient(160deg, #3a2a1f, #20160f); }
.sitting.mood-forest { background: linear-gradient(160deg, #22402a, #10221a); }
@media (max-width: 520px) {
  .sitting { grid-template-columns: 1fr; text-align: left; }
  .sitting .clock { font-size: 52px; }
}

/* ── the year ─────────────────────────────────────────────── */
.year { background: var(--brand); color: var(--parchment); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.year .head { display: flex; align-items: center; gap: 18px; }
.ring { width: 96px; height: 96px; flex: none; }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgba(247,244,236,.16); }
.ring .done { stroke: #e3b56a; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.ring text { fill: var(--parchment); font-family: var(--display); font-weight: 600; }
.year .big { font: 600 26px/1.15 var(--display); }
.year .small { opacity: 0.7; font-style: italic; font-size: 14px; }
.covers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.covers img { width: 100%; height: auto; aspect-ratio: 0.71; object-fit: contain; object-position: bottom; opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .45s, transform .45s cubic-bezier(.2,.9,.3,1.1); }
.covers img.on { opacity: 1; transform: none; }
.covers img.later { opacity: 0.18 !important; filter: grayscale(1); }
@media (max-width: 520px) { .covers { grid-template-columns: repeat(4, 1fr); } }

/* ── what you kept ───────────────────────────────────────── */
.kept { position: relative; min-height: 360px; }
.kept .line {
  background: var(--parchment); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 30px 24px; position: relative; z-index: 2;
  max-width: 440px;
}
.kept .eyebrow { margin-bottom: 10px; }
.kept blockquote { margin: 0; font: italic 400 25px/1.35 var(--display); min-height: 2.7em; padding-right: 24px; }
.kept .cursor { display: inline-block; width: 2px; height: 1em; background: var(--clay); vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kept .from { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sub); }
.kept .from img { height: 34px; width: auto; border-radius: 2px; }
.kept .quill { position: absolute; left: min(400px, 82%); top: -46px; width: 88px; transform: rotate(10deg); z-index: 3; pointer-events: none; }
@media (max-width: 520px) {
  .kept .quill { left: auto; right: -6px; top: -58px; width: 64px; }
  .kept .cards img { width: 44%; }
}
.kept .cards { position: relative; height: 210px; margin-top: -10px; overflow-x: clip; } /* the tilted cards never widen the page */
.kept .cards img { position: absolute; width: min(250px, 62%); filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s; opacity: 0; }
.kept .cards img.on { opacity: 1; }

/* ── the home screen ─────────────────────────────────────── */
.phone {
  width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 14px;
  background: #15120f; box-shadow: var(--shadow), inset 0 0 0 2px #2b2722; position: relative;
}
.phone .screen {
  height: 100%; border-radius: 34px; overflow: hidden; position: relative; padding: 50px 16px 16px;
  background: linear-gradient(170deg, #5c7a6c 0%, #2f4a40 45%, #1b2c26 100%);
}
.phone .time { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #fff; font: 600 15px -apple-system, system-ui, sans-serif; }
.phone .island { position: absolute; top: 12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: #000; border-radius: 20px; }
.phone .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 14px; margin-top: 14px; }
.phone .grid span { aspect-ratio: 1; border-radius: 13px; background: rgba(255,255,255,.16); }
.phone .widget { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.35); opacity: 0; transform: scale(.94); transition: opacity .6s, transform .6s cubic-bezier(.2,.9,.3,1.1); }
.phone .widget.on { opacity: 1; transform: none; }
.phone .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.phone .row .grid { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.phone .dock { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 28px; background: rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phone .dock span { aspect-ratio: 1; border-radius: 13px; background: rgba(255,255,255,.22); }

/* ── privacy, pro, faq ───────────────────────────────────── */
.private { text-align: center; }
.private p.text { max-width: 34em; margin: 16px auto 0; color: var(--sub); font-size: 18px; }
.pro table { width: 100%; border-collapse: collapse; margin-top: 30px; background: var(--parchment); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.pro th, .pro td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: top; }
.pro thead th { font: 600 15px var(--display); background: var(--brand); color: var(--parchment); }
.pro tbody tr:last-child td { border-bottom: 0; }
.pro td:first-child { color: var(--sub); }
.tablewrap { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { font: 600 19px var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-family: var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--sub); }
.faq .list { max-width: 760px; margin: 26px auto 0; }

/* ── support (the App Store's support link lands here: /#support) ─── */
.support .wrap { max-width: 760px; }
.support-head { margin-bottom: 26px; }
.support-head p.text { margin-top: 12px; color: var(--sub); font-size: 18px; }
.support-form { background: var(--parchment); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 1px 0 var(--rule); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font: 600 16px var(--display); color: var(--brand); margin-bottom: 6px; }
.form-group .optional { font: 400 13px var(--body); color: var(--faint); }
.form-group input, .form-group textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 11px 14px; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid rgba(30, 58, 48, .35); outline-offset: 1px; }
.form-group textarea { resize: vertical; min-height: 140px; }
.support-form .pill { border: 0; cursor: pointer; font-size: 16px; padding: 11px 22px; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--faint); }
.form-note a { color: var(--brand); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { font: 600 22px var(--display); color: var(--brand); margin: 0 0 8px; }
.support-form button[disabled] { opacity: .6; cursor: default; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ── closing ─────────────────────────────────────────────── */
.cta { background: var(--brand); color: var(--parchment); text-align: center; padding-block: 80px; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta p { margin-top: 12px; opacity: 0.8; font-style: italic; }
.cta .stores { justify-content: center; }
.cta .store { background: var(--parchment); color: var(--ink); }
footer { padding-block: 34px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

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

/* The hero's four benefits (2026-10-11): the points list, a little tighter above the store badges */
.hero-points { margin: 18px 0 22px; gap: 8px; }
.hero-points li { font-size: 15px; }

/* The bookcase film (2026-10-23): a full-width band between two sections. The video is taller than
   the band (130%), so landing.js can drift it up to 15% either way as the page scrolls. */
.film.band { position: relative; height: clamp(220px, 34vw, 440px); overflow: hidden; background: #2b1d13; }
.film.band video { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.film .replay { right: 16px; bottom: 16px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.film .replay[hidden] { display: none; }
.film:hover .replay { opacity: 1; }
.film .replay::before { content: ""; width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.film .replay[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }

/* Every language of the page, by its own name (2026-10-11) */
footer .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
footer .langs a { color: var(--faint); text-decoration: none; }
footer .langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
