/* Hallmark · macrostructure: Duolingo landing structure (studied) · tone: playful-utilitarian · anchor hue: lime + indigo
 * theme: studied-DNA (source: https://www.duolingo.com, Chrome capture 2026-10-10) dressed in Ninkyra's own app tokens
 * motion: spring rig (niki.js), no keyframe loops · art: drawn scenes, no app screenshots
 * pre-emit critique: P4 H5 E4 S5 R4 V4 */
@import url("tokens.css");

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-paper); color: var(--color-slate); font: 500 var(--text-body)/1.45 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-indigo); outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 2 * var(--space-lg)); margin-inline: auto; }

/* Header: wordmark, and the waitlist button once the hero is gone (as the reference does). */
.top { position: sticky; top: 0; z-index: 10; background: var(--color-paper); transition: box-shadow var(--dur-mid) var(--ease-out); }
.top.scrolled { box-shadow: 0 1px 0 var(--color-hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.05rem/1 var(--font-display); letter-spacing: 0.14em; color: var(--color-slate); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top .btn { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
.top.scrolled .btn { opacity: 1; transform: none; pointer-events: auto; }

/* Buttons: the app's lime capsule with a pressable bottom edge. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 0; border-radius: var(--radius-button);
  font: 800 0.95rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--color-lime); color: var(--color-slate); box-shadow: 0 var(--edge) 0 var(--color-lime-edge);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out); }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(var(--edge)); box-shadow: 0 0 0 var(--color-lime-edge); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.ghost { background: var(--color-paper); color: var(--color-indigo); box-shadow: 0 var(--edge) 0 var(--color-hairline), inset 0 0 0 2px var(--color-hairline); }
.btn.ghost:active { box-shadow: 0 0 0 var(--color-hairline), inset 0 0 0 2px var(--color-hairline); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 0.8rem; }

/* Hero: Niki left, one line and two buttons right; the money strip under it. */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-xl); min-height: calc(100svh - 70px - 74px); }
.hero h1 { font: 900 var(--text-hero)/1.12 var(--font-display); color: var(--color-indigo); text-align: center; margin: 0 auto var(--space-sm); max-width: 18ch; text-wrap: balance; }
.hero h1 span { display: block; color: var(--color-slate); }
.example { margin: 0 auto var(--space-xl); max-width: 30em; text-align: center; font-size: var(--text-small); color: var(--color-muted); }
.cta { display: grid; gap: var(--space-md); width: min(340px, 100%); margin-inline: auto; }
.strip { border-top: 2px solid var(--color-hairline); }
.strip ul { list-style: none; margin: 0 auto; padding: 0 var(--space-lg); height: 72px; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); overflow-x: auto; }
.strip li { display: flex; align-items: center; gap: 10px; font: 800 0.85rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.strip svg { width: 28px; height: 28px; flex: none; }

/* Waitlist form: the button opens into a field in place. */
.join { display: grid; gap: var(--space-sm); }
.join input { min-height: 54px; border-radius: var(--radius-button); border: 2px solid var(--color-hairline); padding: 0 22px; font: 600 1rem var(--font-body); color: var(--color-slate); background: var(--color-row); }
.join input:focus-visible { outline: none; border-color: var(--color-indigo); background: var(--color-paper); }
.join .note { margin: 2px 0 0; font-size: var(--text-small); color: var(--color-muted); text-align: center; }
.join .note.error { color: var(--color-alert); }
.done { text-align: center; font: 800 1.15rem/1.35 var(--font-display); color: var(--color-indigo); }

/* Feature rows: lowercase heading, one or two short lines, a drawn scene beside it. */
.feature { padding-block: var(--space-2xl); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2xl); }
.feature.flip .text { order: 2; }
h2 { font: 900 var(--text-h2)/1.08 var(--font-display); color: var(--color-indigo); margin: 0 0 var(--space-lg); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.text p { margin: 0; max-width: 30em; color: var(--color-muted); }

/* "Their phone, your say": kid home's lavender, sparks drifting. */
.anywhere { position: relative; background: var(--color-lavender-wash); padding-block: var(--space-3xl); overflow: clip; text-align: center; }
.anywhere h2 { max-width: 16ch; margin-inline: auto; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-sm); padding: 12px 22px; border-radius: var(--radius-button); background: var(--color-paper); font: 800 0.95rem var(--font-display); color: var(--color-slate); box-shadow: 0 var(--edge) 0 rgba(35, 39, 94, 0.18); }

/* Final call, then the lime wave into the footer. */
.final { text-align: center; padding-top: var(--space-3xl); }
.final h2 { max-width: 14ch; margin-inline: auto; }
.final .cta { margin-bottom: var(--space-xl); }
.final-art { width: min(240px, 56%); margin: 0 auto -40px; position: relative; z-index: 1; }
.wave { display: block; width: 100%; height: 90px; }
/* Footer: the reference's sitemap columns, holding only what Ninkyra has today. */
footer { background: var(--color-lime); color: var(--color-slate); padding: var(--space-xl) 0 var(--space-2xl); }
.sitemap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); padding-bottom: var(--space-xl); }
.sitemap nav { display: grid; align-content: start; gap: 10px; font-size: var(--text-small); font-weight: 700; }
.sitemap h3 { margin: 0 0 4px; font: 900 1rem/1.2 var(--font-display); }
footer .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); border-top: 2px solid var(--color-lime-edge); font-size: var(--text-small); font-weight: 700; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Text eases up as it arrives; the drawings move on springs (niki.js). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.text.reveal + .art.reveal { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition-duration: 150ms; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-xl); min-height: 0; }
  .hero-art { width: min(300px, 80%); }
  .feature .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); text-align: center; }
  .feature.flip .text { order: 0; }
  .text p { margin-inline: auto; }
  .strip ul { justify-content: flex-start; }
  .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .top .brand span { display: none; } }
@media (max-width: 360px) { .sitemap { grid-template-columns: minmax(0, 1fr); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
