:root {
  --green: #47ad89;
  --green-dark: #2f8d6e;
  --teal: #1abc9c;
  --ink: #34495e;
  --muted: #5d6d7e;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e4e0d8;
  --pink: #ef4162;
  --pink-dark: #d43352;
  --navy: #303946;
  --focus: #1a5276;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 1.05rem;
}

a { color: var(--green-dark); }

a:hover { color: var(--pink); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip-link:focus { top: 0.5rem; }

.site-header {
  background: var(--green);
  color: #fff;
}

.site-header-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.9rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 700;
}

.brand:hover { color: #fff; }

.brand-the, .brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.brand strong {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  margin: 0.12rem 0;
}

.brand-tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.checker, .report { }

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.15;
  color: var(--navy);
}

.lede {
  font-size: 1.15rem;
  margin-top: 0;
}

.plain-list {
  padding-left: 1.2rem;
}

.plain-list li + li { margin-top: 0.35rem; }

.button, .option {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.button-go, .button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.3rem;
  background: var(--pink);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.button-go:hover, .button-cta:hover,
.button-go:focus-visible, .button-cta:focus-visible {
  background: var(--pink-dark);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
}

.button:focus-visible, .option:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow: 12px 12px rgba(26, 188, 156, 0.28);
}

legend {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.75rem;
}

.help {
  margin-top: 0;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 0.65rem;
}

.option {
  text-align: left;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 2px solid #d5ebe4;
  color: var(--navy);
  font-weight: 650;
}

.option:hover, .option[aria-pressed="true"] {
  border-color: var(--green);
  background: #f3fbf8;
}

.option:disabled { opacity: 0.7; }

.controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.progress {
  height: 0.45rem;
  background: #e7e2d8;
  border-radius: 99px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.result {
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.4rem;
  box-shadow: 12px 12px rgba(26, 188, 156, 0.28);
}

.result h2 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.25;
}

.result h3 {
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.result section + section { margin-top: 1.25rem; }

.why {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.why summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.disclaimer {
  margin-top: 1.25rem;
  background: #fff8e8;
  border-left: 4px solid #e0a106;
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.cta { margin-top: 1.35rem; }

.cta-prominent {
  background: var(--navy);
  color: #fafafa;
  margin-left: -1.15rem;
  margin-right: -1.15rem;
  margin-bottom: -1.4rem;
  padding: 1.2rem 1.15rem 1.4rem;
  border-radius: 0 0 12px 12px;
}

.cta-prominent p { margin-top: 0; }

.text-link { font-weight: 700; }

.status {
  min-height: 1.4rem;
  color: #8a2a2a;
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p { margin: 0; }

.report table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 0 0 1.5rem;
}

.report caption {
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.report th, .report td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.report thead th { background: #eef6f3; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.stat-grid section {
  background: #fff;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.stat-grid h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}

.stat-grid p {
  margin: 0.2rem 0 0;
  font-size: 1.7rem;
  font-weight: 750;
  color: var(--navy);
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .brand { flex-direction: row; align-items: baseline; gap: 0.35rem; }
  .brand strong { margin: 0; font-size: 1.2rem; }
  fieldset, .result { box-shadow: 0 8px 0 rgba(26, 188, 156, 0.28); }
  .cta-prominent { margin-left: -1.15rem; margin-right: -1.15rem; }
}
