/* Longer — Shared Styles */
/* Mobile-first, max-width 440px content column */

/* ===== Variables ===== */
:root {
  --primary: #1a2744;
  --accent: #e8a838;
  --bg: #f8f7f5;
  --text: #2d3748;
  --success: #2d7a4f;
  --alert: #c0392b;
  --muted: #718096;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(26,39,68,0.10);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-wrap { padding-bottom: 80px; } /* space for bottom nav */

/* ===== Nav ===== */
.top-nav {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.top-nav .nav-cta {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.top-nav .nav-cta:hover { text-decoration: none; opacity: 0.9; }

/* ===== Bottom Nav (authenticated pages) ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 4px 8px;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--accent); text-decoration: none; }
.bottom-nav .nav-icon { font-size: 1.3rem; line-height: 1; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  transition: opacity 0.2s;
}
.btn-accent:hover { opacity: 0.9; text-decoration: none; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; width: auto; }

/* ===== Age Gate ===== */
#age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#age-gate-overlay.hidden { display: none; }
#age-gate-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
#age-gate-modal h2 { color: var(--primary); margin-bottom: 12px; font-size: 1.4rem; }
#age-gate-modal p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; line-height: 1.5; }
#age-gate-modal .age-gate-badge {
  display: inline-block;
  background: var(--alert);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
#age-confirm { margin-bottom: 10px; }
#age-exit {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 48px 20px 40px;
  text-align: center;
}
.hero h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 14px; font-weight: 700; }
.hero .hero-sub { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; line-height: 1.6; }
.hero .hero-badge {
  display: inline-block;
  background: rgba(232,168,56,0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== Sections ===== */
.section { padding: 36px 20px; }
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.section-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-title { font-weight: 700; color: var(--primary); margin-bottom: 6px; font-size: 1.05rem; }
.card-sub { color: var(--muted); font-size: 0.9rem; }

/* ===== Steps ===== */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.step-body { flex: 1; }
.step-body strong { display: block; color: var(--primary); margin-bottom: 2px; }
.step-body span { color: var(--muted); font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testimonial {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--accent);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 10px; }
.testimonial .author { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ===== Pricing Cards ===== */
.pricing-grid { display: flex; flex-direction: column; gap: 16px; }
.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  position: relative;
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 14px;
  border-radius: 20px;
}
.pricing-name { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 4px; }
.pricing-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.pricing-features { list-style: none; margin-bottom: 20px; }
.pricing-features li { padding: 5px 0; font-size: 0.9rem; color: var(--text); }
.pricing-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ===== Form ===== */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.radio-option:has(input:checked) { border-color: var(--accent); background: #fffbf0; }
.radio-option input { accent-color: var(--accent); }
.radio-option span { font-size: 0.95rem; color: var(--text); }

/* ===== Progress Bar ===== */
.progress-bar-wrap { background: var(--border); border-radius: 8px; height: 10px; overflow: hidden; margin: 8px 0; }
.progress-bar { background: var(--accent); height: 100%; border-radius: 8px; transition: width 0.4s; }

/* ===== Stat Cards ===== */
.stats-row { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ===== Alerts ===== */
.alert-info {
  background: #ebf8ff;
  border: 1.5px solid #63b3ed;
  border-radius: 8px;
  padding: 14px;
  color: #2c5282;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-warn {
  background: #fffbeb;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  color: #744210;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-success {
  background: #f0fff4;
  border: 1.5px solid var(--success);
  border-radius: 8px;
  padding: 14px;
  color: #1c4532;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ===== Debug Blocked ===== */
.debug-blocked {
  background: #fff3cd;
  border: 2px dashed #e8a838;
  color: #856404;
  padding: 16px;
  border-radius: 8px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  margin: 16px 0;
  line-height: 1.5;
}

/* ===== Phase Badge ===== */
.phase-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
}
footer .adults-only-label {
  display: inline-block;
  background: var(--alert);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
footer .medical-disclaimer { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
footer nav { margin-top: 14px; }
footer nav a { color: rgba(255,255,255,0.6); margin: 0 8px; font-size: 0.85rem; }

/* ===== Quiz ===== */
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.quiz-nav { display: flex; gap: 10px; margin-top: 20px; }
.quiz-nav .btn-primary, .quiz-nav .btn-secondary { width: auto; flex: 1; }
.quiz-progress { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.result-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.result-card h2 { color: var(--primary); margin-bottom: 8px; }
.result-card p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.result-card .phase-label {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ===== Milestone Timeline ===== */
.milestone-timeline { position: relative; padding-left: 28px; }
.milestone-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.milestone {
  position: relative;
  margin-bottom: 24px;
}
.milestone::before {
  content: '';
  position: absolute;
  left: -22px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid #fff;
}
.milestone.done::before { background: var(--success); }
.milestone.current::before { background: var(--accent); }
.milestone h4 { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.milestone p { color: var(--muted); font-size: 0.85rem; }

/* ===== Safety List ===== */
.safety-list { list-style: none; }
.safety-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.safety-list li:last-child { border-bottom: none; }
.safety-list .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* ===== Utility ===== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); font-size: 0.9rem; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ===== Responsive desktop ===== */
@media (min-width: 600px) {
  .container { max-width: 480px; }
  .hero h1 { font-size: 2.1rem; }
  .pricing-grid { flex-direction: row; flex-wrap: wrap; }
  .pricing-card { flex: 1 1 calc(50% - 8px); }
}
