/* Nightstand landing. Ported from the Claude Design "Lander A / Shelf" export. */
:root {
  --bg: #050505;
  --fg: oklch(0.96 0.005 80);
  --muted: oklch(0.8 0.005 80);
  --accent: oklch(0.85 0.08 222);
  --serif: Literata, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  /* Genre colours, set from JS. */
  --c: #C22D6D;
  --c2: #9A0B31;
}
/* Derived colours are recomputed wherever a genre colour (--c, --c2) is set. */
:root, .demo, .card, .bcard, .tile {
  --tone: color-mix(in oklch, var(--c) 55%, white);
  --glow: color-mix(in oklch, var(--c) 38%, transparent);
  --glow-strong: color-mix(in oklch, var(--c) 72%, transparent);
  --glow-vivid: color-mix(in oklch, var(--c) 75%, transparent);
  --glow2: color-mix(in oklch, var(--c2) 60%, transparent);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #050505; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; color: #050505; }

@keyframes nsZoom { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2%, -2%, 0); } }
@keyframes nsUp { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nsBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nsType { from { max-width: 0; } to { max-width: 100%; } }
@keyframes nsPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes nsRing { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes nsHalo { 0%, 100% { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14), 0 0 0 0 oklch(1 0 0 / 0); } 50% { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.4), 0 0 0 6px oklch(1 0 0 / 0.08); } }
@keyframes nsBlink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }

/* Shared type */
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 7vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.split { max-width: 1180px; margin: 0 auto; padding: 104px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.wrap { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #050505; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 160ms; }
.btn:hover { color: #050505; transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-lg { height: 58px; padding: 0 34px; font-size: 17px; box-shadow: 0 14px 50px -10px var(--c); transition: transform 160ms, box-shadow 900ms; }
.btn-md { height: 52px; padding: 0 28px; font-size: 16px; }
.ghost { cursor: pointer; border: 0; background: transparent; height: 52px; padding: 0 22px; border-radius: 999px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: oklch(0.86 0 0); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.2); }
.ghost:hover { background: oklch(1 0 0 / 0.08); }
.round { cursor: pointer; border: 0; padding: 0; flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22); background: oklch(1 0 0 / 0.06); }
.round:hover { background: oklch(1 0 0 / 0.16); }
.round:active { transform: scale(0.94); }
.dots { display: flex; align-items: center; }
.dot { cursor: pointer; border: 0; background: none; height: 28px; padding: 0 3px; display: flex; align-items: center; }
.dot span { display: block; height: 6px; width: 6px; border-radius: 3px; background: oklch(1 0 0 / 0.3); transition: width 360ms var(--ease), background 360ms; }
.dot[aria-current="true"] span { width: 22px; background: #fff; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* Header */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 clamp(12px, 4vw, 20px); background: transparent; transition: background 240ms; }
.bar.on { background: oklch(0.06 0 0 / 0.72); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.mark { flex: none; width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(150deg, oklch(0.95 0.04 205), oklch(0.7 0.12 238)); box-shadow: inset 0 0 0 0.5px oklch(1 0 0 / 0.3); overflow: hidden; display: block; }
.mark svg { display: block; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 5vw, 21px); letter-spacing: -0.02em; }
.bar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.bar-cta { height: 38px; padding: 0 clamp(12px, 3.4vw, 16px); font-size: clamp(13px, 3.6vw, 14px); opacity: 0; pointer-events: none; transform: translateX(8px); transition: opacity 240ms, transform 240ms; }
.bar.on .bar-cta { opacity: 1; pointer-events: auto; transform: none; }
.bar-cta:hover { transform: none; }
.login { display: flex; align-items: center; height: 38px; padding: 0 clamp(11px, 3vw, 14px); border-radius: 999px; color: #fff; font-size: clamp(13px, 3.6vw, 14px); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22); background: oklch(1 0 0 / 0.08); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.login:hover { background: oklch(1 0 0 / 0.16); }

/* Hero */
.hero { position: relative; min-height: max(100svh, 660px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-bd { position: absolute; inset: 0; z-index: -3; background: #050505; }
.bd { position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms var(--ease); overflow: hidden; }
.bd.on { opacity: 1; }
.bd i { position: absolute; inset: -4%; background-size: cover; animation: nsZoom 14s ease-out infinite alternate; }
.hero-tint { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 60% at 20% 100%, var(--c) 0%, transparent 60%); opacity: 0.55; mix-blend-mode: screen; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0.05 0 0 / 0.6) 0%, transparent 22%, transparent 38%, oklch(0.05 0 0 / 0.75) 68%, #050505 100%); }
.hero-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.now { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.9 0 0); }
.now::before { content: ""; width: 22px; height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 11vw, 120px); line-height: 0.94; letter-spacing: -0.04em; max-width: 11ch; text-wrap: balance; text-shadow: 0 2px 40px oklch(0 0 0 / 0.5); }
.tag { min-height: 1.3em; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4.6vw, 40px); line-height: 1.2; letter-spacing: -0.01em; color: oklch(0.97 0 0); }
.tag span { display: inline-block; animation: nsUp 700ms var(--ease) both; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.3; }
.cta-note b { font-weight: 600; }
.cta-note small { color: oklch(0.78 0 0); font-size: 12px; }
.tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -20px 0; padding: 4px 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { cursor: pointer; border: 0; flex: none; position: relative; overflow: hidden; height: 40px; padding: 0 16px; display: flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #fff; background: oklch(1 0 0 / 0.1); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background 400ms, color 400ms; }
.tab[aria-selected="true"] { color: #050505; background: #fff; }
.tab span { position: relative; z-index: 1; }
.tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left; animation: nsBar 5.5s linear forwards; }

/* Shelf */
.shelf { padding: 40px 0 24px; display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-direction: column; gap: 12px; }
.row h3 { padding: 0 20px; max-width: 1180px; width: 100%; align-self: center; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mq { margin: -8px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: nsMarquee var(--dur, 60s) linear infinite; padding: 8px 0; }
.track.rev { animation-direction: reverse; }
.book { flex: none; display: block; width: clamp(112px, 26vw, 168px); aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; position: relative; background: oklch(0.16 0 0); box-shadow: 0 10px 30px -12px oklch(0 0 0 / 0.8), inset 0 0 0 0.5px oklch(1 0 0 / 0.12); transition: transform 240ms var(--ease); }
.book:hover { transform: translateY(-6px) scale(1.04); }
.book img { width: 100%; height: 100%; object-fit: cover; }
.book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, oklch(1 0 0 / 0.18), oklch(0 0 0 / 0.2) 60%, transparent); }

/* Main character */
.main .eyebrow { color: var(--tone); }
.main p.lead { max-width: 34em; }
.field { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin-top: 8px; }
.field span { font-size: 13px; font-weight: 600; color: oklch(0.8 0 0); }
.field input { height: 52px; padding: 0 18px; border-radius: 14px; border: 0; outline: none; background: oklch(0.16 0.004 80); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14); color: #fff; font: 500 18px var(--sans); }
.field input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline: none; }
.stage { display: flex; justify-content: center; perspective: 1100px; padding: 20px 0; }
.book3d { position: relative; width: min(300px, 68vw); aspect-ratio: 2/3; transform-style: preserve-3d; transform: rotateY(-40deg) rotateX(6deg); will-change: transform; }
.b-back { position: absolute; inset: 0; border-radius: 3px; transform: translateZ(-26px) rotateY(180deg); background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; }
.b-back p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; text-wrap: balance; }
.b-back span { font-family: var(--serif); font-weight: 600; font-size: 15px; opacity: 0.8; }
.b-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, var(--c2), var(--c) 50%, var(--c2)); display: flex; align-items: center; justify-content: center; }
.b-spine span { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.b-pages { position: absolute; right: 0; top: 3px; bottom: 3px; width: 26px; transform-origin: right center; transform: rotateY(-90deg); background: repeating-linear-gradient(90deg, #efe6d4 0 1px, #d9ceb8 1px 2px); }
.b-front { position: absolute; inset: 0; border-radius: 3px 5px 5px 3px; overflow: hidden; box-shadow: -30px 40px 80px -30px oklch(0 0 0 / 0.9), 0 0 120px -20px var(--c); transition: box-shadow 900ms; }
.b-front img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.b-front .shade { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0 0 0 / 0.55), transparent 35%, transparent 55%, oklch(0 0 0 / 0.85)); }
.b-front .edge { position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, oklch(1 0 0 / 0.2), oklch(0 0 0 / 0.25) 60%, transparent); }
.b-kind { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: oklch(0.95 0 0); }
.b-title { position: absolute; left: 18px; right: 18px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.b-title strong { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.b-title hr { width: 28px; height: 1px; margin: 0; border: 0; background: oklch(1 0 0 / 0.6); }
.b-title span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }

/* Demo */
.demo { position: relative; padding: 96px 0; isolation: isolate; overflow: hidden; --c: #C22D6D; }
.demo-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 60%, var(--glow), transparent 70%); }
.demo-in { max-width: 680px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 28px; }
.center { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.center .lead { max-width: 30em; }
.dlabel { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -12px; }
.dlabel b { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dlabel b i { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 1.5px oklch(1 0 0 / 0.85), 0 0 14px var(--tone); }
.dprog { display: block; width: 120px; height: 2px; border-radius: 1px; background: oklch(1 0 0 / 0.14); overflow: hidden; }
.dprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--tone), var(--c)); transform-origin: left; transform: scaleX(0); }
.dprog i.run { animation: nsBar var(--demo-s, 15s) linear forwards; }
.viewport { overflow: visible; }
.reel { display: flex; align-items: flex-start; transition: transform 620ms var(--ease); }
.card { flex: 0 0 100%; padding: 0 6px; opacity: 0.25; transform: scale(0.94); transition: opacity 620ms, transform 620ms var(--ease); pointer-events: none; }
.card.on { opacity: 1; transform: none; pointer-events: auto; }
.card-in { border-radius: 20px; overflow: hidden; background: #141312; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08), 0 40px 100px -40px oklch(0 0 0 / 0.9); }
.card-img { position: relative; height: clamp(180px, 34vw, 260px); background-size: cover; background-position: 50% 30%; background-color: #1b1a19; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #141312); }
.card-body { padding: 0 clamp(22px, 6vw, 52px) clamp(28px, 6vw, 48px); margin-top: -28px; position: relative; display: flex; flex-direction: column; gap: 20px; z-index: 1; }
.chap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: oklch(0.78 0.01 80); }
.chap em { font-family: var(--serif); font-size: 19px; color: oklch(0.9 0.01 80); }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: oklch(0.9 0.01 80); text-wrap: pretty; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices .k { text-align: center; }
.choice { cursor: pointer; border: 0; text-align: left; min-height: 58px; padding: 16px 20px; border-radius: 12px; display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 18px; color: oklch(0.95 0.01 80); background: #1b1a19; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.14); transition: transform 90ms; }
.choice::before { content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: oklch(1 0 0 / 0.25); }
.choice:first-of-type { background: linear-gradient(90deg, var(--glow), transparent 80%), #1b1a19; box-shadow: inset 0 0 0 1.5px var(--tone); }
.choice:first-of-type::before { background: var(--tone); }
.choice:hover { background-color: #23211f; }
.choice:first-of-type:hover { background: linear-gradient(90deg, var(--glow), transparent 80%), #23211f; }
.choice:active { transform: scale(0.97); }
.after { display: flex; flex-direction: column; gap: 20px; animation: nsUp 600ms var(--ease) both; }
.after .you { align-self: center; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--tone); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Branch */
.branch-view { overflow: hidden; border-radius: 22px; }
.branch-reel { display: flex; align-items: stretch; transition: transform 620ms var(--ease); }
.bcard { flex: 0 0 100%; position: relative; border-radius: 22px; background: radial-gradient(110% 75% at 100% 0%, var(--glow-strong), transparent 72%), #141312; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08); padding: 28px 24px; min-height: 450px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.bcard .before { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: oklch(0.64 0.01 80); }
.hl { position: relative; border-radius: 10px; padding: 10px 12px; margin: 0 -12px; transition: background 400ms; }
.hl.on { background: oklch(1 0 0 / 0.08); }
.hl p { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: oklch(0.9 0.01 80); }
.hl .ring { position: absolute; right: 28px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: oklch(1 0 0 / 0.5); animation: nsRing 1s ease-out infinite; }
.typing { border-radius: 16px; padding: 14px 16px; background: #211f1d; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12); display: flex; flex-direction: column; gap: 8px; animation: nsUp 380ms var(--ease) both; }
.typing .k2 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: oklch(0.74 0 0); }
.typing .line { display: flex; font-size: 16px; color: #fff; }
.typing .line > span:first-child { display: inline-block; overflow: hidden; white-space: nowrap; animation: nsType 1.6s steps(34) both; }
.typing .caret { flex: none; width: 2px; background: #fff; margin-left: 2px; animation: nsPulse 0.9s infinite; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; animation: nsUp 520ms var(--ease) both; }
.ver { border-radius: 12px; padding: 12px; background: #1b1a19; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1); display: flex; flex-direction: column; gap: 6px; }
.ver b { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.7 0 0); }
.ver span { font-family: var(--serif); font-size: 14px; line-height: 1.5; color: oklch(0.74 0.01 80); }
.ver.mine { background: linear-gradient(160deg, var(--glow), transparent), #1b1a19; box-shadow: inset 0 0 0 1.5px var(--tone); }
.ver.mine b { color: var(--tone); }
.ver.mine span { color: oklch(0.94 0.01 80); }
.branch-note { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; color: oklch(0.94 0 0); }
.branch-p { font-size: 17px; line-height: 1.55; color: oklch(0.78 0.005 80); max-width: 32em; text-wrap: pretty; }

/* Possibilities */
.poss { padding: 96px 0; display: flex; flex-direction: column; gap: 32px; }
.poss .head { display: flex; flex-direction: column; gap: 14px; }
.poss .lead { max-width: 36em; }
.grid { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 2/3; padding: 18px; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: var(--c2); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1); transition: transform 320ms var(--ease), box-shadow 320ms; }
.tile:hover { color: #fff; transform: translateY(-6px); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.3), 0 24px 60px -20px var(--c); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 900ms var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, oklch(0 0 0 / 0.55) 70%, oklch(0 0 0 / 0.85)); }
.tile .strip { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.tile b, .tile span.d { position: relative; }
.tile b { font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; letter-spacing: -0.01em; }
.tile span.d { display: block; height: 5.2em; overflow: hidden; font-family: var(--serif); font-style: italic; font-size: clamp(14px, 1.8vw, 17px); line-height: 1.3; text-wrap: pretty; }
.tile.own { justify-content: space-between; gap: 16px; background: radial-gradient(120% 80% at 0% 0%, oklch(0.85 0.08 222 / 0.28), transparent 60%), oklch(0.13 0.004 80); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16); }
.tile.own:hover { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.36); }
.plus { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: #050505; }
.tile.own .txt { display: flex; flex-direction: column; gap: 6px; }
.tile.own .d { color: oklch(0.88 0 0); }
.chips { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.chips .track { gap: 10px; padding: 0; animation-duration: 70s; }
.chip { flex: none; height: 42px; padding: 0 18px; display: flex; align-items: center; border-radius: 999px; font-size: 15px; font-weight: 500; background: oklch(1 0 0 / 0.07); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12); white-space: nowrap; }

/* Real book */
.themes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.theme { cursor: pointer; border: 0; height: 44px; padding: 0 16px 0 8px; display: flex; align-items: center; gap: 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: transparent; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16); }
.theme[aria-checked="true"] { background: oklch(1 0 0 / 0.16); }
.theme i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.25); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(340px, 86vw); aspect-ratio: 9/17; border-radius: 40px; padding: 10px; background: #1a1a1a; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.12), 0 50px 100px -40px oklch(0 0 0 / 0.9); }
.page { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--pbg, #1C1B1A); color: var(--pink, #D8D2C8); padding: 56px 26px 26px; display: flex; flex-direction: column; gap: 14px; transition: background 380ms, color 380ms; }
.page .ck { text-align: center; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; opacity: 0.65; }
.page h3 { text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.page p { font-family: var(--serif); font-size: 15px; line-height: 1.6; }
.page p:first-of-type { margin-top: 6px; }
.page .mem { margin-top: auto; border-radius: 12px; padding: 12px 14px; font-family: var(--serif); font-style: italic; font-size: 14px; text-align: center; background: var(--pcard, oklch(0.26 0.005 80)); }

/* Together */
.together { position: relative; padding: 96px 20px; isolation: isolate; overflow: hidden; }
.together-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 72% 50%, var(--glow-vivid), transparent 72%), radial-gradient(50% 60% at 15% 80%, var(--glow2), transparent 70%); transition: background 900ms; }
.together .split { padding: 0 0; }
.cards { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.glass { width: min(380px, 100%); border-radius: 24px; padding: 28px; background: oklch(0.14 0.004 80 / 0.8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12); display: flex; flex-direction: column; gap: 22px; }
.glass.two { padding: 24px; gap: 18px; background: oklch(0.14 0.01 285 / 0.85); }
.avs { display: flex; align-items: center; }
.av { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.av.you { background: linear-gradient(150deg, oklch(0.95 0.04 205), oklch(0.7 0.12 238)); color: oklch(0.22 0.04 245); }
.av.her { margin-left: -10px; background: var(--c); box-shadow: 0 0 0 3px #1b1a19; }
.agreed { font-family: var(--serif); font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.bars { display: flex; gap: 6px; }
.bars i { flex: 1; height: 8px; border-radius: 4px; background: oklch(1 0 0 / 0.14); }
.bars i.y { background: var(--tone); }
.she { font-family: var(--serif); font-style: italic; font-size: 15px; color: oklch(0.78 0 0); }
.reader { display: flex; align-items: center; gap: 14px; }
.reader .av { flex: none; width: 48px; height: 48px; background: var(--tone); color: #050505; font-size: 18px; }
.reader span { display: flex; flex-direction: column; gap: 2px; }
.reader b { font-size: 19px; }
.reader small { font-size: 15px; color: oklch(0.76 0.01 285); }
.peek { cursor: pointer; border: 0; align-self: flex-start; position: relative; height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-radius: 999px; font-size: 16px; font-weight: 500; background: oklch(0.2 0.01 285); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14); }
.peek:hover { background: oklch(0.25 0.01 285); }
.peek:active { transform: scale(0.97); }
.peek.nudge { animation: nsHalo 2.4s ease-in-out infinite; }
.peek.nudge svg { animation: nsBlink 3.2s ease-in-out infinite; }
.peek .dotn { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px oklch(0.14 0.01 285); }
.peek .dotn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tone); animation: nsRing 1.6s ease-out infinite; }
.peek .tap { display: none; }
.shelf-more { display: flex; justify-content: center; padding: 4px 20px 0; }
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 480ms var(--ease); }
.reveal.open { grid-template-rows: 1fr; }
.reveal > div { overflow: hidden; min-height: 0; }
.reveal-in { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; opacity: 0; transform: translateY(-8px); transition: opacity 420ms 80ms, transform 480ms var(--ease); }
.reveal.open .reveal-in { opacity: 1; transform: none; }
.reveal-in span { font-size: 17px; }
.reveal-in strong { color: var(--tone); font-weight: 700; }
.reveal-in .agreed { font-weight: 600; line-height: 1.18; }
.reveal-in .agreed em { font-style: normal; color: var(--tone); }

/* Pricing, FAQ, final CTA, footer (closing) */
.closing { padding: 96px 20px 0; }
.closing .inner { max-width: 1180px; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 36px; }
.plan { position: relative; border-radius: 22px; padding: 28px 24px; background: #141312; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1); display: flex; flex-direction: column; gap: 16px; }
.plan.trial { box-shadow: inset 0 0 0 1.5px var(--tone); background: radial-gradient(110% 70% at 100% 0%, var(--glow), transparent 70%), #141312; }
.plan h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 small { font-size: 11px; letter-spacing: 0.08em; color: #050505; background: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.price { font-family: var(--serif); font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: oklch(0.72 0 0); margin-left: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; color: oklch(0.86 0.005 80); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); margin-top: 7px; }
.fine { margin-top: 18px; font-size: 14px; line-height: 1.55; color: oklch(0.74 0 0); max-width: 52em; }
.faq { max-width: 820px; margin: 96px auto 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid oklch(1 0 0 / 0.12); }
.faq details:last-child { border-bottom: 1px solid oklch(1 0 0 / 0.12); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 240ms var(--ease); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 40em; }
.final { position: relative; margin: 96px -20px 0; padding: 120px 20px; text-align: center; isolation: isolate; overflow: hidden; }
.final-bd { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 35%; opacity: 0.55; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #050505, oklch(0.05 0 0 / 0.55) 30%, oklch(0.05 0 0 / 0.55) 70%, #050505), radial-gradient(70% 60% at 50% 100%, var(--glow-vivid), transparent 70%); }
.final .in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final .lead { max-width: 28em; color: oklch(0.88 0.005 80); }
footer { max-width: 1180px; margin: 0 auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 28px; border-top: 1px solid oklch(1 0 0 / 0.1); font-size: 14px; line-height: 1.6; color: oklch(0.72 0 0); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer nav a { color: oklch(0.86 0 0); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }

/* Phones: the demo card fits one screen; a tapping hand replaces the dot on "See Anna's pick". */
@keyframes nsTap { 0%, 55%, 100% { transform: translate(0, 0) scale(1); } 65% { transform: translate(-3px, -3px) scale(0.86); } 75% { transform: translate(0, 0) scale(1); } }
@keyframes nsTapRing { 0%, 60% { transform: scale(0.3); opacity: 0; } 66% { opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 640px) {
  .demo { padding: 56px 0; }
  .demo-in { gap: 18px; padding: 0 16px; }
  .demo .h2 { font-size: 34px; }
  .demo .lead { font-size: 15px; line-height: 1.45; }
  .dlabel { margin-top: -6px; }
  .card { padding: 0 4px; }
  .card-img { height: 104px; }
  .card-body { padding: 0 18px 20px; margin-top: -22px; gap: 12px; }
  .chap { gap: 3px; }
  .chap em { font-size: 16px; }
  .prose { font-size: 15.5px; line-height: 1.5; }
  .choices { gap: 8px; }
  .choice { min-height: 46px; padding: 11px 16px; font-size: 16px; }
  .after { gap: 12px; }
  .peek .dotn { display: none; }
  .peek .tap { display: block; position: absolute; right: -14px; bottom: -18px; pointer-events: none; filter: drop-shadow(0 3px 6px oklch(0 0 0 / 0.5)); animation: nsTap 1.8s ease-in-out infinite; }
  .peek .tap::before { content: ""; position: absolute; left: 4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: oklch(1 0 0 / 0.55); animation: nsTapRing 1.8s ease-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 160ms !important; scroll-behavior: auto !important; }
  .bd i { animation: none !important; }
  .mq, .chips { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .track { animation: none !important; }
}
