/* nala.family — one stylesheet for every page. Dark only, warm palette, never pure white. */

:root {
  --bg: #161616;
  --surface: #1f1f1f;
  --surface-2: #272422;
  --line: #34302c;
  --text: #f7f1ec;
  --muted: #b9afa6;
  --glow: #f9d29d;
  --amber: #ffddbb;
  --red: #e5483d;
  --radius: 18px;
  --measure: 42rem;
  --font: ui-rounded, "SF Pro Rounded", "SF Pro Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; background-color: #161616; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Footer stays at the bottom on short pages. */
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 54rem; margin: 0 auto; padding: 0 16px; }
.prose { max-width: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .site-nav .nav-optional { display: none; } }

/* Typography */
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2.4em 0 .8em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
p, ul, ol { margin: 0 0 1.25em; }
p, li, dd { overflow-wrap: break-word; }
/* No orphan words at the end of paragraphs, headings or captions. */
h1, h2, h3, h4, p, li, dd, dt, blockquote, figcaption, summary, .lead, .stage-intro { text-wrap: pretty; }
li { margin-bottom: .55em; }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
strong { color: var(--amber); font-weight: 600; }

.eyebrow { color: var(--glow); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6em; }

/* Hero */
.hero { padding: 56px 0 24px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.2fr .8fr; padding-top: 80px; } }
.hero-shot { position: relative; justify-self: center; max-width: 220px; }
@media (min-width: 860px) { .hero-shot { max-width: 280px; } }
.hero-shot::before {
  content: ""; position: absolute; inset: -18%; z-index: -1;
  background: radial-gradient(circle, rgba(249, 210, 157, .28), transparent 65%);
}
.hero-shot.red::before { background: radial-gradient(circle, rgba(229, 72, 61, .32), transparent 65%); }
.hero-photo { max-width: 340px; width: 100%; }
/* Keep the photo glow inside the screen at every width. */
.hero-photo::before { inset: -12% -6%; }
@media (max-width: 1199px) { .hero-photo::before { inset: -12% 0; } }
@media (min-width: 860px) { .hero-photo { max-width: 360px; } }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* App Store CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 1.4em 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #1b1410; text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: 999px; font-size: 1.05rem;
}
.badge-link { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s ease; }
.badge-link img { height: 50px; width: auto; }
.badge-link:hover { transform: scale(1.03); }
.badge-link:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.cta-note strong { color: var(--text); font-weight: 600; }
.btn:hover { background: var(--glow); color: #1b1410; }
.btn svg { width: 20px; height: 20px; }
.cta-note { color: var(--muted); font-size: .95rem; }
/* NALAWEB offer: pill above the hero badge, note under the bottom badge */
.offer-pill {
  display: inline-flex; margin-top: 1.2em; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: var(--amber); background: rgba(255, 221, 187, .1); border: 1px solid rgba(255, 221, 187, .35);
  text-decoration: none; transition: background .2s ease;
}
.offer-pill + .cta { margin-top: .8em; }
.offer-pill:hover { background: rgba(255, 221, 187, .18); }
.offer-pill:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.cta-offer { flex-basis: 100%; color: var(--muted); font-size: .95rem; margin-top: -6px; }
.cta-offer a { color: var(--amber); }

/* Sections and cards */
section { padding: 32px 0; }
@media (min-width: 760px) { section { padding: 48px 0; } }
section > h2:first-child { margin-top: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4em 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--text); text-decoration: none; display: block;
}
a.card:hover { border-color: var(--glow); color: var(--text); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { color: var(--glow); display: inline-block; margin-top: .8em; font-weight: 600; }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.4em 0; max-width: 56rem; }
.shots figure { margin: 0; }
.shots-home { max-width: 40rem; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots-home img { display: block; width: 100%; height: auto; }
.shots figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; text-align: center; }

/* Feature rows: photo or phone on one side, copy on the other, alternating */
.rows { display: grid; gap: 56px; margin: 2.4em 0; max-width: 60rem; }
.row { display: grid; gap: 20px; align-items: center; color: var(--text); text-decoration: none; }
a.row:hover { color: var(--text); }
a.row:hover .row-media img { transform: scale(1.02); }
.row-media { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.row-media img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.row-text :is(h2, h3) { margin-top: 0; font-size: 1.5rem; }
.row-text p { color: var(--muted); margin-bottom: 0; max-width: 28rem; }
.row .more { color: var(--glow); display: inline-block; margin-top: .8em; font-weight: 600; }
.row-phone { border: 0; background: none; overflow: visible; display: flex; justify-content: center; }
.row-phone img { width: min(240px, 60vw); }
.row-phone img, .phone-frame {
  border-radius: 36px; border: 6px solid #2a2622;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(64, 160, 170, .35);
}
@media (min-width: 760px) {
  .rows { gap: 112px; }
  .row { grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; }
  .row:nth-child(even) { grid-template-columns: 1fr minmax(0, 420px); }
  .row:nth-child(even) .row-media { order: 2; }
  .row-phone img { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .row-media img { transition: none; } }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 1.4em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--glow);
  display: grid; place-items: center; font-weight: 700;
}

.note {
  background: var(--surface); border-left: 3px solid var(--glow); border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin: 1.4em 0;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
table.wide { min-width: 40rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Reviews */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4em 0; }
blockquote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 20px; }
blockquote p { margin-bottom: .6em; }
blockquote .stars { color: var(--glow); letter-spacing: .12em; font-size: .95rem; margin-bottom: .5em; }
blockquote footer { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--glow); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: 10px; color: var(--muted); }

/* Article meta + sources */
.byline { color: var(--muted); font-size: .95rem; margin-bottom: 2em; }
.sources { font-size: .96rem; color: var(--muted); }
.sources li { margin-bottom: .6em; }
.breadcrumb { font-size: .95rem; color: var(--muted); padding-top: 24px; }
.breadcrumb a { color: var(--muted); }

article { padding: 48px 0 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 56px; color: var(--muted); font-size: 1rem; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8em; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.shot-small { max-width: 240px; }

/* Glossary */
.gloss-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.6em 0 0; position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.gloss-jump a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.gloss-jump a:hover { color: var(--text); background: var(--surface); }
.gloss-letter { padding: 24px 0 0; scroll-margin-top: 130px; }
.gloss-letter h2 { margin: 0 0 .4em; color: var(--glow); font-size: 1.4rem; }
.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; font-size: 1.12rem; margin-top: 1.4em; scroll-margin-top: 130px; }
.glossary dd { margin: .35em 0 0; color: var(--muted); }
.gloss-link { display: table; margin-top: .3em; color: var(--glow); font-weight: 600; text-decoration: none; }
.gloss-link:hover { text-decoration: underline; }
.glossary dt:target { color: var(--glow); }

/* 404: Nala asleep under a breathing glow (same 3.5 s rhythm as the app's breathing light). */
.lost { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.lost h1 { margin-top: .2em; }
.lost .lead { max-width: 30rem; margin-left: auto; margin-right: auto; }
.lost-art { position: relative; width: 220px; height: 220px; margin: 0 auto 8px; display: grid; place-items: center; }
.lost-art img { position: relative; width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); }
.lost-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 72, 61, .45), rgba(229, 72, 61, .12) 45%, transparent 70%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.05); opacity: 1; } }
.lost-z { position: absolute; right: 18px; top: 34px; color: var(--glow); font-weight: 700; opacity: 0; animation: snore 4.5s ease-in infinite; }
.lost-z1 { font-size: 1rem; }
.lost-z2 { font-size: 1.35rem; animation-delay: 1.5s; }
.lost-z3 { font-size: 1.7rem; animation-delay: 3s; }
@keyframes snore { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -70px); } }
.lost-links { list-style: none; padding: 0; margin: 2em auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 36rem; }
.lost-links li { margin: 0; }
.lost-links a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; }
.lost-links a:hover { border-color: var(--glow); }
@media (prefers-reduced-motion: reduce) { .lost-glow, .lost-z { animation: none; } .lost-z { opacity: .6; } .lost-z2 { transform: translate(14px, -30px); } .lost-z3 { transform: translate(28px, -60px); } }

/* Sound tiles: hover (or tap) a picture to hear the sound. */
.sound-grid { list-style: none; padding: 0; margin: 2em auto 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 64rem; text-align: left; }
@media (min-width: 760px) { .sound-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.sound-grid li { margin: 0; }
.sound-tile {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; aspect-ratio: 4 / 3;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.sound-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s ease; filter: brightness(.8); }
.sound-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 11, .85), transparent 55%); pointer-events: none; }
.sound-name { position: absolute; left: 12px; right: 40px; bottom: 10px; z-index: 1; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.sound-eq { position: absolute; right: 12px; bottom: 13px; z-index: 1; display: flex; align-items: flex-end; gap: 3px; height: 14px; opacity: 0; transition: opacity .3s ease; }
.sound-tile:hover .sound-eq, .sound-tile:focus-visible .sound-eq, .sound-tile.is-playing .sound-eq { opacity: 1; }
.sound-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--glow); opacity: .7; }
.sound-tile:hover img, .sound-tile.is-playing img { transform: scale(1.06); filter: brightness(1); }
.sound-tile.is-playing { border-color: var(--glow); box-shadow: 0 0 40px -8px rgba(249, 210, 157, .45); }
.sound-tile.is-playing .sound-eq i { opacity: 1; animation: eq 1.1s ease-in-out infinite; }
.sound-tile.is-playing .sound-eq i:nth-child(2) { animation-delay: -.35s; }
.sound-tile.is-playing .sound-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.sound-tile:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
/* Touch screens have no hover: show a play icon, and the moving bars while it plays. */
@media (hover: none) {
  .sound-eq { opacity: 1; }
  .sound-tile:not(.is-playing) .sound-eq i { display: none; }
  .sound-tile:not(.is-playing) .sound-eq::before { content: "\25B6\FE0E"; color: var(--text); font-size: .85rem; line-height: 14px; }
}
.needs-click .sound-tile:hover .sound-eq::before { content: "\25B6"; color: var(--glow); font-size: .8rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .sound-tile img { transition: none; }
  .sound-tile:hover img, .sound-tile.is-playing img { transform: none; }
  .sound-tile.is-playing .sound-eq i { animation: none; height: 10px; }
}

/* Mobile-first header: sticky pill, menu sheet, sticky App Store bar. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(22, 22, 22, .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.menu-btn path { transition: transform .25s ease, opacity .2s ease; transform-origin: 12px 12px; }
.is-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.is-open .menu-btn .l2 { opacity: 0; }
.is-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 759px) {
  .menu-btn { display: grid; place-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px 16px 24px; background: var(--bg); box-shadow: 0 30px 60px rgba(0,0,0,.6); border-bottom: 1px solid var(--line);
    font-size: 1.25rem; font-weight: 600;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .is-open .site-nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .25s ease; }
  .site-nav a { color: var(--text); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; color: var(--muted); font-size: 1rem; }
  html.menu-open { overflow: hidden; }

  .sticky-cta {
    /* Under 80% of the width: iOS 26 Safari only tints its toolbar from fixed
       elements at least 80% wide, so this one can never turn it beige. */
    position: fixed; left: 0; right: 0; margin: 0 auto; width: min(78vw, 340px); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15;
    display: block; text-align: center; padding: 16px; border-radius: 999px; isolation: isolate;
    background: transparent; color: #1b1410; font-weight: 700; text-decoration: none; font-size: 1.05rem;
  }
  /* iOS 26 Safari paints its toolbar with the background of a wide fixed element
     at the bottom. The pill lives on an absolute child, which Safari ignores. */
  .sticky-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--amber); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 221, 187, .3);
  }
  body { padding-bottom: 88px; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .site-footer a { display: inline-block; padding: 6px 0; }
  .faq summary { padding-top: 6px; padding-bottom: 6px; }
  .site-footer li { margin-bottom: 4px; }
}
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* The whole header is a night-light playground. Controls stay inside the scene. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.stage { --light-color: #ff775f; position: relative; isolation: isolate; padding: 0; background: radial-gradient(ellipse at 50% 56%, #302338 0, #211b2e 32%, #191720 61%, #161616 87%); }
.stage[data-light="glow"] { --light-color: #ffb465; }
.stage[data-light="rainbow"] { --light-color: #ff7ab8; }
.stage::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(130px, 24%, 270px); pointer-events: none; background: linear-gradient(transparent, var(--bg) 96%); }
/* Never the full screen height: the next section must peek out so people scroll. */
.stage-view { position: relative; width: 100%; height: 86svh; min-height: 540px; max-height: 960px; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; opacity: 0;
  /* Soft edges: while a room scales during a transition, its floor never shows a hard rectangle. */
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
.stage canvas:focus-visible { outline-offset: -5px; }
.stage.is-ready canvas:not(.scene-transition) { opacity: 1; }
.scene-loading .stage :is(.stage-fallback, .stage-intro, .scene-instructions, .room-prev, .room-next) { opacity: 0; }
.scene-loaded .stage.is-ready canvas:not(.scene-transition) { animation: room-arrive .65s ease-out both; }
.scene-loaded .stage-intro { animation: copy-arrive .8s .8s ease-out both; }
.scene-loaded .stage :is(.scene-instructions) { animation: copy-arrive .7s 1.1s ease-out both; }
/* The H1, lead and App Store button never wait for the 3D room: they paint at once. */
@keyframes room-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes copy-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.stage[data-transitioning] canvas { animation: none !important; will-change: transform, opacity; }
.stage canvas.scene-transition { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; }
.stage-brand { position: absolute; top: 26px; left: clamp(20px, 4vw, 64px); z-index: 3; min-height: 44px; }
.stage-download { position: absolute; top: 26px; right: clamp(20px, 4vw, 64px); z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 18px; min-height: 44px; border: 1px solid #f7e4d62e; border-radius: 99px; background: #231c2680; color: #ecdbcb; text-decoration: none; font-size: .92rem; }
.stage-download:hover { border-color: #e9c7a77d; background: #3c2c35; }
.stage-intro { position: absolute; z-index: 2; top: clamp(100px, 13svh, 145px); left: 16px; right: 16px; text-align: center; pointer-events: none; }
.stage-intro p { margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 3.15rem); line-height: 1.13; letter-spacing: -.045em; font-weight: 600; }
.stage-intro > span { color: #b3a6bc; font-size: 1.05rem; }
.room-prev, .room-next { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #e8dced20; border-radius: 50%; background: #211c2b50; color: #d3c5db; cursor: pointer; transition: background .2s, border-color .2s; z-index: 2; }
.room-prev, .room-next { top: 0; bottom: 0; width: clamp(64px, 12vw, 190px); height: 100%; border: 0; border-radius: 0; background: transparent; outline-offset: -5px; }
.room-prev { left: 0; --edge-x: 0%; }
.room-next { right: 0; --edge-x: 100%; }
/* A tall, thin oval of light hugging the edge (like a video app's seek zone); it fades out well before the top and bottom. */
.room-prev::before, .room-next::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 42% at var(--edge-x) 50%, #c8b6e02e, #c8b6e00f 55%, transparent 100%); opacity: 0; transition: opacity .25s; }
.room-prev:focus-visible::before, .room-next:focus-visible::before { opacity: 1; }
.room-prev svg, .room-next svg { opacity: .5; transition: opacity .25s, translate .25s; }
.room-prev:focus-visible svg, .room-next:focus-visible svg { opacity: 1; }
/* Hover glow only with a real mouse: on touch, :hover sticks after a tap. */
@media (hover: hover) and (pointer: fine) {
  .room-prev:hover::before, .room-next:hover::before { opacity: 1; }
  .room-prev:hover svg, .room-next:hover svg { opacity: 1; }
  .room-prev:hover svg { translate: -4px 0; }
  .room-next:hover svg { translate: 4px 0; }
}
.room-prev svg, .room-next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Room progress: three thin bars, the current one fills, then the next room comes in. */
.room-progress { position: absolute; z-index: 3; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; gap: 8px; width: min(240px, 56vw); }
.room-bar { flex: 1; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.room-bar::before { content: ""; display: block; height: 3px; border-radius: 3px; background: rgba(247, 241, 236, .18); }
.room-bar span { display: block; height: 3px; margin-top: -3px; border-radius: 3px; background: var(--glow); transform: scaleX(0); transform-origin: left; }
.room-bar:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; border-radius: 4px; }
.stage:not(.is-ready) .room-progress, .stage.no-webgl .room-progress { visibility: hidden; }
.scene-loading .stage .room-progress { opacity: 0; }
.scene-loaded .stage .room-progress { animation: copy-arrive .7s 1.1s ease-out both; }
.scene-instructions { position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: calc(100% - 140px); pointer-events: none; }

.stage-hint { margin: 0; font-size: .86rem; color: #a99aac; }

.stage-fallback { position: absolute; inset: 30% 0 20%; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse, #ff8d7c16, transparent 60%); }
.stage-fallback img { width: auto; max-height: 100%; height: 270px; border-radius: 22px; }
.stage.is-ready:not(.no-webgl) .stage-fallback { visibility: hidden; }
.stage:not(.is-ready) :is(.room-prev, .room-next, .scene-instructions) { visibility: hidden; }
.stage.no-webgl :is(.room-prev, .room-next, .scene-instructions, canvas) { visibility: hidden; }
.stage.no-webgl .stage-fallback { visibility: visible; opacity: 1; }
.stage-noscript { position: absolute; bottom: 20px; left: 20px; right: 20px; text-align: center; color: var(--muted); font-size: .8rem; }
.hero-text { padding-top: 32px; }
.hero-text > div { max-width: 44rem; }
@media (min-width: 860px) { .hero.hero-text { grid-template-columns: 1fr; padding-top: 48px; } .hero.hero-home { grid-template-columns: 1.3fr .7fr; } }
.hero-home .hero-shot { width: 100%; max-width: 230px; }
@media (min-width: 860px) { .hero-home .hero-shot { max-width: 280px; } }
.hero-home .hero-shot::before { inset: -10% -12%; }
.hero-home .hero-shot img { display: block; width: 100%; height: auto; border-radius: 13% / 6%; }
.free-list { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .45em; }
.free-list li { position: relative; padding-left: 1.6em; }
.free-list li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .55em; height: .55em; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(249, 210, 157, .6); }
.stage-kicker { display: block; margin: 0 0 14px; color: #d9c4ae; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.listen { text-align: center; padding-top: 24px; }
.listen > p { max-width: 36rem; margin-left: auto; margin-right: auto; }
@media (max-width: 759px) {
  .stage-view { height: 80svh; min-height: 480px; max-height: 780px; }
  .stage-brand, .stage-download { top: 18px; }
  .stage-brand { left: 18px; }
  .stage-download { right: 18px; padding: 9px 13px; font-size: .82rem; gap: 7px; }
  .stage-intro { top: 86px; }
  .stage-intro p { font-size: clamp(1.8rem, 7.4vw, 2.5rem); }
  .stage-intro > span { font-size: .95rem; }
  .room-prev, .room-next { width: 44px; top: 0; bottom: 0; height: 100%; }
  .room-prev svg, .room-next svg { translate: 0 35px; }

  .room-progress { bottom: 50px; }
  .scene-instructions { bottom: 22px; max-width: calc(100% - 100px); left: 24px; transform: none; justify-content: flex-start; gap: 7px; }
  .stage-hint { font-size: .8rem; line-height: 1.5; }
  .sticky-cta { transform: translateY(160%); transition: transform .35s ease; }
  .sticky-cta.show { transform: none; }
}
@media (max-height: 650px) and (min-width: 760px) { .stage-view { min-height: 520px; } .stage-intro { top: 90px; } .stage-intro p { font-size: 2rem; } }
@media (hover: hover) and (pointer: fine) { .stage.is-ready canvas { cursor: none; } }
@media (prefers-reduced-motion: reduce) { .stage *, .stage *::before, .stage *::after { animation: none !important; transition: none !important; } }

/* Guides: copy-checklist button and figures inside articles */
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 16px; }
figcaption.small { font-size: .85rem; margin-top: .6em; }

/* App screenshots are raw simulator captures: round them like an iPhone screen. */
img[src^="/img/app-"] { border-radius: 13% / 6%; box-shadow: 0 0 0 1px #3a332d; }

/* Two illustrations side by side (stacked on phones). */
.compare-pair { display: grid; gap: 16px; margin: 1.4em 0 .6em; }
@media (min-width: 700px) { .compare-pair { grid-template-columns: 1fr 1fr; } }
.compare-pair figure { margin: 0; }
.compare-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-pair figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
