/* KidsAccount landing page — palette pulled from the app theme (src/theme/colors.ts). */

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-50: #e6faf2;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-50: #fff4ed;
  --purple: #8b5cf6;
  --purple-50: #f3f0ff;
  --cream: #fff8ec;
  --blue-50: #e6f4fe;

  --ink: #262626;
  --muted: #525252;
  --faint: #737373;
  --line: #e5e5e5;
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(38, 38, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 118, 110, 0.16);
  --maxw: 1120px;

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* The `hidden` attribute is only `display: none` in the UA stylesheet, so ANY
   author rule that sets display beats it — `.btn { display: inline-flex }`
   below would leave a hidden button fully visible. This makes `hidden` mean
   hidden regardless of what else matches. */
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; cursor: pointer;
  border: none; border-radius: 999px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-logo { border-radius: 10px; }
.brand-name { font-size: 20px; letter-spacing: -0.02em; }
.brand-accent { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 700; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn-primary { color: #fff; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px;
  background: var(--teal-50); color: var(--teal-dark);
  border-radius: 999px; font-weight: 800; font-size: 14px;
}
.hero-title { margin: 0 0 18px; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 900; }
.grad {
  background: linear-gradient(90deg, var(--teal), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 28px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.hero-sub strong { color: var(--ink); }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-soon { color: var(--faint); font-weight: 700; font-size: 15px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 26px 0 0; color: var(--muted); font-weight: 700; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-mascot { position: relative; width: min(420px, 86%); filter: drop-shadow(0 20px 40px rgba(13,148,136,.22)); }
.blob {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-50), var(--teal-50));
  filter: blur(2px); animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* Trust strip */
.trust { background: var(--teal); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 14px 24px; font-weight: 800; font-size: 15px; text-align: center; }
.trust span[aria-hidden] { opacity: .55; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--white), var(--cream)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 900; }
.section-head p { margin: 0; font-size: 19px; color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px 22px; transition: transform .14s ease, box-shadow .14s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feat-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; }
.feat-icon.teal { background: var(--teal-50); }
.feat-icon.orange { background: var(--orange-50); }
.feat-icon.purple { background: var(--purple-50); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 30px 26px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }
.how-mascot { display: grid; place-items: center; margin-top: 40px; }
.how-mascot img { filter: drop-shadow(0 14px 26px rgba(249,115,22,.2)); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.price-featured { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-tag {
  position: absolute; top: 18px; right: 18px; background: var(--teal); color: #fff;
  font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.price-tag.subtle { background: var(--orange); }
.price-name { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.price-amount { margin: 0 0 6px; font-size: 42px; font-weight: 900; letter-spacing: -0.02em; }
.price-amount span { font-size: 16px; font-weight: 700; color: var(--faint); }
.price-note { margin: 0 0 18px; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-list li { padding-left: 28px; position: relative; color: var(--ink); font-weight: 600; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.pricing-fineprint { text-align: center; color: var(--faint); margin: 34px auto 0; max-width: 60ch; }

/* CTA / waitlist */
.cta-section { background: linear-gradient(160deg, var(--teal-50), var(--blue-50)); }
.cta-inner { text-align: center; max-width: 640px; }
.cta-mascot { margin: 0 auto 8px; filter: drop-shadow(0 16px 30px rgba(13,148,136,.24)); }
.cta-inner h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
.cta-inner p { margin: 0 auto 26px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.waitlist-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.waitlist-form input {
  font-family: inherit; font-size: 17px; padding: 14px 20px; min-width: 260px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.waitlist-form input:focus { outline: 3px solid rgba(13,148,136,.25); border-color: var(--teal); }
.waitlist-msg { margin-top: 18px; font-weight: 800; color: var(--teal-dark); }
.waitlist-error { margin-top: 18px; font-weight: 700; color: #b91c1c; }
.waitlist-form input:disabled,
.waitlist-form button:disabled { opacity: .55; cursor: not-allowed; }

/* Footer */
/* Long-form pages (privacy, support). Narrower than --maxw because legal prose is
   unreadable at full landing-page width. */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
.legal .legal-meta { margin: 0 0 34px; color: var(--faint); font-weight: 700; font-size: 15px; }
.legal h2 { margin: 38px 0 12px; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin: 0 0 9px; }
.legal a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.legal strong { color: var(--ink); }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 800; color: var(--ink); }
.legal-table td { color: var(--muted); line-height: 1.6; }
/* Tables are the one thing that will not reflow on a phone. */
.legal-table-wrap { overflow-x: auto; }

.legal-callout {
  background: var(--teal-50); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 26px;
}
.legal-callout p:last-child { margin: 0; }

.legal-contact {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px; margin: 0 0 26px;
}
.legal-contact p:last-child { margin: 0; }

.site-footer { background: var(--ink); color: #d4d4d4; padding: 46px 0; }
.footer-inner { display: grid; gap: 10px; text-align: center; }
.site-footer .brand { justify-content: center; color: #fff; }
.footer-tag { margin: 4px 0 0; color: #e5e5e5; font-weight: 700; }
.footer-legal { margin: 6px 0 0; font-size: 14px; color: #a3a3a3; }

/* Responsive */
@media (max-width: 940px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: none; }
  .cta-row, .hero-badges { justify-content: center; }
  .hero-art { order: -1; }
  .steps, .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
}
@media (max-width: 620px) {
  .nav a:not(.btn) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
