/* Luna website · "funky flat" from Sweetest Days (the source of the app's Night Flat tokens).
   Light: warm paper, navy ink, 2px outlines, hard offset shadows, tilted pink highlight boxes,
   polaroids, a navy marquee, a cyan band and a pink halftone band.
   Dark: the app's Night Flat sky. Navy text on pink / cyan / sun, never white. */

:root {
  --pink: #e5519f; --pink-soft: #ffd6ea;
  --cyan: #2fb8e6; --cyan-soft: #d4f2fc;
  --sun: #ffc93c;  --sun-soft: #fff0c2;
  --mint: #7ee0a8; --mint-soft: #d9f7e6;
  --navy: #14163a; --abyss: #04051a;

  --bg: #fff8ef;
  --bg-alt: #fff1df;
  --surface: #ffffff;
  --surface-2: #fff4e6;
  --ink: #14163a;
  --body: #2b2e55;
  --muted: #4a4f6e;
  --line: #14163a;
  --shadow: #14163a;
  --link: #b8326f;
  --ink-line: #14163a;
  --sky: #14163a;
  --sky-2: #1d2050;

  --bw: 2px;
  --sx: 5px; --sy: 5px;
  --hard: var(--sx) var(--sy) 0 var(--shadow);
  --hard-sm: 3px 3px 0 var(--shadow);
  --hard-lg: 8px 8px 0 var(--shadow);
  --r-sm: 14px; --r: 22px; --r-lg: 30px; --r-xl: 40px; --r-pill: 999px;
  --f-head: "Baloo 2", "Rubik", system-ui, sans-serif;
  --f-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t: 220ms; --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14163a; --bg-alt: #181a45; --surface: #1d2050; --surface-2: #2a2e68;
    --ink: #fff8ef; --body: #c9cbea; --muted: #9a9ed0; --line: #04051a; --shadow: #04051a;
    --link: #ff8cc6; --sky: #0c0e2c; --sky-2: #171a48; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14163a; --bg-alt: #181a45; --surface: #1d2050; --surface-2: #2a2e68;
  --ink: #fff8ef; --body: #c9cbea; --muted: #9a9ed0; --line: #04051a; --shadow: #04051a;
  --link: #ff8cc6; --sky: #0c0e2c; --sky-2: #171a48; color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 1.0625rem/1.65 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); font-weight: 800; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 100; background: var(--sun); color: var(--navy); padding: 8px 14px; border-radius: var(--r-sm); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(800px, 100% - 32px); }
.band { padding: clamp(52px, 7vw, 96px) 0; position: relative; }
.band + .band:not(.alt):not(.sky):not(.cyan-band) { padding-top: 0; }
.band.alt { background: var(--bg-alt); border-block: var(--bw) solid var(--line); }
.band.alt + .band, .cyan-band + .band, .halftone + .band, .marquee + .band { padding-top: clamp(52px, 7vw, 96px); }
.narrow-head { max-width: 760px; margin: 0 auto 36px; }

/* ── Signature pieces ─────────────────────────────────────────────── */
.hl {
  display: inline-block; padding: 0 .22em .06em; margin: .04em 0; color: var(--navy);
  background: var(--pink); border: var(--bw) solid var(--abyss); border-radius: .22em;
  box-shadow: 4px 4px 0 var(--abyss); transform: rotate(-2deg); line-height: 1.05;
}
.hl.cyan { background: var(--cyan); transform: rotate(1.5deg); }
.hl.sun { background: var(--sun); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font: 700 .85rem/1 var(--f-body); color: var(--ink);
  padding: .5em .95em; border: var(--bw) solid var(--line); border-radius: var(--r-pill); background: var(--surface);
}
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; max-width: 820px; }
.section-head.center { justify-content: center; text-align: center; }
.head-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--pink); padding-bottom: 2px; }
.head-link:hover { color: var(--link); }

.doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.doodles svg { position: absolute; }
.d-star { inset-inline-start: 4%; top: 18%; transform: rotate(-12deg); }
.d-squiggle { inset-inline-start: 46%; bottom: 8%; }
.d-ring { inset-inline-end: 6%; top: 10%; }

/* ── Buttons, chips, cards ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.05rem/1 var(--f-head); color: var(--navy); text-decoration: none;
  padding: .85em 1.35em; border: var(--bw) solid var(--abyss); border-radius: var(--r-pill);
  background: var(--sun); box-shadow: 4px 4px 0 var(--abyss); cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--abyss); text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--abyss); }
.btn.pink { background: var(--pink); }
.btn.cyan { background: var(--cyan); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--hard-sm); }
.btn.sm { font-size: .92rem; padding: .62em 1.05em; box-shadow: 3px 3px 0 var(--abyss); }
.btn.lg { font-size: 1.2rem; padding: 1em 1.7em; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; padding: .5em 0; }
.round-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--hard-sm); cursor: pointer; flex: none; }
.round-btn.sm { width: 38px; height: 38px; box-shadow: none; }
.round-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.flip { display: inline-grid; transform: scaleX(-1); }

.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--hard); padding: clamp(18px, 3vw, 30px); }

.chip { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25em .75em; border-radius: var(--r-pill); border: var(--bw) solid var(--abyss); color: var(--navy); background: var(--sun); }
.chip.video { background: var(--pink); } .chip.reading { background: var(--sun); } .chip.sleep { background: var(--cyan); } .chip.screens { background: var(--mint); }
.mini-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2em .65em; border-radius: var(--r-pill); border: 1.5px solid var(--abyss); background: var(--cyan-soft); color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.chips.center { justify-content: center; }
.chip-link { font: 700 .98rem/1 var(--f-head); color: var(--navy); text-decoration: none; padding: .72em 1.1em; border: var(--bw) solid var(--abyss); border-radius: var(--r-pill); box-shadow: 3px 3px 0 var(--abyss); background: var(--sun); transition: transform var(--t) var(--ease); }
.chip-link:hover { transform: translate(-1px, -2px); text-decoration: none; }
.chip-link.pink { background: var(--pink); } .chip-link.cyan { background: var(--cyan); } .chip-link.mint { background: var(--mint); }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--bw) solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.65rem/1 var(--f-head); color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.nav-desktop { display: none; margin-inline-start: auto; align-items: center; gap: 2px; }
.nav-desktop > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5em .85em; border-radius: var(--r-pill); }
.nav-desktop > a:not(.btn):hover, .nav-desktop > a[aria-current] { background: var(--surface-2); }
.nav-desktop .btn { margin-inline-start: 8px; }
.nav-mobile { margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.menu[open] summary { background: var(--sun); }
.menu[open] summary span { background: var(--navy); }
.menu-items { position: absolute; inset-inline: 16px; top: 78px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--hard); padding: 12px; }
.menu-items a:not(.btn) { color: var(--ink); text-decoration: none; padding: .75em .95em; border-radius: var(--r-sm); font-weight: 600; }
.menu-items a:not(.btn):hover { background: var(--surface-2); }
.menu-items .btn { margin-top: 6px; }
.theme-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.topbar .get { display: none; }
@media (min-width: 980px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } .topbar .get { display: inline-flex; } }
.logo { flex: none; display: block; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(52px, 8vw, 100px); border-bottom: var(--bw) solid var(--line); background: var(--bg); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 920px) {
  .hero.with-art .hero-grid, .home-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .story-hero .hero-grid { grid-template-columns: 1.15fr .85fr; }
}
.home-hero .hero-grid { align-items: start; }
.home-hero .hero-art { position: sticky; top: 110px; }
.hero-copy { max-width: 780px; min-width: 0; }
.hero h1 small { display: block; font-size: .42em; font-weight: 600; color: var(--muted); margin-top: .5em; letter-spacing: 0; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.6; color: var(--body); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-quiz { margin-top: 28px; }
.byline { font-size: .92rem; color: var(--muted); margin-top: 20px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs > * + *::before { content: "›"; margin-inline-end: 6px; opacity: .7; }

/* Polaroids */
.polaroids { position: relative; width: min(470px, 92vw); aspect-ratio: 1 / .95; }
.polaroid { position: absolute; display: block; background: #fff; padding: 10px 10px 28px; border: var(--bw) solid var(--abyss); border-radius: 18px; box-shadow: 7px 7px 0 var(--abyss); transition: transform var(--t) var(--spring); }
.polaroid img { border-radius: 10px; border: var(--bw) solid var(--abyss); width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid.p0 { width: 62%; inset-inline-start: 0; top: 4%; transform: rotate(-5deg); z-index: 2; }
.polaroid.p1 { width: 42%; inset-inline-end: 2%; top: 0; transform: rotate(6deg); z-index: 1; }
.polaroid.p2 { width: 46%; inset-inline-end: 0; bottom: 0; transform: rotate(-3deg); z-index: 3; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 4; }
.badge { position: absolute; z-index: 5; inset-inline-start: 46%; bottom: 14%; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--cyan); color: var(--navy); border: var(--bw) solid var(--abyss); box-shadow: 4px 4px 0 var(--abyss); font: 700 .9rem/1.1 var(--f-body); transform: rotate(-8deg); }
.badge strong { display: block; font: 800 2.1rem/1 var(--f-head); color: var(--navy); }
.p-star { position: absolute; z-index: 5; inset-inline-start: -2%; bottom: 10%; transform: rotate(14deg); }
.story-cover { width: min(420px, 82vw); background: #fff; padding: 12px 12px 34px; border: var(--bw) solid var(--abyss); border-radius: 20px; box-shadow: 8px 8px 0 var(--abyss); transform: rotate(2.5deg); }

/* Marquee */
.marquee { background: var(--navy); border-block: var(--bw) solid var(--abyss); transform: rotate(-1.6deg); margin: 34px -20px; overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; }
.marquee a { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; color: #fff8ef; font: 700 1.2rem/1 var(--f-head); text-decoration: none; white-space: nowrap; }
.marquee a:hover { color: var(--sun); }
.m-star { color: var(--pink); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Halftone band */
.halftone { position: relative; border-block: var(--bw) solid var(--abyss); background: var(--pink); overflow: hidden; padding: clamp(70px, 12vw, 150px) 0; }
.halftone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; opacity: .85; }
.halftone::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #04051a55 1px, transparent 1.6px) 0 0 / 5px 5px; pointer-events: none; }
.halftone .wrap { position: relative; z-index: 1; display: flex; justify-content: center; }
.speech { background: var(--bg); border: var(--bw) solid var(--abyss); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--abyss); padding: clamp(22px, 4vw, 40px) clamp(24px, 5vw, 52px); max-width: 640px; }
.speech p { margin: 0; font: 800 clamp(1.8rem, 4.6vw, 3rem)/1.15 var(--f-head); color: var(--ink); }

/* ── Store buttons ────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 186px; padding: 10px 18px; border: var(--bw) solid var(--abyss); border-radius: var(--r-sm); background: var(--navy); color: #fff8ef; text-decoration: none; box-shadow: 4px 4px 0 var(--pink); font: 700 1.15rem/1.1 var(--f-head); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.store small { display: block; font: 400 .72rem/1.2 var(--f-body); opacity: .85; }
.store:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pink); text-decoration: none; }
.store:active { transform: translate(4px, 4px); box-shadow: none; }
.store.soon { opacity: .7; box-shadow: none; cursor: default; background: transparent; color: var(--ink); border-style: dashed; border-color: currentColor; }
.sky .store.soon { color: #fff8ef; }
.store.soon:hover { transform: none; }

/* ── Content blocks ───────────────────────────────────────────────── */
.answer { font-size: 1.12rem; color: var(--ink); border-inline-start: 5px solid var(--pink); padding: .2em 0 .2em 1em; margin: 0 0 1.4em; max-width: 860px; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li::marker, .prose ol li::marker { color: var(--pink); font-weight: 700; }
.prose figure, .pull { margin: 2em 0; }
.pull blockquote { margin: 0; font: 700 clamp(1.25rem, 2.6vw, 1.65rem)/1.35 var(--f-head); color: var(--navy); background: var(--sun); border: var(--bw) solid var(--abyss); border-radius: var(--r); box-shadow: 6px 6px 0 var(--abyss); padding: 24px 28px; transform: rotate(-.8deg); }
.pull figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.story-quote { margin: 1.2em 0; padding: 18px 22px; border: var(--bw) solid var(--line); background: var(--surface); border-radius: var(--r); box-shadow: var(--hard-sm); font: 600 1.25rem/1.5 var(--f-head); color: var(--ink); }

.checks, .crosses { list-style: none; padding: 0; }
.checks li, .crosses li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .7em; }
.checks li > svg { flex: none; margin-top: 4px; color: var(--navy); background: var(--mint); border: var(--bw) solid var(--abyss); border-radius: 50%; padding: 2px; width: 24px; height: 24px; }
.crosses li > svg { flex: none; margin-top: 4px; color: var(--navy); background: var(--pink); border: var(--bw) solid var(--abyss); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.checks li:not(:has(svg))::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-weight: 700; color: var(--navy); background: var(--mint); border: var(--bw) solid var(--abyss); border-radius: 50%; font-size: .8rem; margin-top: 2px; }

.toc { margin-bottom: 48px; }
.toc-title { font: 700 1.1rem var(--f-head); color: var(--ink); margin-bottom: .4em; }
.toc ol { columns: 2 240px; margin: 0; }
.toc a { color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 1.5em 0; }
.stat strong { display: block; font: 800 2.6rem/1 var(--f-head); color: var(--pink); margin-bottom: 6px; }

.split { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr 1fr; } }
.big-stat { background: var(--pink); color: var(--navy); border: var(--bw) solid var(--abyss); border-radius: var(--r-lg); box-shadow: 7px 7px 0 var(--abyss); padding: clamp(22px, 4vw, 40px); }
.big-stat .crosses li > svg { background: var(--bg); }
.big-stat li span, .big-stat p { color: var(--navy); }
.outline-num { display: block; font: 800 clamp(5rem, 14vw, 8.5rem)/.9 var(--f-head); color: #fff8ef; -webkit-text-stroke: 3px var(--abyss); text-shadow: 6px 6px 0 var(--abyss); }
.big-stat-title { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--f-head); margin: .2em 0 .8em; }

/* Findings: colored cards with big numerals */
.finding-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.finding { position: relative; border: var(--bw) solid var(--abyss); border-radius: var(--r); box-shadow: var(--hard); padding: 24px; color: var(--navy); }
.finding .num { position: absolute; top: 16px; inset-inline-end: 18px; font: 700 .85rem var(--f-body); opacity: .7; }
.finding strong { display: block; font: 800 2.3rem/1.05 var(--f-head); color: inherit; margin: 6px 0 10px; }
.finding p { color: inherit; }
.finding.pink { background: var(--pink); } .finding.cyan { background: var(--cyan); } .finding.white { background: #fff; }
.finding.navy { background: var(--navy); color: #fff8ef; }
.finding .cite { color: inherit; }

/* Steps on the cyan band */
.cyan-band { background: var(--cyan); border-block: var(--bw) solid var(--abyss); }
.cyan-band h2, .cyan-band .pill { color: var(--navy); }
.cyan-band .pill { background: #fff; border-color: var(--abyss); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { margin: 0; background: #fff; color: #2b2e55; border: var(--bw) solid var(--abyss); border-radius: var(--r); box-shadow: 6px 6px 0 var(--abyss); padding: 22px; }
.steps li:nth-child(2n) { transform: translateY(18px); }
.steps h3 { color: var(--navy); }
.step-n { display: block; font: 800 3.4rem/1 var(--f-head); color: var(--pink); -webkit-text-stroke: 2px var(--abyss); margin-bottom: 10px; }
.video-frame { margin: 0; border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hard-lg); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-more { margin: 18px 0 0; text-align: center; color: var(--muted); }

/* Theme cards: colored top, illustration below */
.theme-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.theme-card { display: flex; flex-direction: column; overflow: hidden; border: var(--bw) solid var(--abyss); border-radius: var(--r); box-shadow: var(--hard); text-decoration: none; color: var(--navy); background: #fff; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.theme-card:hover { transform: translate(-2px, -3px); box-shadow: var(--hard-lg); text-decoration: none; }
.theme-top { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 22px; flex: 1; min-height: 170px; }
.theme-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.theme-row .num { font: 700 .85rem var(--f-body); }
.theme-row .round-btn { background: #fff; border-color: var(--abyss); color: var(--navy); }
.theme-name { font: 800 1.7rem/1.05 var(--f-head); }
.theme-sub { font-size: .95rem; }
.theme-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-top: var(--bw) solid var(--abyss); }
.theme-card.t0 .theme-top { background: var(--pink); }
.theme-card.t1 .theme-top { background: var(--cyan); }
.theme-card.t2 .theme-top { background: #fff; }
.theme-card.t3 .theme-top { background: var(--navy); color: #fff8ef; }

.aud-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.aud { text-decoration: none; color: var(--navy); border-color: var(--abyss); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.aud h3, .aud p, .aud .more { color: var(--navy); }
.aud:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-lg); text-decoration: none; }
.aud.pink { background: var(--pink-soft); } .aud.cyan { background: var(--cyan-soft); } .aud.sun { background: var(--sun-soft); } .aud.mint { background: var(--mint-soft); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }

/* ── Stories ──────────────────────────────────────────────────────── */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; margin: 8px 0 24px; }
@media (min-width: 700px) { .story-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); } }
.story-grid.three { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.story-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.story-card:hover { transform: translate(-2px, -3px); box-shadow: var(--hard-lg); text-decoration: none; }
.story-card .cover { position: relative; display: block; border-bottom: var(--bw) solid var(--line); background: var(--surface-2); }
.story-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.story-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.story-kicker { font-size: .78rem; font-weight: 700; color: var(--link); }
.story-title { font: 700 1.1rem/1.2 var(--f-head); }
.story-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--muted); }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; font: 700 .75rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: .45em .7em; border-radius: var(--r-pill); border: var(--bw) solid var(--abyss); color: var(--navy); }
.tag.free { background: var(--mint); }

.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 10px 18px 4px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; margin-top: 6px; }

.coll-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.coll { text-decoration: none; color: var(--navy); border-color: var(--abyss); transition: transform var(--t) var(--ease); }
.coll h3, .coll p { color: var(--navy); margin-bottom: 2px; }
.coll:hover { transform: translate(-2px, -2px); text-decoration: none; }
.coll.pink { background: var(--pink); } .coll.cyan { background: var(--cyan); } .coll.sun { background: var(--sun); } .coll.mint { background: var(--mint); }
.coll-covers { display: flex; margin-bottom: 14px; }
.coll-covers img { width: 64px; height: 64px; border-radius: 50%; border: var(--bw) solid var(--abyss); object-fit: cover; background: #fff; }
.coll-covers img + img { margin-inline-start: -14px; }

.facts-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.facts-row li { margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--line); padding: .35em .85em; border-radius: var(--r-pill); }
.facts-row li:first-child { background: var(--sun); color: var(--navy); border-color: var(--abyss); }

.name-box { margin-bottom: 40px; background: var(--sun); border-color: var(--abyss); box-shadow: 6px 6px 0 var(--abyss); }
.name-box label { display: block; font: 800 1.35rem var(--f-head); color: var(--navy); margin-bottom: 10px; }
.name-box .small { color: #3d4166; margin: 10px 0 0; }
.name-row input { width: 100%; max-width: 360px; font: 600 1.15rem var(--f-body); padding: .7em 1em; border: var(--bw) solid var(--abyss); border-radius: var(--r-sm); background: #fff; color: var(--navy); }
.hero-name { background: var(--pink-soft); color: var(--navy); border-radius: 6px; padding: 0 .2em; font-weight: 700; }

.book { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hard-lg); padding: clamp(22px, 5vw, 48px); font: 400 clamp(1.15rem, 2.2vw, 1.3rem)/1.75 var(--f-body); color: var(--ink); position: relative; overflow: hidden; }
.book h2 { font-size: 1.5rem; margin-bottom: 1em; }
.book p { margin-bottom: 1em; }
.book-img { margin: 1.4em 0; }
.book-img img { width: 100%; border-radius: var(--r); border: var(--bw) solid var(--line); }
.book.excerpt { padding-bottom: 110px; }
.book.excerpt::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--surface) 75%); pointer-events: none; }
.the-end { text-align: center; font: 800 1.8rem var(--f-head); color: var(--pink); margin-top: 1.5em; }
.continue { margin-top: -40px; position: relative; text-align: center; background: var(--cyan); border-color: var(--abyss); box-shadow: 6px 6px 0 var(--abyss); }
.continue p, .continue .inline-cta-title { color: var(--navy); }
.continue .stores { justify-content: center; }
.continue .store.soon { color: var(--navy); }
.inline-cta-title { font: 800 1.4rem/1.2 var(--f-head); color: var(--ink); margin-bottom: .3em; }

.short-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.short-list li { display: flex; gap: 18px; align-items: flex-start; margin: 0; }
.short-list img { width: 84px; height: 84px; border-radius: 16px; border: var(--bw) solid var(--line); flex: none; }
.short-list h3 { margin-bottom: .25em; font-size: 1.2rem; }
.short-list p { margin-bottom: .3em; }

/* ── Tables ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--hard); background: var(--surface); margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { text-align: start; padding: 14px 18px 0; font-size: .88rem; color: var(--muted); caption-side: top; }
th, td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1.5px solid color-mix(in srgb, var(--line) 16%, transparent); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 700 1.02rem/1.2 var(--f-head); color: var(--ink); background: var(--surface-2); }
thead th small { display: block; font: 400 .8rem var(--f-body); color: var(--muted); margin-top: 3px; }
tbody th { color: var(--ink); font-weight: 700; }
.compare { min-width: 720px; }
.compare .col-story { background: var(--pink); color: var(--navy); }
.compare .col-story small { color: var(--navy); }
.compare td.yes { background: color-mix(in srgb, var(--mint) 18%, transparent); }
.compare td .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--abyss); color: var(--navy); margin-inline-end: 8px; vertical-align: -5px; }
.compare td.yes .mark { background: var(--mint); }
.compare td.no .mark { background: var(--pink); }
.compare td.mid .mark { background: var(--sun); }
.compare .mark svg { width: 13px; height: 13px; }
.compare .dot { width: 8px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.simple td svg { vertical-align: -3px; color: var(--mint); }
.facts-table th { width: 32%; }

/* ── Research ─────────────────────────────────────────────────────── */
.cite { font-size: .86em; font-weight: 600; white-space: nowrap; color: var(--link); text-decoration-style: dotted; }
.study-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.study h3 { font-size: 1.15rem; line-height: 1.3; }
.study h3 a { color: var(--ink); }
.study-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.study-source { font-size: .9rem; color: var(--muted); font-style: italic; margin-top: -.3em; }
.study .limits { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: .95rem; margin: 0; }
.study:target { outline: 4px solid var(--sun); outline-offset: 4px; }
.takeaways li { margin-bottom: .7em; }
.note { margin-top: 32px; }
.sources { margin-top: 48px; padding-top: 24px; border-top: var(--bw) dashed color-mix(in srgb, var(--line) 40%, transparent); font-size: .92rem; }
.sources h2 { font-size: 1.3rem; }
.sources li { margin-bottom: .6em; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { margin-top: 56px; }
.faq details { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--hard-sm); margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 58px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; font: 800 1.2rem var(--f-head); color: var(--navy); background: var(--sun); border: var(--bw) solid var(--abyss); border-radius: 50%; }
.faq details[open] summary::after { content: "–"; background: var(--pink); }
.faq summary h3 { font-size: 1.12rem; margin: 0; }
.faq-a { padding: 0 20px 6px; }

/* ── CTAs ─────────────────────────────────────────────────────────── */
.sky { --ink: #fff8ef; --body: #d4d6f2; --muted: #a9addb; --link: #ffc93c; --line: #04051a; --shadow: #04051a; --surface: #1d2050; --surface-2: #2a2e68; background: radial-gradient(120% 90% at 85% 0%, var(--sky-2) 0%, var(--sky) 60%); color: var(--body); position: relative; overflow: hidden; }
.sky .wrap { position: relative; z-index: 1; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; border-radius: 50%; background: #fff8ef; opacity: .5; }
.cta-band { border-top: var(--bw) solid var(--abyss); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-band .store { box-shadow: 4px 4px 0 var(--sun); }
.cta-char { width: 150px; margin: 0 auto 10px; filter: drop-shadow(4px 4px 0 var(--abyss)); }
.inline-cta { display: grid; gap: 10px; align-items: center; margin: 40px 0; background: var(--cyan); border-color: var(--abyss); }
.inline-cta p, .inline-cta .inline-cta-title { color: var(--navy); }
.inline-cta .store.soon { color: var(--navy); }
.quiz-teaser { background: var(--pink); }
.quiz-teaser .btn.pink { background: var(--sun); }
@media (min-width: 760px) { .inline-cta { grid-template-columns: 1.4fr auto; gap: 28px; } .inline-cta .stores { margin: 0; flex-direction: column; } }
.copy-box pre { white-space: pre-wrap; font: 400 .95rem/1.6 var(--f-body); color: var(--body); margin: 0 0 14px; }

.guide-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide { text-decoration: none; color: var(--body); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.guide:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-lg); text-decoration: none; }
.guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: var(--bw) solid var(--line); margin-bottom: 14px; }

.steps-list li, .nights li { margin-bottom: .8em; }
.facts { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0 0 40px; }
.facts dt { font: 700 1rem var(--f-head); color: var(--ink); margin-top: 10px; }
.facts dd { margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 180px 1fr; } .facts dt { margin-top: 0; } .facts dt, .facts dd { padding: 8px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--line) 12%, transparent); } }

/* ── Quiz ─────────────────────────────────────────────────────────── */
.quiz { scroll-margin-top: 96px; border-radius: var(--r-lg); box-shadow: 7px 7px 0 var(--shadow); }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { padding: 0; }
.quiz h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.quiz-kicker { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .6em; }
.quiz-progress { height: 10px; border: var(--bw) solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.quiz-progress span { display: block; height: 100%; background: var(--pink); transition: width var(--t) var(--ease); }
.quiz-opts { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 560px) { .quiz-opts { grid-template-columns: 1fr 1fr; } }
.opt { text-align: start; font: 600 1.02rem/1.35 var(--f-body); color: var(--ink); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; transition: transform var(--t) var(--ease), background var(--t), box-shadow var(--t); }
.opt:hover { background: var(--sun-soft); color: var(--navy); box-shadow: var(--hard-sm); transform: translate(-1px, -1px); }
.opt.on { background: var(--sun); color: var(--navy); }
.opt:active { transform: translate(2px, 2px); box-shadow: none; }
.score-row { display: grid; gap: 22px; align-items: center; margin-bottom: 18px; }
@media (min-width: 640px) { .score-row { grid-template-columns: auto 1fr; } }
.score { --c: var(--sun); width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: var(--bw) solid var(--abyss); box-shadow: var(--hard); background: radial-gradient(closest-side, var(--surface) 72%, transparent 73%), conic-gradient(var(--c) var(--pct), var(--surface-2) 0); }
.score.pink { --c: var(--pink); } .score.mint { --c: var(--mint); }
.score strong { font: 800 2.8rem/1 var(--f-head); }
.score span { font-size: .85rem; color: var(--muted); }
.result-h { margin-top: 30px; }
.tips { padding-inline-start: 1.2em; }
.tips li { margin-bottom: 1.2em; }
.tips h4 { margin-bottom: .2em; }
.tip-cite { font-size: .88rem; color: var(--muted); }
.result-cta { background: var(--cyan); border: var(--bw) solid var(--abyss); border-radius: var(--r); box-shadow: 5px 5px 0 var(--abyss); padding: 22px; margin-top: 26px; }
.result-cta h3, .result-cta p { color: var(--navy); }
.result-cta .store.soon { color: var(--navy); }
.result-actions { display: flex; gap: 18px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { --ink: #fff8ef; --body: #c9cbea; --muted: #9a9ed0; background: var(--navy); color: var(--body); border-top: var(--bw) solid var(--abyss); padding: 60px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer h2 { font-size: 1.05rem; margin: 0 0 .6em; color: var(--sun); }
.footer ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.footer li { margin-bottom: .4em; }
.footer a:not(.brand) { color: var(--body); }
.footer .brand { margin-bottom: 12px; }
.footer-base { margin-top: 24px; padding-top: 18px; border-top: 1.5px solid #ffffff22; font-size: .85rem; color: var(--muted); }

/* ── Dark-mode touches ────────────────────────────────────────────── */
:root[data-theme="dark"] .polaroid, :root[data-theme="dark"] .story-cover { background: #fff8ef; }
:root[data-theme="dark"] .hero { background: radial-gradient(110% 80% at 85% 0%, var(--sky-2), var(--bg) 65%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { background: radial-gradient(110% 80% at 85% 0%, var(--sky-2), var(--bg) 65%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition-duration: 1ms !important; }
}

/* Fixes after review */
.finding .cite, .card .cite { white-space: normal; }
.d-squiggle { inset-inline-start: auto; inset-inline-end: 12%; bottom: 5%; }
@media (max-width: 919px) { .d-squiggle { display: none; } .home-hero .hero-art { position: relative; top: 0; } }

html, body { overflow-x: clip; }

/* Free sample card (the one story readable on the site) */
.sample { display: grid; gap: 20px; align-items: center; text-decoration: none; color: var(--navy); background: var(--sun); border-color: var(--abyss); margin: 8px 0 36px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.sample:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-lg); text-decoration: none; }
.sample img { width: 100%; max-width: 220px; border: var(--bw) solid var(--abyss); border-radius: var(--r); transform: rotate(-3deg); background: #fff; }
.sample > span { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sample .pill { margin: 0; background: #fff; border-color: var(--abyss); color: var(--navy); }
.sample-title { font: 800 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--f-head); }
.sample-text { color: var(--navy); }
.sample .more { color: var(--navy); }
@media (min-width: 640px) { .sample { grid-template-columns: 220px 1fr; gap: 32px; } }
.preview-img { margin: 0 0 8px; }
.preview-img + .continue { margin-top: -20px; }

/* Study topics */
.chip.pictures { background: var(--pink); } .chip.routine { background: var(--cyan); }

/* Story quiz result: always a story match */
.result-title { font-size: clamp(2rem, 5vw, 2.8rem); }
.result-title::after { content: " ✦"; color: var(--pink); }
.result-lede { font-size: 1.12rem; color: var(--ink); }
.match { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; text-decoration: none; color: var(--navy); background: var(--sun); border-color: var(--abyss); box-shadow: 6px 6px 0 var(--abyss); margin: 18px 0 10px; padding: 16px; transition: transform var(--t) var(--ease); }
.match:hover { transform: translate(-2px, -2px); text-decoration: none; }
.match img { width: 110px; border-radius: 14px; border: var(--bw) solid var(--abyss); transform: rotate(-4deg); background: #fff; }
.match > span { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.match .pill { margin: 0; background: #fff; color: var(--navy); border-color: var(--abyss); }
.match-title { font: 800 clamp(1.4rem, 3.4vw, 1.9rem)/1.1 var(--f-head); }
.match-meta { font-size: .92rem; }
@media (min-width: 560px) { .match { grid-template-columns: 150px 1fr; } .match img { width: 150px; } }

/* Legal pages */
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal li { margin-bottom: .6em; }
