:root {
  color-scheme: light;
  --ink: #1d232a;
  --navy: #172f4d;
  --muted: #69737d;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --line: #e5e8ec;
  --line-strong: #c7cfd8;
  --link: #1769a7;
  --focus: #c65e18;
  --blocked: #a32636;
  --conditional: #087466;
  --unknown: #966500;
  --safe-bg: #f3faf5;
  --safe-line: #deede1;
  --step-bg: #f1f4f6;
  --shadow: 0 2px 12px rgba(25, 38, 51, .045);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, select { font: inherit; }

a {
  color: var(--link);
  text-underline-offset: .16em;
}

a:hover { color: #0e4f82; }

.shell {
  width: min(calc(100% - 2.5rem), 1120px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  padding: .55rem .8rem;
  color: var(--ink);
  background: var(--surface);
  border-radius: 6px;
  outline: 3px solid var(--focus);
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
  padding: .8rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--navy);
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-mark svg { width: 28px; height: 28px; }

.brand-copy {
  display: grid;
  gap: .02rem;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-tagline {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.35;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
  text-align: right;
}

.privacy-note__icon,
.privacy-note__lock {
  display: inline-grid;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;
  place-items: center;
  color: #607385;
}

.privacy-note__icon { color: #237b68; }
.privacy-note svg { width: 100%; height: 100%; }
.privacy-note__lock { margin-left: .1rem; }

main { padding: 1.8rem 0 3.5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: .35rem 0 1.75rem;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.eyebrow-dot {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #667789;
}

.hero h1 {
  max-width: 16em;
  margin: .8rem 0 .9rem;
  color: var(--ink);
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  line-height: 1.18;
  letter-spacing: -.055em;
}

.hero-lede {
  max-width: 37rem;
  margin: 0;
  color: #58636e;
  font-size: 1rem;
  line-height: 1.8;
}

.desktop-only { display: inline; }

.trust-card {
  max-width: 34rem;
  margin-top: 1.05rem;
  padding: .75rem 1rem;
  color: #385849;
  background: var(--safe-bg);
  border: 1px solid var(--safe-line);
  border-radius: 8px;
}

.trust-card p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.65;
}

.trust-card strong {
  color: #284a3a;
  font-weight: 800;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-visual img {
  width: min(100%, 540px);
  height: auto;
  object-fit: contain;
}

.noscript-message { margin: 0 0 1rem; }

.checker-card,
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.checker-card {
  margin-top: .25rem;
  padding: clamp(1.1rem, 3vw, 1.9rem);
}

.form-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
}

.form-intro h2 {
  margin: .25rem 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.3;
}

.form-intro__hint {
  max-width: 19rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: right;
}

.form-step {
  display: grid;
  grid-template-columns: minmax(16rem, .86fr) minmax(0, 1.4fr);
  grid-template-rows: auto;
  align-items: start;
  gap: clamp(.9rem, 2.5vw, 1.7rem);
  min-width: 0;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  border-top: 1px solid #edf0f2;
}

.form-step legend {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  background: var(--step-bg);
  border: 1px solid #dce2e7;
  border-radius: 50%;
}

.form-step--blue,
.form-step--teal,
.form-step--yellow,
.form-step--green,
.form-step--purple {
  --step-bg: #f1f4f6;
}

.step-name {
  font-size: .98rem;
  line-height: 1.4;
}

.step-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

label {
  display: block;
  color: #394550;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: .3rem;
  padding: .6rem .8rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  appearance: auto;
}

select:hover { border-color: #98a5b2; }
select:disabled { cursor: not-allowed; opacity: .62; }

.field-help,
.form-state {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.65;
}

.field-help { margin: .6rem 0 0; }
.step-helper { margin: 0 0 .8rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.form-actions { padding-top: .9rem; }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(23, 47, 77, .14);
  cursor: pointer;
  font-weight: 800;
  transition: background-color .16s ease, box-shadow .16s ease;
}

button:hover:not(:disabled) {
  background: #213e60;
  box-shadow: 0 3px 9px rgba(23, 47, 77, .18);
}

button:active:not(:disabled) { background: #10243c; }
button:disabled { cursor: not-allowed; opacity: .58; }
.button-icon { display: none; }
.form-bottom-note { margin-top: .6rem; text-align: center; }
.form-state { margin: .2rem 0 0; text-align: center; }
.form-error { color: var(--blocked); font-weight: 800; }

.result-card {
  position: relative;
  margin-top: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.9rem);
  border-top: 3px solid var(--unknown);
}

.result-card[data-status="BLOCKED"] { border-top-color: var(--blocked); }
.result-card[data-status="CONDITIONAL"] { border-top-color: var(--conditional); }
.result-card[data-status="INSUFFICIENT_EVIDENCE"] { border-top-color: var(--unknown); }
.result-card:focus-visible { outline-color: #6c91b7; outline-offset: 4px; }

.result-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.result-card__marker {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--unknown);
}

.result-card[data-status="BLOCKED"] .result-card__marker { background: var(--blocked); }
.result-card[data-status="CONDITIONAL"] .result-card__marker { background: var(--conditional); }
.result-card h2 {
  margin: .45rem 0 .3rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.3;
}

.result-detail { margin: 0; color: #4f5b66; font-size: .96rem; }
.result-card__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 1.1rem;
}

.result-card h3 {
  margin: 0 0 .35rem;
  color: var(--ink);
  font-size: .92rem;
}

.result-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #58636e;
}

.result-card li + li { margin-top: .25rem; }
.result-limits { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #edf0f2; }
#offer:not(:empty) { margin-top: 1rem; padding: .7rem .85rem; background: #fffaf0; border-radius: 7px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.info-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.info-card h2 {
  margin: 0 0 .7rem;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
}

.info-card p {
  margin: 0;
  color: #58636e;
  font-size: .86rem;
  line-height: 1.75;
}

.info-card p + p { margin-top: .85rem; }
.info-card .field-help { font-size: .78rem; }
.sources { margin: .8rem 0 0; padding-left: 1.1rem; font-size: .84rem; }
.sources li + li { margin-top: .45rem; }

.site-footer {
  padding: 1.2rem 0 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer p {
  max-width: 43rem;
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.65;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.site-footer nav a { color: #53677c; font-size: .73rem; }

@media (max-width: 960px) {
  .hero { gap: 2.2rem; }
  .hero h1 { font-size: clamp(2.1rem, 4vw, 2.8rem); }
  .form-step { grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.25fr); }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 2rem), 620px); }
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    min-height: 0;
    padding: .7rem 0;
  }
  .privacy-note {
    max-width: 100%;
    font-size: .68rem;
    text-align: left;
  }
  .privacy-note__lock { display: none; }
  main { padding-top: 1.35rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding-bottom: 1.2rem;
  }
  .hero h1 {
    max-width: none;
    margin: .65rem 0 .7rem;
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    line-height: 1.24;
  }
  .hero-lede { font-size: .94rem; line-height: 1.75; }
  .desktop-only { display: none; }
  .trust-card { margin-top: .85rem; padding: .65rem .8rem; }
  .trust-card p { font-size: .77rem; line-height: 1.6; }
  .hero-visual { order: 2; margin-top: .1rem; }
  .hero-visual img { width: min(100%, 430px); }
  .form-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }
  .form-intro__hint { max-width: none; text-align: left; }
  .form-step {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: 1.1rem 0;
  }
  .form-step legend { grid-column: 1; grid-row: 1; }
  .step-content { grid-column: 1; grid-row: 2; }
  .result-card__columns,
  .info-grid { grid-template-columns: 1fr; }
  .result-card__columns { gap: 1rem; }
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 1.5rem), 430px); }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 7px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-name { font-size: .93rem; }
  .brand-tagline { font-size: .68rem; }
  .privacy-note { align-items: flex-start; }
  main { padding-top: 1.05rem; padding-bottom: 2.6rem; }
  .hero h1 {
    font-size: clamp(1.75rem, 8.2vw, 2rem);
    letter-spacing: -.045em;
  }
  .hero-lede { font-size: .9rem; }
  .checker-card,
  .result-card { border-radius: 12px; }
  .checker-card { padding: .95rem; }
  .form-intro h2 { font-size: 1.15rem; }
  .step-number { width: 32px; height: 32px; flex-basis: 32px; font-size: .95rem; }
  .step-name { font-size: .94rem; }
  .two-col { grid-template-columns: 1fr; gap: .7rem; }
  select { min-height: 48px; font-size: .92rem; }
  .result-card { padding: 1rem; }
  .info-card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button { transition: none; }
}
