/* Starlight Kids PPEC — landing page
   Values replicated from the Main.dc.html design reference. */

:root {
  /* Brand */
  --pink: #F575A8;
  --pink-deep: #B83A72;
  --pink-icon: #C2457A;
  --pink-req: #A8326A;
  --pink-err: #8A2252;
  --pink-tint: #FFF1F6;
  --orange: #FD862F;
  --orange-hover: #D9661A;
  --yellow: #FDD865;
  --gold: #EDA501;
  --gold-deep: #8F6200;
  --yellow-tint: #FFF8E0;
  --teal: #7AC3C2;
  --teal-badge: #7BC4C4;
  --teal-deep: #2F6E6D;
  --teal-tint: #E6F4F3;
  --green: #6AB083;
  --green-deep: #3E7D55;
  --lime: #B8D699;
  --periwinkle: #9499CA;
  --indigo: #4E559A;
  --indigo-line: #5A5FA0;
  --indigo-tint: #EEF0FA;
  --indigo-wash: #F4F5FC;
  --indigo-wash-2: #F6F7FC;
  --navy: #2E3166;
  --navy-text: #E1E3F5;

  /* Neutrals */
  --ink: #2B2B33;
  --ink-dark: #1F2A2A;
  --body: #3E3E48;
  --muted: #5A5A66;
  --muted-2: #6B6B76;
  --line: #EEF0F4;
  --input-line: #D5D8E3;
  --step-idle: #E4E5EC;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
  --shadow-soft: 0 18px 40px rgba(61, 66, 128, .14);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  font-family: var(--sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
a:hover { color: var(--orange-hover); }
h1, h2, h3, p { margin: 0; }

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

.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 1100px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.grid { display: grid; }
.deco { position: absolute; pointer-events: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.section-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; text-align: center;
}
.lede { font-size: 19px; color: var(--body); text-align: center; }
.tagline { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--teal-deep); text-align: center; }
.highlight { padding: 0 4px; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.fineprint { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--pink); color: var(--ink); text-decoration: none; font-weight: 600;
  border: none; border-radius: 999px; cursor: pointer; font-family: inherit;
  padding: 12px 22px; min-height: 44px; font-size: 15px;
}
.btn:hover { background: var(--orange); color: var(--ink); }
.btn--lg { font-size: 17px; padding: 16px 30px; min-height: 52px; }
.nav-link { color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--orange-hover); }

input:focus, select:focus { outline: 3px solid var(--teal); outline-offset: 1px; }

/* ---------- Motion ---------- */
@keyframes sk-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}
.tw { animation: sk-twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tw2 { animation-delay: 1.1s; }
.tw3 { animation-delay: 2.1s; }

.card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw { animation: none; }
  .card-lift { transition: none; }
  .card-lift:hover { transform: none; }
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo img { height: 72px; width: auto; }
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  font-size: 15px; font-weight: 500;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero__blob-top { left: 0; top: 0; width: min(360px, 42vw); height: 190px; }
.hero__blob-bottom { left: 0; bottom: 0; width: min(340px, 40vw); height: 150px; }
.hero__inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 120px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%;
  padding: 8px 18px; border-radius: 999px; background: var(--teal-badge);
  color: var(--ink-dark); font-size: 16px; font-weight: 500;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.08; letter-spacing: -0.5px; color: var(--ink);
}
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 560px; color: var(--body); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.hero__ctas .text-link { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero__ctas .text-link:hover { color: var(--orange-hover); }
.hero__motto {
  margin-top: 8px; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--green-deep);
}
.hero__media { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; position: relative; }
.hero__media .deco { z-index: 1; }
.hero__media img {
  width: 100%; max-width: 540px; aspect-ratio: 1200 / 1109; object-fit: cover;
  border-radius: 40px; box-shadow: 0 24px 60px rgba(61, 66, 128, .18);
}

/* ---------- Facts ---------- */
.facts { padding: 0 24px 72px; }
.facts__grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.fact {
  background: var(--white); border: 2px solid var(--teal-tint); border-radius: 24px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.fact--accent { background: var(--yellow-tint); border-color: var(--yellow); }
.fact__value { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--gold-deep); }
.fact__label { font-size: 16px; color: var(--body); }
.facts .fineprint { margin-top: 16px; }

.divider { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 8px 0 16px; }

/* ---------- Need ---------- */
.need { padding: 64px 24px 80px; }
.need .container { gap: 36px; }
.need .lede { margin: -12px auto 0; max-width: 720px; }
.need__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.need-card { border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.need-card h3 { font-size: 20px; font-weight: 600; }
.need-card p { color: var(--body); }
.need__close { margin: 0 auto; max-width: 720px; text-align: center; font-size: 18px; color: var(--body); }

.bg-pink { background: var(--pink-tint); }
.bg-indigo { background: var(--indigo-tint); }
.bg-teal { background: var(--teal-tint); }
.bg-yellow { background: var(--yellow-tint); }

/* ---------- What is a PPEC ---------- */
.ppec { position: relative; overflow: hidden; background: var(--teal); padding: 80px 24px; }
.ppec .container--narrow { position: relative; gap: 32px; }
.ppec__head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.ppec__head .eyebrow { margin-bottom: -6px; color: var(--ink-dark); }
.ppec__head h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1; color: var(--white);
}
.ppec__head p { max-width: 820px; font-size: 20px; line-height: 1.55; color: var(--ink-dark); }
.ppec__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card { background: var(--white); border-radius: 24px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.info-card h3 { font-size: 18px; font-weight: 600; }
.info-card p { font-size: 16px; color: var(--body); }
.ppec__quote {
  text-align: center; font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--ink-dark);
}
.ppec__sources { text-align: center; font-size: 13px; color: var(--ink-dark); }
.ppec__sources a { color: var(--ink-dark); }

/* ---------- What we're building ---------- */
.building { padding: 88px 24px; background: var(--indigo-wash); }
.building .container { gap: 36px; }
.building .section-head { gap: 14px; }
.building .section-head .eyebrow { margin-bottom: -4px; }
.building .lede { max-width: 720px; }
.building__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service {
  background: var(--white); border: 2px solid var(--indigo-tint); border-radius: 24px;
  overflow: hidden; display: flex; flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.service h3 { font-size: 19px; font-weight: 600; }
.service p { font-size: 16px; color: var(--body); }
.building .note { text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Who it's for ---------- */
.audience { background: var(--yellow-tint); padding: 88px 24px; }
.audience .container { gap: 36px; }
.audience__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.audience-card { background: var(--white); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.audience-card h3 { font-size: 19px; font-weight: 600; }
.audience-card p { font-size: 16px; color: var(--body); }

/* ---------- Belief ---------- */
.belief { position: relative; overflow: hidden; background: var(--navy); padding: 110px 24px; }
.belief__inner {
  position: relative; max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.belief .eyebrow { color: var(--yellow); }
.belief h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.08; color: var(--white);
}
.belief__text { max-width: 640px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--navy-text); }
.belief__rule { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; }
.belief__rule span { width: 56px; height: 2px; background: var(--indigo-line); display: block; }
.belief__goal {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15; color: var(--white);
}

/* ---------- Founders ---------- */
.founders { padding: 88px 24px; }
.founders .container--narrow { gap: 36px; }
.founders__sub {
  margin-top: 6px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; color: var(--ink);
}
.founders__sub .highlight { background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.founders .lede { max-width: 620px; font-size: 18px; }
.founders__photo {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center top;
  border-radius: 28px; box-shadow: 0 20px 50px rgba(61, 66, 128, .14);
}
.founders__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.founder {
  border: 2px solid var(--teal-tint); border-radius: 24px; padding: 28px;
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.founder__avatar {
  width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%;
  border: 4px solid var(--pink); object-fit: cover;
}
.founder__avatar--green { border-color: var(--green); }
.founder__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.founder h3 { font-size: 21px; font-weight: 600; }
.founder__role { font-size: 14px; font-weight: 600; color: var(--teal-deep); }
.founder__bio { margin-top: 4px; font-size: 16px; color: var(--body); }
.why { background: var(--indigo-tint); border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.why h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; }
.why p { font-size: 17px; color: var(--ink); max-width: 860px; }

/* ---------- Journey ---------- */
.journey { background: var(--indigo-wash-2); padding: 88px 24px; }
.journey .container { gap: 40px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
}
.step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 20px 12px; border-radius: 20px; background: var(--white);
}
.step__dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--muted); background: var(--step-idle);
}
.step--done .step__dot { background: var(--green); }
.step--current .step__dot { background: var(--pink); }
.step__label { font-size: 16px; font-weight: 600; color: var(--ink); }
.step--future .step__label { color: var(--muted-2); }
.step__here {
  background: var(--pink); color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Help ---------- */
.help { padding: 88px 24px; }
.help .container { gap: 36px; }
.help .lede { max-width: 640px; }
.help__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.help-card { border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.help-card h3 { font-size: 20px; font-weight: 600; }
.help-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.help-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.help-card li svg { flex: 0 0 18px; margin-top: 4px; }

/* ---------- Join / form ---------- */
.join { background: var(--teal-tint); padding: 88px 24px; }
.join__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.join__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.join__copy h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.join__copy p { font-size: 19px; color: var(--ink); }
.join__copy img { width: 240px; height: auto; }
.join__panel { flex: 1 1 440px; min-width: 0; background: var(--white); border-radius: 28px; padding: 36px 32px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.req { color: var(--pink-req); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
  border: 2px solid var(--input-line); border-radius: 14px; background: var(--white); color: var(--ink);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--pink-req); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.consent a, .fineprint a { color: var(--teal-deep); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-deep); flex: 0 0 22px; }
.form__error {
  background: var(--pink-tint); color: var(--pink-err); font-weight: 600; font-size: 15px;
  padding: 12px 14px; border-radius: 12px;
}
.form .btn { font-size: 17px; padding: 16px 24px; min-height: 52px; }

.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 12px 0; }
.success img { width: 260px; height: auto; }
.success h3 { font-family: var(--serif); font-weight: 700; font-size: 30px; }
.success p { font-size: 17px; color: var(--body); max-width: 380px; }
.success__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 2px solid var(--teal); color: var(--ink); text-decoration: none; font-weight: 600;
}
.pill-link:hover { color: var(--ink); }
.pill-link--indigo { border-color: var(--periwinkle); }

[hidden] { display: none !important; }

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.legal__updated { color: var(--muted); font-size: 15px; }
.legal h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin-top: 20px; }
.legal p, .legal li { color: var(--body); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 64px 24px 40px; }
.site-footer__inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.site-footer__logo { background: var(--white); border-radius: 24px; padding: 18px 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.site-footer__logo img { width: 240px; height: auto; }
.site-footer__motto { margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--yellow); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 15px; }
.site-footer a { color: var(--white); }
.site-footer__note { margin-top: 8px; font-size: 14px; max-width: 640px; line-height: 1.5; }
.site-footer__copy { font-size: 13px; }
