:root {
  --brand: #0f5e63;
  --brand-dark: #0a4549;
  --brand-tint: #e6f2f2;
  --ink: #17262b;
  --muted: #4d5f65;
  --line: #d5e0e2;
  --bg: #f5f8f9;
  --card: #fff;
  --warn: #7a4b00;
  --warn-bg: #fff4d6;
  --warn-line: #e0a82e;
  --err: #a1261c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }
[hidden] { display: none !important; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, h1:focus-visible, h2:focus-visible {
  outline: 3px solid #f0a500;
  outline-offset: 2px;
}
h1:focus, h2:focus { outline: none; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.site-header { background: var(--brand); color: #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 12px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.site-header a:focus-visible { outline-color: #fff; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 2px 0; }

.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 6px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 20px; }
.lead.small { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.intro { margin-bottom: 8px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(15,60,65,.05);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"] {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid #8ea3a8; border-radius: 10px; background: #fff; color: var(--ink);
}
input[type="text"][aria-invalid="true"] { border-color: var(--err); }
.error { color: var(--err); margin: 6px 0 0; font-size: .92rem; font-weight: 600; }

.btn {
  display: inline-block; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  padding: 12px 20px; min-height: 48px; border-radius: 10px; border: 2px solid var(--brand);
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.big { width: 100%; font-size: 1.1rem; min-height: 56px; }
.btn.small-btn { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }

/* checklist */
.summary h1 { font-size: 1.4rem; margin-bottom: 4px; }
.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; font-weight: 600; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; background: var(--brand); width: 0; transition: width .25s; }
.section-title { margin: 26px 0 10px; font-size: 1.2rem; color: var(--brand-dark); }
fieldset.q { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 16px; margin: 0 0 12px; min-width: 0; }
fieldset.q legend { font-weight: 600; padding: 0 6px; margin-left: -6px; width: 100%; }
.why { margin: 4px 0 12px; color: var(--muted); font-size: .94rem; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 4px;
  border: 2px solid #8ea3a8; border-radius: 10px; font-weight: 700; background: #fff; text-align: center;
}
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid #f0a500; outline-offset: 2px; }
.choice:hover span { border-color: var(--brand); }

/* result */
.notice {
  background: var(--warn-bg); border: 3px solid var(--warn-line); color: var(--warn);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.notice strong { display: block; font-size: 1.3rem; line-height: 1.3; margin-bottom: 6px; color: #5a3600; }
.notice p { margin: 0; }
.score-card h2 { margin-bottom: 2px; }
.score-big { font-size: 2rem; font-weight: 800; color: var(--brand-dark); margin: 0; line-height: 1.2; }
.score-label { font-weight: 700; margin: 2px 0 12px; }
.meter { height: 18px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter > div { height: 100%; background: var(--brand); border-radius: 99px; }
.meter.thin { height: 10px; margin-top: 6px; }
.sections { display: grid; gap: 14px; margin-top: 8px; }
.sec-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
ol.fixes { list-style: none; padding: 0; margin: 0; counter-reset: fix; }
ol.fixes li { border-top: 1px solid var(--line); padding: 14px 0; }
ol.fixes li:first-child { border-top: 0; padding-top: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-dark); margin-right: 6px; }
.tag.no { background: #fde8e6; color: #7d1d15; }
.fix-step { margin: 6px 0 0; color: var(--ink); }
.prompt { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); flex-wrap: wrap; }
.prompt q { font-weight: 600; flex: 1 1 200px; quotes: "“" "”"; }
.cta-card { border: 2px solid var(--brand); background: var(--brand-tint); }
ul.plain { padding-left: 20px; }
.cta-card .btn { margin-top: 4px; }
.empty { color: var(--muted); }

@media (min-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: 2.2rem; }
  main { padding-top: 40px; }
  .card { padding: 28px; }
  .btn.big { width: auto; min-width: 280px; }
}
@media (prefers-reduced-motion: reduce) { .bar > div { transition: none; } }
