/* nook — site styles. Mirrors src/theme (cream paper, pastel inks, coral). */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #fffdf8;
  --sunk: #faf5ec;
  --paper: #ffffff;
  --kraft: #f3eadb;

  --ink: #202124;
  --ink-soft: #5c574f;
  --ink-faint: #9c9488;
  --line: #ece4d6;
  --line-strong: #dfd4c1;

  --powder: #cfe8ff;
  --butter: #ffe99a;
  --peach: #ffd8cc;
  --mint: #d5f3df;
  --lavender: #ddd5ff;
  --pink: #ffd8e8;
  --pistachio: #e3f0b8;

  --coral: #ff6f61;
  --coral-deep: #e85446;

  --shadow: 58, 49, 35;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* soft pastel washes + paper grain, like the marketing artboards */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(44% 30% at 6% -4%, rgba(255, 216, 204, 0.55), transparent 60%),
    radial-gradient(42% 28% at 104% -6%, rgba(207, 232, 255, 0.5), transparent 60%),
    radial-gradient(50% 30% at -8% 104%, rgba(213, 243, 223, 0.42), transparent 62%),
    radial-gradient(46% 28% at 106% 102%, rgba(221, 213, 255, 0.4), transparent 62%);
}
body::after {
  opacity: 0.35;
  background-image: radial-gradient(#dfd4c1 1.3px, transparent 1.4px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(82% 62% at 50% 12%, #000, transparent 84%);
  mask-image: radial-gradient(82% 62% at 50% 12%, #000, transparent 84%);
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- wordmark ---------- */
.wm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
}
.logo { display: block; width: auto; }
.logo-nav { height: 25px; }
.logo-footer { height: 30px; }
.logo-xl { height: clamp(46px, 8vw, 82px); }

/* ---------- pill navigation ---------- */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 16px;
  pointer-events: none;
}
.navpill {
  pointer-events: auto;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 10px 8px 24px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: saturate(190%) blur(20px);
  -webkit-backdrop-filter: saturate(190%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 14px 34px rgba(var(--shadow), 0.12),
    0 2px 8px rgba(var(--shadow), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.navpill .brand { justify-self: start; }
.navlinks {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
}
.navlinks a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color 0.18s ease;
}
.navlinks a:hover { color: var(--ink); }
.navpill .cta { justify-self: end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8174, var(--coral) 55%, var(--coral-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(232, 84, 70, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(0.3, 0.8, 0.4, 1), box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(232, 84, 70, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 16px rgba(var(--shadow), 0.07), inset 0 1px 0 #fff;
}
.btn-ghost:hover { background: var(--sunk); filter: none; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- app store buttons ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-row.center { justify-content: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 20px 9px 16px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(var(--shadow), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s cubic-bezier(0.3, 0.8, 0.4, 1), box-shadow 0.18s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(var(--shadow), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.store svg { width: 24px; height: 24px; flex: none; }
.store .st-text { display: flex; flex-direction: column; line-height: 1.12; }
.store .st-text small { font-size: 10.5px; opacity: 0.72; letter-spacing: 0.02em; }
.store .st-text strong { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.store.is-soon { background: transparent; color: var(--ink); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.store.is-soon:hover { transform: none; box-shadow: none; }
.store.is-soon .st-text small { opacity: 0.55; }

/* ---------- type ---------- */
.kicker {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 34px;
  color: var(--coral-deep);
  margin: 0 0 6px;
  transform: rotate(-3deg);
  display: inline-block;
}
h1, h2, h3 { font-family: 'Outfit', sans-serif; letter-spacing: -0.03em; line-height: 1.03; margin: 0; }
.display { font-size: clamp(42px, 6.6vw, 78px); font-weight: 800; }
h2.section-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); margin: 18px 0 0; max-width: 48ch; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(243, 234, 219, 0.7);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 46px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-faint); margin-top: 16px; }

/* app-store artboard displayed as a free-floating poster card */
.poster {
  position: relative;
  width: min(330px, 80vw);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 64px rgba(var(--shadow), 0.18),
    0 6px 18px rgba(var(--shadow), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.poster img { display: block; width: 100%; height: auto; }
.poster-tilt { transform: rotate(1.5deg); }
.poster-glow { position: relative; display: flex; justify-content: center; }
.poster-glow > .poster { position: relative; z-index: 1; }
.poster-glow::before {
  content: '';
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(50% 50% at 50% 42%, rgba(255, 216, 204, 0.75), rgba(207, 232, 255, 0.4) 55%, transparent 74%);
  filter: blur(12px);
  z-index: 0;
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.panel {
  background: linear-gradient(180deg, rgba(250, 245, 236, 0.9), rgba(250, 245, 236, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 16px;
  padding: 80px 0;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 34px rgba(var(--shadow), 0.07);
  transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.4, 1), box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 46px rgba(var(--shadow), 0.12); }
.card h3 { font-size: 21px; font-weight: 700; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.tile {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tile.powder { background: var(--powder); }
.tile.butter { background: var(--butter); }
.tile.peach { background: var(--peach); }
.tile.mint { background: var(--mint); }
.tile.lavender { background: var(--lavender); }
.tile.pink { background: var(--pink); }
.tile.pistachio { background: var(--pistachio); }

.card-pop { position: relative; overflow: hidden; }
.card-pop .chip {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 20px;
  transform: rotate(6deg);
}

/* gallery */
.shots-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.shots-row .poster { width: 100%; }

/* ticks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.ticks .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: #2e9c6a;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 3px;
}

/* ---------- legal pages ---------- */
.topbar { padding-top: 26px; }
.legal { padding: 32px 0 96px; }
.legal .container { max-width: 760px; }
.legal .back { font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; margin-bottom: 26px; color: var(--ink-soft); }
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin: 12px 0 42px; }
.legal h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 34px 0 8px; }
.legal p { margin: 0; color: var(--ink-soft); }
.legal a.inline { color: var(--coral-deep); font-weight: 600; }

/* ---------- support ---------- */
.support-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 17.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--coral); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { padding: 24px 16px 64px; }
.footer-inner {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 245, 236, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 52px 48px 34px;
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px rgba(var(--shadow), 0.07);
}
.footer-inner::before {
  content: '';
  position: absolute;
  inset: auto -12% -65% -12%;
  height: 300px;
  background:
    radial-gradient(45% 60% at 18% 100%, rgba(255, 216, 204, 0.6), transparent 70%),
    radial-gradient(45% 60% at 82% 100%, rgba(207, 232, 255, 0.5), transparent 70%);
  pointer-events: none;
}
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  gap: 36px 72px;
  align-items: start;
}
.footer-brand .wm { font-size: 30px; }
.footer-tag { color: var(--ink-soft); font-size: 15.5px; margin: 18px 0 0; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(110px, auto)); gap: 24px 60px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 {
  margin: 0 0 2px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-col a { width: fit-content; color: var(--ink-soft); font-size: 15px; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--coral-deep); }
.footer-bottom {
  position: relative;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
}
.footer .fine { font-size: 13.5px; color: var(--ink-faint); max-width: 62ch; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .shots-row { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-cols { gap: 24px 40px; }
}
@media (max-width: 720px) {
  .navpill { grid-template-columns: auto 1fr; padding-left: 20px; }
  .navlinks { display: none; }
  .navpill .cta { grid-column: 2; justify-self: end; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .shots-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section { padding: 58px 0; }
  .panel { padding: 60px 0; margin: 0 10px; }
  .hero { padding: 48px 0 28px; }
  .footer-inner { padding: 38px 26px 28px; }
  .footer-inner::before { inset: auto -20% -60% -20%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .footer-bottom { margin-top: 34px; }
  .footer .fine { font-size: 13px; }
}
