/* We're Just Kidz — site styles */
:root {
  --coral: #FF5A5F;
  --sun: #FFC21A;
  --teal: #12B5A6;
  --violet: #7B4DFF;
  --orange: #FF8A1F;
  --ink: #1F2140;
  --muted: #4A4D6E;
  --line: #ECEEF5;
  --tint-violet: #F3EFFF;
  --tint-teal: #EFF9F8;
  --tint-sun: #FFF6DB;
  --tint-coral: #FFEEEE;
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: #5A2FE0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 80px max(24px, env(safe-area-inset-left)); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; text-wrap: balance; }
.lead { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 36px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 999px; padding: 12px 28px; font-weight: 800; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #6638F0; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0E1030; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #D9DCEB; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.pill-soon { align-self: flex-start; background: #fff; color: var(--muted); font-weight: 800; border-radius: 999px; padding: 10px 22px; font-size: 16px; }

/* Nav */
.nav-bar { padding: 20px 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.k { color: var(--coral); } .i { color: var(--violet); } .d { color: var(--teal); } .z { color: var(--orange); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-weight: 800; font-size: 17px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--violet); }

/* Hero */
.hero { padding: 48px 24px 72px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: var(--tint-teal); color: #0B6E65; border-radius: 999px; padding: 8px 18px 8px 12px; font-size: 16px; font-weight: 800; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 span { color: var(--coral); }
.hero-sub { font-size: 21px; color: var(--muted); max-width: 34em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.small-note { font-size: 16px; color: var(--muted); font-weight: 600; }
.hero-visual { flex: 1 1 420px; min-width: 0; background: var(--tint-sun); border-radius: 36px; padding: 28px; }
.game-card { background: #fff; border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 30px rgba(31,33,64,.10); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.game-card .story { font-size: 22px; line-height: 1.4; }
.game-card .ask { font-family: var(--display); font-weight: 800; font-size: 24px; color: #5A2FE0; }
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.faces div { background: #F7F7FB; border-radius: 20px; padding: 10px; display: flex; justify-content: center; border: 4px solid transparent; }
.faces div.right { border-color: var(--teal); }
.faces svg { width: 100%; max-width: 110px; height: auto; }
.game-card .yes { text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: #0B6E65; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.calm { background: var(--tint-violet); }
.feature { background: #fff; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 36px; height: 36px; }
.feature h3 { font-size: 21px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 17px; }

.game { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.game h3 { font-size: 22px; font-weight: 800; }
.game p { color: var(--muted); font-size: 17px; flex-grow: 1; }
.game .meta { font-size: 15px; font-weight: 800; }
.game .icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.game .icon svg { width: 34px; height: 34px; }
.g-coral { background: var(--tint-coral); } .g-coral .icon { background: var(--coral); }
.g-sun { background: var(--tint-sun); } .g-sun .icon { background: var(--sun); }
.g-teal { background: var(--tint-teal); } .g-teal .icon { background: var(--teal); }
.g-violet { background: var(--tint-violet); } .g-violet .icon { background: var(--violet); }
.game .btn { align-self: flex-start; padding: 10px 22px; }

/* Parents */
.parents { background: var(--ink); color: #fff; }
.parents .lead { color: #C9CBE3; }
.parents-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.parents-head .section-head { min-width: 0; }
.parents-head a { color: var(--sun); font-weight: 800; text-decoration: none; }
.tip { background: #2B2E55; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tip .tag { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tip h3 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.tip p, .tip .read { color: #C9CBE3; font-size: 17px; }
.tip .read { font-size: 15px; }
.disclaimer { font-size: 15px; color: #C9CBE3; }

/* Sync */
.sync-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.sync-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks svg { width: 26px; height: 26px; flex: none; }
.devices { flex: 1 1 420px; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.tablet { width: 300px; max-width: 70%; aspect-ratio: 4 / 3; background: var(--tint-violet); border: 10px solid var(--ink); border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.tablet img { width: 40%; }
.phone { width: 110px; max-width: 28%; aspect-ratio: 9 / 18; background: var(--tint-sun); border: 8px solid var(--ink); border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.phone svg { width: 50%; }

/* CTA */
.cta-wrap { padding: 0 24px 80px; }
.cta { background: var(--sun); border-radius: 36px; padding: 56px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.05; }
.cta p { max-width: 34em; font-weight: 600; }

/* Footer */
footer { border-top: 2px solid var(--line); padding: 36px 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 16px; color: var(--muted); }
.foot .wordmark { font-size: 22px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 800; }
.foot-links a { color: var(--ink); text-decoration: none; }

@media (max-width: 520px) {
  .section { padding-block: 56px; }
  .cta { padding: 40px 22px; }
  .hero-visual { padding: 16px; }
}

/* Age filter */
.age-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.age-chip { font: 800 16px var(--body); border: 2px solid #D9DCEB; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; }
.age-chip:hover { border-color: var(--ink); }
.age-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.game[hidden] { display: none; }

/* Community */
.community { background: var(--tint-teal); }
.community-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.community-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.community .eyebrow { color: #0B6E65; }
.chat-preview { flex: 1 1 360px; min-width: 0; background: #fff; border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px rgba(31,33,64,.08); }
.chat-head { font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.chat-head span { color: var(--muted); font-weight: 600; }
.msg { background: #F5F6FB; border-radius: 18px 18px 18px 6px; padding: 12px 16px; font-size: 16px; }
.msg b { display: block; font-size: 14px; color: var(--muted); }
.msg.mentor { background: var(--tint-violet); }
.msg.mentor b { color: #5A2FE0; }

/* Legal pages */
.legal { background: var(--tint-violet); padding: 32px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); }
.legal-body { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.legal-body h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
.legal-body h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin-top: 18px; }
.legal-body .lead { font-size: 20px; }
.legal-body ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.legal-body p, .legal-body li { max-width: 65ch; }
.legal .eyebrow { color: var(--muted); }
.callout { background: var(--tint-teal); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.callout h2 { margin-top: 0; }
.fill { background: #FFF1B8; border-radius: 6px; padding: 0 4px; font-weight: 800; }
.table-scroll { overflow-x: auto; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kid-points { display: flex; flex-direction: column; gap: 14px; }
.kid-point { display: flex; gap: 16px; align-items: flex-start; background: #F7F7FB; border-radius: 20px; padding: 16px 18px; }
.kid-point h2 { margin: 0 0 4px; font-size: 22px; }
.kp-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 22px var(--display); color: #1F2140; }
.kp-icon.c-coral { background: var(--coral); } .kp-icon.c-sun { background: var(--sun); } .kp-icon.c-teal { background: var(--teal); } .kp-icon.c-violet { background: #A98BFF; }

/* Parent tips */
.tips-body { max-width: 860px; }
.tip-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tip-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #F7F7FB; border-radius: 22px; padding: 20px; text-decoration: none; color: var(--ink); border: 3px solid transparent; transition: border-color .2s; }
.tip-card:hover { border-color: var(--violet); color: var(--ink); }
.tip-card h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.tip-card p { color: var(--muted); font-size: 16px; flex-grow: 1; }
.tip-tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; color: var(--ink); }
.t-sun { background: #FFE7A3; } .t-teal { background: #C8F0EB; } .t-coral { background: #FFD3D4; } .t-violet { background: #E3D9FF; } .t-orange { background: #FFDDBE; }
.tip-time { font-size: 14px; font-weight: 700; color: var(--muted); }
.back-link { font-weight: 800; text-decoration: none; align-self: flex-start; }
.tips-body .more { background: var(--tint-teal); border-radius: 14px; padding: 12px 16px; font-size: 16px; }
.tip-disclaimer { font-size: 14px; color: var(--muted); border-top: 2px solid var(--line); padding-top: 14px; margin-top: 10px; }
.tips-body h2 + ul, .tips-body h2 + p { margin-top: -4px; }
.tip-link { color: #fff; text-decoration: none; }
.tip-link::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.tip { position: relative; }
.tip:hover { outline: 3px solid var(--sun); }
.tip-link:focus-visible { outline: none; }
.tip:focus-within { outline: 3px solid var(--sun); }

/* Stories */
.story-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.story-card { display: flex; flex-direction: column; background: #F7F7FB; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); border: 3px solid transparent; }
a.story-card:hover { border-color: var(--violet); color: var(--ink); }
.story-card svg { width: 100%; height: auto; display: block; }
.story-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.story-card h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.story-card p { color: var(--muted); font-size: 16px; }
.story-card.soon { opacity: .75; }
.helper-em { font-size: 40px; line-height: 1; }
/* Homepage helpers band */
.helpers-band { background: var(--tint-sun); }
.helper-tile { background: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); border: 3px solid transparent; }
.helper-tile:hover { border-color: var(--violet); color: var(--ink); }
.helper-tile h3 { font-size: 21px; font-weight: 800; }
.helper-tile p { color: var(--muted); font-size: 16px; }
/* In-depth guides */
.toc { background: #F7F7FB; border-radius: 20px; padding: 18px 22px; }
.toc h2 { margin: 0 0 8px !important; font-size: 20px !important; }
.toc ol { display: block; margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; }
.toc li a { line-height: 1.5; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-body h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 10px 0 0; }
.legal-body h2[id], .legal-body h3[id] { scroll-margin-top: 20px; }
.legal-body ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.example-plan { background: var(--tint-sun); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.example-plan h3 { margin: 0; }
.stages li { padding-left: 4px; }
.next-steps { background: var(--tint-violet); border-radius: 20px; padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.next-steps h2 { width: 100%; margin: 0 !important; }
.sources { font-size: 15px; }
.grid-head { font-family: var(--display); font-weight: 800; font-size: 26px; margin-top: 10px; }
.guide-card { background: var(--tint-violet); }
.guide-link { margin-top: 6px; }
