
:root {
  --ink: #162433;
  --muted: #607084;
  --primary: #5b4ae8;
  --primary-dark: #4031bd;
  --secondary: #11aaa3;
  --secondary-dark: #087d78;
  --coral: #ff6b6b;
  --sun: #ffc857;
  --white: #ffffff;
  --page: #f7f8fc;
  --soft: #eeecff;
  --mint: #e8fbf7;
  --peach: #fff0ec;
  --yellow: #fff8dd;
  --line: #e5e8f1;
  --shadow: 0 18px 50px rgba(29, 38, 75, .10);
  --shadow-sm: 0 10px 28px rgba(29, 38, 75, .08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 850px); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: "Manrope", "DM Sans", sans-serif;
  line-height: 1.16;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.65rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--muted); }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 8px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-topbar {
  background: var(--ink); color: rgba(255,255,255,.86); font-size: .86rem;
}
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-inner p { color: inherit; margin: 0; }
.topbar-links { display: flex; gap: 18px; white-space: nowrap; }
.topbar-links a:hover { color: var(--sun); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229,232,241,.8);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 35px rgba(22,36,51,.08); background: rgba(255,255,255,.96); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center; color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 25px rgba(91,74,232,.28);
  position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.55); border-radius: 50%; }
.brand-mark svg { width: 25px; position: relative; z-index: 2; }
.brand-name { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: -.04em; }
.brand-name span { color: var(--primary); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 13px; border-radius: 12px; font-weight: 700; font-size: .94rem;
  color: #344457; transition: all .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--soft); }
.nav-cta { color: white !important; background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; padding-inline: 18px !important; box-shadow: 0 9px 22px rgba(91,74,232,.22); }
.nav-cta:hover { transform: translateY(-1px); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 13px;
  background: var(--soft); color: var(--primary); font-size: 1.35rem;
}

.hero {
  position: relative; overflow: hidden; padding: 82px 0 90px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,200,87,.26), transparent 22%),
    radial-gradient(circle at 90% 6%, rgba(17,170,163,.17), transparent 27%),
    linear-gradient(180deg, #fbfbff 0%, #f4f4ff 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -180px; top: 150px; background: rgba(255,107,107,.10); }
.hero::after { width: 180px; height: 180px; left: -95px; bottom: 10px; background: rgba(91,74,232,.10); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 8px 13px; border-radius: 999px; background: var(--soft); color: var(--primary-dark);
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,107,107,.14); }
.hero h1 { max-width: 720px; }
.hero h1 .gradient-text { background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; color: transparent; }
.hero-copy > p { font-size: 1.12rem; max-width: 650px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 21px; border-radius: 15px; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 12px 26px rgba(91,74,232,.25); }
.btn-secondary { color: var(--secondary-dark); background: var(--mint); border: 1px solid rgba(17,170,163,.16); }
.btn-white { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--primary); background: transparent; border: 1px solid #cbc7fa; }
.btn-small { min-height: 42px; padding: 9px 15px; border-radius: 12px; font-size: .9rem; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .92rem; }
.hero-note strong { color: var(--ink); }
.avatar-stack { display: flex; }
.avatar-stack span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: linear-gradient(135deg, var(--sun), var(--coral)); }
.avatar-stack span:first-child { margin-left: 0; background: linear-gradient(135deg, var(--secondary), #72ded8); }
.avatar-stack span:last-child { background: linear-gradient(135deg, var(--primary), #9b8cff); }

.hero-visual { position: relative; min-height: 545px; }
.hero-main-image {
  width: 82%; height: 500px; object-fit: cover; border-radius: 40px;
  margin-left: auto; box-shadow: 0 25px 70px rgba(34,43,84,.18);
}
.hero-mini {
  position: absolute; width: 185px; height: 220px; object-fit: cover; border: 8px solid #fff;
  border-radius: 28px; left: 0; bottom: 8px; box-shadow: var(--shadow);
}
.floating-card {
  position: absolute; top: 32px; left: 2px; width: 205px; padding: 16px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 20px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.floating-card strong { display: block; font-family: "Manrope", "DM Sans", sans-serif; font-size: 1.05rem; }
.floating-card p { margin: 2px 0 0; font-size: .82rem; }
.metric-ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--secondary) 82%, #dbeeee 0); margin-bottom: 10px; }
.metric-ring span { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; font-size: .78rem; }
.hero-chip { position: absolute; right: -6px; bottom: 46px; background: var(--ink); color: #fff; border-radius: 18px; padding: 13px 16px; box-shadow: var(--shadow); font-weight: 700; }
.hero-chip span { color: var(--sun); }

.page-hero { padding: 72px 0 76px; overflow: hidden; position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
.page-hero p { font-size: 1.08rem; max-width: 690px; }
.page-hero-image { height: 390px; width: 100%; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.page-hero.purple { background: linear-gradient(135deg, #f4f1ff, #ebfbf9); }
.page-hero.peach { background: linear-gradient(135deg, #fff4ef, #f4f1ff); }
.page-hero.mint { background: linear-gradient(135deg, #eafbf8, #f7f4ff); }
.page-hero.sun { background: linear-gradient(135deg, #fff9e5, #f2f0ff); }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); font-weight: 700; }

.stats-strip { margin-top: -34px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 25px 28px; display: flex; align-items: center; gap: 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--soft); color: var(--primary); font-size: 1.35rem; }
.stat strong { display: block; font-family: "Manrope", "DM Sans", sans-serif; font-size: 1.38rem; }
.stat p { margin: 1px 0 0; font-size: .88rem; }

.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-white { background: #fff; }
.section-soft { background: linear-gradient(180deg, #f1f0ff 0%, #f8f8fc 100%); }
.section-mint { background: linear-gradient(180deg, #effbf9 0%, #f7f8fc 100%); }
.section-peach { background: linear-gradient(180deg, #fff3ee 0%, #f8f8fc 100%); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head.center { display: block; text-align: center; max-width: 790px; margin: 0 auto 44px; }
.section-head p { max-width: 650px; margin-bottom: 0; }
.section-kicker { color: var(--primary); text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 800; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media > img { width: 100%; min-height: 480px; max-height: 610px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.image-badge { position: absolute; right: -20px; bottom: 26px; max-width: 220px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.image-badge strong { font-family: "Manrope", "DM Sans", sans-serif; }
.image-badge p { font-size: .84rem; margin: 5px 0 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 25px; }
.check-list li { position: relative; padding-left: 35px; color: #445569; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); color: var(--secondary-dark); font-weight: 900; }
.author-card { display: flex; gap: 18px; margin-top: 26px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.author-icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--coral), #ff9d79); font-size: 1.3rem; }
.author-card p { margin: 4px 0 0; font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 27px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9d5ff; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 20px; font-size: 1.45rem; }
.card-icon.purple { background: var(--soft); color: var(--primary); }
.card-icon.mint { background: var(--mint); color: var(--secondary-dark); }
.card-icon.peach { background: var(--peach); color: var(--coral); }
.card-icon.sun { background: var(--yellow); color: #b77700; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 800; margin-top: 14px; }
.card-link:hover { gap: 11px; }

.benefit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit-item { background: #fff; border: 1px solid var(--line); border-radius: 19px; padding: 20px; display: flex; gap: 13px; }
.benefit-item i { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-style: normal; background: var(--soft); color: var(--primary); font-weight: 900; }
.benefit-item h3 { font-size: 1.04rem; margin-bottom: 5px; }
.benefit-item p { font-size: .88rem; margin: 0; }
.benefit-photo { min-height: 100%; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.benefit-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 480px; }
.benefit-photo::after { content: "Movement is medicine for the mind"; position: absolute; inset: auto 22px 22px; padding: 16px 18px; border-radius: 17px; background: rgba(22,36,51,.86); color: #fff; backdrop-filter: blur(10px); font-family: "Manrope", "DM Sans", sans-serif; font-weight: 700; }

.feature-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-panel { min-height: 310px; border-radius: var(--radius-lg); padding: 30px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: end; }
.feature-panel::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 25%, rgba(15,25,40,.84)); }
.feature-panel img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feature-panel > div { position:relative; z-index:2; color:#fff; }
.feature-panel p { color:rgba(255,255,255,.8); max-width:460px; }
.feature-panel .card-link { color: var(--sun); }

.age-gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.age-tile { position: relative; min-height: 310px; border-radius: var(--radius-lg); overflow: hidden; }
.age-tile img { position: absolute; inset: 0; width:100%; height:100%; object-fit:cover; }
.age-tile::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, rgba(15,24,40,.85)); }
.age-tile div { position:absolute; z-index:2; left:22px; right:22px; bottom:20px; color:#fff; }
.age-tile p { color:rgba(255,255,255,.82); margin:0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); height:100%; }
.blog-card img { width:100%; height:225px; object-fit:cover; }
.blog-card-content { padding:24px; }
.tag { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--soft); color:var(--primary); font-weight:800; font-size:.76rem; margin-bottom:12px; }
.blog-meta { color:#8994a3; font-size:.8rem; margin-bottom:10px; }

.cta-panel { position:relative; overflow:hidden; border-radius:32px; padding:55px; color:#fff; background:linear-gradient(125deg, var(--primary-dark), var(--primary) 48%, var(--secondary)); box-shadow:0 22px 60px rgba(72,57,197,.24); }
.cta-panel::before { content:""; position:absolute; width:280px; height:280px; border-radius:50%; right:-90px; top:-120px; background:rgba(255,255,255,.1); }
.cta-panel p { color:rgba(255,255,255,.82); max-width:700px; }
.cta-panel .button-row { position:relative; z-index:2; }

.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:24px; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-sm); }
.contact-list { list-style:none; padding:0; display:grid; gap:14px; }
.contact-list li { display:flex; gap:12px; align-items:flex-start; color:var(--muted); }
.contact-list span { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--soft); color:var(--primary); flex:0 0 auto; }
.growth-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:20px; }
.growth-chip { padding:14px; border-radius:14px; background:var(--mint); color:var(--secondary-dark); font-weight:700; }

.content-stack { display:grid; gap:28px; }
.content-panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; box-shadow:var(--shadow-sm); }
.content-panel > h2 { font-size:clamp(1.65rem,3vw,2.35rem); }
.content-panel.highlight { background:linear-gradient(135deg, #f2f0ff, #ecfbf9); border-color:#dcd8ff; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.three-col { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.four-col { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

.tip-list { display:grid; gap:12px; list-style:none; padding:0; }
.tip-list li { padding:14px 16px 14px 48px; border-radius:14px; background:#f8f8fc; position:relative; color:#48596c; }
.tip-list li::before { content:"✓"; position:absolute; left:15px; top:13px; width:24px; height:24px; border-radius:8px; display:grid; place-items:center; background:var(--mint); color:var(--secondary-dark); font-weight:900; }
.benefit-mini { padding:22px; border-radius:18px; background:#fff; border:1px solid var(--line); }
.benefit-mini h3 { font-size:1.08rem; }
.benefit-mini p { margin:0; font-size:.9rem; }
.age-card { border-radius:20px; overflow:hidden; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.age-card img { width:100%; height:180px; object-fit:cover; }
.age-card div { padding:22px; }
.age-card p { margin:0; }
.timeline { display:grid; gap:0; }
.timeline-item { display:grid; grid-template-columns:56px 1fr; gap:18px; position:relative; padding-bottom:27px; }
.timeline-item:not(:last-child)::before { content:""; position:absolute; left:27px; top:48px; bottom:0; width:2px; background:#ddd9ff; }
.timeline-number { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; background:var(--soft); color:var(--primary); font-family:"Manrope", "DM Sans", sans-serif; font-weight:800; z-index:1; }
.timeline-item h3 { margin-top:6px; }

.resource-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.resource-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:23px; box-shadow:var(--shadow-sm); }
.resource-card h4 { font-size:1.05rem; }
.resource-card p { font-size:.88rem; }
.resource-card a { color:var(--primary); font-weight:800; font-size:.9rem; }
.resource-card a:hover { text-decoration:underline; }
.age-resource { border-radius:20px; padding:24px; }
.age-resource:nth-child(1) { background:var(--yellow); }
.age-resource:nth-child(2) { background:var(--peach); }
.age-resource:nth-child(3) { background:var(--mint); }
.age-resource:nth-child(4) { background:var(--soft); }
.age-resource ul { padding-left:18px; color:#4c5d70; }
.age-resource a { color:var(--primary-dark); font-weight:700; }
.book-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.book-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; position:relative; overflow:hidden; }
.book-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:linear-gradient(var(--primary),var(--secondary)); }
.book-card small { display:block; color:#8994a3; margin-bottom:10px; }
.book-card p { font-size:.88rem; margin:0; }
.link-library { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.link-library a { padding:14px 16px; border-radius:14px; background:#f8f8fc; color:var(--primary-dark); font-weight:700; border:1px solid transparent; }
.link-library a:hover { border-color:#d7d2ff; background:#f2f0ff; }

.form-control, .tracker-input {
  width:100%; min-height:48px; padding:11px 14px; border:1px solid #dfe3ed; border-radius:13px; background:#fff; color:var(--ink); outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
textarea.form-control { min-height:140px; resize:vertical; }
.form-control:focus, .tracker-input:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(91,74,232,.10); }
.form-group { display:grid; gap:7px; }
.form-group label { font-weight:700; font-size:.9rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.quiz-select-wrap { max-width:480px; }
.quiz-block { display:none; margin-top:26px; }
.quiz-block.active { display:block; }
.question-card { padding:22px; border:1px solid var(--line); border-radius:18px; background:#fbfbfe; margin-bottom:15px; }
.question-card h4 { font-size:1.02rem; margin-bottom:15px; }
.quiz-options { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.quiz-option { display:flex; gap:9px; align-items:center; min-height:45px; padding:10px 13px; border-radius:12px; background:#fff; border:1px solid var(--line); color:#526275; cursor:pointer; transition:.2s ease; }
.quiz-option:hover { border-color:#cfc9ff; background:#f5f3ff; }
.quiz-option input { accent-color:var(--primary); }
.result-box { display:none; margin-top:22px; padding:28px; border-radius:20px; background:linear-gradient(135deg,var(--soft),var(--mint)); border:1px solid #dcd8ff; }
.result-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.result-item { padding:17px; background:rgba(255,255,255,.76); border-radius:15px; }
.result-item strong { display:block; font-size:.82rem; color:var(--muted); margin-bottom:5px; }
.badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.badge { display:inline-flex; padding:7px 11px; border-radius:999px; background:var(--primary); color:#fff; font-weight:800; font-size:.78rem; }
.habit-card { padding:22px; border-radius:18px; height:100%; }
.habit-card:nth-child(1) { background:var(--yellow); }
.habit-card:nth-child(2) { background:var(--peach); }
.habit-card:nth-child(3) { background:var(--mint); }
.habit-card:nth-child(4) { background:var(--soft); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; }
table { width:100%; border-collapse:collapse; min-width:850px; }
th,td { padding:13px; border-bottom:1px solid var(--line); text-align:left; }
th { background:#f0efff; color:var(--primary-dark); font-size:.85rem; }
td:first-child { font-weight:700; }
.tracker-input { min-height:40px; min-width:105px; padding:8px 10px; }
.routine-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.routine-card { padding:19px; border-radius:17px; background:#f8f8fc; }
.routine-card strong { color:var(--primary); display:block; margin-bottom:6px; }
.bmi-grid { display:grid; grid-template-columns:1fr 1fr auto; gap:14px; align-items:end; }
.bmi-result { display:none; margin-top:18px; padding:17px; border-radius:14px; background:var(--mint); color:var(--secondary-dark); }
.disclaimer { margin-top:18px; padding:14px 17px; border-left:4px solid var(--sun); background:var(--yellow); border-radius:0 12px 12px 0; color:#6b5b2f; font-size:.9rem; }
.save-status { display:none; margin-top:12px; color:var(--secondary-dark); font-weight:700; }

.admin-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:20px; }
.admin-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:25px; }
.admin-status { display:none; margin-top:12px; padding:11px 13px; border-radius:12px; font-size:.88rem; }
.admin-status.success { display:block; background:var(--mint); color:var(--secondary-dark); }
.admin-status.error { display:block; background:var(--peach); color:#b83f45; }
.hidden-panel { display:none; }
.post-actions { margin-top:12px; }
.empty-state { padding:30px; text-align:center; border:1px dashed #c9cedb; border-radius:18px; color:var(--muted); background:#fff; }
.modal { display:none; position:fixed; z-index:2000; inset:0; background:rgba(12,18,28,.68); padding:30px 18px; overflow:auto; }
.modal-content { position:relative; width:min(100%,760px); margin:auto; background:#fff; border-radius:24px; padding:30px; box-shadow:0 25px 80px rgba(0,0,0,.25); }
.modal-content img { width:100%; max-height:360px; object-fit:cover; border-radius:18px; margin:15px 0 20px; }
.modal-close { position:absolute; right:16px; top:14px; width:40px; height:40px; border:0; border-radius:12px; background:#f0efff; color:var(--primary); font-size:1.4rem; }

.site-footer { background:var(--ink); color:#fff; padding:65px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr 1fr; gap:40px; }
.site-footer .brand-name { color:#fff; }
.site-footer p { color:rgba(255,255,255,.66); }
.footer-title { font-size:1rem; margin-bottom:16px; }
.footer-links { display:grid; gap:9px; }
.footer-links a { color:rgba(255,255,255,.72); }
.footer-links a:hover { color:var(--sun); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:45px; padding-top:22px; display:flex; justify-content:space-between; gap:20px; font-size:.85rem; color:rgba(255,255,255,.58); }
.footer-bottom p { margin:0; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }
.back-top { position:fixed; right:20px; bottom:20px; z-index:900; width:45px; height:45px; border:0; border-radius:14px; background:var(--primary); color:#fff; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.2s ease; }
.back-top.show { opacity:1; pointer-events:auto; }

@media (max-width: 1050px) {
  .site-nav { position:fixed; inset:121px 18px auto; display:none; flex-direction:column; align-items:stretch; gap:4px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); }
  .site-nav.open { display:flex; }
  .site-nav a { padding:13px 14px; }
  .menu-toggle { display:grid; place-items:center; }
  .hero-grid, .page-hero-grid { gap:40px; }
  .hero-visual { min-height:470px; }
  .hero-main-image { height:430px; }
  .cards.four, .resource-grid, .four-col { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column:1/-1; }
}

@media (max-width: 820px) {
  .site-topbar { display:none; }
  .site-nav { inset:83px 14px auto; }
  .hero { padding-top:58px; }
  .hero-grid, .page-hero-grid, .split, .benefit-grid, .contact-grid, .admin-grid { grid-template-columns:1fr; }
  .hero-copy { text-align:center; }
  .hero-copy > p { margin-inline:auto; }
  .button-row, .hero-note { justify-content:center; }
  .hero-visual { max-width:610px; margin-inline:auto; width:100%; }
  .page-hero-copy { text-align:center; }
  .page-hero p { margin-inline:auto; }
  .page-hero-image { height:330px; }
  .stats-grid { grid-template-columns:1fr; }
  .stat + .stat { border-left:0; border-top:1px solid var(--line); }
  .section { padding:72px 0; }
  .split.reverse .split-media { order:0; }
  .split-media > img { min-height:380px; }
  .cards, .blog-grid, .book-grid { grid-template-columns:repeat(2,1fr); }
  .age-gallery { grid-template-columns:1fr 1fr; }
  .feature-panels { grid-template-columns:1fr; }
  .three-col { grid-template-columns:1fr 1fr; }
  .routine-grid { grid-template-columns:1fr 1fr; }
  .bmi-grid { grid-template-columns:1fr 1fr; }
  .bmi-grid .btn { grid-column:1/-1; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:last-child { grid-column:auto; }
}

@media (max-width: 580px) {
  .container, .narrow { width:min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height:72px; }
  .brand-mark { width:42px; height:42px; }
  .brand-name { font-size:1.05rem; }
  .site-nav { inset:75px 10px auto; }
  .hero { padding:45px 0 68px; }
  .hero h1 { font-size:2.65rem; }
  .hero-visual { min-height:385px; }
  .hero-main-image { width:88%; height:350px; border-radius:28px; }
  .hero-mini { width:135px; height:165px; border-width:6px; border-radius:21px; }
  .floating-card { display:none; }
  .hero-chip { right:0; bottom:22px; font-size:.8rem; }
  .button-row .btn { width:100%; }
  .stats-strip { margin-top:-25px; }
  .stat { padding:20px; }
  .section-head { display:block; }
  .section-head .btn { margin-top:18px; }
  .cards, .cards.four, .blog-grid, .book-grid, .age-gallery, .resource-grid, .four-col, .three-col, .two-col { grid-template-columns:1fr; }
  .benefit-list { grid-template-columns:1fr; }
  .benefit-photo img { min-height:380px; }
  .age-tile { min-height:270px; }
  .content-panel { padding:23px; }
  .quiz-options { grid-template-columns:1fr; }
  .result-grid { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .routine-grid { grid-template-columns:1fr; }
  .bmi-grid { grid-template-columns:1fr; }
  .bmi-grid .btn { grid-column:auto; }
  .link-library { grid-template-columns:1fr; }
  .cta-panel { padding:35px 25px; }
  .growth-list { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; }
  .modal-content { padding:23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
  .reveal { opacity:1; transform:none; }
}

@media (max-width: 580px) {
  .image-badge { right: 12px; max-width: calc(100% - 24px); }
}
