@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); }

:root {
  --navy: #253551;
  --navy-deep: #121b2f;
  --ink: #1d2433;
  --muted: #4c586f;
  --bg: #e0e0db;
  --card: #ffffff;
  --line: #cfcfc8;
  --coral: #d9573d;
  --coral-dark: #a93a24;
  --good: #2f8a55;
  --ok: #d9822b;
  --poor: #c8442f;
  --radius: 22px;
  --pill: 300px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--body); }
a { color: var(--coral-dark); }
a:hover { color: var(--coral); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.dots-light { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px); background-size: 40px 40px; }
.dots-dark { background-image: radial-gradient(rgba(37, 53, 81, 0.09) 1.5px, transparent 1.5px); background-size: 40px 40px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); }
h1 { margin: 0 0 14px; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 1.4rem; line-height: 1.2; }

.site-header { background: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { flex: none; }
.wordmark { display: grid; font: 300 1.5rem/1.05 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.01em; }
.back { font-size: 1rem; color: var(--navy); text-decoration: none; }
.back:hover { color: var(--coral-dark); text-decoration: underline; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border-radius: var(--pill); font: 500 1rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.pill-light { background: #fff; color: var(--navy); }
.pill-light:hover { background: var(--bg); color: var(--navy); }

.hero.compact { display: none; }
.hero-dark { background-color: var(--navy-deep); border-bottom: 10px solid #9a3f2b; padding-top: 56px; overflow: hidden; }
.hero-copy { text-align: center; }
.eyebrow { margin: 0 0 12px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: #f08a74; }
.hero-dark h1 { color: #f4f4f0; }
.lead { font-size: 1.35rem; line-height: 1.45; max-width: 640px; margin: 0 auto 28px; color: #d3d8e4; }
.hero-art { display: block; width: 100%; max-width: 1100px; margin: 40px auto 0; height: auto; }

.hero-light { padding: 48px 0 8px; }
.benefits { padding: 0; margin: 0 0 18px; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, 0.55); border-radius: var(--radius); padding: 20px; }
.benefits h2 { font-size: 1.55rem; margin: 0 0 4px; }
.benefits p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.4; }
.tile { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f3f3ef; }
@media (max-width: 680px) { .benefits { grid-template-columns: 1fr; } }
.small { font-size: 1rem; color: var(--muted); text-align: center; }

main.wrap { padding-top: 24px; padding-bottom: 64px; }
.card { background: var(--card); border-radius: 28px; padding: 32px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(18, 27, 47, 0.06); }
.card h2 { font-size: 2.1rem; }
.notice { background: #f6ead9; border: 1px solid #e3cfae; border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.error { background: #fbe9e5; border: 1px solid #efb9ae; color: #86281a; border-radius: 14px; padding: 12px 16px; margin: 12px 0 0; }

form { display: grid; gap: 16px; }
label.field { display: grid; gap: 6px; font-weight: 600; }
input[type="email"], input[type="text"], input[type="url"] { font: inherit; padding: 14px 18px; border: 1px solid #b9b9b0; border-radius: 16px; background: #fff; color: var(--ink); width: 100%; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #253551; outline-offset: 3px; }
label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
button, .button { font: 500 1rem/1 var(--body); min-height: 52px; padding: 0 32px; border-radius: var(--pill); border: 0; background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: #1a2740; color: #fff; }
button[disabled] { opacity: 0.6; cursor: wait; }
button.secondary, .button.secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
button.secondary:hover, .button.secondary:hover { background: #ecece7; color: var(--navy); }
button.link { background: none; color: var(--coral-dark); padding: 0; min-height: 0; text-decoration: underline; font-weight: 600; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--coral-dark); }
details form { margin-top: 14px; }
.hint { color: var(--muted); font-size: 1rem; margin: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.who { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 1rem; color: var(--muted); margin-bottom: 16px; }

.progress { height: 10px; background: #e9e9e4; border-radius: 99px; overflow: hidden; margin: 18px 0 6px; }
.progress span { display: block; height: 100%; width: 40%; background: var(--coral); border-radius: 99px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress span { animation: none; width: 100%; opacity: 0.5; } }

.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.report-head p { margin: 0; color: var(--muted); word-break: break-all; }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 10px; }
.gauge { text-align: center; background: var(--bg); border-radius: var(--radius); padding: 16px 6px 12px; }
.gauge svg { width: 100%; max-width: 110px; height: auto; }
.gauge .track { fill: none; stroke: #cfcfc8; stroke-width: 9; }
.gauge .arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge.good .arc { stroke: var(--good); }
.gauge.ok .arc { stroke: var(--ok); }
.gauge.poor .arc { stroke: var(--poor); }
.gauge text { font: 400 30px var(--serif); fill: var(--navy); text-anchor: middle; }
.gauge .label { font-size: 0.95rem; font-weight: 600; color: var(--muted); display: block; margin-top: 2px; }
@media (max-width: 560px) { .gauges { grid-template-columns: repeat(2, 1fr); } }

.summary { font-size: 1.15rem; margin: 6px 0 0; }
.issues { display: grid; gap: 14px; padding: 0; margin: 16px 0 0; list-style: none; }
.issue { background: var(--card); border-left: 8px solid #b9b9b0; border-radius: 18px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(18, 27, 47, 0.06); }
.issue[data-severity="high"] { border-left-color: var(--poor); }
.issue[data-severity="medium"] { border-left-color: var(--ok); }
.issue[data-severity="low"] { border-left-color: #8d98ae; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 6px; background: #e9ecf3; color: #2d3850; }
.issue[data-severity="high"] .badge { background: #fbe9e5; color: #86281a; }
.issue[data-severity="medium"] .badge { background: #fbeedb; color: #7a4a0c; }
.issue p { margin: 4px 0; }
.issue .fix strong { color: var(--ink); }
.cta { background: var(--navy-deep); color: #fff; border-radius: 28px; padding: 24px 28px; margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta p { margin: 0; font-size: 1.2rem; }
.cta a.button { background: #fff; color: var(--navy); }
.cta a.button:hover { background: var(--bg); }

.site-footer { background: var(--navy-deep); padding: 22px 0; font-size: 1rem; color: #b9c1d3; }
.site-footer p { margin: 0; }
.site-footer a { color: #f4f4f0; }
.site-footer a:hover { color: #f08a74; }
.legal { max-width: 740px; padding-top: 36px; padding-bottom: 64px; }
.legal h1 { font-size: 3rem; }
.legal h2 { font-size: 1.6rem; margin-top: 28px; }
.draft { background: #f6ead9; border: 1px solid #e3cfae; border-radius: 14px; padding: 12px 16px; }

@media print {
  .site-header, .site-footer, .hero, .actions, .cta { display: none !important; }
  body { background: #fff; }
  .card, .issue { box-shadow: none; break-inside: avoid; }
}
