/* =====================================================
   Prostate Screening Pathway — Design System v2
   ===================================================== */

/* --- Design Tokens --- */
:root {
  --primary:        #0f172a;
  --primary-mid:    #1e293b;
  --accent:         #1d4ed8;
  --accent-hover:   #1e40af;
  --accent-light:   #eff6ff;
  --green:          #16a34a;
  --green-light:    #f0fdf4;
  --yellow:         #d97706;
  --yellow-light:   #fffbeb;
  --red:            #dc2626;
  --red-light:      #fef2f2;
  --blue:           #1d4ed8;
  --blue-light:     #eff6ff;
  --bg:             #ffffff;
  --bg-subtle:      #f8fafc;
  --bg-muted:       #f1f5f9;
  --card:           #ffffff;
  --text:           #0f172a;
  --text-mid:       #475569;
  --text-light:     #94a3b8;
  --border:         #e2e8f0;
  --border-mid:     #cbd5e1;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:         0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-md:      0 8px 16px -4px rgba(0,0,0,0.08), 0 3px 6px -3px rgba(0,0,0,0.04);
  --shadow-lg:      0 16px 32px -8px rgba(0,0,0,0.10), 0 6px 12px -6px rgba(0,0,0,0.05);
  --nav-height:     64px;
  --max-width:      1100px;
  --transition:     0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.9rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
h4 { font-size: 0.95rem; }
p { margin-bottom: 0.85rem; color: var(--text-mid); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  cursor: default;
}

.nav-logo-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.nav-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 400;
  display: block;
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: block;
}

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

.nav-links a.active {
  color: var(--text);
  background: var(--bg-muted);
  font-weight: 600;
}

.nav-hamburger {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), background var(--transition);
}

.nav-hamburger:hover { background: var(--bg-muted); border-color: var(--border-mid); }

.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  z-index: 99;
  padding: 0.5rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

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

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.mobile-menu a {
  display: block;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--bg-muted);
  color: var(--text);
}

@media (min-width: 800px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

/* =====================================================
   LAYOUT
   ===================================================== */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.section { margin-bottom: 3rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 600px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: linear-gradient(155deg, #0f172a 0%, #1e3a5f 55%, #1e293b 100%);
  color: #fff;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.875rem;
  position: relative;
}

.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  position: relative;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: var(--primary-mid); border-color: var(--primary-mid); color: #fff; box-shadow: var(--shadow-sm); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
}
.btn-outline:hover { background: var(--bg-muted); color: var(--text); border-color: var(--border-mid); }

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-white:hover { background: #f8fafc; color: var(--primary); box-shadow: var(--shadow-sm); }

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: #15803d; border-color: #15803d; color: #fff; }

.btn-lg { padding: 0.8rem 1.75rem; font-size: 0.95rem; border-radius: var(--radius-sm); }

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
  margin-bottom: 1.75rem;
}

.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { font-size: 0.975rem; color: var(--text-mid); max-width: 680px; }

.section-title .tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border-left: 3px solid;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.alert p { margin: 0; color: inherit; }
.alert p + p { margin-top: 0.4rem; }

.alert-info {
  background: #f0f7ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: var(--yellow-light);
  border-color: var(--yellow);
  color: #92400e;
}

.alert-danger {
  background: var(--red-light);
  border-color: var(--red);
  color: #991b1b;
}

.alert-success {
  background: var(--green-light);
  border-color: var(--green);
  color: #14532d;
}

.alert-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--card);
}

th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  line-height: 1.55;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg-subtle); }
tr:hover td { background: #f8fafc; }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  display: block;
  line-height: 1.5;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.checkbox-group { display: flex; flex-direction: column; gap: 0.55rem; }

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.4rem 0;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-item span { font-size: 0.875rem; color: var(--text-mid); line-height: 1.55; }

/* Yes/No Button Group */
.yn-group { display: flex; gap: 0.5rem; margin-top: 0.4rem; }

.yn-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
  transition: all var(--transition);
  font-family: inherit;
}

.yn-btn:hover { border-color: var(--text); color: var(--text); background: var(--bg-subtle); }
.yn-btn.selected-yes { background: var(--red, #c0392b); border-color: var(--red, #c0392b); color: #fff; }
.yn-btn.selected-no { background: var(--green); border-color: var(--green); color: #fff; }

/* =====================================================
   STEP INDICATOR
   ===================================================== */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  gap: 0;
}

.step { display: flex; align-items: center; gap: 0; flex-shrink: 0; }

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.step.active .step-circle { background: var(--primary); color: #fff; }
.step.done .step-circle { background: var(--green); color: #fff; }

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 0.4rem;
  white-space: nowrap;
}

.step.active .step-label { color: var(--text); }
.step.done .step-label { color: var(--green); }

.step-line { height: 1.5px; width: 2rem; background: var(--border); flex-shrink: 0; }

/* =====================================================
   RISK GAUGE
   ===================================================== */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.gauge-svg { width: 100%; max-width: 280px; }

.gauge-label { text-align: center; margin-top: 0.5rem; }

.gauge-level {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gauge-level.green { color: var(--green); }
.gauge-level.yellow { color: var(--yellow); }
.gauge-level.red { color: var(--red); }

/* =====================================================
   RISK CHIPS
   ===================================================== */
.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-chip.green { background: var(--green-light); color: var(--green); }
.risk-chip.yellow { background: var(--yellow-light); color: var(--yellow); }
.risk-chip.red { background: var(--red-light); color: var(--red); }
.risk-chip.orange { background: #fff7ed; color: #c2410c; }

/* =====================================================
   QUIZ
   ===================================================== */
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.quiz-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.quiz-q {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.quiz-q-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.55; }

.quiz-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  display: none;
}

.quiz-result.show { display: block; }

/* =====================================================
   PICTOGRAPH
   ===================================================== */
.pictograph {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 1rem 0;
}

.pictograph-person { font-size: 1.25rem; line-height: 1; }

/* =====================================================
   ACCORDION
   ===================================================== */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.accordion-item:hover { box-shadow: var(--shadow-xs); }

.accordion-btn {
  width: 100%;
  background: #fff;
  border: none;
  padding: 0.95rem 1.15rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background var(--transition);
  font-family: inherit;
}

.accordion-btn:hover { background: var(--bg-subtle); }

.accordion-btn .chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-light);
}

.accordion-btn.open .chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.accordion-body.open { display: block; }

/* =====================================================
   NAVIGATION CARDS (homepage)
   ===================================================== */
.nav-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-card-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.nav-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.2rem; }
.nav-card p { font-size: 0.84rem; color: var(--text-light); margin: 0; line-height: 1.55; }

.nav-card-arrow {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-card:hover .nav-card-arrow { color: var(--text); }

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar { height: 100%; border-radius: 100px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.progress-bar.green { background: var(--green); }
.progress-bar.yellow { background: var(--yellow); }
.progress-bar.red { background: var(--red); }
.progress-bar.blue { background: var(--blue); }

/* =====================================================
   DISCLAIMER + FOOTER
   ===================================================== */
.disclaimer-bar {
  background: var(--bg-subtle);
  color: var(--text-mid);
  font-size: 0.76rem;
  text-align: center;
  padding: 1rem 1.5rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

.disclaimer-bar strong { color: var(--text); }

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.site-footer a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* =====================================================
   CHART CONTAINER
   ===================================================== */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 768px) {
  .page-wrap { padding: 3rem 2rem 5.5rem; }
  .hero { padding: 5.5rem 2rem 5rem; }
  .section { margin-bottom: 3.5rem; }
}

@media (min-width: 1024px) {
  .page-wrap { padding: 3.5rem 2.5rem 7rem; }
}

/* Wide screens — widen content so it doesn't float in the center of a 1920px display */
@media (min-width: 1400px) {
  :root {
    --max-width: 1240px;
  }
  .hero p { max-width: 700px; }
}

@media (min-width: 1800px) {
  :root { --max-width: 1380px; }
}

/* =====================================================
   MOBILE — targeted fixes for small screens
   ===================================================== */
@media (max-width: 639px) {

  /* Nav: hide subtitle on small screens to avoid crowding */
  .nav-logo-sub { display: none; }
  .nav-inner { padding: 0 1rem; }

  /* Hero: tighter padding, smaller subtitle */
  .hero {
    padding: 2.75rem 1.25rem 3rem;
  }

  .hero p {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.1rem;
  }

  /* Hero CTA buttons: stack full-width */
  .hero .flex-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Page content: tighter side padding */
  .page-wrap { padding: 1.75rem 1rem 4rem; }

  /* Cards: less padding on mobile */
  .card { padding: 1.1rem 1.15rem; }

  /* Quiz card */
  .quiz-card { padding: 1.1rem; }

  /* Section title spacing */
  .section-title { margin-bottom: 1.25rem; }
  .section { margin-bottom: 2.25rem; }

  /* Tables: ensure they scroll horizontally */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* Accordion: tighter */
  .accordion-btn { padding: 0.8rem 0.9rem; font-size: 0.84rem; }
  .accordion-body { padding: 0.85rem 0.9rem 1rem; }

  /* Form select full-width on mobile */
  .form-select { max-width: 100% !important; }

  /* Steps: smaller circles */
  .step-circle { width: 24px; height: 24px; font-size: 0.7rem; }
  .step-line { width: 1.5rem; }
  .step-label { font-size: 0.68rem; }

  /* Mobile menu: slightly more padding */
  .mobile-menu { padding: 0.5rem 0.75rem 1rem; }

  /* Disclaimer: smaller */
  .disclaimer-bar { font-size: 0.72rem; padding: 0.85rem 1rem; }

  /* Footer: tighter */
  .site-footer { padding: 1.5rem 1rem; }
  .site-footer a { display: inline-block; margin: 0 0.15rem; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-nav, .nav-hamburger, .mobile-menu, .site-footer, .disclaimer-bar, .btn { display: none !important; }
  body { font-size: 12pt; background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .page-wrap { padding: 0; max-width: 100%; }
}
