:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --ink: #2d3436;
  --muted: #636e72;
  --accent: #e17055;
  --primary: #00b894;
  --success: #00b894;
  --warning: #fdcb6e;
  --error: #d63031;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --space: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover {
  color: #009c7f;
  text-decoration: underline;
}

/* Navigation */
.site-nav {
  background: var(--surface);
  border-bottom: 2px solid #e8e4df;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

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

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0fdf9 0%, #fef9f5 100%);
  border-radius: var(--radius);
}

.hero h1 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tool Wrapper */
.tool-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Screens */
.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background: #e8e4df;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #00d2a0 100%);
  transition: width 300ms ease;
}

.step-indicator {
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Question Cards */
.question-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
  transition: all 180ms ease;
}

.question-card:focus-within {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.question-card.answered {
  border-left-color: var(--success);
}

.question-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid #e8e4df;
  border-radius: 8px;
  cursor: pointer;
  transition: all 180ms ease;
  background: var(--surface);
}

.radio-group label:hover,
.checkbox-group label:hover {
  border-color: var(--accent);
  background: #fef9f5;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.radio-group input:checked + span,
.checkbox-group input:checked + span {
  font-weight: 600;
  color: var(--primary);
}

.radio-group input:checked ~ label,
.checkbox-group input:checked ~ label {
  border-color: var(--primary);
  background: #f0fdf9;
}

/* Buttons */
button, .btn {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 180ms ease;
  border-radius: var(--radius);
  font-size: 1rem;
  padding: 0.875rem 2rem;
  display: inline-block;
  text-align: center;
}

button:active, .btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: #009c7f;
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
}

.btn-secondary:hover:not(:disabled) {
  background: #f0fdf9;
}

/* Sticky Action */
.sticky-action {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  border-top: 2px solid #e8e4df;
  z-index: 10;
  margin: 2rem -2rem -2rem -2rem;
}

/* Results */
.results-header {
  background: linear-gradient(135deg, #00b894 0%, #00d2a0 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}

.results-header h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.profile-summary {
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
}

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

.methodology-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--muted);
  transition: all 200ms ease;
}

.methodology-card.recommended {
  border-left-color: var(--primary);
  background: linear-gradient(to right, #f0fdf9 0%, var(--surface) 8%);
}

.methodology-card.not-recommended {
  border-left-color: var(--error);
  opacity: 0.7;
}

.methodology-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.methodology-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.score-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.score-badge.low {
  background: var(--muted);
}

.score-badge.warning {
  background: var(--warning);
  color: var(--ink);
}

.methodology-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.methodology-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .methodology-pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros, .cons {
  padding: 1rem;
  border-radius: 8px;
}

.pros {
  background: #f0fdf9;
  border-left: 3px solid var(--success);
}

.cons {
  background: #fef9f5;
  border-left: 3px solid var(--warning);
}

.pros h4, .cons h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.pros h4 {
  color: var(--success);
}

.cons h4 {
  color: var(--warning);
}

.pros ul, .cons ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
}

.pros li, .cons li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.red-flags {
  background: #ffe8e8;
  border-left: 3px solid var(--error);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.red-flags h4 {
  color: var(--error);
  margin: 0 0 0.5rem 0;
}

.red-flags ul {
  margin: 0;
  padding-left: 1.25rem;
}

.red-flags li {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Checklist */
.checklist-header {
  background: linear-gradient(135deg, #e17055 0%, #ff7675 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}

.checklist-header h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.checklist-header p {
  color: rgba(255,255,255,0.95);
}

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

.checklist-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.checklist-section h3 {
  margin-top: 0;
  color: var(--ink);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  background: #faf9f7;
  border-radius: 6px;
  cursor: pointer;
  transition: all 180ms ease;
}

.checklist-item:hover {
  background: #f0fdf9;
}

.checklist-item input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checklist-item label {
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.checklist-item input:checked + label {
  text-decoration: line-through;
  color: var(--muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ad-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ad-slot {
  background: #f5f5f5;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

.info-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.info-box ol,
.info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.info-box li {
  margin-bottom: 0.5rem;
}

.methodology-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.badge.montessori {
  background: #74b9ff;
}

.badge.waldorf {
  background: #a29bfe;
}

.badge.play-based {
  background: #ffeaa7;
  color: var(--ink);
}

.badge.reggio {
  background: #fab1a0;
}

.badge.forest {
  background: #55efc4;
  color: var(--ink);
}

.badge.homeschool {
  background: #fd79a8;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 2px solid #e8e4df;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  margin-top: 4rem;
}

.site-footer p {
  margin: 0 0 1rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .tool-wrapper {
    padding: 1.5rem;
  }

  .sticky-action {
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .methodology-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .site-nav,
  .sidebar,
  .sticky-action,
  .results-actions,
  .ad-container {
    display: none;
  }

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

  .tool-wrapper {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .methodology-card,
  .checklist-section {
    page-break-inside: avoid;
  }
}