/* WhyBuddy Global Styles */
:root {
  --primary: #FFDA76;
  --primary-dark: #f0c850;
  --primary-soft: #fff3cc;
  --sky: #7C4DFF;
  --sky-light: #B387FF;
  --sky-soft: #ede0ff;
  --sky-dark: #6236CC;
  --text: #2c2c2c;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f0f6fc;
  --bg-card: #ffffff;
  --border: #d0dce6;
  --shadow: rgba(0,0,0,0.08);
  --shadow-lg: rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 70px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sky-light); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.3; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 36px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--sky); }

.nav-download {
  background: var(--sky);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-download:hover { background: var(--sky-light); color: #fff !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    z-index: 999;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 8px 24px var(--shadow-lg);
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { font-size: 1.1rem; }

  /* Hamburger → X animation */
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #e8f0f8;
  border-top: 3px solid var(--sky);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 32px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-light); font-size: 0.9rem; }
.footer-col a:hover { color: var(--sky); }

.footer-download { margin-top: 16px; }
.footer-download img { height: 44px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== HERO (Homepage) ===== */
.hero {
  background: linear-gradient(135deg, #FFDA76 0%, #FFB347 50%, #FF8C42 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(46,134,193,0.1) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-text .subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-text .built-by {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  font-style: italic;
}

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta .app-store-btn img { height: 54px; }

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: #000;
  border-radius: 48px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { overflow: hidden; }
  .hero-text h1 { font-size: 2rem; word-wrap: break-word; }
  .hero-cta { justify-content: center; flex-direction: column; align-items: center; }
  .hero-cta .btn-primary { margin-left: 0 !important; }
  .phone-mockup { width: 230px; height: 470px; border-radius: 40px; padding: 14px; }
  .phone-screen { border-radius: 28px; }
}

/* ===== DEMO WIDGET ===== */
.demo-widget {
  background: #fff;
  border: 2px solid var(--sky);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  max-width: 560px;
}
.demo-widget h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.demo-question {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.demo-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.demo-slider-row label { font-weight: 600; color: var(--text-light); white-space: nowrap; font-size: 0.9rem; }
.age-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  border-radius: 4px;
  outline: none;
}
.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 3px solid var(--sky);
}
.age-slider::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 3px solid var(--sky);
}
.demo-age-display {
  background: var(--sky);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 80px;
  text-align: center;
}
.demo-answer {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  min-height: 80px;
}

@media (max-width: 768px) {
  .demo-widget { margin: 30px auto 0; max-width: 100%; padding: 20px; box-sizing: border-box; }
  .demo-widget h3 { font-size: 1rem; }
  .demo-slider-row { flex-wrap: wrap; gap: 8px; }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.step-card { text-align: center; padding: 24px 16px; }
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), #FFB347);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 0.95rem; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow-lg);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), #FFB347);
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* Popular Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.topic-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 16px var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--primary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}
.topic-card h3 { font-size: 1rem; margin-bottom: 6px; }
.topic-card h3 a { color: var(--text); }
.topic-card h3 a:hover { color: var(--sky); }
.topic-card .topic-category {
  font-size: 0.8rem;
  color: var(--sky);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Age Nav */
.age-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.age-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow-lg);
  transition: transform 0.2s;
  border: 2px solid var(--border);
}
.age-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.age-card .age-range {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sky);
  margin-bottom: 8px;
}
.age-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.age-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.age-card .btn-outline {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid var(--sky);
  color: var(--sky);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.age-card .btn-outline:hover { background: var(--sky); color: #fff; }

@media (max-width: 768px) {
  .age-nav-grid { grid-template-columns: 1fr; }
}

/* Latest Topics */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.latest-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 16px var(--shadow-lg);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}
.latest-card:hover { transform: translateY(-3px); }
.latest-card .latest-tag {
  display: inline-block;
  background: var(--primary);
  color: #333;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.latest-card h3 { font-size: 1rem; margin-bottom: 6px; }
.latest-card h3 a { color: var(--text); }
.latest-card h3 a:hover { color: var(--sky); }
.latest-card p { font-size: 0.9rem; color: var(--text-light); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #FFD05C 0%, #5CBDF7 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 28px; }
.cta-banner .app-store-btn img { height: 54px; }

/* Browse All Button */
.btn-primary {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--sky-light); color: #fff; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: #333;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--primary-dark); }

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===== TOPICS INDEX ===== */
.topics-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FFB347 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.topics-hero h1 { font-size: 2.4rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 12px; }
.topics-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
  font-family: var(--font);
}
.filter-btn:hover { border-color: var(--sky); color: var(--sky); }
.filter-btn.active { background: var(--sky); color: #fff; border-color: var(--sky); }

.hub-section { margin-bottom: 48px; }
.hub-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.hub-section-title a { color: var(--text); }
.hub-section-title a:hover { color: var(--sky); }

.category-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.mini-topic-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s;
  border-left: 3px solid var(--primary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.mini-topic-card:hover { transform: translateX(4px); }
.mini-topic-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.mini-topic-card h4 a { color: var(--text); }
.mini-topic-card h4 a:hover { color: var(--sky); }
.mini-topic-card .cat-label { font-size: 0.78rem; color: var(--sky); font-weight: 600; }

/* ===== HUB PAGE ===== */
.hub-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FFB347 100%);
  padding: 48px 0;
}
.hub-hero h1 { font-size: 2.2rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 8px; }
.hub-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.hub-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.hub-cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 20px var(--shadow-lg);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}
.hub-cat-card:hover { transform: translateY(-3px); }
.hub-cat-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hub-cat-card h3 a { color: var(--text); }
.hub-cat-card h3 a:hover { color: var(--sky); }
.hub-cat-card .page-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.hub-cat-card p { font-size: 0.9rem; color: var(--text-light); }

.featured-pages h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* ===== CATEGORY PAGE ===== */
.category-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FFB347 100%);
  padding: 48px 0;
}
.category-hero h1 { font-size: 2rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 8px; }
.category-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.category-pages-list { margin-bottom: 48px; }
.category-page-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 14px var(--shadow-lg);
  transition: transform 0.2s;
  display: block;
  color: var(--text);
  border: 1px solid var(--border);
}
.category-page-item:hover { transform: translateX(6px); color: var(--text); }
.category-page-item h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.category-page-item:hover h3 { color: var(--sky); }
.category-page-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.category-page-item .priority-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.priority-high { background: #fde8e8; color: #c0392b; }
.priority-med { background: #fef9e7; color: #f39c12; }
.priority-low { background: #eaf2f8; color: #2e86c1; }

.related-categories {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 48px;
}
.related-categories h3 { font-size: 1.15rem; margin-bottom: 16px; }
.related-cat-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-cat-link {
  background: var(--bg-card);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 1px 4px var(--shadow);
  color: var(--text);
}
.related-cat-link:hover { background: var(--sky); color: #fff; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--sky); }
.breadcrumbs span { margin: 0 6px; }

/* ===== INDIVIDUAL PAGE ===== */
.article-header {
  padding: 40px 0 24px;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-content { padding-bottom: 48px; }

.quick-answer {
  background: linear-gradient(135deg, #fff6d4, #ffedab);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 8px;
  border-left: 5px solid var(--primary-dark);
  box-shadow: 0 2px 12px rgba(255,218,118,0.3);
}

.quick-answer h2 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.quick-answer p { font-size: 1.05rem; line-height: 1.7; }

/* Ad containers */
.ad-container {
  min-height: 0;
  margin: 24px 0;
  text-align: center;
}

/* Age Slider Widget */
.age-widget {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 20px var(--shadow);
}
.age-widget h2 { font-size: 1.3rem; margin-bottom: 20px; text-align: center; }
.age-widget-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.age-widget-controls label { font-weight: 600; white-space: nowrap; color: var(--text-light); }
.age-widget-controls .age-slider { flex: 1; }
.age-widget-display {
  background: var(--sky);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  min-width: 100px;
  text-align: center;
}
.age-explanation {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  line-height: 1.8;
  font-size: 1rem;
}
.age-explanation[hidden] { display: none; }

/* Static age sections */
.age-section {
  margin: 32px 0;
}
.age-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.age-badge {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.age-group {
  background: var(--sky-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--sky);
}
.age-group h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--sky);
}
.age-group p, .age-group ul {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.age-group ul { padding-left: 20px; margin-top: 8px; }
.age-group li { margin-bottom: 6px; }

/* Tips Section */
.tips-section {
  margin: 32px 0;
}
.tips-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.tip-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-do { background: #d5f5e3; color: #27ae60; }
.tip-dont { background: #fde8e8; color: #e74c3c; }
.tip-item p { font-size: 0.95rem; line-height: 1.7; }
.tip-item strong { color: var(--text); }

/* FAQ Section */
.faq-section {
  margin: 32px 0;
}
.faq-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px var(--shadow);
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--sky);
}
.faq-item p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item a { font-weight: 500; }

/* Related Topics */
.related-section {
  margin: 32px 0;
}
.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.related-link {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 6px var(--shadow);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: 0.2s;
  border-left: 3px solid var(--primary);
}
.related-link:hover { border-left-color: var(--sky); color: var(--sky); transform: translateX(4px); }
.related-link small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.cross-hub-section {
  margin: 32px 0;
}
.cross-hub-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #dbeefb, #c8e4f8);
  border: 2px solid var(--sky);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  color: #1a4060;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(76,181,245,0.15);
}
.cta-box h3 { font-size: 1.3rem; margin-bottom: 10px; color: #155080; }
.cta-box p { margin-bottom: 20px; font-size: 1rem; color: #1a6090; }
.cta-box .app-store-btn img { height: 48px; }

}

/* ===== UTILITY / PAGE WRAPPER ===== */
.page-content {
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* Static pages (privacy, contact) */
.static-page {
  padding: 48px 0;
}
.static-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 20px var(--shadow);
}
.static-content h1 { font-size: 2rem; margin-bottom: 12px; }
.static-content h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; }
.static-content p { margin-bottom: 16px; font-size: 0.95rem; }
.static-content ul { padding-left: 20px; margin-bottom: 16px; }
.static-content li { margin-bottom: 8px; font-size: 0.95rem; }
.static-content .highlight-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--sky);
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .static-content { padding: 28px 20px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .article-header h1 { font-size: 1.6rem; }
  .age-widget { padding: 24px 16px; }
  .age-widget-controls { flex-wrap: wrap; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
