:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #141821;
  --muted: #5b6474;
  --border: rgba(20, 24, 33, 0.09);
  --accent: #1e7bf0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1018;
    --card: #121a29;
    --text: #eef2f8;
    --muted: #a3adbf;
    --border: rgba(96, 165, 250, 0.2);
    --accent: #5aa6ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 40px 22px 72px; }
header.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
header.brand img { width: 44px; height: 44px; border-radius: 11px; }
header.brand a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
.updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 8px; }
p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--accent); }
.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 0 0 8px;
}
.summary ul { margin: 6px 0 0; }
.summary li { margin: 4px 0; }
nav.links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
nav.links a { color: var(--muted); }
.cards { display: grid; gap: 14px; margin-top: 24px; }
.cards a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.cards a span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ===================== Landing page (body.landing) ======================
   Commits to the app's premium navy look in every theme. */
body.landing {
  --l-bg: #0a1018;
  --l-card: #121a29;
  --l-text: #eef2f8;
  --l-muted: #a3adbf;
  --l-border: rgba(96, 165, 250, 0.18);
  --l-accent: #5aa6ff;
  --l-warm: #ff7a1a;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(20, 140, 255, 0.24), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(255, 122, 26, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 50% 62%, rgba(124, 92, 255, 0.07), transparent 60%),
    var(--l-bg);
  color: var(--l-text);
  color-scheme: dark;
  overflow-x: hidden;
}
.landing a { color: var(--l-accent); }
.landing h1, .landing h2, .landing h3, .landing p, .landing li { color: var(--l-text); }
.hero h1 .grad { white-space: nowrap; }
.grad {
  background: linear-gradient(92deg, #7cc2ff 0%, #5aa6ff 35%, #b48cff 70%, #ff9a5a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 800; color: var(--l-accent) !important; margin: 0 0 14px; }

/* nav */
/* solid (no backdrop blur): a blurred sticky bar re-blurs the page on every scroll frame */
.nav { position: sticky; top: 0; z-index: 50; background: #0b111a; border-bottom: 1px solid rgba(96, 165, 250, 0.1); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--l-text) !important; text-decoration: none; }
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--l-muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--l-text); }

/* hero */
.hero { max-width: 1180px; margin: 0 auto; padding: 56px 24px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.9vw, 74px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 22px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--l-muted) !important; margin: 0 0 30px; max-width: 32em; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 15px; border-radius: 15px; background: #fff; color: #0a1018; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 18px; line-height: 1.1; }
.store-btn small { font-size: 11px; font-weight: 600; opacity: 0.65; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 9px; border-radius: 999px; color: var(--l-text) !important; font-weight: 700; font-size: 14.5px;
  background: rgba(90, 166, 255, 0.1); border: 1px solid rgba(96, 165, 250, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.hero-points li::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #5aa6ff, #b48cff); }
.hero-art { position: relative; }
.hero-glow { position: absolute; inset: 14% 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 166, 255, 0.45), rgba(180, 140, 255, 0.18), transparent); filter: blur(30px); }
/* pre-rendered art (tools/site/prerender.mjs): a frame of absolutely placed WebP layers */
.art-stage > img { position: absolute; height: auto; display: block; }
.hero-puzzle { position: relative; width: 100%; }
.hero-puzzle > img[class^="fl"] { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  /* the missing pieces drift gently; the one over its hole bobs closest */
  .hero-puzzle .fl1 { animation: float 5s ease-in-out infinite; }
  .hero-puzzle .fl2 { animation: float 7s ease-in-out -1.5s infinite; }
  .hero-puzzle .fl3 { animation: float 6.2s ease-in-out -3s infinite; }
  .hero-puzzle .fl4 { animation: float 7.6s ease-in-out -4.5s infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--bob, -3%)); } }
  /* scroll reveal only when JS is running (html.js) — content is visible by default */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  /* hero animates in on load (pure CSS, no JS needed) */
  .hero-in { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-in-2 { animation-delay: .15s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* shared section heads */
.gallery-section, .play, .extras, .plus, .split { max-width: 1180px; margin: 0 auto; padding: 84px 24px 20px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.landing h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; }
.section-lede { color: var(--l-muted) !important; font-size: 18px; line-height: 1.6; margin: 0; }

/* gallery (kept) */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--l-border); display: block; transition: transform .3s ease, box-shadow .3s ease; }
.gallery img:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }

/* your memories — the emotional feature, in warm golden light */
.memories { max-width: 1180px; margin: 0 auto; padding: 84px 24px 20px; }
.mem-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; border-radius: 34px; padding: clamp(28px, 4.5vw, 56px);
  background:
    radial-gradient(620px 420px at 22% 40%, rgba(255, 170, 80, 0.26), transparent 70%),
    radial-gradient(520px 360px at 100% 100%, rgba(255, 110, 140, 0.14), transparent 70%),
    linear-gradient(150deg, #2a1d17, #18131a 55%, #121521);
  border: 1px solid rgba(255, 190, 120, 0.28); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35); }
.mem-art { position: relative; aspect-ratio: 1; }
.mem-print { position: absolute; width: 52%; left: -2%; top: 0; transform: rotate(-8deg); background: #fbf7f0; padding: 3.2% 3.2% 11%; border-radius: 6px; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5); }
.mem-print img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.mem-puzzle { position: absolute; width: 96%; right: -8%; bottom: -10%; transform: rotate(3deg); }
.eyebrow-warm { color: #ffb36b !important; }
.grad-warm { background: linear-gradient(92deg, #ffd29a, #ff9a5a 45%, #ff7aa2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mem-chips { list-style: none; padding: 0; margin: 26px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.mem-chips li { font-size: 14.5px; font-weight: 700; padding: 9px 15px; border-radius: 999px; background: rgba(90, 166, 255, 0.12); border: 1px solid rgba(96, 165, 250, 0.3); color: var(--l-text) !important; }
.mem-note { color: var(--l-muted) !important; font-size: 15px; margin: 0; }
/* Assembly: on scroll-in, .assemble is added to .mem-puzzle (script in index).
   Pieces glide home → holes fade as each lands → landed pieces fade over the
   identical photo beneath → every seam glows gold → seams fade: it becomes the photo. */
.mem-puzzle .mem-piece { transition: transform .95s cubic-bezier(.22, .9, .25, 1.06), opacity .35s ease; }
.mem-puzzle .mem-hole { transition: opacity .25s ease; }
.mem-puzzle .mem-glow { opacity: 0; }
.mem-puzzle .mem-seams { transition: opacity 1.2s ease 2.5s; }
.mem-puzzle.assemble .mem-piece { transform: none !important; opacity: 0; }
.mem-puzzle.assemble .mpc-0 { transition-delay: .15s, 1.08s; }
.mem-puzzle.assemble .mpc-1 { transition-delay: .85s, 1.78s; }
.mem-puzzle.assemble .mem-hole { opacity: 0; }
.mem-puzzle.assemble .mh-0 { transition-delay: 1.0s; }
.mem-puzzle.assemble .mh-1 { transition-delay: 1.7s; }
.mem-puzzle.assemble .mem-glow { animation: memGlow 1.7s ease-in-out 1.9s both; }
.mem-puzzle.assemble .mem-seams { opacity: 0; }
.mem-puzzle.assemble { animation: memPop .7s ease 1.9s; }
@keyframes memGlow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes memPop { 0%, 100% { transform: rotate(3deg) scale(1); } 45% { transform: rotate(3deg) scale(1.025); } }
/* reduced motion (or a repeat view): straight to the finished photo, no movement */
.mem-puzzle.assembled-static .mem-piece, .mem-puzzle.assembled-static .mem-hole, .mem-puzzle.assembled-static .mem-seams { transition: none !important; opacity: 0 !important; }
.mem-puzzle.assembled-static .mem-piece { transform: none !important; }

/* calm by design: no ads + for every age */
.calm { max-width: 1180px; margin: 0 auto; padding: 84px 24px 20px; }
.calm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.noads-card, .ages-card { border-radius: 30px; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--l-border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%), var(--l-card); position: relative; overflow: hidden; }
.noads-card { background: radial-gradient(520px 320px at 100% 100%, rgba(90, 166, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%), var(--l-card); }
.founder-note { margin: 4px 0 0; padding: 4px 0 0 18px; border-left: 3px solid; border-image: linear-gradient(180deg, #5aa6ff, #b48cff, #ff9a5a) 1; }
.founder-note p { color: var(--l-muted) !important; font-size: 17px; line-height: 1.6; margin: 0 0 10px; }
.founder-note p:first-child { color: var(--l-text) !important; font-style: italic; }
.founder-note footer { font-size: 14px; font-weight: 700; color: var(--l-accent); }
.founder-note footer::before { content: '— '; }
.ad-stack { position: relative; height: 236px; margin-top: 26px; }
.ad-pill { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--l-muted); font-weight: 700; font-size: 15px; white-space: nowrap; }
.ad-pill i { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: 0.08em; color: #0a1018; background: #c9d2e3; padding: 2px 6px; border-radius: 5px; }
.ad-pill::after { content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #5aa6ff, #b48cff, #ff9a5a); transform: rotate(-4deg); box-shadow: 0 0 12px rgba(180, 140, 255, 0.6); }
.ap1 { left: 0; top: 6px; transform: rotate(-3deg); }
.ap2 { left: 18%; top: 62px; transform: rotate(2deg); }
.ap3 { left: 2%; top: 120px; transform: rotate(-2deg); }
.ap4 { left: 30%; top: 178px; transform: rotate(3deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .noads-card .ad-pill::after { transform: rotate(-4deg) scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
  .js .noads-card.in .ad-pill::after { transform: rotate(-4deg) scaleX(1); }
  .js .noads-card.in .ap1::after { transition-delay: .5s; }
  .js .noads-card.in .ap2::after { transition-delay: .8s; }
  .js .noads-card.in .ap3::after { transition-delay: 1.1s; }
  .js .noads-card.in .ap4::after { transition-delay: 1.4s; }
}
.age-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.age-list li { display: flex; gap: 14px; align-items: flex-start; }
.age-list .ico { flex: none; margin: 0; }
.age-list b { display: block; font-size: 17px; margin-bottom: 3px; color: var(--l-text); }
.age-list span { color: var(--l-muted); font-size: 15px; line-height: 1.5; }

/* ways to play */
.play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.play-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 40%), var(--l-card); border: 1px solid var(--l-border); border-radius: 26px; padding: 20px 20px 24px; transition: transform .3s ease, border-color .3s ease; }
.play-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.4); }
.play-viz { border-radius: 18px; background: radial-gradient(closest-side, rgba(90, 166, 255, 0.16), transparent); padding: 10px; margin-bottom: 16px; }
.viz { width: 100%; height: auto; display: block; }
.play-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.play-wide .play-viz { margin: 0; grid-row: span 2; }
.play-wide .play-viz img { width: 100%; height: auto; display: block; }
.play-wide h3 { align-self: end; }
.play-wide p { align-self: start; }
.play-card h3 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play-card p { color: var(--l-muted) !important; font-size: 15.5px; line-height: 1.55; margin: 0; }
.badge-plus { font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding: 4px 9px; border-radius: 999px; background: linear-gradient(90deg, #5aa6ff, #b48cff); }

/* split sections (daily / photos) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { color: var(--l-muted) !important; font-size: 16.5px; padding-left: 30px; position: relative; }
.ticks li b { color: var(--l-text); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(90, 166, 255, 0.16); color: var(--l-accent); font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.split-viz { position: relative; }
.split-viz .viz { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }

/* app mock (daily) */
.mock { background: linear-gradient(180deg, #0f1828, #0b1220); border: 1px solid rgba(96, 165, 250, 0.24); border-radius: 30px; padding: 22px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.02); max-width: 470px; justify-self: center; width: 100%; }
.mock-chips { display: flex; gap: 9px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 18px; background: var(--l-card); border: 1px solid var(--l-border); font-weight: 800; font-size: 15px; }
.chip svg { width: 17px; height: 17px; }
.chip-hot { background: rgba(255, 122, 26, 0.16); border-color: rgba(255, 122, 26, 0.55); }
.mock-daily { display: flex; gap: 14px; background: var(--l-card); border: 1px solid var(--l-border); border-radius: 20px; padding: 12px; margin-bottom: 14px; }
.mock-daily img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; }
.mock-daily-body { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.mock-kicker { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: var(--l-accent); }
.mock-title { font-size: 18px; font-weight: 800; }
.mock-meta { font-size: 13px; color: var(--l-muted); }
.mock-btn { margin-top: 6px; align-self: flex-start; background: var(--l-accent); color: #04101f; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 999px; }
.mock-quests { background: var(--l-card); border: 1px solid var(--l-border); border-radius: 20px; padding: 14px 16px 6px; }
.mock-h { display: block; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(96, 165, 250, 0.1); }
.q-row:first-of-type { border-top: 0; }
.q-main { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.q-title { font-size: 14px; font-weight: 700; }
.q-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.q-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #5aa6ff, #b48cff); }
.q-reward { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--l-text); white-space: nowrap; }
.q-reward svg { width: 14px; height: 14px; }
.q-reward img { margin-left: 5px; }

/* little things */
.extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extra-grid > div { background: var(--l-card); border: 1px solid var(--l-border); border-radius: 22px; padding: 22px 20px; }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: rgba(90, 166, 255, 0.12); color: var(--l-accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.extra-grid h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.extra-grid p { color: var(--l-muted) !important; font-size: 14.5px; line-height: 1.55; margin: 0; }

/* plus */
.plus-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; border-radius: 32px; padding: clamp(30px, 5vw, 60px);
  background: radial-gradient(700px 360px at 100% 0%, rgba(20, 140, 255, 0.32), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(180, 140, 255, 0.16), transparent 70%), linear-gradient(160deg, #15233b, #0d1524);
  border: 1px solid rgba(96, 165, 250, 0.34); }
.plus-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.plus-list li { font-size: 17px; font-weight: 600; padding-left: 32px; position: relative; }
.plus-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #5aa6ff, #b48cff); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.plus-note { color: var(--l-muted) !important; margin: 0; line-height: 1.6; }
.plus-fan { position: relative; height: 400px; }
.plus-fan img { position: absolute; width: 50%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); top: 50%; left: 50%; }
.plus-fan img:nth-child(1) { transform: translate(-100%, -50%) rotate(-12deg); }
.plus-fan img:nth-child(2) { transform: translate(0%, -50%) rotate(11deg); }
.plus-fan img:nth-child(3) { transform: translate(-50%, -54%) rotate(-1deg); z-index: 1; }

/* final CTA */
.cta { max-width: 1180px; margin: 0 auto; padding: 100px 24px 90px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 20px; box-shadow: 0 20px 50px rgba(20, 140, 255, 0.35); margin-bottom: 24px; }
.cta h2 { margin-bottom: 28px; }
.cta .store-buttons { justify-content: center; }

/* footer */
.footer { max-width: 1180px; margin: 0 auto; padding: 36px 24px 56px; border-top: 1px solid var(--l-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-brand img { border-radius: 7px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer nav a { color: var(--l-muted); }
.footer-small { width: 100%; color: var(--l-muted) !important; font-size: 13px; margin: 0; }

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 34px; }
  .hero-art { max-width: 540px; margin: 0 auto; width: 100%; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .play-grid { grid-template-columns: 1fr 1fr; }
  .play-wide { grid-template-columns: 1fr; }
  .play-wide .play-viz { grid-row: auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-copy { order: 0; }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .plus-card { grid-template-columns: 1fr; }
  .calm-grid { grid-template-columns: 1fr; }
  .mem-card { grid-template-columns: 1fr; gap: 28px; }
  .mem-art { max-width: 520px; width: 100%; margin: 0 auto; }
  /* stacked: the fan scales with its width (a fixed height let the cards spill out) */
  .plus-fan { height: auto; width: 100%; max-width: 480px; aspect-ratio: 1.45; margin: 8px auto 0; }
  .plus-fan img { width: 47%; }
  /* stacked hero: centred, with the store buttons and pills spread across */
  .hero-copy { text-align: center; }
  .hero-copy .store-buttons, .cta .store-buttons, .hero-points { justify-content: center; max-width: 560px; width: 100%; margin-left: auto; margin-right: auto; }
  .hero-copy .store-btn, .cta .store-btn { flex: 1; justify-content: center; padding: 13px 20px; }
  .hero-copy .store-btn svg, .cta .store-btn svg { width: 30px; height: 30px; }
  .hero-copy .store-btn span, .cta .store-btn span { font-size: 20px; text-align: left; }
  .hero-copy .store-btn small, .cta .store-btn small { font-size: 12px; }
  .hero-points li { flex: 1; justify-content: center; white-space: nowrap; }
  .calm, .memories, .gallery-section, .play, .extras, .plus, .split { padding-top: 64px; }
}
@media (max-width: 600px) {
  .nav-links a:not(:last-child) { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .play-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .ap2 { left: 8%; } .ap4 { left: 22%; }
  .ad-pill { font-size: 13.5px; }
  .mock-daily img { width: 92px; height: 92px; }
  /* phones: each store button full width; all three pills on one row */
  .hero-copy .store-buttons, .cta .store-buttons { flex-direction: column; }
  .hero-copy .store-btn, .cta .store-btn { width: 100%; padding: 14px 20px; }
  .hero-points { gap: 6px; flex-wrap: nowrap; }
  .hero-points li { padding: 7px 8px 7px 6px; font-size: 13px; gap: 5px; letter-spacing: -0.01em; }
  .hero-points li::before { width: 18px; height: 18px; font-size: 10.5px; }
  /* tighter vertical rhythm between sections */
  .hero { padding-bottom: 20px; gap: 30px; }
  .calm, .memories, .gallery-section, .play, .extras, .plus, .split { padding-top: 44px; padding-bottom: 4px; }
  .section-head { margin-bottom: 22px; }
  .cta { padding: 64px 20px 56px; }
}
@media (max-width: 370px) {
  .hero-points li { font-size: 12px; padding: 6px 6px 6px 5px; gap: 4px; }
  .hero-points li::before { width: 16px; height: 16px; }
}
