:root {
  --navy: #071d36;
  --navy-card: #102f50;
  --ink: #0a223c;
  --green: #00a82d;
  --green-dark: #008b27;
  --off-white: #f3f6f7;
  --white: #ffffff;
  --line: #cdd8de;
  --muted: #526578;
  --amber: #b56a00;
  --red: #a12a2a;
  --shadow: 0 24px 70px rgba(3, 23, 43, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: white; color: var(--ink); padding: .75rem 1rem; }
.site-shell { min-height: 100vh; padding: 22px clamp(16px, 4vw, 64px) 30px; }
.brand-bar { max-width: 1180px; margin: 0 auto 18px; display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 25px; height: 25px; border: 4px solid #2c72e8; border-bottom-color: var(--green); border-radius: 50%; transform: skew(-12deg); }

.checker-card { max-width: 1180px; margin: auto; background: var(--white); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); }
.checker-header { padding: clamp(32px, 5vw, 72px); background: linear-gradient(135deg, var(--navy) 0%, #0b315d 100%); color: white; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, legend { font-family: Georgia, 'Times New Roman', serif; }
h1 { max-width: 870px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.9rem); line-height: 1.04; letter-spacing: -.035em; }
h1 span { color: var(--green); }
.intro { max-width: 780px; margin: 24px 0 0; font-size: clamp(1rem, 2vw, 1.3rem); }
.assurance { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 28px; font-size: .92rem; font-weight: 700; }
.assurance span::before { content: '✓'; color: #65d783; margin-right: 8px; }
.panel { padding: clamp(28px, 5vw, 64px); }
.panel[hidden] { display: none; }
.notice { max-width: 880px; padding: 20px 24px; margin-bottom: 28px; background: #edf4f6; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; }
.notice p { margin: 5px 0 0; }
.notice-small { margin: 42px 0 0; font-size: .9rem; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 58px; padding: 14px 27px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible { outline: 3px solid #59a8ff; outline-offset: 3px; }
.button-primary { background: var(--green); color: white; box-shadow: 0 9px 22px rgba(0, 168, 45, .22); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: white; color: var(--navy); border-color: var(--navy); }

.progress-row { margin-bottom: 38px; }
.progress-row p { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.progress-track { height: 8px; background: #dce5e9; border-radius: 20px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 8.33%; background: var(--green); transition: width .25s ease; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { max-width: 890px; font-size: clamp(1.65rem, 3.2vw, 2.65rem); font-weight: 700; line-height: 1.15; }
.question-help { max-width: 800px; margin: 12px 0 28px; color: var(--muted); }
.answer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 920px; }
.answer-card { position: relative; display: flex; align-items: center; min-height: 72px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 15px; background: white; cursor: pointer; font-weight: 700; transition: border-color .15s, background .15s, transform .15s; }
.answer-card:hover { border-color: #7890a2; transform: translateY(-1px); }
.answer-card input { position: absolute; opacity: 0; pointer-events: none; }
.answer-card:has(input:checked) { border-color: var(--green); background: #eefaf1; box-shadow: inset 0 0 0 1px var(--green); }
.answer-card span::before { content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 12px; border: 2px solid #8ca0af; border-radius: 50%; vertical-align: -3px; }
.answer-card:has(input:checked) span::before { border: 5px solid var(--green); background: white; }
.validation-message { min-height: 24px; color: var(--red); font-weight: 700; }
.navigation-row, .result-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

#results-screen > h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.results-intro { max-width: 850px; color: var(--muted); font-size: 1.05rem; }
.result-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.summary-chip { padding: 9px 14px; border-radius: 999px; font-size: .9rem; font-weight: 800; }
.summary-chip.likely { color: #075c22; background: #ddf6e5; }
.summary-chip.review { color: #754800; background: #fff0d2; }
.summary-chip.optional { color: #154d7c; background: #e2effc; }
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.result-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(7, 29, 54, .08); }
.result-card.review { border-top-color: var(--amber); }
.result-card.optional { border-top-color: #2c72e8; }
.result-card h3 { margin: 7px 0 9px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; }
.result-card p { margin: 0 0 18px; color: var(--muted); }
.result-card .status { font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.result-card.likely .status { color: #08772e; }
.result-card.review .status { color: var(--amber); }
.result-card.optional .status { color: #1d62a2; }
.result-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.text-link { color: var(--green-dark); font-weight: 800; }
.text-link[data-unconfigured="true"] { color: var(--muted); cursor: not-allowed; }

.email-result { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 60px); margin-top: 54px; padding: clamp(25px, 4vw, 42px); background: var(--navy); border-radius: 24px; color: white; }
.email-result h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.email-result p { color: #dce5ed; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.email-result label { display: block; color: white; font-size: .88rem; font-weight: 700; }
.email-result label span { font-weight: 400; opacity: .75; }
.email-result input[type="text"], .email-result input[type="email"], .email-result input[type="tel"] { width: 100%; margin-top: 6px; padding: 13px 14px; border: 2px solid transparent; border-radius: 9px; background: white; color: var(--ink); }
.consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 17px 0; font-weight: 400 !important; }
.consent input { margin-top: 4px; }
.privacy-note { font-size: .78rem; }
.honeypot { display: none; }
footer { max-width: 1180px; margin: 18px auto 0; color: var(--muted); font-size: .82rem; }

@media (max-width: 720px) {
  .site-shell { padding-inline: 10px; }
  .checker-card { border-radius: 22px; }
  .checker-header, .panel { padding: 28px 21px; }
  .answer-options, .results-list, .email-result, .form-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .navigation-row { flex-direction: column-reverse; }
  .assurance { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
