/* ============================================
   PediatricEMR.com Design System
   Cheerful Professional - For Physicians
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&family=Nunito:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --white: #ffffff;
  --sky-blue: #0ea5e9;
  --sky-blue-hover: #0284c7;
  --sky-blue-light: #e0f2fe;
  --soft-yellow: #fde68a;
  --soft-yellow-light: #fef9c3;
  --green: #4ade80;
  --green-dark: #16a34a;
  --navy: #0c4a6e;
  --navy-light: #164e63;
  --light-blue-bg: #f0f9ff;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(12, 74, 110, 0.06), 0 1px 2px rgba(12, 74, 110, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 74, 110, 0.08), 0 2px 4px rgba(12, 74, 110, 0.04);
  --shadow-lg: 0 10px 30px rgba(12, 74, 110, 0.1), 0 4px 8px rgba(12, 74, 110, 0.05);
  --shadow-hover: 0 12px 36px rgba(12, 74, 110, 0.14), 0 6px 12px rgba(12, 74, 110, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Age Group Colors */
  --age-newborn: #fda4af;
  --age-newborn-bg: #fff1f2;
  --age-infant: #c4b5fd;
  --age-infant-bg: #f5f3ff;
  --age-toddler: #fde68a;
  --age-toddler-bg: #fefce8;
  --age-school: #86efac;
  --age-school-bg: #f0fdf4;
  --age-adolescent: #93c5fd;
  --age-adolescent-bg: #eff6ff;

  --max-width: 1200px;
  --content-width: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--navy);
}

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

a:hover {
  color: var(--sky-blue-hover);
}

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* --- Header & Navigation --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
}

.site-logo .logo-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-logo .logo-text span {
  color: var(--sky-blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--light-blue-bg);
  color: var(--sky-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Sections --- */
.hero {
  background: linear-gradient(180deg, var(--light-blue-bg) 0%, var(--white) 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--sky-blue-light);
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--soft-yellow-light);
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  max-width: 720px;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-page {
  padding: 3rem 0 2.5rem;
}

.hero-page h1 {
  font-size: 2.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--sky-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sky-blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--sky-blue);
  border: 2px solid var(--sky-blue);
}

.btn-outline:hover {
  background: var(--sky-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--light-blue-bg);
  color: var(--sky-blue);
}

.btn-secondary:hover {
  background: var(--sky-blue-light);
  color: var(--sky-blue-hover);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  color: inherit;
}

/* --- Review Cards --- */
.review-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.review-rank {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--muted-light);
  width: 40px;
  text-align: center;
  padding-top: 0.25rem;
}

.review-rank.rank-1 {
  color: var(--sky-blue);
  font-size: 1.75rem;
}

.review-info h3 {
  margin-bottom: 0.375rem;
}

.review-info h3 a {
  color: var(--navy);
}

.review-info h3 a:hover {
  color: var(--sky-blue);
}

.review-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.review-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 64px;
}

.score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.score-excellent { background: linear-gradient(135deg, var(--sky-blue) 0%, #0284c7 100%); }
.score-great { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.score-good { background: linear-gradient(135deg, #facc15 0%, #eab308 100%); color: var(--navy); }
.score-fair { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.score-poor { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); }

.score-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

/* --- Age Group Tags --- */
.age-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.age-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.age-tag-newborn { background: var(--age-newborn-bg); color: #9f1239; }
.age-tag-infant { background: var(--age-infant-bg); color: #5b21b6; }
.age-tag-toddler { background: var(--age-toddler-bg); color: #92400e; }
.age-tag-school-age { background: var(--age-school-bg); color: #166534; }
.age-tag-adolescent { background: var(--age-adolescent-bg); color: #1e40af; }

/* --- Score Bars --- */
.score-bar-group {
  display: grid;
  gap: 0.75rem;
}

.score-bar-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1rem;
  align-items: center;
}

.score-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.score-bar-track {
  height: 10px;
  background: var(--border-light);
  border-radius: 5px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--sky-blue) 0%, #38bdf8 100%);
  transition: width 0.8s ease-out;
}

.score-bar-fill.score-high { background: linear-gradient(90deg, var(--sky-blue) 0%, #38bdf8 100%); }
.score-bar-fill.score-mid { background: linear-gradient(90deg, #facc15 0%, #fbbf24 100%); }
.score-bar-fill.score-low { background: linear-gradient(90deg, #fb923c 0%, #f97316 100%); }

.score-bar-value {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  min-width: 32px;
  text-align: right;
}

/* --- Guide Cards --- */
.guide-card {
  padding: 2rem;
}

.guide-card .guide-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--sky-blue-light);
  color: var(--sky-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.guide-card h3 {
  margin-bottom: 0.5rem;
}

.guide-card h3 a {
  color: var(--navy);
}

.guide-card h3 a:hover {
  color: var(--sky-blue);
}

.guide-card .guide-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.guide-card .guide-meta {
  font-size: 0.8125rem;
  color: var(--muted-light);
  font-weight: 600;
}

/* --- Feature Comparison Cards --- */
.feature-card {
  padding: 2rem;
}

.feature-card .emrs-compared {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.feature-card .emr-chip {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: var(--light-blue-bg);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th {
  background: var(--light-blue-bg);
  padding: 0.875rem 1rem;
  text-align: left;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--navy);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--light-blue-bg);
}

.comparison-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.cell-yes {
  color: var(--green-dark);
  font-weight: 600;
}

.cell-no {
  color: #dc2626;
  font-weight: 600;
}

.cell-partial {
  color: #d97706;
  font-weight: 600;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--light-blue-bg);
}

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

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 640px;
}

/* --- Grid Layouts --- */
.grid-reviews {
  display: grid;
  gap: 1.25rem;
}

.grid-guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

/* --- Age Group Quick Links --- */
.age-group-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.age-group-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
  background: var(--white);
}

.age-group-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.age-group-link .age-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
}

.age-group-link .age-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  text-align: center;
}

.age-group-link .age-range {
  font-size: 0.75rem;
  color: var(--muted);
}

.age-newborn .age-icon { background: var(--age-newborn-bg); color: #9f1239; }
.age-infant .age-icon { background: var(--age-infant-bg); color: #5b21b6; }
.age-toddler .age-icon { background: var(--age-toddler-bg); color: #92400e; }
.age-school .age-icon { background: var(--age-school-bg); color: #166534; }
.age-adolescent .age-icon { background: var(--age-adolescent-bg); color: #1e40af; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sky-blue);
  opacity: 0.15;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 15%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--soft-yellow);
  opacity: 0.1;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* --- Pros and Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-list, .cons-list {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.pros-list {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.cons-list {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pros-list h4, .cons-list h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.pros-list h4 { color: var(--green-dark); }
.cons-list h4 { color: #dc2626; }

.pros-list ul, .cons-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li, .cons-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pros-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.cons-list li::before {
  content: '-';
  position: absolute;
  left: 0.15rem;
  color: #dc2626;
  font-weight: 700;
}

/* --- Article Content --- */
.article-content {
  padding: 3rem 0;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.625rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* --- Best For Badge --- */
.best-for-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--soft-yellow-light);
  border: 1px solid var(--soft-yellow);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 1.5rem;
}

/* --- Winner Banner --- */
.winner-banner {
  background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--light-blue-bg) 100%);
  border: 2px solid var(--sky-blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.winner-banner .winner-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--sky-blue);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.winner-banner .winner-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.25rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-brand .logo-text {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand .logo-text span {
  color: var(--sky-blue);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --- Schema / SEO hidden --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8125rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--sky-blue);
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--muted-light);
}

.breadcrumb .current {
  color: var(--navy);
  font-weight: 600;
}

/* --- Legal Pages --- */
.legal-content {
  padding: 3rem 0;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.375rem;
}

.legal-content p, .legal-content li {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .review-card {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .review-score-badge {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.75rem;
  }

  .age-group-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .score-bar-item {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }

  .score-bar-label {
    grid-column: 1 / -1;
  }

  .grid-guides {
    grid-template-columns: 1fr;
  }

  .grid-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.625rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }

  .age-group-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}
