/* =============================================================================
   Meridian Health — Design System
   Version: 1.0.0
   Breakpoints: ≤560px mobile | 561–880px tablet | 881–1280px desktop | >1280px wide
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */
:root {
  /* ── Base palette ── */
  --bg:     #FAF8F3;   /* bone — default page background */
  --bg-2:   #F2EEE5;   /* sand — secondary surface, trust sections */
  --ink:    #0E1B1F;   /* primary text */
  --ink-2:  #3A4448;   /* body copy */
  --ink-3:  #6E767A;   /* captions, meta, mono labels */
  --rule:   #E5DFD2;   /* hairlines, dividers */
  --rule-2: #D8D1C0;   /* stronger dividers, table borders */
  --card:   #FFFFFF;   /* card surfaces, modal bg */

  /* ── Accent tokens ── */
  --sage:   oklch(0.58 0.045 165);   /* fallback: #6B9E8C — trust, verified, security */
  --sage-2: oklch(0.92 0.025 165);   /* fallback: #DFF0EB — sage tint backgrounds */
  --clay:   oklch(0.62 0.10  45);    /* fallback: #B8723A — action, steps, urgency */
  --clay-2: oklch(0.95 0.03  60);    /* fallback: #F5EDE3 — clay tint backgrounds */

  /* ── oklch fallbacks for browsers without support ── */
  @supports not (color: oklch(0 0 0)) {
    --sage:   #6B9E8C;
    --sage-2: #DFF0EB;
    --clay:   #B8723A;
    --clay-2: #F5EDE3;
  }

  /* ── Typography ── */
  --ff-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ff-sans:  'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --ff-mono:  'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* ── Spacing ── */
  --section-y:        96px;
  --section-y-mob:    56px;
  --gutter:           32px;
  --gutter-mob:       20px;
  --content-max:      1280px;

  /* ── Radius ── */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* ── Transition ── */
  --ease: 150ms ease;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* =============================================================================
   3. LAYOUT UTILITIES
   ============================================================================= */
.mh-container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 560px) {
  .mh-container { padding-inline: var(--gutter-mob); }
}

.mh-section {
  padding-block: var(--section-y);
}

@media (max-width: 880px) {
  .mh-section { padding-block: var(--section-y-mob); }
}

.mh-section--alt   { background: var(--bg-2); }
.mh-section--dark  { background: var(--ink); color: var(--bg); }
.mh-section--card  { background: var(--card); }

/* =============================================================================
   4. TYPOGRAPHY SCALE
   ============================================================================= */

/* Headings */
h1, .h1 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2, .h2 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h3, .h3 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
}

/* Italic key noun treatment — apply to <em> inside Newsreader headings */
h1 em, h2 em, .h1 em, .h2 em {
  font-style: italic;
  color: var(--sage);
}

/* Eyebrow / mono label */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 12px;
}

.eyebrow--clay { color: var(--clay); }
.eyebrow--sage { color: var(--sage); }

/* Lede */
.lede {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 24px;
}

/* Body variants */
.body-s  { font-size: 14px; line-height: 1.55; }
.mono-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Dark section overrides */
.mh-section--dark h1,
.mh-section--dark h2,
.mh-section--dark h3 { color: var(--bg); }

/* =============================================================================
   5. BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn:hover    { opacity: 0.88; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { opacity: 0.85; }

.btn--sage    { background: var(--sage); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule-2);
}

.btn--ghost-light {
  background: transparent;
  color: var(--bg);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--full { width: 100%; }

/* =============================================================================
   6. TAGS & PILLS
   ============================================================================= */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag--sage { background: var(--sage-2); color: #2a4239; }
.tag--clay { background: var(--clay-2); color: #6b3a1f; }
.tag--ink  { background: var(--ink); color: var(--bg); }

/* =============================================================================
   7. CARDS
   ============================================================================= */
.mh-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px;
}

.mh-card--elevated {
  box-shadow: 0 4px 24px rgba(14,27,31,.08);
}

/* Hairline grid — 1px gap sections */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hairline-grid > * {
  background: var(--card);
  padding: 24px;
}

/* =============================================================================
   8. PROMO BAR
   ============================================================================= */
.promo-bar {
  background: var(--ink);
  color: #D6D2C2;
  text-align: center;
  font-family: var(--ff-sans);
  font-size: 12.5px;
  font-weight: 400;
  padding: 10px 16px;
  position: relative;
  z-index: 200;
}

.promo-bar a { color: #D6D2C2; text-decoration: underline; }

.promo-bar.is-hidden { display: none; }

@media (max-width: 560px) {
  .promo-bar .promo-bar__secondary { display: none; }
}

/* =============================================================================
   9. HEADER / NAV
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 12px rgba(14,27,31,.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 24px;
}

.site-header__logo {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--ease);
}

.site-header__nav a:hover { color: var(--ink); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile — hide nav links below 880px */
@media (max-width: 880px) {
  .site-header__nav { display: none; }
}

/* LP templates — no header/footer */
.lp-template .site-header,
.lp-template .site-footer { display: none; }

/* =============================================================================
   10. FOOTER
   ============================================================================= */
.site-footer {
  background: var(--ink);
  color: #D6D2C2;
  padding-block: 64px 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__brand {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--bg);
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(214,210,194,.7);
  max-width: 28ch;
}

.site-footer__col-heading {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214,210,194,.5);
  margin-bottom: 14px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  font-size: 13px;
  color: rgba(214,210,194,.8);
  text-decoration: none;
  transition: color var(--ease);
}

.site-footer__links a:hover { color: var(--bg); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(214,210,194,.5);
}

.site-footer__legal {
  max-width: 72ch;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(214,210,194,.4);
}

/* =============================================================================
   11. TRUST STRIP
   ============================================================================= */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-strip__check {
  color: var(--sage);
  flex-shrink: 0;
}

/* =============================================================================
   12. STEP COMPONENT (How It Works)
   ============================================================================= */
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.step:first-of-type { border-top: 0; }

.step__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clay);
  padding-top: 5px;
  text-transform: uppercase;
}

.step__title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.step__copy {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* =============================================================================
   13. PRICING CARDS
   ============================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

.pricing-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card--featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  position: relative;
}

.pricing-flag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sage);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.pricing-card__tier {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pricing-card--featured .pricing-card__tier { color: rgba(214,210,194,.6); }

.pricing-card__price {
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-card__price-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}

.pricing-card--featured .pricing-card__price-sub { color: rgba(214,210,194,.6); }

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-card__check {
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card--featured .pricing-card__check { color: var(--sage); }

/* Comparison table — desktop only */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
  text-align: center;
}

.pricing-table thead th {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-2);
}

.pricing-table tbody tr:hover td { background: var(--bg-2); }

@media (max-width: 760px) {
  .pricing-table { display: none; }
}

/* =============================================================================
   14. COMPLIANCE / ISI
   ============================================================================= */
.isi-block {
  border: 1px dashed var(--rule-2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

.isi-block strong { color: var(--ink); }

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

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

.disclaimer {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  text-align: center;
  max-width: 72ch;
  margin-inline: auto;
}

/* =============================================================================
   15. FAQ ACCORDION
   ============================================================================= */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--ease);
}

.faq-question:hover { color: var(--sage); }

.faq-question:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform 250ms ease;
}

.faq-item.is-open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease, padding 300ms ease;
  padding-bottom: 0;
}

.faq-item.is-open .faq-answer {
  max-height: 800px;
  padding-bottom: 20px;
}

/* =============================================================================
   16. MOBILE STICKY CTA
   ============================================================================= */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(14,27,31,.08);
}

.mobile-sticky-cta__label {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.mobile-sticky-cta__label strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

@media (min-width: 561px) { .mobile-sticky-cta { display: none; } }

body { padding-bottom: 80px; }

@media (min-width: 561px) { body { padding-bottom: 0; } }

/* =============================================================================
   17. QUIZ MODAL
   ============================================================================= */
.quiz-modal {
  position: fixed;
  inset: 0;
  background: rgba(14,27,31,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.quiz-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quiz-modal__panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: min(520px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(12px);
  transition: transform 250ms ease;
}

.quiz-modal.is-open .quiz-modal__panel {
  transform: translateY(0);
}

@media (max-width: 560px) {
  .quiz-modal { align-items: flex-end; }
  .quiz-modal__panel {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-height: 92vh;
    padding: 24px 20px;
  }
}

/* Progress bar */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-progress__bar {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress__fill {
  height: 100%;
  background: var(--sage);
  border-radius: 99px;
  transition: width 300ms ease;
}

.quiz-progress__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Close button */
.quiz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: background var(--ease);
}

.quiz-modal__close:hover { background: var(--rule); color: var(--ink); }

/* Step heading */
.quiz-step__heading {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.quiz-step__subhead {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 24px;
}

/* Radio options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  position: relative;
}

.quiz-option:hover { border-color: var(--sage); background: var(--sage-2); }

.quiz-option.is-selected {
  border-color: var(--sage);
  background: var(--sage-2);
}

.quiz-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease), background var(--ease);
}

.quiz-option.is-selected .quiz-option__radio {
  border-color: var(--sage);
  background: var(--sage);
}

.quiz-option.is-selected .quiz-option__radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.quiz-option__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.quiz-option__badge {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.quiz-option--featured { border-color: var(--sage); }

.quiz-option--featured .quiz-option__badge {
  background: var(--sage);
  color: #fff;
}

/* Checkbox options */
.quiz-option__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--rule-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease), background var(--ease);
}

.quiz-option.is-selected .quiz-option__checkbox {
  border-color: var(--sage);
  background: var(--sage);
}

.quiz-option.is-selected .quiz-option__checkbox::after {
  content: '';
  width: 10px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Text inputs (location + contact steps) */
.quiz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.quiz-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.quiz-field input,
.quiz-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule-2);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: 16px; /* ≥16px prevents iOS zoom */
  color: var(--ink);
  background: var(--card);
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.quiz-field input:focus,
.quiz-field select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--sage) 20%, transparent);
}

/* Consent checkboxes */
.quiz-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.quiz-consent__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.quiz-consent__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sage);
}

.quiz-consent__item a { color: var(--sage); text-decoration: underline; }

/* Navigation row */
.quiz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.quiz-nav__back {
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease);
}

.quiz-nav__back:hover { color: var(--ink); }

/* Error message */
.quiz-error {
  font-size: 13px;
  color: #C0392B;
  padding: 10px 14px;
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: none;
}

.quiz-error.is-visible { display: block; }

/* Loading state */
.quiz-loading {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.quiz-loading.is-visible { display: block; }

.quiz-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--rule);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: mh-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.quiz-loading__text {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 8px;
}

.quiz-loading__sub {
  font-size: 13px;
  color: var(--ink-3);
}

@keyframes mh-spin {
  to { transform: rotate(360deg); }
}

/* Result screen */
.quiz-result { display: none; }
.quiz-result.is-visible { display: block; }

.quiz-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-2);
  color: #2a4239;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.quiz-result__heading {
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 6px;
}

.quiz-result__sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.quiz-result__summary {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-result__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.quiz-result__row:last-child { border-bottom: 0; }

.quiz-result__row-label { color: var(--ink-3); }
.quiz-result__row-value { font-weight: 500; color: var(--ink); }

/* =============================================================================
   18. DARK SECTION (Partners, final CTA)
   ============================================================================= */
.mh-section--dark .mh-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--bg);
}

/* =============================================================================
   19. ACCESSIBILITY
   ============================================================================= */
.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;
}

*:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* =============================================================================
   20. PERFORMANCE — Elementor cleanup
   ============================================================================= */
.elementor-lightbox,
.elementor-share-btn { display: none !important; }
