/* Brain Food landing page. One deliberate warm-light look, no dark variant:
   marketing pages read as posters, and this poster is cream + teal + pink. */

:root {
  --bg: #fdf8f1;
  --bg-deep: #f7efe3;
  --card: #ffffff;
  --ink: #22201d;
  --ink-muted: #6d675e;
  --teal: #0d9488;
  --teal-deep: #0b7c72;
  --teal-ink: #063d38;
  --pink: #f17fab;
  --pink-deep: #e05a90;
  --sun: #f5b840;
  --night: #0f2320;
  --night-card: #1a3531;
  --night-ink: #eef6f4;
  --night-muted: #9dbcb6;
  --border: #ebe1d2;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 2px 6px rgba(34, 32, 29, 0.05), 0 16px 40px rgba(34, 32, 29, 0.07);
  --shadow-pop: 0 24px 60px rgba(34, 32, 29, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: var(--teal); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 225, 210, 0.6);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.top-cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.top-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: #b8ece6;
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: #fbd9e7;
  bottom: -160px;
  left: -140px;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { padding-bottom: 72px; }

.eyebrow {
  display: inline-block;
  background: #e6f4f2;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0 0 20px;
}

h1 .rot {
  color: var(--pink-deep);
  position: relative;
  white-space: nowrap;
}

h1 .rot svg {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 14px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 0 32px;
}

.hero-sub strong { color: var(--ink); }

.cta-block { margin-bottom: 24px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.laurel {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
}

.laurel .branch { width: 34px; height: 86px; }

.laurel .branch.flip { transform: scaleX(-1); }

.laurel-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.laurel-big {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.laurel-small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

.hero-promise {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--pink);
}

.hero-promise b { color: var(--ink); }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px 14px 22px;
  border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 30px rgba(34, 32, 29, 0.25);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 32, 29, 0.3);
  background: #000;
}

.store-badge svg { width: 30px; height: 30px; flex: none; }

.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.store-badge .big { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }

.price-line {
  margin: 14px 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
}

.price-line b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(34, 32, 29, 0.04);
}

.chip .dot { color: var(--teal); font-size: 15px; }

/* hero visual: phone mockup + waving mascot */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
}

.phone {
  position: relative;
  width: 300px;
  background: #17171a;
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-pop);
  transform: rotate(2.5deg);
}

.phone-screen {
  background: #fff;
  border-radius: 37px;
  overflow: hidden;
  padding: 14px 14px 18px;
}

.phone-notch {
  width: 110px;
  height: 26px;
  background: #17171a;
  border-radius: 999px;
  margin: 4px auto 12px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.app-bar img { width: 26px; height: 26px; border-radius: 7px; }

.app-bar .app-name { font-weight: 900; font-size: 15px; letter-spacing: -0.2px; }

.kid-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 12px;
  font-weight: 800;
}

.kid-pill .kid-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7c5ce0;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5f6066;
  margin-bottom: 12px;
}

.vid-card { margin-bottom: 12px; }

.thumb {
  position: relative;
  border-radius: 12px;
  height: 128px;
  display: grid;
  place-items: center;
  font-size: 44px;
  overflow: hidden;
}

.thumb-volcano { background: linear-gradient(135deg, #ffd9a0, #ff9a7a); }
.thumb-space { background: linear-gradient(135deg, #1e2a5a, #4a3d8f); }

.dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.ok-chip {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
}

.vid-title { font-size: 13px; font-weight: 800; line-height: 1.3; margin: 8px 0 1px; }
.vid-meta { font-size: 11px; font-weight: 700; color: #8a8a92; }

.filter-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e6f4f2;
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 900;
}

.mascot-hero {
  position: absolute;
  left: -34px;
  bottom: -6px;
  width: 250px;
  z-index: 2;
  filter: drop-shadow(0 16px 24px rgba(34, 32, 29, 0.18));
}

/* --------------------------------------------------------- topic marquee */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 12px;
  animation: slide 36s linear infinite;
  padding-right: 12px;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

.topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-muted);
  background: var(--bg);
}

/* ------------------------------------------------------------ stat band */

.stats {
  background: var(--night);
  color: var(--night-ink);
  padding: 88px 0;
}

.stats h2 {
  color: var(--night-ink);
  text-align: center;
  margin-bottom: 12px;
}

.stats .lede {
  text-align: center;
  color: var(--night-muted);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-size: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.stat {
  background: var(--night-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.stat .num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #5eead4;
  margin-bottom: 10px;
}

.stat:nth-child(2) .num { color: var(--pink); }
.stat:nth-child(3) .num { color: var(--sun); }
.stat:nth-child(4) .num { color: #a78bfa; }

.stat p { margin: 0; color: var(--night-muted); font-weight: 700; font-size: 16px; line-height: 1.5; }

.stat p b { color: var(--night-ink); }

.stat-src {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--night-muted);
}

.stat-src a { color: var(--night-muted); }

/* --------------------------------------------------------- section base */

section { padding: 96px 0; }

h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin: 0 0 16px;
}

.kicker {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-lede {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0 0 56px;
}

/* ------------------------------------------------------------ how steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.step .n {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  background: var(--teal);
  margin-bottom: 20px;
}

.step:nth-child(2) .n { background: var(--pink-deep); }
.step:nth-child(3) .n { background: var(--sun); color: var(--ink); }

.step h3 { font-size: 21px; font-weight: 900; letter-spacing: -0.4px; margin: 0 0 10px; }

.step p { margin: 0; color: var(--ink-muted); font-size: 16px; }

.step .example {
  margin-top: 18px;
  background: var(--bg);
  border: 1px dashed #d8cdbb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
}

/* ------------------------------------------------------------ live demo */

.demo-phone {
  width: min(370px, 92vw);
  margin: 0 auto;
  background: #17171a;
  border-radius: 52px;
  padding: 10px;
  box-shadow: var(--shadow-pop);
}

.demo-screen {
  position: relative;
  height: 680px;
  border-radius: 43px;
  overflow: hidden;
  background: #fff;
}

.demo-start {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #f0fbf9 0%, #fdf8f1 70%);
  font-family: inherit;
}

.demo-start img { filter: drop-shadow(0 10px 18px rgba(34, 32, 29, 0.15)); }

.demo-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s ease;
}

.demo-start:hover .demo-btn { transform: translateY(-2px); }

.demo-hint { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }

.demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* -------------------------------------------------------- feature cards */

.features, .features-band { background: var(--bg-deep); }

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

.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.feat .ico {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 18px;
}

.feat h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; margin: 0 0 10px; }

.feat p { margin: 0; color: var(--ink-muted); }

.feat p b { color: var(--ink); }

/* --------------------------------------------------------- privacy band */

.privacy-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.promise-list { list-style: none; margin: 0; padding: 0; }

.promise-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 17px;
}

.promise-list li:last-child { border-bottom: none; }

.promise-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  margin-top: 2px;
}

.privacy-band .fine {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- pricing */

.pricing { background: var(--bg-deep); }

.price-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-pop);
}

.price-card .amount {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}

.price-card .amount span { font-size: 22px; letter-spacing: -0.5px; color: var(--ink-muted); font-weight: 800; }

.price-card .per { color: var(--ink-muted); font-weight: 800; margin: 6px 0 26px; }

.price-feats { list-style: none; margin: 0 0 30px; padding: 0; text-align: left; }

.price-feats li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-weight: 700;
  font-size: 16px;
}

.price-feats .tick { color: var(--teal); font-weight: 900; }

.price-card .fine { font-size: 14px; color: var(--ink-muted); margin-top: 16px; }

/* ------------------------------------------------------------------ faq */

.faq-list { max-width: 760px; margin: 0 auto; }

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

summary::-webkit-details-marker { display: none; }

summary .plus {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--teal-deep);
  transition: transform 0.2s ease;
}

details[open] summary .plus { transform: rotate(45deg); }

details .a {
  padding: 0 24px 22px;
  color: var(--ink-muted);
  font-size: 16px;
}

details .a p { margin: 0 0 10px; }
details .a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ final cta */

.final {
  padding: 0 0 96px;
}

.final-card {
  position: relative;
  background: var(--night);
  border-radius: 36px;
  padding: 116px 40px 72px;
  text-align: center;
  color: var(--night-ink);
  overflow: visible;
}

.mascot-peek {
  position: absolute;
  top: -104px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  pointer-events: none;
}

.final-card h2 { color: var(--night-ink); }

.final-card .sub {
  color: var(--night-muted);
  font-size: 19px;
  max-width: 46ch;
  margin: 0 auto 36px;
}

.final-card .price-line { color: var(--night-muted); }
.final-card .price-line b { color: var(--night-ink); }

/* --------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 15px;
  color: var(--ink-muted);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer nav { display: flex; gap: 22px; }

footer a { color: var(--ink-muted); text-decoration: none; font-weight: 700; }

footer a:hover { color: var(--teal-deep); }

/* --------------------------------------------------------------- reveal */

/* Hidden state exists only once JS has claimed the page (html.js), so the
   content is fully visible with no JS at all. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 0; margin-top: 40px; padding-bottom: 8px; }
  .mascot-hero { width: 200px; left: calc(50% - 260px); }
  .stat-grid, .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .privacy-band .wrap { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .mascot-hero { left: -18px; width: 160px; }
  .phone { transform: rotate(0deg); }
  .final-card { padding: 104px 22px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feat, .store-badge, .top-cta { transition: none; }
}
