/* =====================================================================
   KiddieGPT — Editorial Meadow design system
   Refined serif headlines · warm cream + dark teal · sharp yellow accents
   ===================================================================== */

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Meadow palette */
  --teal: #005248;
  --teal-deep: #003D35;
  --teal-ink: #0A1F1A;
  --lime: #ECFE01;
  --lime-soft: #FBF8D5;
  --olive: #BDBD85;
  --cream: #F4F3CC;
  --cream-soft: #FAF8E0;
  --white: #FFFFFF;
  --muted: #5D6E66;
  --line: rgba(0, 82, 72, 0.12);
  --line-soft: rgba(0, 82, 72, 0.06);
  --shadow-card: 0 10px 26px rgba(0, 82, 72, 0.06);
  --shadow-hover: 0 22px 44px rgba(0, 82, 72, 0.14);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spatial */
  --container: 1180px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --t: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ──────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--teal);
  background: var(--cream-soft);
  background-image:
    radial-gradient(ellipse at top right, rgba(236, 254, 1, 0.18), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(189, 189, 133, 0.20), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0.32  0 0 0 0 0.28  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Content sits above the grain */
.shell, header, footer, main, section { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 500; }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 700; }

em { font-style: italic; color: var(--teal); }
em.lime { color: var(--teal); background: linear-gradient(180deg, transparent 60%, var(--lime) 60%); padding: 0 0.1em; font-style: italic; }

p { margin: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--lime);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform 0.18s var(--t), box-shadow 0.18s var(--t), background 0.18s var(--t);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--teal);
  color: var(--lime);
  box-shadow: 0 6px 18px rgba(0, 82, 72, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 82, 72, 0.30); background: #006B5E; }
.btn-primary:active { transform: translateY(0); }
.btn-yellow {
  background: var(--lime);
  color: var(--teal);
  box-shadow: 0 6px 18px rgba(236, 254, 1, 0.45);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236, 254, 1, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: var(--lime); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }

/* ── Header / Nav ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 248, 224, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(236, 254, 1, 0.35);
}
.brand-mark svg { width: 32px; height: 36px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal);
  opacity: 0.78;
  transition: opacity 0.15s;
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.current { opacity: 1; }
.nav-links a.current::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 3px;
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--teal); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    box-shadow: var(--shadow-hover);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; opacity: 1; }
  .nav-links a:hover { background: var(--cream); }
  .nav-links a.current::after { display: none; }
  .nav-cta { margin: 4px; text-align: center; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin: 22px 0 24px;
}
.hero h1 em.lime { font-style: italic; }
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
  font-weight: 500;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  max-width: 460px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.waitlist-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 82, 72, 0.16);
}
.waitlist-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--teal);
}
.waitlist-form input::placeholder { color: rgba(0, 82, 72, 0.4); }
.waitlist-form button {
  background: var(--teal);
  color: var(--lime);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.18s, transform 0.18s;
}
.waitlist-form button:hover { background: #006B5E; transform: translateX(2px); }
.waitlist-form.success input { color: var(--muted); }
.waitlist-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.waitlist-meta::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--lime);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg.hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 82, 72, 0.18));
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkle 3s ease-in-out infinite;
}
.hero-sparkle.s1 { top: 5%; right: 20%; width: 28px; animation-delay: 0s; }
.hero-sparkle.s2 { bottom: 15%; left: 5%; width: 20px; animation-delay: 1s; }
.hero-sparkle.s3 { top: 30%; left: 10%; width: 16px; animation-delay: 2s; }
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.3) rotate(20deg); opacity: 1; }
}
@media (max-width: 880px) {
  .hero { padding: 50px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-sub, .waitlist-form { margin-left: auto; margin-right: auto; }
  .waitlist-meta { justify-content: center; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-top: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.trust-item svg { width: 18px; height: 18px; stroke: var(--teal); }

/* ── Sections (general) ───────────────────────────────────────────── */
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ── Features (bento-ish grid) ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature-card {
  padding: 32px 30px;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--t), box-shadow 0.25s var(--t);
  display: flex;
  flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card .fc-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature-card.dark .fc-icon { background: rgba(255, 255, 255, 0.12); }
.feature-card .fc-icon svg { width: 30px; height: 30px; stroke: currentColor; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  color: inherit;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.78;
  margin-bottom: auto;
  font-weight: 500;
}
.feature-card .fc-meta {
  margin-top: 28px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.65;
  text-transform: uppercase;
}
.fc-light { background: var(--lime); color: var(--teal); grid-column: span 6; min-height: 260px; }
.fc-olive { background: var(--olive); color: var(--teal); grid-column: span 6; min-height: 260px; }
.fc-cream { background: var(--cream); color: var(--teal); grid-column: span 6; min-height: 260px; }
.fc-dark { background: var(--teal); color: var(--lime-soft); grid-column: span 6; min-height: 260px; }
.fc-dark h3, .fc-dark .fc-icon { color: var(--lime); }
@media (max-width: 720px) {
  .fc-light, .fc-olive, .fc-cream, .fc-dark { grid-column: span 12; min-height: auto; }
}

/* ── How it works (numbered editorial) ────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps li {
  position: relative;
  padding-top: 12px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  color: var(--lime);
  -webkit-text-stroke: 1.5px var(--teal);
  display: block;
  margin-bottom: 12px;
}
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-num { font-size: 72px; }
}

/* ── Safety section (parent dashboard) ────────────────────────────── */
.safety {
  background: var(--teal);
  color: var(--lime-soft);
  padding: 110px 0;
  border-radius: 56px;
  margin: 40px 28px;
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(236, 254, 1, 0.18), transparent 70%);
  pointer-events: none;
}
.safety .container { position: relative; z-index: 2; }
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.safety h2 { color: var(--lime-soft); }
.safety .eyebrow { background: var(--lime); color: var(--teal); }
.safety p { color: rgba(251, 248, 213, 0.78); font-size: 17px; line-height: 1.6; margin: 18px 0 28px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--lime-soft);
}
.check-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--lime);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005248' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}
.dashboard-mock {
  background: var(--white);
  color: var(--teal);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transform: rotate(-1.5deg);
  transition: transform 0.3s var(--t);
}
.dashboard-mock:hover { transform: rotate(0deg) scale(1.02); }
.dashboard-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.dashboard-mock-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(0, 82, 72, 0.18);
}
.dashboard-mock-bar span:first-child { background: #FF5F57; }
.dashboard-mock-bar span:nth-child(2) { background: #FEBC2E; }
.dashboard-mock-bar span:nth-child(3) { background: #28C840; }
.dashboard-mock-bar small { margin-left: 10px; font-size: 12px; font-weight: 600; opacity: 0.55; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dm-stat { background: var(--cream); border-radius: 14px; padding: 14px 12px; text-align: center; }
.dm-stat strong { font-family: var(--font-display); font-size: 26px; font-weight: 600; display: block; color: var(--teal); }
.dm-stat small { font-size: 11px; opacity: 0.7; font-weight: 600; }
.dm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--cream-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.dm-row .dm-progress { flex: 1; height: 6px; background: var(--line); border-radius: 999px; margin: 0 12px; overflow: hidden; }
.dm-row .dm-progress > span { display: block; height: 100%; background: var(--lime); }
.dm-row code { font-family: inherit; color: var(--muted); font-size: 12px; }
@media (max-width: 880px) {
  .safety { margin: 24px 16px; padding: 72px 0; border-radius: 36px; }
  .safety-grid { grid-template-columns: 1fr; gap: 40px; }
  .dashboard-mock { transform: none; }
}

/* ── Pricing teaser (landing) ──────────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s var(--t), box-shadow 0.22s var(--t);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.price-card.featured {
  background: var(--teal);
  color: var(--lime-soft);
  border-color: transparent;
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 82, 72, 0.25);
}
.price-card.featured:hover { transform: scale(1.05) translateY(-3px); }
.price-card .price-tier {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: 6px;
}
.price-card.featured .price-tier { color: var(--lime); }
.price-card .price-tagline {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}
.price-card.featured .price-tagline { color: rgba(251, 248, 213, 0.7); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-amount strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-amount span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.price-card.featured .price-amount span { color: rgba(251, 248, 213, 0.6); }
.price-billing { font-size: 12px; opacity: 0.65; margin-bottom: 24px; font-weight: 600; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
}
.price-features li::before {
  content: '✓';
  font-weight: 900;
  color: var(--teal);
  background: var(--lime);
  width: 18px; height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  margin-top: 2px;
}
.price-features li.minus::before { content: '–'; background: var(--line); color: var(--muted); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card.featured .btn-primary { background: var(--lime); color: var(--teal); }
.price-card.featured .btn-primary:hover { background: var(--white); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(236, 254, 1, 0.4);
}
@media (max-width: 880px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 50px 22px 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.02em;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  width: 36px; height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.25s, background 0.25s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--lime);
  border-color: var(--lime);
}
.faq-item p {
  padding: 0 6px 22px;
  font-size: 16px;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

/* ── CTA banner ───────────────────────────────────────────────────── */
.cta-banner {
  background: var(--lime);
  border-radius: 36px;
  padding: 72px 48px;
  text-align: center;
  margin: 40px 28px 80px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--teal); opacity: 0.8; max-width: 540px; margin: 0 auto 32px; font-size: 18px; }
.cta-banner .btn { font-size: 16px; padding: 16px 32px; }
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal), transparent 60%);
  opacity: 0.07;
}
.cta-banner::before { top: -80px; left: -80px; }
.cta-banner::after { bottom: -80px; right: -80px; }
@media (max-width: 600px) {
  .cta-banner { margin: 24px 16px; padding: 56px 28px; border-radius: 28px; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--teal);
  color: var(--lime-soft);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .brand-mark { background: var(--lime); }
.footer-brand .brand-text { color: var(--lime-soft); }
.footer-tagline { margin-top: 14px; font-size: 14px; opacity: 0.7; max-width: 280px; line-height: 1.55; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 14.5px;
  color: rgba(251, 248, 213, 0.75);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 213, 0.12);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  opacity: 0.6;
  font-weight: 500;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Legal pages ──────────────────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}
.legal .eyebrow { margin-bottom: 16px; }
.legal h1 { font-size: clamp(36px, 4.8vw, 56px); margin-bottom: 12px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.legal .placeholder-banner {
  margin: 36px 0;
  padding: 20px 22px;
  background: #FFF7DC;
  border: 1px solid #E8C656;
  border-radius: 16px;
  font-size: 14.5px;
  color: #5B4500;
  font-weight: 500;
  line-height: 1.55;
}
.legal .placeholder-banner strong { font-weight: 800; }
.legal h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 56px 0 16px;
  letter-spacing: -0.025em;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--teal);
}
.legal p, .legal ul, .legal ol {
  font-size: 16px;
  line-height: 1.65;
  color: var(--teal);
  margin: 0 0 16px;
  opacity: 0.86;
}
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--teal); }

/* ── Pricing page ─────────────────────────────────────────────────── */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 0 auto 56px;
  position: relative;
}
.pricing-toggle button {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s;
  position: relative;
  z-index: 2;
}
.pricing-toggle button.active { color: var(--lime); }
.pricing-toggle .toggle-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: var(--teal);
  border-radius: var(--radius-pill);
  transition: transform 0.28s var(--t), width 0.28s var(--t);
  z-index: 1;
}
.pricing-toggle .save-tag {
  position: absolute;
  top: -10px;
  right: -36px;
  background: var(--lime);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Pricing comparison table */
.compare-table {
  margin-top: 80px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.compare-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  background: var(--cream);
  color: var(--teal);
  text-align: center;
}
.compare-table th:first-child { text-align: left; background: transparent; }
.compare-table th.featured-col { background: var(--teal); color: var(--lime); }
.compare-table td { text-align: center; color: var(--teal); font-weight: 500; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--teal); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--teal); font-weight: 800; }
.compare-table .yes::before { content: '✓ '; color: var(--teal); }
.compare-table .no { color: var(--muted); opacity: 0.6; }
.compare-table .no::before { content: '— '; }
@media (max-width: 760px) {
  .compare-table th, .compare-table td { padding: 14px 12px; font-size: 13px; }
}

/* Center pricing page section heading utility */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--teal);
  color: var(--lime);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 82, 72, 0.35);
  z-index: 200;
  transition: transform 0.35s var(--t);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Scroll reveal ────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--t), transform 0.7s var(--t);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =====================================================================
   v2 — Real product screenshots + Chrome Web Store integration
   ===================================================================== */

/* ── Hero: real screenshot in a browser frame ─────────────────────── */
.hero-shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 82, 72, 0.20);
  transform: rotate(-1.4deg);
  transition: transform 0.4s var(--t);
}
.hero-shot:hover { transform: rotate(0deg) scale(1.015); }
.hero-shot .frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.hero-shot .frame-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(0,82,72,.18); display: block;
}
.hero-shot .frame-bar i:first-child { background: #FF5F57; }
.hero-shot .frame-bar i:nth-child(2) { background: #FEBC2E; }
.hero-shot .frame-bar i:nth-child(3) { background: #28C840; }
.hero-shot .frame-bar small {
  margin-left: 8px; font-size: 11.5px; font-weight: 600;
  color: var(--muted); font-family: var(--font-mono);
}
.hero-shot img { width: 100%; display: block; }
.hero-float {
  position: absolute;
  bottom: -22px;
  left: -28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}
.hero-float .hf-badge {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  background: var(--teal);
  display: grid; place-items: center;
}
.hero-float .hf-badge svg { width: 20px; height: 20px; stroke: var(--lime); }
.hero-float strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--teal); }
.hero-float span { font-size: 12px; color: var(--muted); font-weight: 500; }
@media (max-width: 880px) {
  .hero-shot { transform: none; }
  .hero-float { left: 12px; bottom: -18px; }
}

/* ── Product tour: alternating screenshot rows ────────────────────── */
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 36px;
}
.tour-row:nth-child(even) .tour-text { order: 2; }
.tour-row:last-child { margin-bottom: 0; }
.tour-text .tour-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tour-text h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 8px 0 14px;
  letter-spacing: -0.03em;
}
.tour-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.tour-text .tour-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tour-text .tour-tags span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--teal);
  border: 1px solid var(--line-soft);
}
.tour-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--t), box-shadow 0.3s var(--t);
}
.tour-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tour-shot img { width: 100%; display: block; }
@media (max-width: 820px) {
  .tour-row { grid-template-columns: 1fr; gap: 24px; }
  .tour-row:nth-child(even) .tour-text { order: 0; }
}

/* ── Big collage band ─────────────────────────────────────────────── */
.collage-band {
  background: var(--teal);
  border-radius: 48px;
  margin: 0 28px;
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
}
.collage-band .section-head h2,
.collage-band .section-head .eyebrow { color: var(--lime-soft); }
.collage-band .section-head .eyebrow { background: var(--lime); color: var(--teal); }
.collage-band .section-head p { color: rgba(251,248,213,.72); }
.collage-img {
  margin-top: 16px;
  width: 100%;
  display: block;
  transform: translateY(20px);
}
@media (max-width: 600px) {
  .collage-band { margin: 0 16px; border-radius: 30px; padding-top: 52px; }
}

/* ── Chrome Web Store button ──────────────────────────────────────── */
.btn-chrome {
  background: var(--white);
  color: var(--teal);
  border: 1.5px solid var(--line);
  gap: 10px;
}
.btn-chrome:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
}
.btn-chrome svg { width: 20px; height: 20px; }
.cws-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

/* KiddieGPT parent-focused refresh */
.brand-mark {
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.hero-sub { max-width: 620px; }
.hero-shot img,
.tour-shot img,
.collage-img {
  object-fit: cover;
  object-position: center;
}
.tour-shot {
  background: #fff;
}
.tour-shot img {
  border-radius: 24px;
}
.collage-band {
  background: linear-gradient(180deg, rgba(244,243,204,.55), rgba(255,255,255,.35));
}
.collage-img {
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0,82,72,.16);
  border: 1px solid rgba(0,82,72,.10);
}
.parents-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
