/* ===========================================================
   Acorn Study — Landing page
   Reuses the app design system (tokens.css + components.css).
   Layout-only rules live here.
   =========================================================== */

.lp { overflow-x: clip; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand-deep);
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 18px 0 0; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }
.center { text-align: center; margin-inline: auto; }

/* ---- Nav ---- */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 15px clamp(16px, 4vw, 40px);
  background: oklch(0.99 0.01 85 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.lp-brand .mascot { box-shadow: inset 0 -3px 6px oklch(0.5 0.08 150 / 0.16), var(--shadow-sm); }
.lp-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.lp .btn { white-space: nowrap; }
.lp-nav-links a { white-space: nowrap; }
.lp-brand-name b { color: var(--brand); font-weight: 700; }
.lp-nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.lp-nav-links a { color: var(--ink-soft); font-weight: 700; text-decoration: none; font-size: 0.98rem; transition: color .15s ease; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-cta { display: flex; align-items: center; gap: 14px; }
.btn.sm { padding: 11px 18px; font-size: 0.95rem; }
@media (max-width: 860px) { .lp-nav-links { display: none; } }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(60% 80% at 82% 8%, color-mix(in oklab, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 6% 96%, color-mix(in oklab, var(--spark) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.0; margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--brand); }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); margin: 22px 0 0; line-height: 1.5; max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn.lg { padding: 17px 28px; font-size: 1.08rem; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--ink-faint); font-weight: 700; font-size: 0.95rem; }

/* ---- Hero product mock ---- */
.mock {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; rotate: 1.4deg;
}
.mock-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.mock-card + .mock-card { margin-top: 12px; }
.mock-set-top { display: flex; align-items: center; justify-content: space-between; }
.mock-emoji { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 1.4rem; }
.mock-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 12px 0 3px; }
.mock-src { color: var(--ink-faint); font-weight: 700; font-size: 0.85rem; }
.mock-foot { margin-top: 14px; }
.mock-float {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 14px; padding: 11px 15px; font-weight: 800; font-size: 0.98rem;
}
.mock-float.f1 { top: -22px; left: -26px; rotate: -5deg; color: var(--coral); }
.mock-float.f2 { bottom: 26px; right: -30px; rotate: 4deg; color: var(--spark-deep); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
  .mock { rotate: 0deg; max-width: 460px; margin-inline: auto; }
  .mock-float.f1 { left: 0; } .mock-float.f2 { right: 0; }
}

/* ---- Generic section ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---- Value cards ---- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.value { padding: 30px 26px; }
.value-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px; }
.value h3 { font-size: 1.32rem; }
.value p { color: var(--ink-soft); margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 28px; }
.step-n {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  background: var(--brand); color: oklch(0.99 0.01 85); box-shadow: 0 3px 0 var(--brand-deep);
}
.step h3 { font-size: 1.24rem; margin: 20px 0 0; }
.step p { color: var(--ink-soft); margin: 9px 0 0; line-height: 1.5; }
.step-arrow { position: absolute; right: -16px; top: 52px; font-size: 1.5rem; color: var(--ink-faint); z-index: 2; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step-arrow { display: none; } }

/* ---- Games ---- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.game { padding: 24px 22px; display: flex; flex-direction: column; gap: 0; transition: transform .18s ease, box-shadow .18s ease; }
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-emoji { font-size: 2rem; line-height: 1; }
.game-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.game h3 { font-size: 1.16rem; margin: 14px 0 0; }
.game p { color: var(--ink-soft); margin: 8px 0 0; line-height: 1.45; font-size: 0.96rem; flex: 1; }
.game-meta { display: flex; gap: 8px; margin-top: 16px; }
.tag { font-weight: 800; font-size: 0.74rem; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em; }
.tag.soon { background: var(--bg-2); color: var(--ink-faint); }
@media (max-width: 980px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .games-grid { grid-template-columns: 1fr; } }

/* ---- ADHD / built-for section ---- */
.adhd-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.adhd-head { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-top: 18px; }
.adhd-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.adhd-list li { display: flex; gap: 14px; align-items: flex-start; }
.adhd-check { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 0.95rem; background: color-mix(in oklab, var(--brand) 16%, transparent); color: var(--brand-deep); font-weight: 900; margin-top: 2px; }
.adhd-list b { font-weight: 800; }
.adhd-list span { color: var(--ink-soft); }
.adhd-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px; display: grid; gap: 16px; place-items: center; text-align: center;
}
.adhd-mascot-row { display: flex; align-items: flex-end; gap: 14px; }
.grow-emoji { font-size: 2.2rem; opacity: 0.55; }
.grow-emoji.lead { font-size: 3.4rem; opacity: 1; }
.adhd-visual .cap { font-weight: 800; color: var(--ink-soft); }
@media (max-width: 820px) { .adhd-grid { grid-template-columns: 1fr; } }

/* ---- Final CTA ---- */
.cta-band { padding: clamp(60px, 8vw, 104px) 0; }
.cta-box {
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 72%),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(44px, 6vw, 76px) 32px; text-align: center;
}
.cta-box h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-box p { font-size: 1.18rem; color: var(--ink-soft); margin: 16px auto 0; max-width: 52ch; line-height: 1.5; }
.cta-box .hero-cta { justify-content: center; }

/* ---- Footer ---- */
.lp-foot { border-top: 1px solid var(--line); padding: 44px 0 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.foot-tag { color: var(--ink-faint); font-weight: 700; margin: 12px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a { color: var(--ink-soft); font-weight: 700; text-decoration: none; font-size: 0.96rem; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-faint); font-weight: 700; font-size: 0.9rem; margin-top: 24px; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
