/* AppsByDad — brand site (Poppins, Navy + Teal) */
:root {
  --navy: #0b1f33;
  --teal: #17b3a6;
  --sand: #e8e1d4;
  --grey: #f2f4f7;
  --white: #ffffff;
  --yellow: #ffc63d;
  --coral: #ff6666;
  --purple: #726bff;
  --sky: #4db6e2;
  --green: #6bc48e;
  --text: var(--navy);
  --text-muted: #4a5568;
  --link: var(--teal);
  --link-hover: #129a8f;
  --card-bg: var(--white);
  --border: rgba(11, 31, 51, 0.1);
  --shadow: 0 4px 24px rgba(11, 31, 51, 0.08);
  --shadow-hover: 0 12px 40px rgba(11, 31, 51, 0.12);
  --radius: 14px;
  --max-width: 960px;
  --header-bg: var(--navy);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--grey);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

.site-header {
  background: var(--header-bg);
  color: #fff;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(11, 31, 51, 0.2);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
}

.site-logo--stacked {
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.site-logo-hat {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.logo-words {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.logo-words .brand-navy { color: var(--navy); }
.logo-words .brand-teal { color: var(--teal); }
.site-header .logo-words .brand-navy { color: #fff; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.site-nav a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.site-nav a:hover { background: rgba(255,255,255,.12); color:#fff; }
.site-nav a[aria-current="page"] { background: rgba(23,179,166,.35); color:#fff; }

.site-nav .nav-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255,255,255,.25);
  margin: 0 .15rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.breadcrumb {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn-primary {
  background: var(--teal);
  color:#fff !important;
  box-shadow: 0 4px 14px rgba(23,179,166,.35);
}

.btn-primary:hover {
  background: var(--link-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy) !important;
  border: 1px solid var(--border);
  margin-left: .5rem;
}

.btn-secondary:hover { border-color: var(--teal); }

.section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 .65rem;
  color: var(--navy);
}

.section > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.card-grid { display:grid; gap:1.1rem; }

@media (min-width:640px) {
  .card-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  border:1px solid var(--border);
  transition: transform .2s ease,box-shadow .2s ease;
  text-decoration:none;
  color:inherit;
  display:block;
}

.card:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover); }

.card-app-icon {
  width:56px; height:56px; border-radius:12px; margin-bottom:.85rem;
}

.card h3 {
  margin:0 0 .45rem;
  font-size:1.08rem;
  font-weight:600;
  color:var(--navy);
}

.card p {
  margin:0;
  font-size:.92rem;
  color:var(--text-muted);
  line-height:1.55;
}

.card-kicker {
  color: var(--teal) !important;
  font-size: .75rem !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  margin-bottom: .4rem !important;
}

.card--featured {
  border-color: rgba(23,179,166,.35);
  background: linear-gradient(180deg,#fff 0%,rgba(23,179,166,.035) 100%);
}

.doc-links { list-style:none; padding:0; margin:1rem 0 0; }
.doc-links li { margin:.5rem 0; }
.doc-links a { font-weight:600; text-decoration:none; }
.doc-links a:hover { text-decoration:underline; }

.content-doc,.legal-doc,.guide-doc,.contact-doc {
  background:var(--card-bg);
  border-radius:var(--radius);
  padding:2rem 1.5rem;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  max-width:800px;
  margin:0 auto;
}

@media (min-width:640px) {
  .content-doc,.legal-doc,.guide-doc,.contact-doc { padding:2.5rem 2.25rem; }
}

.content-doc h1,.legal-doc h1,.guide-doc h1,.contact-doc h1 {
  font-size:1.85rem;
  font-weight:600;
  margin:0 0 .5rem;
  color:var(--navy);
}

.app-hero-row { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.app-hero-row img { width:72px; height:72px; border-radius:16px; }

.meta,.legal-doc .meta,.guide-doc .meta {
  color:var(--text-muted);
  font-size:.9rem;
  margin-bottom:1.5rem;
}

.guide-doc .lead {
  font-size:1.05rem;
  color:var(--text-muted);
  margin:0 0 1.5rem;
}

.legal-doc h2,.guide-doc h2,.content-doc h2 {
  font-size:1.15rem;
  font-weight:600;
  margin:1.75rem 0 .5rem;
  color:var(--navy);
}

.guide-doc h2 { padding-top:1.25rem; border-top:1px solid var(--border); }
.guide-doc h2:first-of-type { border-top:none; padding-top:0; margin-top:0; }

.legal-doc h3,.guide-doc h3 {
  font-size:1rem;
  font-weight:600;
  margin:1.2rem 0 .35rem;
}

.legal-doc p,.legal-doc li,.guide-doc p,.guide-doc li,.content-doc p {
  color:var(--text-muted);
  margin:.5rem 0;
}

.legal-doc ul,.guide-doc ul { padding-left:1.25rem; }

.guide-toc {
  background:rgba(23,179,166,.08);
  border:1px solid rgba(23,179,166,.25);
  border-radius:12px;
  padding:1rem 1.15rem;
  margin:0 0 1.5rem;
}

.guide-toc strong { display:block; margin-bottom:.5rem; color:var(--navy); }
.guide-toc ol { margin:0; padding-left:1.25rem; }
.guide-toc a { text-decoration:none; font-weight:500; }
.guide-toc a:hover { text-decoration:underline; }

.invite-hint {
  font-size:.95rem;
  color:var(--text-muted);
  background:rgba(255,198,61,.2);
  border:1px solid rgba(255,198,61,.45);
  border-radius:var(--radius);
  padding:1rem 1.15rem;
  margin:1rem 0 0;
  line-height:1.55;
}

.auth-page body,body.auth-page { background:var(--grey); }

.auth-card-wrap {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem 1rem;
}

.auth-card {
  background:var(--white);
  border-radius:var(--radius);
  padding:2rem;
  max-width:400px;
  width:100%;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}

.auth-card h1 { font-size:1.45rem; font-weight:600; margin:0 0 .5rem; color:var(--navy); }
.auth-card p { color:var(--text-muted); margin-bottom:1.25rem; font-size:.95rem; }
.auth-card label { display:block; font-weight:500; margin-bottom:.4rem; font-size:.9rem; }

.auth-card input[type="password"],.auth-card input[type="email"] {
  width:100%;
  padding:.75rem 1rem;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:1rem;
  margin-bottom:1rem;
  font-family:inherit;
}

.auth-card button {
  width:100%;
  padding:.85rem;
  background:var(--teal);
  color:#fff;
  border:none;
  border-radius:8px;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
}

.auth-card button:hover { background:var(--link-hover); }
.auth-card button:disabled { opacity:.6; cursor:not-allowed; }
.auth-card .success { color:var(--green); margin-top:1rem; }
.auth-card .error { color:var(--coral); margin-top:1rem; }
.auth-card .loading { color:var(--text-muted); margin-top:1rem; }

.btn-mailto {
  display:inline-block;
  margin-top:.5rem;
  padding:.65rem 1.25rem;
  background:var(--teal);
  color:#fff !important;
  text-decoration:none;
  font-weight:600;
  border-radius:999px;
  font-size:.95rem;
}

.btn-mailto:hover { background:var(--link-hover); color:#fff !important; }

.email-box {
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:1rem;
  background:var(--grey);
  border:1px solid var(--border);
  border-radius:10px;
  padding:.85rem 1rem;
  margin:1rem 0;
  word-break:break-all;
}

.site-footer {
  background:var(--navy);
  color:rgba(255,255,255,.7);
  padding:2rem 1.25rem;
  margin-top:auto;
  text-align:center;
  font-size:.88rem;
}

.site-footer nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.6rem 1.25rem;
  margin-bottom:1rem;
}

.site-footer a {
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-weight:500;
}

.site-footer a:hover { color:var(--teal); }
.site-footer p { margin:0; font-size:.82rem; opacity:.8; }

.values-row { display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin-top:1rem; }

.value-pill {
  font-size:.75rem;
  font-weight:600;
  padding:.3rem .65rem;
  border-radius:999px;
  background:rgba(11,31,51,.06);
  color:var(--navy);
}

/* Home */
.page-home main.main-home { max-width:none; padding:0; }

.hero-studio {
  background:linear-gradient(135deg,var(--navy) 0%,#123a52 48%,#0f4d4a 100%);
  color:#fff;
  padding:3.5rem 1.25rem 4rem;
}

.hero-studio-inner {
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:2.5rem;
  align-items:center;
}

@media (min-width:900px) {
  .hero-studio-inner { grid-template-columns:1.15fr .85fr; gap:3rem; }
}

.hero-eyebrow {
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  margin:0 0 .85rem;
}

.hero-studio h1 {
  font-size:clamp(1.85rem,4.5vw,2.65rem);
  font-weight:600;
  line-height:1.12;
  margin:0 0 1rem;
  color:#fff;
}

.hero-lead {
  font-size:1.05rem;
  line-height:1.65;
  color:rgba(255,255,255,.82);
  margin:0 0 1.75rem;
  max-width:36rem;
}

.hero-actions { display:flex; flex-wrap:wrap; gap:.65rem; }

.hero-actions .btn-secondary {
  margin-left:0;
  background:transparent;
  color:#fff !important;
  border-color:rgba(255,255,255,.35);
}

.hero-actions .btn-secondary:hover {
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.55);
}

.hero-studio-panel {
  background:rgba(255,255,255,.97);
  border-radius:calc(var(--radius) + 4px);
  padding:2rem 1.75rem;
  text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.2);
}

.hero-studio-hat {
  width:min(120px,40vw);
  height:auto;
  margin:0 auto .5rem;
  display:block;
}

.hero-studio-words { font-size:1.5rem; margin-bottom:.75rem; }

.hero-studio-tag {
  font-size:.95rem;
  font-weight:500;
  color:var(--text-muted);
  margin:0;
  line-height:1.5;
}

.main-home .section {
  max-width:1100px;
  margin:0 auto;
  padding:3rem 1.25rem;
}

.main-home .section--flush { padding-top:2.5rem; }

.section-header { margin-bottom:1.5rem; }

.section-header h2 {
  font-size:1.5rem;
  font-weight:600;
  margin:0 0 .4rem;
  color:var(--navy);
}

.section-header p {
  margin:0;
  color:var(--text-muted);
  max-width:40rem;
}

.card-grid--apps { gap:1.25rem; }

@media (min-width:700px) {
  .card-grid--apps { grid-template-columns:repeat(2,1fr); }
}

.card--app { display:flex; flex-direction:column; min-height:100%; }

.card-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.25rem;
}

.card--muted { background:linear-gradient(180deg,#fff 0%,#f8faf9 100%); }

.card-link {
  display:inline-block;
  margin-top:auto;
  padding-top:1rem;
  font-size:.88rem;
  font-weight:600;
  color:var(--teal);
}

.status-badge {
  display:inline-block;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:.28rem .55rem;
  border-radius:999px;
  white-space:nowrap;
  flex-shrink:0;
}

.status-badge--live { background:rgba(107,196,142,.2); color:#1b6b42; }
.status-badge--soon { background:rgba(255,198,61,.28); color:#7a5a00; }

.principles {
  background:var(--white);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  max-width:none !important;
}

.principles .section-header,.principles-grid {
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

.principles-grid { display:grid; gap:1rem; }

@media (min-width:768px) {
  .principles-grid { grid-template-columns:repeat(3,1fr); }
}

.principle-card {
  background:var(--grey);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.35rem 1.25rem;
}

.principle-card h3 {
  margin:0 0 .45rem;
  font-size:1rem;
  font-weight:600;
  color:var(--navy);
}

.principle-card p {
  margin:0;
  font-size:.92rem;
  color:var(--text-muted);
  line-height:1.55;
}

.cta-band {
  background:linear-gradient(160deg,var(--sand) 0%,var(--grey) 100%);
  padding:3rem 1.25rem;
}

.cta-band-inner { max-width:640px; margin:0 auto; text-align:center; }

.cta-band h2 {
  font-size:1.35rem;
  font-weight:600;
  margin:0 0 .5rem;
  color:var(--navy);
}

.cta-band p { color:var(--text-muted); margin:0 0 1.25rem; }

/* Smarty Bucks marketing page */
.page-smarty-bucks { background:#fff; }

.smarty-main {
  max-width:none;
  padding:0;
  background:#fff;
}

.smarty-breadcrumb {
  max-width:1100px;
  margin:0 auto;
  padding:1.25rem 1.25rem 0;
}

.smarty-hero {
  max-width:1100px;
  margin:0 auto;
  padding:2.5rem 1.25rem 3.5rem;
  display:grid;
  gap:2rem;
  align-items:center;
}

@media (min-width:860px) {
  .smarty-hero { grid-template-columns:1.2fr .8fr; gap:3.5rem; padding-top:3.5rem; }
}

.smarty-eyebrow {
  margin:0 0 .65rem;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--teal);
}

.smarty-hero h1 {
  margin:0;
  font-size:clamp(2rem,5vw,3.2rem);
  line-height:1.05;
  color:var(--navy);
}

.smarty-tagline {
  margin:.35rem 0 1.35rem;
  color:var(--teal);
  font-weight:600;
  font-size:1.05rem;
}

.smarty-hero h2 {
  margin:0 0 1rem;
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1.25;
  color:var(--navy);
}

.smarty-lead {
  color:var(--text-muted);
  font-size:1.04rem;
  max-width:42rem;
  margin:0 0 1.5rem;
}

.smarty-actions { display:flex; flex-wrap:wrap; gap:.65rem; }
.smarty-actions .btn-secondary { margin-left:0; }

.smarty-hero-card {
  background:linear-gradient(160deg,rgba(23,179,166,.08),rgba(232,225,212,.55));
  border:1px solid rgba(23,179,166,.18);
  border-radius:22px;
  padding:2rem;
  text-align:center;
}

.smarty-hero-card img {
  width:112px;
  height:112px;
  border-radius:24px;
  box-shadow:var(--shadow);
  margin-bottom:1rem;
}

.smarty-hero-card-title {
  font-weight:600;
  color:var(--navy);
  font-size:1.05rem;
  margin:.25rem 0 .45rem;
}

.smarty-hero-card p:last-child {
  color:var(--text-muted);
  font-size:.92rem;
  margin:0;
}

.smarty-section {
  padding:3.75rem 1.25rem;
  border-top:1px solid var(--border);
}

.smarty-section--soft { background:var(--grey); }
.smarty-section--parent { background:#f8fbfb; }
.smarty-section--rules { background:linear-gradient(160deg,var(--sand),#f5f2ec); }

.smarty-narrow {
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

.smarty-narrow h2,.smarty-section-heading h2,.time-feature h2,.smarty-cta h2 {
  margin:0 0 .8rem;
  font-size:clamp(1.45rem,3vw,1.9rem);
  line-height:1.25;
  color:var(--navy);
}

.smarty-narrow p,.smarty-section-heading p,.time-feature p,.smarty-cta p {
  color:var(--text-muted);
}

.smarty-section-heading {
  max-width:780px;
  margin:0 auto 2rem;
  text-align:center;
}

.smarty-section-heading > p:last-child { margin:.35rem auto 0; }

.question-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
  margin:1.75rem auto 0;
  max-width:640px;
}

.question-grid span {
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:.7rem 1rem;
  font-weight:600;
  color:var(--navy);
  font-size:.9rem;
}

@media (max-width:560px) {
  .question-grid { grid-template-columns:1fr; }
}

.learning-loop {
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:1rem;
}

@media (min-width:720px) {
  .learning-loop { grid-template-columns:repeat(5,1fr); }
}

.learning-step {
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.3rem 1.1rem;
  background:#fff;
  min-height:100%;
}

.learning-number {
  display:inline-flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(23,179,166,.12);
  color:var(--teal);
  font-weight:700;
  font-size:.85rem;
  margin-bottom:.7rem;
}

.learning-step h3 {
  margin:0 0 .35rem;
  font-size:1rem;
  color:var(--navy);
}

.learning-step p {
  margin:0;
  color:var(--text-muted);
  font-size:.88rem;
  line-height:1.5;
}

.smarty-philosophy {
  max-width:760px;
  margin:2rem auto 0;
  padding:1rem 1.25rem;
  border-left:4px solid var(--teal);
  background:rgba(23,179,166,.06);
  color:var(--navy);
  font-weight:600;
  text-align:center;
}

.feature-grid {
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:1rem;
}

@media (min-width:680px) {
  .feature-grid { grid-template-columns:repeat(2,1fr); }
}

@media (min-width:980px) {
  .feature-grid { grid-template-columns:repeat(4,1fr); }
}

.feature-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.35rem 1.2rem;
}

.feature-card h3 {
  margin:0 0 .45rem;
  font-size:1rem;
  color:var(--navy);
}

.feature-card p {
  margin:0;
  color:var(--text-muted);
  font-size:.88rem;
  line-height:1.55;
}

.time-feature {
  max-width:960px;
  margin:0 auto;
  display:grid;
  gap:1.5rem;
  align-items:center;
}

@media (min-width:760px) {
  .time-feature { grid-template-columns:1.4fr .6fr; }
}

.time-feature-badge {
  border-radius:22px;
  padding:2rem 1.25rem;
  text-align:center;
  background:var(--navy);
  color:#fff;
}

.time-feature-badge span {
  display:block;
  color:var(--teal);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
  margin-bottom:.5rem;
}

.time-feature-badge strong { font-size:1.05rem; }

.parent-benefits {
  max-width:1000px;
  margin:0 auto;
  display:grid;
  gap:.85rem;
}

@media (min-width:700px) {
  .parent-benefits { grid-template-columns:repeat(2,1fr); }
}

.parent-benefits div {
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem 1.1rem;
}

.parent-benefits strong {
  display:block;
  margin-bottom:.25rem;
  color:var(--navy);
  font-size:.95rem;
}

.parent-benefits span {
  display:block;
  color:var(--text-muted);
  font-size:.87rem;
}

.smarty-cta {
  text-align:center;
  padding:4rem 1.25rem;
  background:linear-gradient(135deg,var(--navy),#123a52);
  color:#fff;
}

.smarty-cta img {
  border-radius:18px;
  margin-bottom:1rem;
}

.smarty-cta h2 { color:#fff; }

.smarty-cta p {
  max-width:660px;
  margin:.5rem auto 1rem;
  color:rgba(255,255,255,.78);
}

.smarty-cta .smarty-tagline {
  color:var(--teal);
  margin-bottom:1.25rem;
}

.smarty-support {
  max-width:1000px;
  margin:0 auto;
}

.support-grid {
  display:grid;
  gap:.9rem;
}

@media (min-width:700px) {
  .support-grid { grid-template-columns:repeat(2,1fr); }
}

.support-grid a {
  display:block;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem 1.1rem;
  background:#fff;
}

.support-grid a:hover { border-color:rgba(23,179,166,.45); }

.support-grid strong {
  display:block;
  color:var(--navy);
  margin-bottom:.2rem;
}

.support-grid span {
  display:block;
  color:var(--text-muted);
  font-size:.86rem;
}

@media (max-width:760px) {
  .site-header { position:static; }
  .site-header-inner { justify-content:center; }
  .site-nav { justify-content:center; }
  .site-nav .nav-divider { display:none; }
}

@media (max-width:520px) {
  .smarty-actions,.hero-actions { flex-direction:column; align-items:stretch; }
  .smarty-actions .btn,.hero-actions .btn { text-align:center; width:100%; }
}


/* Smarty Bucks corrective layout pass */
.hero-card-break {
  display: block;
  width: 100%;
  height: 1.1rem;
}

.learning-loop {
  align-items: stretch;
}

.learning-step {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.learning-number {
  flex: 0 0 auto;
  margin-bottom: .25rem;
}

.learning-step h3,
.learning-step p {
  display: block;
  width: 100%;
}

.parent-benefits {
  gap: 1rem;
}

.parent-benefits div {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.05rem 1.15rem;
}

.parent-benefits strong,
.parent-benefits span {
  display: block;
  width: 100%;
}

.support-grid {
  gap: 1rem;
}

.support-grid a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.05rem 1.15rem;
}

.support-grid strong,
.support-grid span {
  display: block;
  width: 100%;
}

@media (max-width: 719px) {
  .learning-loop {
    grid-template-columns: 1fr !important;
  }

  .learning-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: .75rem;
    row-gap: .2rem;
    align-items: start;
  }

  .learning-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .learning-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .learning-step p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
}


/* Kids & Money content hub */
.page-kids-money {
  background: #fff;
}

.km-main,
.km-article-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.km-hero {
  max-width: 820px;
  padding: 2.25rem 0 2.75rem;
}

.km-eyebrow {
  margin: 0 0 .55rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal);
}

.km-hero h1,
.km-article-header h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  line-height: 1.14;
}

.km-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.km-lead,
.km-article-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.km-hero > p:last-child {
  color: var(--text-muted);
  max-width: 760px;
}

.km-principles,
.km-content-section,
.km-topic-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}

.km-section-heading {
  margin-bottom: 1.4rem;
}

.km-section-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--navy);
}

.km-principle-grid,
.km-article-grid,
.km-topic-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .km-principle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .km-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .km-topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.km-principle-grid article,
.km-article-card,
.km-topic-grid > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
}

.km-principle-grid h3,
.km-article-card h3 {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-size: 1rem;
}

.km-principle-grid p,
.km-article-card p,
.km-topic-grid span {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.km-article-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.km-article-card--featured {
  border-color: rgba(23,179,166,.4);
  background: linear-gradient(180deg,#fff 0%,rgba(23,179,166,.045) 100%);
  box-shadow: var(--shadow);
}

.km-article-card--featured:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.km-article-card--coming {
  background: #f8faf9;
}

.km-card-label {
  display: inline-block;
  width: fit-content;
  margin-bottom: .7rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--teal);
  background: rgba(23,179,166,.1);
}

.km-card-link {
  margin-top: auto;
  padding-top: .8rem;
  color: var(--teal);
  font-weight: 600;
  font-size: .88rem;
}

.km-topic-grid > div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.km-topic-grid strong {
  color: var(--navy);
}

.km-smarty-bridge {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg,var(--navy),#123a52);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.km-smarty-bridge h2 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 1.35rem;
}

.km-smarty-bridge p {
  margin: 0;
  max-width: 700px;
  color: rgba(255,255,255,.78);
}

.km-smarty-bridge .km-eyebrow {
  color: var(--teal);
  margin-bottom: .3rem;
}

/* Article */
.km-article-main {
  max-width: 940px;
}

.km-article {
  max-width: 760px;
  margin: 0 auto;
}

.km-article-header {
  padding: 2rem 0 1.5rem;
}

.km-article-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.km-summary {
  background: rgba(23,179,166,.07);
  border: 1px solid rgba(23,179,166,.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 0 0 2rem;
}

.km-summary strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--navy);
}

.km-summary p {
  margin: 0;
}

.km-article section {
  margin: 2.2rem 0;
}

.km-article h2 {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
}

.km-article p,
.km-article li {
  color: var(--text-muted);
}

.km-article ul,
.km-article ol {
  padding-left: 1.3rem;
}

.km-article li {
  margin: .4rem 0;
}

.km-article blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--teal);
  background: var(--grey);
  color: var(--navy);
  font-weight: 600;
}

.km-example-box,
.km-age-grid {
  display: grid;
  gap: .9rem;
  margin: 1.25rem 0;
}

@media (min-width: 680px) {
  .km-example-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .km-age-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.km-example-box > div,
.km-age-grid > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  background: #fff;
}

.km-example-box strong,
.km-age-grid strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--navy);
}

.km-example-box p,
.km-age-grid p {
  margin: 0;
  font-size: .9rem;
}

.km-steps-list {
  list-style: none;
  padding: 0 !important;
  counter-reset: kmstep;
}

.km-steps-list li {
  counter-increment: kmstep;
  position: relative;
  padding: .8rem .9rem .8rem 3rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: .65rem 0;
  background: #fff;
}

.km-steps-list li::before {
  content: counter(kmstep);
  position: absolute;
  left: .9rem;
  top: .72rem;
  width: 1.55rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23,179,166,.12);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
}

.km-article-cta {
  background: linear-gradient(160deg,rgba(23,179,166,.08),rgba(232,225,212,.45));
  border: 1px solid rgba(23,179,166,.2);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.km-article-cta h2 {
  margin-bottom: .45rem;
}

.km-next-read {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.km-next-read strong {
  display: block;
  color: var(--navy);
  margin-bottom: .3rem;
}

.km-next-read p {
  margin: 0 0 .55rem;
  color: var(--text-muted);
  font-size: .9rem;
}

.smarty-learning-link .btn-secondary {
  margin-left: 0;
  margin-top: .75rem;
}


/* Standard Kids & Money article disclaimer */
.km-disclaimer {
  margin: 2.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--grey);
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.km-disclaimer strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--navy);
  font-size: .84rem;
}

.km-disclaimer p {
  margin: 0;
  color: var(--text-muted);
}

/* Full Kids & Money series */
@media (min-width: 900px) {
  .km-article-grid { grid-template-columns: repeat(3, 1fr); }
}
.km-article-grid .km-article-card { min-height: 230px; }
