/* =========================================================
   NubiNook website styles
   Colours live in :root. Change them here to restyle the site.
   ========================================================= */
:root {
  --ink: #1b1542;          /* deep night purple: dark sections (matches the app) */
  --ink-2: #261d58;
  --ink-3: #33296f;
  --paper: #fffcf8;        /* page background */
  --cream: #f8f1ea;
  --gold: #e8b54d;         /* moon + logo gold */
  --gold-soft: #f5d98f;
  --lavender: #a393e8;
  --pink: #f4b9d2;         /* app card pink */
  --text: #211a45;
  --text-muted: #5f5a80;
  --on-dark: #f1eefb;
  --on-dark-muted: #b3acd6;
  --line: #ebe1d8;
  --line-dark: rgba(255, 255, 255, .12);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 1.1em;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40em; }

.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.dark .kicker { color: var(--gold-soft); }

.ref {
  display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em;
  margin-left: .25em; vertical-align: super; font-size: .62em; font-weight: 700; line-height: 1;
  border-radius: 999px; text-decoration: none;
  background: rgba(157, 149, 230, .18); color: var(--lavender);
}
.ref:hover { background: var(--lavender); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; border: 0;
  font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-sm { padding: .6em 1.3em; font-size: .88rem; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 20px; }
.center-row { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 14px; text-decoration: none;
  background: #fff; color: var(--ink); min-width: 190px;
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; box-shadow: none; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.store-btn small { font-weight: 500; font-size: .7rem; letter-spacing: .02em; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background .25s, box-shadow .25s;
}
.header.scrolled { background: rgba(27, 21, 66, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.wordmark { font: 600 1.6rem var(--serif); letter-spacing: -.02em; }
.wordmark span { color: var(--gold); }
.menu { display: flex; gap: 32px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--on-dark-muted); transition: color .15s; }
.menu a:hover { color: #fff; }

/* ---------- hero ---------- */
/* The hero always fits exactly one screen (so it can be captured in a single screenshot) */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px 0 40px;
  background:
    radial-gradient(ellipse 45% 60% at 78% 50%, rgba(244, 185, 210, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(163, 147, 232, .18), transparent 70%),
    linear-gradient(180deg, #130f33 0%, var(--ink) 55%, var(--ink-2) 100%);
}
.hero::before { /* faint stars */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 88%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 22%, var(--gold-soft) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 95% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 45%, #fff 50%, transparent 51%);
}
.hero .container { position: relative; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, min(5.2vw, 8vh), 4.4rem); }
.hero-lead { font-size: clamp(1rem, 2.2vh, 1.2rem); color: var(--on-dark-muted); max-width: 34em; }
.hero .store-row { margin: clamp(20px, 4vh, 36px) 0 clamp(12px, 2.4vh, 20px); }
.hero-note { font-size: .88rem; color: var(--on-dark-muted); opacity: .8; margin: 0; }
.hero-art { display: flex; justify-content: center; }

/* phone frame showing the real app screen */
.phone {
  --h: min(calc(100svh - 170px), 660px);
  padding: 10px; border-radius: calc(var(--h) * .075);
  background: linear-gradient(145deg, #3a3263, #120e2b 60%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .12) inset,
    0 40px 90px rgba(0, 0, 0, .5),
    0 0 120px rgba(244, 185, 210, .22);
  transform: rotate(2deg);
}
.phone-screen {
  position: relative; height: var(--h); aspect-ratio: 591 / 1280; overflow: hidden;
  border-radius: calc(var(--h) * .062); background: #2d2570;
}
.phone-screen::before { /* camera island */
  content: ""; position: absolute; z-index: 2; top: 1.6%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.4%; border-radius: 999px; background: #0a0818;
}
.phone-screen img {
  width: 100%; height: auto;
  animation: app-scroll 14s ease-in-out infinite;
}
/* the stitched screen is 1628px tall; the phone shows 1280px → scroll by 348/1628 = 21.4% */
@keyframes app-scroll {
  0%, 22% { transform: translateY(0); }
  48%, 74% { transform: translateY(-21.4%); }
  100% { transform: translateY(0); }
}

/* ---------- stats band ---------- */
.stats { background: var(--cream); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 500 clamp(2.4rem, 3.6vw, 3.2rem) var(--serif); color: var(--ink); line-height: 1; margin-bottom: .35em; }
.stat p:last-child { color: var(--text-muted); font-size: .95rem; margin: 0; }
.stat strong { color: var(--text); }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section-cream { background: var(--cream); }
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-inline: auto; }

/* how it works */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.timeline li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.timeline li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--gold);
}
.t-num { display: block; font: 500 1rem var(--serif); color: var(--gold); margin-bottom: 14px; letter-spacing: .05em; }
.timeline p { color: var(--text-muted); margin: 0; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; }
.feature-list li { padding: 16px 0 16px 34px; position: relative; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 25px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(232, 181, 77, .18);
}
.feature-list strong { color: var(--on-dark); }

/* story sample */
.story-sample {
  position: relative; margin: 0; padding: 44px; border-radius: 28px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-dark); box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.sample-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-muted); margin-bottom: 20px; }
.story-sample blockquote { margin: 0 0 28px; font: italic 400 1.45rem/1.55 var(--serif); color: var(--on-dark); }
.sample-owl {
  position: absolute; top: -70px; right: 18px; width: 104px; height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4));
}
.hl { color: var(--ink); background: var(--pink); padding: 0 .3em; border-radius: 6px; font-style: normal; font-weight: 500; }
.hl-voice { color: var(--gold-soft); }
.story-sample figcaption { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-muted); }

/* benefits */
.group-title {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: 16px; margin: 0 0 24px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
.bgrid:last-child { margin-bottom: 0; }
.bcard {
  display: flex; flex-direction: column; padding: 34px 30px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.bcard:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(15, 20, 51, .08); }
.bcard-warm { background: var(--cream); }
.bnum { font: 500 1.9rem var(--serif); color: var(--gold); line-height: 1.1; margin-bottom: .6em; }
.bcard h4 { color: var(--ink); }
.bcard p { color: var(--text-muted); font-size: .97rem; }
.bcard p strong { color: var(--text); }
.src { margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .8rem !important; }

/* sound */
.split-rev > :first-child { order: 0; }
.evidence { display: grid; gap: 16px; }
.sound-owl { width: min(300px, 70%); height: auto; margin: 0 auto 4px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.ev { padding: 28px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.ev p { margin: 0; color: var(--on-dark-muted); }
.ev-num { font: 500 2.2rem var(--serif) !important; color: var(--gold-soft) !important; margin-bottom: 6px !important; line-height: 1.1; }
.ev-num span { font-size: 1.1rem; color: var(--on-dark-muted); }
.ev-tip { background: rgba(232, 181, 77, .1); border-color: rgba(232, 181, 77, .3); }
.ev-title { font-weight: 700; color: var(--gold-soft) !important; margin-bottom: 6px !important; }

/* library */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.cover {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover figcaption {
  position: relative; width: 100%; padding: 60px 24px 22px;
  font: 500 1.25rem var(--serif); color: #fff;
  background: linear-gradient(transparent, rgba(10, 13, 35, .8));
}
.c1 { background: linear-gradient(135deg, #3a3f8f, #9d95e6); }
.c2 { background: linear-gradient(135deg, #1f3b64, #5f8fc4); }
.c3 { background: linear-gradient(135deg, #2c5b63, #e8b54d); }
.shelves { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; }
.shelf h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.shelf p { color: var(--text-muted); }
.list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.list li { padding: 6px 0; color: var(--text-muted); break-inside: avoid; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--cream); font-size: .9rem; font-weight: 600; color: var(--text); }
.coming { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-muted); }
.coming span {
  display: inline-block; margin-right: 12px; padding: 3px 12px; border-radius: 999px;
  background: var(--ink); color: var(--gold-soft); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* privacy */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); color: var(--text-muted); }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--gold-soft); font-size: .8rem; font-weight: 700;
}
.checks strong { color: var(--text); }

/* faq */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px;
  font-weight: 700; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.6rem/1 var(--serif); color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-muted); margin: -8px 0 24px; max-width: 44em; }

/* download */
.download {
  padding: 130px 0; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(232, 181, 77, .18), transparent 70%), var(--ink);
}
.download-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.download h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.meet { margin: 0; }
.meet video {
  width: 100%; height: auto; aspect-ratio: 1; display: block; background: #0e0c2c;
  border-radius: 28px; border: 1px solid var(--line-dark);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 100px rgba(244, 185, 210, .15);
}
.meet figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--on-dark-muted); }

/* references */
.refs { background: var(--cream); padding: 72px 0; border-top: 1px solid var(--line); }
.refs-title { font-size: 1.4rem; margin-bottom: 24px; }
.ref-list { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 48px; font-size: .84rem; color: var(--text-muted); }
.ref-list li { margin-bottom: 10px; break-inside: avoid; scroll-margin-top: 100px; }
.ref-list li:target { color: var(--text); background: rgba(232, 181, 77, .2); border-radius: 6px; }
.ref-list a { color: var(--ink); font-weight: 600; }

/* footer */
.footer { padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-tag { color: var(--on-dark-muted); margin-top: 14px; }
.footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-grid a:not(.logo) { display: block; color: var(--on-dark-muted); text-decoration: none; padding: 4px 0; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: .85rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; }

/* legal pages */
.legal { padding-top: 170px; min-height: 70vh; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal p { color: var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .menu { display: none; }
  .header-inner .btn { margin-left: auto; }
  .split, .download-grid { grid-template-columns: 1fr; gap: 56px; }
  .meet { max-width: 460px; margin: 0 auto; width: 100%; }
  .sample-owl { width: 84px; top: -56px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .shelves { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; padding: 120px 0 80px; }
  .phone { --h: min(72svh, 600px); transform: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 116px 0 72px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .stats-grid, .timeline, .bgrid, .covers, .shelves { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding: 32px 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .story-sample { padding: 30px 24px; }
  .story-sample blockquote { font-size: 1.2rem; }
  .store-btn { flex: 1 1 100%; }
  .ref-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
