/* ==========================================================================
   Homegrown — landing page
   Same design system as the app (styles.css): cream dot-grid paper, 3px ink
   borders, hard offset shadows, flat colour blocks, Archivo Black + Space
   Grotesk. Tokens are copied from the app so the landing and the product
   read as one thing.
   ========================================================================== */

:root {
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Archivo Black', var(--font-body);

  --bg: #f3efe6;
  --card: #ffffff;
  --ink: #14120e;
  --muted: #6b655a;

  --yellow: #ffd43b;
  --pink: #ff90e8;
  --blue: #55ccf2;
  --green: #9ff26b;
  --orange: #ff8a3d;
  --red: #ff5c5c;
  --lilac: #c4b5fd;
  --teal: #2dd4bf;
  --star: #f5a300;

  --bw: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-xs: 3px 3px 0 var(--ink);
}

/* ------------------------------------------------------------------ base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: radial-gradient(var(--ink) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); }

a { color: inherit; }

.shell { width: min(1140px, 100% - 48px); margin-inline: auto; }

/* ------------------------------------------------------------ typography */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}

h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }

.eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--yellow); }

.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-sub { margin-top: 18px; font-size: 1.05rem; max-width: 560px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn-yellow { background: var(--yellow); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: 0.85rem; box-shadow: var(--shadow-sm); }

.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 26px;
}

.brand {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none;
}
.brand-logo { display: flex; align-items: center; gap: 8px; height: 70px; }
.brand-nova { display: block; width: 70px; height: 70px; }
.brand-wording { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 5px; border-bottom: 5px solid var(--green); }
.brand-wordmark { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 800; letter-spacing: -0.08em; line-height: .92; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  padding-block: 48px 96px;
}

.hero h1 em {
  font-style: normal;
  background: var(--pink);
  padding: 0 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-intro { font-size: 1.2rem; max-width: 540px; margin-block: 28px 34px; }

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-note {
  margin-top: 34px;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}

/* hero art — mock kid dashboard */
.hero-art { position: relative; display: grid; place-items: center; min-height: 480px; }

.burst {
  position: absolute; z-index: 1;
  font-family: var(--font-display); font-size: 3rem;
}
.burst-1 { left: -6px; bottom: 30px; color: var(--red); }
.burst-2 { right: 0; top: 10px; color: var(--star); }
.burst-3 { right: 70px; bottom: -18px; color: var(--blue); }

.dash-card {
  position: relative; z-index: 2;
  width: min(100%, 440px);
  padding: 18px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
}

.dash-top {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.85rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.dash-avatar {
  width: 38px; height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}
.dash-stars {
  margin-left: auto;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 9px;
}

.dash-heading {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.dash-heading small,
.quest small {
  display: block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.dash-heading strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.dash-progress {
  font-family: var(--font-display); font-size: 1.5rem;
  background: var(--green);
  border: 2px solid var(--ink);
  padding: 4px 10px;
}
.dash-progress i { font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; }

.quest {
  display: flex; align-items: center; gap: 12px;
  min-height: 70px; padding: 10px; margin-top: 10px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.quest > div { flex: 1; }
.quest b { font-size: 0.95rem; }
.q-icon, .q-check, .q-go {
  flex: none;
  display: grid; place-items: center;
  width: 37px; height: 37px;
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 1.2rem;
}
.q-check { background: var(--green); }
.q-go { background: var(--card); }
.q-blue { background: var(--blue); }
.q-green { background: var(--green); }
.q-gold { background: var(--yellow); }

.dash-footer {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; font-weight: 700;
  padding-top: 14px;
}

.sticker {
  position: absolute; z-index: 3;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.sticker-dragon {
  right: -14px; bottom: -6px;
  width: 84px; height: 84px;
  background: var(--green);
  transform: rotate(8deg);
}
.sticker-note {
  left: -16px; top: 44px;
  padding: 10px;
  background: var(--yellow);
  font-family: var(--font-display); font-size: 0.75rem; line-height: 1.15;
  transform: rotate(-9deg);
}

/* --------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  background: var(--ink); color: var(--yellow);
  border-block: var(--bw) solid var(--ink);
  font-family: var(--font-display); font-size: 1.3rem;
  white-space: nowrap;
}
.marquee-track { display: inline-block; padding-block: 14px; animation: slide 26s linear infinite; }
.marquee i { font-style: normal; color: var(--pink); margin-inline: 20px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------------------------------------------------------- origin story */
/* The trust section: why this exists, in the family's own voice. Sits on a
   white card so it reads as a note pinned to the dot-grid paper. */
.story {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  margin-top: 100px;
  padding: 46px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
}

.story-head { position: relative; }
.story-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

.story-tag {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 13px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-display); font-size: 0.72rem; line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.story-body p { font-size: 1.05rem; }
.story-body p + p { margin-top: 18px; }
.story-body strong { background: var(--yellow); padding: 1px 5px; }

/* -------------------------------------------------------------- features */
.features { padding-block: 100px 90px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  position: relative;
  padding: 28px 24px;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
}
.f-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-display); font-size: 1.05rem;
}
.f-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display); font-size: 1.6rem;
}
.feature h3 { font-size: 1.35rem; letter-spacing: -0.01em; margin-block: 24px 12px; }
.feature p { font-size: 0.95rem; }
.f-blue { background: var(--blue); }
.f-pink { background: var(--pink); }
.f-yellow { background: var(--yellow); }

/* ---------------------------------------------------- surprise roll split */
.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: center;
  padding-block: 30px 110px;
}
.split-intro { max-width: 520px; margin-block: 24px 30px; font-size: 1.05rem; }

.mini-pills {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 700;
}
.pill {
  padding: 9px 13px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.p-pink { background: var(--pink); }
.p-blue { background: var(--blue); }
.p-yellow { background: var(--yellow); }

/* Nova section — card sits FIRST in the DOM so it alternates against the
   surprise-roll block above (copy-left / card-right, then card-left /
   copy-right). The base .split grid gives column 1 the extra width, so the
   ratio is flipped here to keep the reading column the wider one. */
#nova { grid-template-columns: 0.9fr 1.1fr; }
.nova-card {
  position: relative;
  justify-self: center;
  display: flex; align-items: center; justify-content: center;
  width: min(100%, 340px);
  padding: 40px 28px 52px;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.nova-portrait { width: min(100%, 210px); height: auto; display: block; }
.nova-speech {
  position: absolute; left: 50%; bottom: -20px;
  transform: translateX(-50%) rotate(-1.5deg);
  width: max-content; max-width: 92%;
  padding: 10px 16px;
  background: var(--paper, #f7f2e7);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.86rem; font-weight: 700; line-height: 1.3;
  text-align: center;
}

@media (max-width: 900px) {
  /* Stacked, copy first — the words carry the point; Nova is the illustration. */
  #nova { grid-template-columns: 1fr; }
  #nova .nova-card { order: 2; margin-top: 34px; }
  #nova .split-copy { order: 1; }
}

.roll-card {
  justify-self: center;
  width: min(100%, 360px);
  padding: 22px 28px 30px;
  background: var(--green);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
  transform: rotate(-2deg);
}
.roll-top {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.mystery {
  display: grid; place-items: center;
  width: 104px; height: 104px;
  margin: 22px auto;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display); font-size: 4rem;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-7px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .mystery { animation: none; } }
.roll-card h3 { font-size: 1.5rem; }
.roll-card p { font-size: 0.9rem; margin-block: 10px 20px; }

/* --------------------------------------------------------------- avatars */
.explorers { padding-block: 0 110px; }

.explorer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.explorer {
  padding: 18px 14px 14px;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.explorer:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 9px 9px 0 var(--ink); }
.explorer img {
  width: min(100%, 130px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
}
.explorer figcaption {
  margin-top: 12px;
  font-family: var(--font-display); font-size: 1rem;
  text-transform: uppercase;
}
.e-orange { background: var(--orange); }
.e-teal { background: var(--teal); }
.e-lilac { background: var(--lilac); }
.e-green { background: var(--green); }
.e-yellow { background: var(--yellow); }
.e-pink { background: var(--pink); }
.e-blue { background: var(--blue); }
.e-red { background: var(--red); }

/* ---------------------------------------------------------- star economy */
.economy {
  background: var(--ink); color: #fff;
  border-block: var(--bw) solid var(--ink);
  padding-block: 90px;
}
.economy .section-heading { margin-bottom: 40px; }

.econ-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.econ-card {
  padding: 26px 20px;
  background: var(--card); color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
  text-align: center;
}
.econ-card strong {
  display: block;
  font-family: var(--font-display); font-size: 2.6rem;
}
.econ-card span {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.econ-gold { background: var(--yellow); box-shadow: 6px 6px 0 var(--star); }

.econ-note { margin-top: 36px; max-width: 560px; font-size: 1.02rem; color: #d9d3c4; }

/* --------------------------------------------------------------- closing */
.closing {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  margin-block: 100px;
  padding: 48px;
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.closing .eyebrow { margin-bottom: 12px; }
.closing h2 { max-width: 620px; }
.closing-note { max-width: 540px; margin-top: 20px; font-size: 1rem; }

/* ---------------------------------------------------------------- footer */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-top: var(--bw) solid var(--ink);
  padding-block: 28px 44px;
  font-size: 0.85rem; font-weight: 600;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; padding: 32px 26px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 30px 70px; }
  .hero-art { min-height: 0; max-width: 480px; margin-inline: auto; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; padding-block: 20px 80px; }
  .roll-card { justify-self: start; }
  .explorer-grid { grid-template-columns: repeat(2, 1fr); }
  .econ-grid { grid-template-columns: repeat(2, 1fr); }
  .features { padding-block: 76px 66px; }
  .explorers { padding-block: 0 80px; }
  .economy { padding-block: 66px; }
  .closing { margin-block: 70px; padding: 34px 28px; }
}

@media (max-width: 480px) {
  .shell { width: min(1140px, 100% - 32px); }
  .site-header .btn { padding: 10px 12px; font-size: 0.78rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .sticker-note { left: -8px; }
  .sticker-dragon { right: -6px; width: 66px; height: 66px; }
  .marquee { font-size: 1.05rem; }
  .econ-card strong { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   Waitlist (2026-07-21) — the closing card's CTA became a signup form.
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }

.waitlist-form { flex: 1 1 340px; min-width: 0; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-row input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 13px 16px;
  /* 16px floor: below it iOS zooms the page on focus and leaves it zoomed */
  font-family: inherit; font-size: 16px;
  background: var(--card, #fff);
  border: var(--bw) solid var(--ink);
  color: var(--ink);
}
.waitlist-row input[type="email"]:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Honeypot: moved off-screen rather than display:none — some bots skip
   fields the browser reports as invisible, and off-screen still "renders". */
#waitlist-website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-note { margin-top: 12px; font-size: 0.8rem; opacity: 0.8; }
.waitlist-note a { color: inherit; }
.waitlist-done { font-size: 1.05rem; }
.waitlist-error { font-size: 0.9rem; font-weight: 700; color: #a11a1a; margin-top: 10px; }
