/* ============================================================
   whatdoesaroofcost.com — global.css
   Pure CSS. No preprocessors. No frameworks.
   ============================================================ */

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

:root {
  /* Colors */
  --navy: #1a2332;
  --navy-light: #243044;
  --charcoal: #2d3748;
  --orange: #e8873a;
  --orange-hover: #d4752c;
  --orange-light: #fef3e8;
  --orange-glow: rgba(232, 135, 58, 0.15);
  --green: #2f9e44;
  --green-light: #ebfbee;
  --amber: #e8a317;
  --amber-light: #fff8e1;
  --bg: #faf9f7;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555e68;
  --text-muted: #8b95a1;
  --border: #e2e5e9;
  --border-light: #f0f1f3;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --content-max: 1100px;
  --editorial-max: 680px;
  --gap: 24px;
  --gap-lg: 48px;
  --gap-xl: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--orange-hover); }

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-top: var(--gap-lg); margin-bottom: var(--gap); }
h3 { font-size: 1.15rem; margin-top: var(--gap); margin-bottom: 12px; }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.container--editorial {
  max-width: var(--editorial-max);
}

/* --- Header --- */
.site-header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.site-logo span {
  color: var(--orange);
}
.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}
.site-nav a {
  color: #cbd5e0;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: #fff; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; }

/* --- Updated Badge --- */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.updated-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* --- Homepage Hero --- */
.hero {
  padding: var(--gap-lg) 0 var(--gap);
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Split Panel --- */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  max-width: var(--content-max);
  margin: 0 auto var(--gap-xl);
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- Quiz Panel (Left) --- */
.quiz-panel {
  padding: 36px 40px;
  min-height: 480px;
}

/* Progress dots */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s var(--ease);
}
.progress-dot.active {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
  transform: scale(1.2);
}
.progress-dot.completed {
  background: var(--green);
}
.progress-connector {
  width: 20px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

/* Quiz steps */
.quiz-step {
  display: none;
  animation: fadeSlideIn 0.35s var(--ease);
}
.quiz-step-active {
  display: block;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.quiz-step p.step-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* Quiz cards */
.quiz-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  position: relative;
}
.quiz-card:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-1px);
}
.quiz-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.quiz-card .card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.quiz-card .card-icon svg {
  width: 56px;
  height: 40px;
  margin: 0 auto 4px;
}
.quiz-card .card-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.quiz-card .card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Wide cards (for tear-off with only 2 options) */
.quiz-cards--wide {
  grid-template-columns: 1fr 1fr;
}
.quiz-cards--wide .quiz-card {
  padding: 24px 20px;
}

/* Quiz pills */
.quiz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.quiz-pill {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-secondary);
}
.quiz-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.quiz-pill.selected {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Roof size result box */
.roof-size-result {
  display: none;
  background: var(--green-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--green);
  margin-top: 12px;
  border-left: 3px solid var(--green);
}

/* Manual entry */
.manual-entry-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
}
.manual-entry-link:hover { color: var(--orange); }
.manual-entry {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.manual-entry input {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  width: 160px;
  font-family: var(--font);
  transition: border-color 0.2s var(--ease);
}
.manual-entry input:focus {
  outline: none;
  border-color: var(--orange);
}
.manual-entry button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s var(--ease);
}
.manual-entry button:hover {
  background: var(--orange-hover);
}

/* Back button */
.quiz-back {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 8px 0;
  margin-top: 16px;
  transition: color 0.2s var(--ease);
}
.quiz-back:hover { color: var(--text); }
.quiz-back svg { width: 14px; height: 14px; }

/* Quiz final message */
.quiz-final {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.quiz-final h3 {
  color: var(--green);
  margin-bottom: 8px;
}
.quiz-final p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Estimate Panel (Right) --- */
.estimate-panel {
  background: var(--navy);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  align-self: start;
}
.estimate-panel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b9ab5;
  margin-bottom: 8px;
}
.estimate-total {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.estimate-range {
  font-size: 0.88rem;
  color: #8b9ab5;
  margin-bottom: 32px;
  margin-top: 4px;
}

.estimate-flash {
  animation: flashGreen 0.6s var(--ease);
}
@keyframes flashGreen {
  0% { color: var(--green); }
  100% { color: #fff; }
}

/* Breakdown */
.estimate-breakdown {
  margin-bottom: 32px;
}
.estimate-breakdown h4 {
  color: #8b9ab5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label {
  color: #cbd5e0;
}
.breakdown-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.row-flash {
  animation: rowHighlight 0.6s var(--ease);
}
@keyframes rowHighlight {
  0% { color: var(--orange); }
  100% { color: #fff; }
}

/* Insider tip */
.insider-tip {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  border-left: 3px solid var(--orange);
}
.insider-tip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 600;
}
.insider-tip p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e0;
  margin: 0;
}

/* --- Mobile Estimate Bar --- */
.mobile-estimate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #fff;
  padding: 0;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  border-top: 2px solid var(--orange);
  transition: transform 0.3s var(--ease);
}
.mobile-estimate-bar .mobile-bar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
}
.mobile-estimate-bar .mobile-total-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b9ab5;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.mobile-estimate-bar .mobile-total {
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
}
.mobile-estimate-bar .mobile-total-range {
  font-size: 0.72rem;
  color: #8b9ab5;
  font-weight: 400;
}
.mobile-estimate-bar .mobile-toggle {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.mobile-estimate-bar .mobile-toggle:hover {
  background: var(--orange-hover);
}

/* Mobile breakdown drawer */
.mobile-breakdown-drawer {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-estimate-bar.drawer-open .mobile-breakdown-drawer {
  display: block;
}
.mobile-breakdown-drawer .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}
.mobile-breakdown-drawer .breakdown-row:last-child { border-bottom: none; }
.mobile-breakdown-drawer .breakdown-label { color: #cbd5e0; }
.mobile-breakdown-drawer .breakdown-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.mobile-breakdown-drawer .mobile-tip {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  border-left: 3px solid var(--orange);
  font-size: 0.78rem;
  color: #cbd5e0;
  line-height: 1.5;
}
.mobile-breakdown-drawer .mobile-tip-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 4px;
}
.mobile-estimate-bar.drawer-open .mobile-toggle {
  background: rgba(255,255,255,0.15);
}
/* Chevron indicator */
.mobile-bar-main::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #8b9ab5;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.mobile-estimate-bar.drawer-open .mobile-bar-main::after {
  transform: rotate(180deg);
}

/* --- Below the Fold: SEO Content --- */
.seo-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap) var(--gap-xl);
}

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--gap-xl) 0;
}

/* Cost table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--gap) 0;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.cost-table thead {
  background: var(--navy);
  color: #fff;
}
.cost-table th {
  padding: 14px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-align: left;
}
.cost-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table tbody tr:hover { background: var(--bg); }
.cost-table .price-range {
  font-weight: 600;
  color: var(--navy);
}
.cost-table .lifespan {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Metric cards (Where your money goes) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: var(--gap) 0;
}
.metric-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.metric-card .metric-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.metric-card .metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.metric-card .metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Dig deeper link cards */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: var(--gap) 0;
}
.link-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s var(--ease);
  display: block;
}
.link-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(232,135,58,0.1);
  transform: translateY(-2px);
}
.link-card .link-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
.link-card .link-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.link-card .link-card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* Callout grid (Hidden costs) */
.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: var(--gap) 0;
}
.callout-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.callout-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.callout-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.callout-amber {
  border-left: 3px solid var(--amber);
}

/* Mobile close button for estimate panel */
.mobile-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  font-family: var(--font);
}

/* City pills */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--gap) 0;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.city-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #8b9ab5;
  padding: var(--gap-lg) 0;
  margin-top: var(--gap-xl);
  font-size: 0.82rem;
  line-height: 1.65;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}
.footer-about p { margin-bottom: 12px; }
.footer-about .footer-logo {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
}
.footer-about .footer-logo span { color: var(--orange); }
.footer-links h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #8b9ab5; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--gap-lg);
  padding-top: var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.footer-sources {
  color: #6b7a8d;
}

/* --- Tooltip --- */
.tooltip {
  border-bottom: 1px dashed var(--orange);
  cursor: help;
  position: relative;
}
.tooltip-popup {
  position: absolute;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.tooltip-popup.tooltip-visible { opacity: 1; }
.tooltip-popup::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--navy);
}
.tooltip-popup.tooltip-below::before {
  bottom: auto;
  top: -5px;
  border-top: none;
  border-bottom: 6px solid var(--navy);
}

/* --- Citations --- */
.citation {
  font-size: 0.7rem;
  color: var(--orange);
  cursor: pointer;
  vertical-align: super;
  font-weight: 600;
}
.references {
  margin-top: var(--gap-lg);
  padding-top: var(--gap);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.references h3 { color: var(--text-secondary); margin-bottom: 12px; }
.references ol { padding-left: 20px; }
.references li { margin-bottom: 6px; line-height: 1.5; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .split-panel {
    grid-template-columns: 1fr;
  }
  .estimate-panel {
    display: none;
    position: static;
  }
  .estimate-panel.mobile-expanded {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    padding-top: 60px;
  }
  .estimate-panel.mobile-expanded .mobile-close {
    display: block;
  }
  .callout-grid { grid-template-columns: 1fr; }
  .mobile-estimate-bar {
    display: block;
  }
  .quiz-panel {
    padding: 24px 20px;
    padding-bottom: 120px; /* room for taller mobile bar */
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cost-table { font-size: 0.85rem; }
  .cost-table th, .cost-table td { padding: 12px 14px; }
  .site-nav { display: none; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }

  /* Mobile: show quiz step counter */
  .progress-bar { justify-content: center; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .quiz-cards { grid-template-columns: 1fr 1fr; }
  .quiz-cards[style*="1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: var(--gap) 0 12px; }
  .quiz-panel { padding: 20px 16px; padding-bottom: 120px; }
  .quiz-card .card-icon svg { width: 40px; height: 28px; }
  .quiz-card { padding: 14px 12px; }
  .quiz-card .card-title { font-size: 0.82rem; }
  .quiz-card .card-meta { font-size: 0.7rem; }
  .mobile-estimate-bar .mobile-total { font-size: 1.15rem; }
}

@media (max-width: 400px) {
  .quiz-cards { grid-template-columns: 1fr; }
  .quiz-pills { gap: 6px; }
  .quiz-pill { padding: 6px 14px; font-size: 0.8rem; }
}
