:root {
  --brand: #0f5b4f;
  --brand-dark: #0a4339;
  --brand-tint: #e8f2ef;
  --ink: #17201e;
  --muted: #5b6764;
  --line: #d9e1de;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --red: #c4362c;
  --red-tint: #fbe9e7;
  --amber: #b86e00;
  --amber-tint: #fdf1dc;
  --green: #1f7a3d;
  --green-tint: #e5f4ea;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f2b400; outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: 0.5em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 8px; top: 5px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--brand); }
@media (max-width: 720px) { nav a { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 8px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { padding: 7px 14px; font-size: 0.9rem; }
.btn-large { padding: 15px 28px; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-tint), #fff); padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: #33403c; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.hero-card { display: flex; justify-content: center; }
.mini-report { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: 100%; max-width: 380px; box-shadow: 0 10px 30px rgba(15, 91, 79, 0.10); }
.mini-title { font-weight: 700; margin-bottom: 10px; }
.mini-score { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mini-report ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.92rem; }
.mini-report li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.mini-foot { font-size: 0.9rem; margin: 0; padding: 10px 12px; background: var(--amber-tint); border-radius: 8px; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Pills and dots */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.amber { background: var(--amber-tint); color: var(--amber); }
.pill.green { background: var(--green-tint); color: var(--green); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }

/* Sections */
.section { padding: 64px 20px; }
.band { background: var(--bg-soft); padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.date-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.date-card p { margin: 0; font-size: 0.95rem; }
.date-card .date { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.date-card.accent { border: 2px solid var(--brand); }
@media (max-width: 820px) { .dates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dates { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .section-split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: #33403c; }
.final-cta { text-align: center; padding-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner p { margin: 0; }

/* App */
.app-wrap { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--brand); transition: width 0.25s ease; }
.progress-label { font-size: 0.875rem; color: var(--muted); margin: 8px 0 20px; min-height: 1.3em; }
.screen:focus { outline: none; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 10px; }
.q-text { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 700; margin-bottom: 18px; }
.choices { display: grid; gap: 10px; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; background: #fff; }
.choice:hover { border-color: #9fb8b1; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice-block { width: 100%; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.input { font: inherit; padding: 11px 12px; border: 2px solid #9aa8a4; border-radius: 8px; width: 100%; max-width: 420px; background: #fff; }
.input:focus { border-color: var(--brand); outline: 3px solid #f2b400; outline-offset: 0; }
.input-short { max-width: 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.error { color: var(--red); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.score { border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 2px solid; }
.score-red { background: var(--red-tint); border-color: var(--red); }
.score-amber { background: var(--amber-tint); border-color: var(--amber); }
.score-green { background: var(--green-tint); border-color: var(--green); }
.score-headline { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.score .pill { background: #fff; }

.prs-card { border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; background: #fff; }
.prs-card .prs-headline { font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.prs-card p:last-child { margin-bottom: 0; font-size: 0.92rem; }

.item-list { list-style: none; padding: 0; margin: 0 0 24px; }
.item-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }

.gate { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 8px; }

.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.report-head h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 4px; }
.report-buttons { display: flex; gap: 8px; }
.report h2 { margin-top: 28px; }
.fix { border: 1px solid var(--line); border-left: 5px solid; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; break-inside: avoid; }
.fix-red { border-left-color: var(--red); }
.fix-amber { border-left-color: var(--amber); }
.fix h3 { margin-bottom: 4px; }
.fix-level { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.fix p:last-child { margin-bottom: 0; }
.offer { background: var(--brand); color: #fff; border-radius: 14px; padding: 28px; margin-top: 32px; }
.offer h2 { margin-top: 0; color: #fff; }
.offer .btn { background: #fff; color: var(--brand); border-color: #fff; }
.offer .btn:hover { background: var(--brand-tint); }
.offer .muted { color: #cfe3de; }

/* Print: just the report */
@media print {
  body { font-size: 11pt; }
  .site-header, .site-footer, .progress, .progress-label, .no-print { display: none !important; }
  .app-wrap { padding: 0; max-width: none; }
  a { color: inherit; }
  .score, .fix, .prs-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
