/* Health page: the landing-page survey in the hero, plus the plain comparison table.
   The quiz engine (css/quiz.css) reads a few colour tokens; they are scoped to .quiz
   here so they don't clash with the site-wide tokens in home.css. */

.quiz {
  --mint-dark: var(--mint-ink);
  --mint-soft: #dff6ec;
  --teal: var(--ink);
  --teal-2: #1e3d49;
  --teal-3: #2a4e5b;
  --cream: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --white: var(--snow);
  --ice-soft: #e4f0f1;
  --ice-dark: #5f8f98;
  --on-dark-muted: var(--on-dark-soft);
  --danger: #b4321f;
  --radius-lg: 22px;
  --radius-sm: 12px;
  --font: var(--body);
  text-align: left;
}

/* Retro skin for the quiz (same as the free review page) */
.quiz h2 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.q-option, .q-input, .q-day, .q-time { border: 2.5px solid var(--ink) !important; border-radius: 14px !important; background: var(--paper) !important; color: var(--ink); }
.q-option:hover, .q-day:hover, .q-time:hover { background: #e6f7ef !important; box-shadow: 3px 3px 0 var(--ink); }
.q-option.is-on, .q-day.is-on, .q-time.is-on { background: #dff6ec !important; box-shadow: 3px 3px 0 var(--ink); }
.q-input:focus { outline: 3px solid var(--glow); outline-offset: 2px; }
.q-progress { background: var(--ice) !important; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.q-progress span { background: var(--glow) !important; }
.q-section { color: var(--glow-ink) !important; }
.quiz .btn-block { width: 100%; }
.quiz .q-next { margin-top: 6px; }
.q-trust { border-top: 1.5px dashed var(--ink-soft); }
.q-consent a, .q-help a { color: var(--mint-ink); }
.quiz button, .quiz input, .quiz select, .quiz textarea { font-family: var(--body); }
.q-opt-text b { font-weight: 800; }

/* Hero layout: headline on the left, survey card on the right */
.hero__quiz { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(30px, 5vw, 70px); }
.hero__copy { display: grid; gap: 20px; padding-top: clamp(0px, 2vw, 30px); }
.hero__copy h1 { font-size: var(--step-5); }
.hero__copy .lede { max-width: 32em; }
.quiz-card { background: var(--snow); border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(20px, 3vw, 34px); min-width: 0; scroll-margin-top: 100px; }
@media (max-width: 900px) {
  .hero__quiz { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero__copy h1 { font-size: var(--step-4); }
}

/* Comparison table, laid out like the landing page: the Insurance Yeti answers sit in one
   tall dark column with rounded ends; the traditional answers sit on plain alternating rows. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctable-wrap { margin-top: clamp(24px, 4vw, 44px); }
.ctable { width: 100%; max-width: 1000px; margin: 0 auto; border-collapse: separate; border-spacing: 0; font-size: var(--step-0); }
.ctable th, .ctable td { padding: 16px 22px; text-align: left; vertical-align: middle; }
.ctable td { position: relative; padding-left: 56px; }
.ctable .eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ctable tbody th, .ctable tbody td.trad { border-bottom: 1.5px dashed #d9ccb4; }
.ctable tbody tr:nth-child(even) th, .ctable tbody tr:nth-child(even) td.trad { background: rgba(255, 255, 255, .45); }
.ctable tbody th { width: 28%; font-weight: 800; color: var(--ink); }
.ctable .yeti { width: 38%; background: var(--ink); color: var(--on-dark); font-weight: 700; border-left: var(--line); border-right: var(--line); border-bottom: 1px solid #2a4e5b; }
.ctable thead .yeti { padding: 26px 22px 18px; border-top: var(--line); border-radius: 24px 24px 0 0; text-align: center; }
.ctable thead .yeti img { display: block; width: 170px; height: auto; margin: 0 auto; }
.ctable tbody tr:last-child .yeti { border-bottom: var(--line); border-radius: 0 0 24px 24px; box-shadow: 6px 6px 0 var(--glow); }
.ctable td.trad { color: var(--ink-soft); }
.ctable .mark { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; }
.ctable .mark svg { width: 14px; height: 14px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ctable .mark.yes { background: var(--mint); }
.ctable .mark.yes svg { stroke: var(--ink); }
.ctable .mark.no { background: #fbe1d5; }
.ctable .mark.no svg { stroke: var(--glow-ink); }
.cta-row { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 36px); }

/* Phones: header bar on top, then each row = label, then Yeti answer and traditional answer side by side */
@media (max-width: 700px) {
  .ctable, .ctable thead, .ctable tbody { display: block; }
  .ctable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ctable thead tr { align-items: center; padding: 14px 12px; background: var(--ink); border: var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .ctable thead th:first-child { display: none; }
  .ctable thead .yeti, .ctable thead .trad { display: grid; place-items: center; width: auto; padding: 0; background: none; border: 0; border-radius: 0; }
  .ctable thead .yeti img { width: 104px; }
  .ctable thead .trad .eyebrow { color: var(--on-dark-soft); font-size: .66rem; line-height: 1.3; text-align: center; letter-spacing: .08em; }
  .ctable tbody { overflow: hidden; background: var(--snow); border: var(--line); border-radius: 0 0 20px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .ctable tbody tr { padding: 14px 12px; border-bottom: 1.5px dashed #d9ccb4; }
  .ctable tbody tr:last-child { border-bottom: 0; }
  .ctable tbody th, .ctable tbody td.trad, .ctable tbody tr:nth-child(even) th, .ctable tbody tr:nth-child(even) td.trad { background: none; border: 0; }
  .ctable tbody th { grid-column: 1 / -1; width: auto; padding: 0 2px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
  .ctable tbody td, .ctable tbody td.yeti, .ctable tbody td.trad { display: block; width: auto; min-width: 0; font-size: .9rem; line-height: 1.4; }
  .ctable tbody td.yeti { border-left: 2px solid var(--ice); border-right: 2px solid var(--ice); }
  .ctable tbody td.yeti, .ctable tbody tr:last-child .yeti { padding: 10px 10px 10px 36px; background: #e4f0f1; border: 2px solid var(--ice); border-radius: 12px; color: var(--ink); box-shadow: none; }
  .ctable tbody td.trad { padding: 10px 4px 10px 30px; }
  .ctable .mark { top: 10px; left: 10px; width: 18px; height: 18px; transform: none; }
  .ctable td.trad .mark { left: 4px; }
  .ctable .mark svg { width: 11px; height: 11px; }
}

/* Sun sits behind the survey card instead of the headline */
.hero:has(.hero__quiz) .hero__sun { right: 4%; margin-right: 0; bottom: clamp(90px, 9vw, 160px); width: clamp(220px, 26vw, 380px); }
.hero__copy h1 { font-size: clamp(2.5rem, 1.3rem + 3.2vw, 4.4rem); }
@media (max-width: 900px) { .hero:has(.hero__quiz) .hero__sun { right: -20%; bottom: auto; top: 30px; width: 200px; } }
