@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --lantern-cream-soft: #fffdf9;
  --lantern-cream: #fff7ec;
  --lantern-ink: #221f3a;
  --lantern-ink-rgb: 34, 31, 58;
  --lantern-ink-soft: #4a4566;
  --lantern-muted: #6a6488;
  --lantern-indigo: #322e86;
  --lantern-indigo-deep: #1a1740;
  --lantern-amber: #ff9e3d;
  --lantern-amber-strong: #b35a0b;
  --lantern-gold-rgb: 255, 194, 75;
  --lantern-coral: #ff6f5e;
  --lantern-success-rgb: 74, 139, 92;
  --lantern-success-ink: #275c36;
  --lantern-error-ink: #8a3b3b;
  --lantern-border: rgba(var(--lantern-ink-rgb), 0.1);
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --content-width: 1120px;
  /* Spacing scale — 4px base, so --space-N == N*4px. Used for section rhythm and layout gaps. */
  --space-8: 32px;
  --space-14: 56px;
  --space-18: 72px;
  --space-20: 80px;
  --space-22: 88px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--lantern-cream-soft);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--lantern-ink);
  background: var(--lantern-cream-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--lantern-indigo);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 160ms ease-out;
}

a:hover {
  text-decoration-color: var(--lantern-amber);
}

/* Visited-state distinction for content links (inline prose + the legal
   library) so a parent can see which notices they've already opened. Nav,
   footer, and CTAs keep the single brand color. */
main p a:visited,
.legal-index a:visited {
  color: var(--lantern-muted);
}

/* Inline links inside prose flow with the sentence (WCAG 2.5.8 exempts in-line
   targets); nav, footer, buttons, and the legal index carry their own 44px sizing. */

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--lantern-indigo);
  outline-offset: 2px;
}

h1,
h2,
.wordmark,
.poster-number {
  font-family: var(--font-display);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--lantern-ink);
}

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  max-width: 20ch;
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 36px);
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

p,
li {
  max-width: 68ch;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--lantern-cream-soft);
  color: var(--lantern-indigo);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--lantern-border);
  background: rgba(255, 253, 249, 0.96);
}

.header-inner,
.section-inner,
.hero-inner,
.footer-inner {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-right: auto;
  color: var(--lantern-ink);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.wordmark-sun {
  width: 25px;
  height: 25px;
  margin-right: 9px;
  color: var(--lantern-amber);
  flex: none;
}

.wordmark[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--lantern-amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.28em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.mobile-menu a,
.site-footer a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  padding-inline: 10px;
  color: var(--lantern-ink-soft);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.42em;
}

.desktop-nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  color: var(--lantern-indigo);
  font-weight: 700;
  text-decoration-color: var(--lantern-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sign-in-pill,
.menu-button,
.menu-close,
.cta-gradient,
.button-solid {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.sign-in-pill {
  padding: 10px 14px;
  border: 1px solid var(--lantern-indigo);
  border-radius: 999px;
  color: var(--lantern-indigo);
  background: var(--lantern-cream-soft);
  font-size: 14px;
  white-space: nowrap;
}

.pill-compact {
  display: none;
}

.menu-button,
.menu-close {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lantern-indigo-deep);
  color: var(--lantern-cream-soft);
  font-size: 14px;
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 90;
  padding: 24px;
  background: var(--lantern-cream-soft);
  overflow-y: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  width: 100%;
  min-height: 56px;
  border-bottom: 1px solid var(--lantern-border);
  padding-inline: 0;
  font-size: 22px;
}

.menu-close {
  width: 100%;
  margin-top: 32px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--lantern-indigo);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  padding: 72px 0 64px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 158, 61, 0.2), rgba(255, 158, 61, 0) 58%),
    var(--lantern-cream-soft);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(720px, 88vw);
  height: 240px;
  background: radial-gradient(ellipse closest-side at 50% 50%, rgba(var(--lantern-gold-rgb), 0.26), rgba(var(--lantern-gold-rgb), 0) 100%);
  pointer-events: none;
  transform: translateX(-50%);
  animation: hero-bloom 240ms ease-out both;
}

.home-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  animation: hero-fade 220ms ease-out both;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  width: 100%;
}

.home-hero h1 {
  max-width: 900px;
}

.hero-support {
  max-width: 660px;
  margin-bottom: 16px;
  color: var(--lantern-ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.availability-note {
  color: var(--lantern-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.availability-note {
  max-width: 640px;
  margin-top: 14px;
}

.cta-gradient,
.button-solid {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 180ms ease-out;
}

.cta-gradient {
  background: linear-gradient(120deg, var(--lantern-amber), var(--lantern-coral));
  color: var(--lantern-ink);
  box-shadow: 0 12px 26px rgba(255, 120, 80, 0.28);
}

.button-solid {
  background: var(--lantern-indigo);
  color: var(--lantern-cream-soft);
  box-shadow: 0 10px 22px rgba(50, 46, 134, 0.2);
}

.cta-gradient:hover,
.button-solid:hover {
  transform: translateY(-2px);
}

.cta-gradient:focus-visible {
  outline: 3px solid var(--lantern-amber-strong);
  outline-offset: 3px;
}

.hero-cta {
  margin-bottom: 44px;
}

.type-poster {
  display: flex;
  width: min(100%, 520px);
  min-height: 220px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 32px;
  border: 1px solid var(--lantern-border);
  border-radius: 16px;
  background: var(--lantern-cream);
  color: var(--lantern-ink-soft);
  box-shadow: 0 20px 50px -36px rgba(var(--lantern-ink-rgb), 0.42);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.18;
  text-align: left;
}

.type-poster strong {
  color: var(--lantern-ink);
  font-size: 1.3em;
  font-weight: 700;
}

.poster-number {
  color: var(--lantern-amber);
  font-size: clamp(44px, 7vw, 76px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.app-shot {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-inline: auto;
  border-radius: 30px;
  border: 1px solid var(--lantern-border);
  box-shadow: 0 30px 60px -28px rgba(var(--lantern-ink-rgb), 0.45);
}

/* Landscape image of the Lantern device (not a phone screenshot, so it gets
   its own frame). Uncaptioned by founder decision 2026-07-17 (PR #216). */
.product-figure {
  margin: 0;
  justify-self: center;
}

.product-shot {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--lantern-border);
  box-shadow: 0 30px 60px -28px rgba(var(--lantern-ink-rgb), 0.45);
}

/* App-screenshot figure + caption. The caption labels the phone screens as the
   parent companion app, so a "screen" next to the screen-free promise reads as
   the parent's tool, not the child's. */
.app-figure {
  margin: 0;
  justify-self: center;
}

.app-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--lantern-muted);
  text-align: center;
}

/* Small on-brand mockups of real app components, for the few slots with no
   clean screenshot (consent signature, privacy controls, a support reply). */
.app-mock {
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--lantern-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 26px 52px -32px rgba(var(--lantern-ink-rgb), 0.42);
  text-align: left;
}

.mock-kicker {
  margin: 0 0 14px;
  color: var(--lantern-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-lead {
  margin: 0 0 12px;
  color: var(--lantern-ink);
  font-size: 16px;
  font-weight: 700;
}

.mock-signfield {
  padding: 8px 0 10px;
  border-bottom: 2px solid var(--lantern-border);
}

.mock-signature {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--lantern-indigo);
}

.mock-fine {
  margin: 12px 0 0;
  color: var(--lantern-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mock-pill {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.mock-pill-green {
  background: rgba(var(--lantern-success-rgb), 0.14);
  color: var(--lantern-success-ink);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--lantern-border);
  color: var(--lantern-ink);
  font-size: 15px;
  font-weight: 600;
}

.mock-row:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.mock-toggle {
  position: relative;
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: rgba(var(--lantern-ink-rgb), 0.16);
  flex: none;
}

.mock-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mock-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lantern-muted);
  border-top: 2px solid var(--lantern-muted);
  transform: rotate(45deg);
  flex: none;
}

.mock-bubble {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.mock-ask {
  margin-left: auto;
  border: 1px solid var(--lantern-border);
  border-bottom-right-radius: 5px;
  background: var(--lantern-cream);
  color: var(--lantern-ink);
}

.mock-reply {
  border-bottom-left-radius: 5px;
  background: var(--lantern-indigo);
  color: var(--lantern-cream-soft);
}

.section,
.story-band,
.page-intro {
  padding: var(--space-14) 0;
  text-align: left;
}

.page-intro {
  padding-top: var(--space-18);
}

.warm-band {
  border-block: 1px solid var(--lantern-border);
  background: var(--lantern-cream);
}

.quiet-band,
.section {
  background: var(--lantern-cream-soft);
}

.story-layout,
.intro-layout,
.editorial-split,
.waitlist-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.story-copy p,
.intro-copy,
.editorial-split p,
.quiet-statement p,
.section-lede {
  color: var(--lantern-ink-soft);
}

.intro-copy {
  max-width: 62ch;
  font-size: 20px;
}

.editorial-narrow,
.quiet-statement {
  max-width: 820px;
}

.quiet-statement {
  padding: 8px 0;
}

.capability-list {
  max-width: 62ch;
  margin: 32px 0 0;
  padding-left: 1.25em;
  color: var(--lantern-ink-soft);
  font-size: 18px;
  line-height: 1.6;
  list-style: disc;
  text-align: left;
}

.capability-list li + li {
  margin-top: 12px;
}

.capability-list ::marker {
  color: var(--lantern-amber-strong);
}

.waitlist-section {
  border-top: 1px solid var(--lantern-border);
  background: var(--lantern-cream);
}

.lantern-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 22px 50px -28px rgba(20, 15, 55, 0.32);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--lantern-ink-rgb), 0.24);
  border-radius: 12px;
  background: var(--lantern-cream-soft);
  color: var(--lantern-ink);
  font-size: 18px;
}

.form-row input[aria-invalid="true"] {
  border-color: var(--lantern-coral);
}

.form-help,
.form-error,
.form-status,
.privacy-link {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form-help,
.privacy-link {
  color: var(--lantern-muted);
}

/* Standalone tappable link: pad the hit area to ~40px so it clears the 24px
   WCAG 2.5.8 minimum on mobile (the 14px text alone is only ~19px tall). */
.privacy-link a {
  display: inline-block;
  padding-block: 10px;
}

.privacy-link {
  margin-top: 2px;
}

.form-error {
  color: var(--lantern-error-ink);
}

.form-status {
  padding: 14px;
  border-radius: 10px;
  background: rgba(var(--lantern-success-rgb), 0.12);
  color: var(--lantern-success-ink);
}

.waitlist-form.is-success .form-row,
.waitlist-form.is-success .form-help,
.waitlist-form.is-success .form-error {
  display: none;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.legal-index {
  margin-top: 32px;
  border-top: 1px solid var(--lantern-border);
}

.legal-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-index a {
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--lantern-border);
  color: var(--lantern-ink);
  text-decoration-color: transparent;
}

.legal-index a:hover {
  text-decoration-color: var(--lantern-amber);
}

.legal-index span {
  color: var(--lantern-muted);
  font-size: 16px;
}

.faq-list {
  margin-top: 32px;
}

.faq-list article {
  padding: 28px 0;
  border-top: 1px solid var(--lantern-border);
}

.faq-list article:last-child {
  border-bottom: 1px solid var(--lantern-border);
}

.faq-list p {
  margin-bottom: 0;
  color: var(--lantern-ink-soft);
}

.not-found {
  min-height: 70svh;
}

.not-found .button-solid {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--lantern-border);
  background: var(--lantern-indigo-deep);
  color: var(--lantern-cream-soft);
}

.footer-inner {
  padding-block: 40px;
}

.footer-inner p {
  margin-bottom: 20px;
  color: var(--lantern-cream-soft);
  font-size: 16px;
  font-weight: 700;
}

.footer-inner .footer-address {
  margin-top: -8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--lantern-cream-soft);
  opacity: 0.72;
}

.site-footer .footer-address a {
  color: inherit;
}

.company-details {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.company-details > div {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.company-details dt {
  flex: 0 0 56px;
  color: var(--lantern-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.company-details dd {
  margin: 0;
  color: var(--lantern-ink-soft);
  font-size: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.site-footer a {
  padding-inline: 0;
  color: #fff7ec;
  font-size: 14px;
  text-decoration-color: rgba(255, 247, 236, 0.48);
}

@keyframes hero-bloom {
  from { opacity: 0; transform: translateX(-50%) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Email + submit row goes two-column here, before the full waitlist layout switches to two columns at 768px. */
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  .header-inner,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 64px, var(--content-width));
  }

  .home-hero,
  .page-intro {
    padding-top: var(--space-22);
  }

  .home-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: var(--space-14);
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .home-hero h1 {
    max-width: none;
  }

  .section,
  .story-band {
    padding-block: var(--space-20);
  }

  .story-layout,
  .intro-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-18);
  }

  .story-layout.reverse,
  .intro-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .story-layout.reverse .story-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .editorial-split,
  .waitlist-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-20);
    align-items: start;
  }

  .waitlist-layout {
    align-items: center;
  }

}

/* The five nav labels only fit on one line once the container is wide enough
   (~960px). Below that, keep the hamburger menu so the multi-word labels
   ("How it works", "Privacy & safety") don't wrap onto two lines. */
@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .home-hero-content {
    align-items: stretch;
    text-align: left;
  }

  .home-hero h1,
  .hero-support {
    max-width: none;
  }

  .hero-cta {
    width: 100%;
  }

  /* Mobile story bands read text first, visual after (founder call 2026-07-16). */
  .story-copy,
  .story-layout.reverse .story-copy {
    grid-row: 1;
  }

  .legal-index a {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Phones: keep the header on one line without crowding. The full "Parent
   sign-in" pill overruns the header padding below ~430px, so tighten the
   wordmark and shorten the pill to "Sign in" across the phone range. */
@media (max-width: 430px) {
  .header-inner {
    gap: 12px;
    width: min(100% - 32px, var(--content-width));
  }

  .header-actions {
    gap: 6px;
  }

  .wordmark {
    font-size: 24px;
  }

  .wordmark-sun {
    width: 21px;
    height: 21px;
    margin-right: 7px;
  }

  .pill-full {
    display: none;
  }

  .pill-compact {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glow,
  .home-hero-content {
    animation: none;
  }

  .hero-glow {
    transform: translateX(-50%);
  }

  .cta-gradient,
  .button-solid,
  a {
    transition: none;
  }

  .cta-gradient:hover,
  .button-solid:hover {
    transform: none;
  }
}
