/* KidSafe site — palette mirrors the app's design system (KSColor, orchid theme) */
:root {
  --brand: #b44fe0;
  --brand-soft: #c77dee;
  --brand-deep: #6b5bd6;
  --pastel: #f3ebfb;
  --pastel-sage: #e4efea;
  --pastel-peach: #fbeee2;
  --pastel-periwinkle: #eceffb;
  --pastel-rose: #fbeaf2;
  --accent: #3fb984;
  --warning: #f2a33c;
  --gold: #f4b73c;
  --ink: #1e1b3a;
  --support: #8a8a99;
  --wash: #fbfafd;
  --muted: #f2f1f6;
  --border: #eceaf2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-deep); }

/* ---- Nav ---- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--support); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand-deep); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: 0 0 36px 36px;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 24px 64px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
.hero p.lead { font-size: 1.1rem; opacity: 0.92; margin: 0 0 28px; max-width: 34em; }
.hero-mascot { text-align: center; }
.hero-mascot img { max-height: 320px; filter: drop-shadow(0 16px 32px rgba(30, 27, 58, 0.25)); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.95rem;
}

/* ---- Sections ---- */
section { max-width: 1080px; margin: 0 auto; padding: 64px 24px 8px; }
.kicker { color: var(--brand); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
h2.section-title { font-size: 1.8rem; margin: 0 0 8px; }
p.section-sub { color: var(--support); margin: 0 0 36px; max-width: 42em; }

/* ---- Feature cards ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center;
  min-height: 180px;
}
.feature .art { padding: 12px; text-align: center; }
.feature .art img { max-height: 170px; }
.feature .txt { padding: 20px 22px 20px 4px; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--support); font-size: 0.93rem; }
.feature.sage { background: var(--pastel-sage); border-color: transparent; }
.feature.lavender { background: var(--pastel); border-color: transparent; }
.feature.peach { background: var(--pastel-peach); border-color: transparent; }
.feature.periwinkle { background: var(--pastel-periwinkle); border-color: transparent; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--wash); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-deep); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--support); font-size: 0.92rem; }

/* ---- Privacy strip ---- */
.privacy-strip {
  background: var(--pastel); border-radius: 26px;
  display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 24px; align-items: center;
  padding: 32px 36px; margin-top: 56px;
}
.privacy-strip img { max-height: 200px; }
.privacy-strip h2 { margin: 0 0 10px; font-size: 1.5rem; }
.privacy-strip ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink); }
.privacy-strip li { margin: 4px 0; font-size: 0.95rem; }

/* ---- Footer ---- */
footer { margin-top: 72px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--support); font-size: 0.88rem;
}
.footer-inner a { color: var(--support); text-decoration: none; margin-left: 18px; }
.footer-inner a:hover { color: var(--brand-deep); }

/* ---- Legal pages ---- */
.legal-header {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; text-align: center; padding: 48px 24px 44px; border-radius: 0 0 28px 28px;
}
.legal-header h1 { margin: 0 0 6px; font-size: 1.9rem; }
.legal-header p { margin: 0; opacity: 0.85; font-size: 0.92rem; }
.legal {
  max-width: 760px; margin: 32px auto 64px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px;
}
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #55536b; font-size: 0.96rem; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--ink); }
.commitment {
  background: var(--pastel); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 14px 18px; margin: 16px 0;
}
.commitment p { margin: 0; color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-mascot img { max-height: 220px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .privacy-strip { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .nav-links { display: none; }
  .legal { padding: 28px 20px; margin: 20px 12px 48px; }
}
