:root {
  color-scheme: light dark;
  --paper: #eef1f4;
  --paper-strong: #e3e8ed;
  --card: #fbfcfd;
  --ink: #102033;
  --muted: #46576b;
  --blue: #15468a;
  --blue-dark: #0b326d;
  --button-text: #f7f9fb;
  --red: #a71932;
  --green: #17633d;
  --green-bg: #e1efe6;
  --amber: #76500b;
  --amber-bg: #f5ecd2;
  --line: #c8d1da;
  --line-strong: #8998a8;
  --radius-card: 14px;
  --radius-control: 8px;
  --shadow: 0 18px 50px rgb(43 62 82 / 0.12);
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101923;
    --paper-strong: #172331;
    --card: #1a2736;
    --ink: #eef3f7;
    --muted: #bdc8d3;
    --blue: #8bb8fb;
    --blue-dark: #b4d1fc;
    --button-text: #0a1725;
    --red: #ff9aaa;
    --green: #93d7af;
    --green-bg: #18372a;
    --amber: #f4c974;
    --amber-bg: #3b301d;
    --line: #3d4b5a;
    --line-strong: #738395;
    --shadow: 0 18px 50px rgb(2 7 12 / 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-dark); }
button, a { touch-action: manipulation; }
button { font: inherit; }
button:active, .button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:target, :focus { scroll-margin-top: 24px; scroll-margin-bottom: 32px; }

.skip-link {
  position: fixed;
  z-index: 3;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 17px;
}
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; white-space: nowrap; }
nav a { color: var(--ink); text-decoration-thickness: 1px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.language-button {
  min-width: 44px;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.language-button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

section { padding: 72px 0; }
.hero {
  min-height: min(720px, calc(100dvh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 42px 58px;
  padding-top: 56px;
  padding-bottom: 30px;
}
.hero-copy { align-self: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.section-label,
.question-kicker,
.status-label {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; }
h1 {
  max-width: 19ch;
  margin: 0 0 22px;
  font-size: clamp(42px, 4.7vw, 58px);
  letter-spacing: -0.035em;
}
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -0.03em; }
h3 { margin: 0 0 9px; }
.lede { max-width: 54ch; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
}
.button-primary { background: var(--blue); color: var(--button-text); }
.button-primary:hover { background: var(--blue-dark); color: var(--button-text); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.hero-visual {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 900 / 909;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background: var(--card);
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.trust-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.trust-row > span { min-width: 0; padding: 14px 18px; font-size: 13px; }
.trust-row > span + span { border-left: 1px solid var(--line); }
.trust-time { color: var(--muted); font-family: var(--mono); }

.deadline-card {
  padding-top: 32px;
  border-top: 5px solid var(--ink);
}
.deadline-card h2 { max-width: 18ch; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
  counter-reset: procedure;
}
.timeline li {
  min-width: 0;
  padding: 22px 22px 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: procedure;
}
.timeline li:first-child { padding-left: 0; }
.timeline li + li { border-left: 1px solid var(--line); }
.timeline-time {
  display: block;
  min-height: 23px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}
.timeline h3 { margin-top: 12px; font-size: 20px; }
.timeline p { color: var(--muted); font-size: 14px; }
.citation { color: var(--red); font-family: var(--mono); font-size: 12px; font-weight: 750; }

.check-section { border-top: 1px solid var(--line); }
.check-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.43fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 7vw, 86px);
}
.section-heading { max-width: 34ch; padding-top: 26px; }
.section-heading > p:last-of-type { color: var(--muted); }
.privacy-note { display: inline-block; margin-top: 8px; font-size: 14px; }
.wizard {
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.progress-wrap { padding: 24px 36px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.progress { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--paper-strong); }
.progress span { display: block; height: 100%; background: var(--blue); transition: width 180ms ease; }
.question-panel, .result-panel { padding: 36px; }
.question-panel h3, .verdict h3 { font-size: clamp(25px, 3.4vw, 34px); }
.question-help { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.answers { display: grid; gap: 10px; }
.answer {
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}
.answer:hover { border-color: var(--blue); background: var(--paper-strong); }
.wizard-nav, .result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.verdict { padding: 26px 28px; border-left: 5px solid var(--line-strong); background: var(--paper); }
.verdict.positive { border-left-color: var(--green); background: var(--green-bg); }
.verdict.review { border-left-color: var(--amber); background: var(--amber-bg); }
.verdict p { margin-bottom: 0; }
.status-label { color: currentColor; }
.result-disclaimer { padding-top: 14px; border-top: 1px solid currentColor; font-size: 14px; }
.verdict-references { font-family: var(--mono); font-size: 12px; }
.finding-list { margin-top: 28px; }
.finding, .missing-facts, .supplementary, .next-steps {
  margin-top: 0;
  padding: 24px 4px 24px 22px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.finding.exception_requires_review, .missing-facts { border-left-color: var(--amber); }
.finding h3 { font-size: 21px; }
.finding p:last-child, .supplementary p, .next-steps li { color: var(--muted); }
.missing-facts ul { padding-left: 20px; }
.missing-facts li + li { margin-top: 14px; }
.missing-facts span { color: var(--red); font-family: var(--mono); font-size: 12px; }
.supplementary { margin-top: 28px; border-left-color: var(--blue); }
.next-steps { border-left-color: var(--line-strong); }
.next-steps ol { margin-bottom: 0; padding-left: 22px; }
.result-actions { justify-content: flex-start; }
.share-warning { color: var(--muted); font-size: 13px; }

.purchase-card {
  margin-top: 30px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--paper-strong) 72%, var(--card));
}
.purchase-card h3 { max-width: 24ch; font-size: clamp(24px, 3.2vw, 31px); }
.purchase-card > p:not(.section-label, .purchase-terms, .form-error) { max-width: 62ch; color: var(--muted); }
.purchase-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; padding-left: 20px; }
.purchase-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.purchase-row span, .purchase-terms { color: var(--muted); font-size: 13px; }
.purchase-terms { margin-bottom: 0; }
.purchase-consent { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.purchase-consent + .purchase-consent { margin-top: 12px; }
.purchase-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ink); }
.form-error { min-height: 1.5em; margin: 12px 0 0; color: var(--red); font-weight: 700; }
.form-status { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.button:disabled { cursor: not-allowed; opacity: 0.55; }

.checkout-fallback { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.checkout-fallback h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; }
.checkout-fallback > p { max-width: 60ch; color: var(--muted); }
.checkout-fallback form > label:first-child { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.checkout-fallback-row { display: flex; gap: 10px; }
.checkout-fallback-row input {
  min-width: 0;
  flex: 1 1 260px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
}
.checkout-fallback-row input:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 38%, transparent); outline-offset: 2px; }
.checkout-fallback-consent { margin-top: 12px; }

.checkout-page { max-width: 800px; min-height: 72vh; padding: 72px 0; }
.checkout-page h1 { max-width: 13ch; }
.checkout-status {
  position: relative;
  margin-top: 42px;
  padding: clamp(28px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.checkout-status[data-state="ready"] { border-top-color: var(--green); }
.checkout-status[data-state="error"], .checkout-status[data-state="refunded"], .checkout-status[data-state="refund_pending"] { border-top-color: var(--amber); }
.checkout-status h2 { max-width: 24ch; }
.checkout-status p { max-width: 62ch; color: var(--muted); }
.checkout-actions { margin-top: 24px; }
.status-spinner { width: 24px; height: 24px; margin-bottom: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 850ms linear infinite; }
.checkout-status[aria-busy="false"] .status-spinner { display: none; }
.checkout-help { color: var(--muted); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.limits { border-top: 1px solid var(--line); }
.limits > h2 { max-width: 18ch; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.limits-grid > div { padding: 26px 8vw 0 0; }
.limits-grid > div + div { padding-left: 8vw; border-left: 1px solid var(--line); }
.limits-grid p { color: var(--muted); }

footer { padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.disclaimer { max-width: 78ch; }
.policy-page { max-width: 800px; padding: 72px 0; }
.policy-page h1 { max-width: 14ch; }
.policy-page section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.policy-page section p { color: var(--muted); }
.policy-page code { padding: 2px 6px; border-radius: 4px; background: var(--paper-strong); color: var(--ink); }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 34px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:nth-child(3) { padding-left: 0; border-left: 0; }
  .timeline li:nth-child(n + 3) { margin-top: 28px; }
  .check-layout { grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .site-header { display: grid; grid-template-columns: 1fr auto; padding: 16px 0 12px; }
  .header-actions { display: contents; }
  .language-switcher { grid-column: 2; grid-row: 1; justify-self: end; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 18px; }
  section { padding: 56px 0; }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 24px;
  }
  .hero-copy, .hero-visual, .trust-row { grid-column: 1; }
  .hero-visual { justify-self: center; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row > span + span { border-left: 0; }
  .trust-row > span:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-row > span:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .check-layout { grid-template-columns: 1fr; }
  .section-heading { max-width: 56ch; padding-top: 0; }
  .limits-grid { grid-template-columns: 1fr; }
  .limits-grid > div { padding: 24px 0 0; }
  .limits-grid > div + div { margin-top: 24px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(39px, 12vw, 49px); }
  nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; }
  .hero { padding-top: 36px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > span:nth-child(even) { border-left: 0; }
  .trust-row > span + span { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li:first-child, .timeline li:nth-child(3) { padding: 18px 0 20px; border-left: 0; }
  .timeline li + li, .timeline li:nth-child(n + 3) { margin-top: 0; }
  .question-panel, .result-panel { padding: 28px 18px; }
  .progress-wrap { padding: 20px 18px 0; }
  .purchase-card ul { grid-template-columns: 1fr; }
  .wizard { min-height: 440px; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .button { width: 100%; }
  .result-actions .text-button { align-self: flex-start; }
  .checkout-fallback-row { align-items: stretch; flex-direction: column; }
  .checkout-fallback-row input { flex-basis: auto; width: 100%; }
}

@media (forced-colors: active) {
  .brand-mark, .progress span, .button-primary { forced-color-adjust: none; }
  .hero-visual { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
