:root {
  --ink: #07151f;
  --ink-soft: #0d2430;
  --paper: #f2f6f5;
  --card: #fff;
  --line: #d5e1e1;
  --muted: #5d7078;
  --teal: #2ac8aa;
  --teal-dark: #087d6d;
  --blue: #2f91c8;
  --amber: #f5aa4c;
  --shadow: 0 28px 80px rgba(4, 26, 35, .14);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 75% 0, rgba(42,200,170,.15), transparent 34rem), var(--paper); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.check-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); color: #fff; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 850; }
.brand img { width: 64px; height: 64px; padding: 3px; background: #fff; border-radius: 15px; object-fit: contain; }
.brand > span > span { color: var(--teal); }
.brand small { display: block; color: #91a6ae; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.back-link { color: #c4d2d7; text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link:hover { color: #fff; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 75px 0 100px; }
.check-intro { max-width: 880px; margin-bottom: 42px; }
.eyebrow, .panel-kicker, .fact-label { margin: 0 0 12px; color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 23px; font-size: clamp(44px, 6vw, 78px); line-height: 1; letter-spacing: -.055em; }
.check-intro > p:not(.eyebrow) { max-width: 780px; color: var(--muted); font-size: 19px; }
.check-intro ul { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 13px; font-weight: 700; }
.check-intro li::before { content: "✓"; margin-right: 7px; color: var(--teal-dark); }

.quiz-shell { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.quiz-topline { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 24px; padding: 16px 28px; color: #93a7af; background: var(--ink); font-size: 12px; font-weight: 750; }
.progress-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .25s ease; }
.quiz-panel { min-height: 520px; padding: clamp(30px, 5vw, 65px); }
.quiz-panel[hidden] { display: none; }
.quiz-panel h2 { max-width: 900px; margin-bottom: 28px; font-size: clamp(31px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.quiz-welcome { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--ink), #0d3039); }
.quiz-welcome h2 { max-width: 820px; }
.quiz-welcome > p:not(.panel-kicker) { max-width: 720px; color: #a9bdc4; font-size: 18px; }

.primary-action, .next-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 19px; border-radius: 11px; font-weight: 850; text-decoration: none; }
.primary-action, .next-action { color: #04261f; background: var(--teal); border: 0; }
.secondary-action { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.primary-action:hover, .next-action:hover { background: #47d6bb; }
.quiz-welcome .primary-action { margin-top: 14px; }

.answers { max-width: 980px; display: grid; gap: 11px; }
.answers button { position: relative; padding: 17px 52px 17px 19px; color: var(--ink); background: #f7faf9; border: 1px solid var(--line); border-radius: 13px; text-align: left; font-weight: 750; }
.answers button::after { content: "→"; position: absolute; right: 19px; color: var(--teal-dark); }
.answers button:hover { background: #edf8f5; border-color: #86daca; }
.answers button.is-selected { color: #fff; background: var(--ink-soft); border-color: var(--ink-soft); }
.answers button.is-selected::after { content: "✓"; color: var(--teal); }
.answers button:disabled:not(.is-selected) { opacity: .55; cursor: default; }

.fact-card { margin-top: 25px; padding: 23px; background: #eef7f5; border: 1px solid #cce7e1; border-radius: 16px; }
.fact-card p { max-width: 920px; }
.fact-card > a { color: var(--teal-dark); font-size: 12px; font-weight: 750; }
.fact-card .next-action { margin-top: 22px; }
.calculator { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.calculator h3 { margin-bottom: 15px; font-size: 18px; }
.calculator > small { display: block; margin-top: 13px; color: var(--muted); }
.input-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.input-grid.two-columns { grid-template-columns: repeat(2, minmax(180px, 1fr)); max-width: 650px; }
.input-grid label { position: relative; color: var(--muted); font-size: 11px; font-weight: 750; }
.input-grid input { width: 100%; margin-top: 5px; padding: 10px 50px 10px 10px; color: var(--ink); background: #f8faf9; border: 1px solid var(--line); border-radius: 9px; font-size: 16px; font-weight: 800; }
.input-grid label > span { position: absolute; right: 10px; bottom: 11px; color: var(--muted); font-size: 10px; }
.cost-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cost-results.one-result { grid-template-columns: minmax(200px, 330px); }
.cost-results div { padding: 13px; background: var(--ink); border-radius: 10px; }
.cost-results span, .cost-results strong { display: block; }
.cost-results span { color: #9fb3bb; font-size: 11px; }
.cost-results strong { color: #fff; font-size: 23px; }

.results-panel { min-height: 600px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 27px 0; }
.result-card { padding: 21px; background: #f4f8f7; border: 1px solid var(--line); border-radius: 14px; }
.result-card span { color: var(--teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.result-card h3 { margin: 8px 0; font-size: 22px; line-height: 1.18; }
.result-card p { color: var(--muted); font-size: 14px; }
.result-card a { color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.text-link { margin-left: 5px; color: var(--teal-dark); font-weight: 750; }
.privacy-note { max-width: 850px; margin: 27px 0 0; color: var(--muted); font-size: 12px; }

footer { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 38px 20px; color: #9fb2ba; background: #061017; }
.footer-brand img { width: 48px; height: 48px; }
footer p { margin: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

@media (max-width: 760px) {
  .check-header { min-height: 78px; padding: 9px 18px; }
  .brand img { width: 54px; height: 54px; }
  .brand > span { display: none; }
  main { width: min(100% - 26px, 1180px); padding: 50px 0 70px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .quiz-topline { grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; }
  .quiz-panel { min-height: 0; padding: 30px 20px 35px; }
  .input-grid, .input-grid.two-columns, .cost-results, .result-grid { grid-template-columns: 1fr; }
  .results-actions { align-items: stretch; flex-direction: column; }
  .results-actions > * { width: 100%; margin-left: 0; text-align: center; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
