:root {
  --bg:#F8FAFC; --surface:#ffffff; --ink:#0F172A; --muted:#475569; --line:#E2E8F0;
  --accent:#2563EB; --accent-ink:#ffffff; --accent-soft:#EAF1FF; --bar:#2563EB; --bar-est:#93B8F5;
  --warn:#9A3412; --radius:10px;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--ink); font-size: 1rem; }
.brand span { color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 1rem; }
nav.main a:hover { text-decoration: underline; }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.card ul { margin: 0 0 16px; padding-left: 20px; }
.card li { margin-bottom: 4px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font-weight: 600; }
.tag { display: inline-block; font-size: .95rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }

.charts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .charts { grid-template-columns: repeat(3, 1fr); } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart h3 { font-size: 1.05rem; margin: 0 0 12px; line-height: 1.3; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: var(--lab, 5.6rem) 1fr; gap: 10px; align-items: center; font-size: .95rem; }
.bar-track { background: var(--accent-soft); border-radius: 6px; height: 28px; position: relative; overflow: hidden; }
.bar { height: 100%; background: var(--bar); border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; min-width: 2.6rem; color: var(--accent-ink); font-weight: 600; font-size: .95rem; }
.bar.est { background: var(--bar-est); color: #08201f; }
.chart .note { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }

form.request { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; max-width: 720px; }
.field { display: grid; gap: 6px; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 600; font-size: 1rem; }
input[type=text], input[type=email], select {
  font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%;
}
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 14px; border-radius: 8px; display: none; }
.status.ok { display: block; background: var(--accent-soft); color: var(--ink); }
.status.err { display: block; background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.fine { color: var(--muted); font-size: .95rem; }

.prose { max-width: 760px; }
.prose h1 { font-size: 2rem; line-height: 1.2; }
.prose h2 { font-size: 1.3rem; margin-top: 32px; }
.prose li { margin-bottom: 6px; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: .95rem; }
footer.site p { margin: 0 0 10px; max-width: 80ch; }
footer.site a { color: var(--muted); }

/* bar widths (CSP forbids inline style attributes) */
.chart.lab-wide { --lab: 9.2rem; }
.bar.w0_9 { width: 0.9%; }
.bar.w5_8 { width: 5.8%; }
.bar.w23_4 { width: 23.4%; }
.bar.w25_2 { width: 25.2%; }
.bar.w29 { width: 29%; }
.bar.w37_5 { width: 37.5%; }
.bar.w53_5 { width: 53.5%; }
.bar.w54_3 { width: 54.3%; }
.bar.w66_4 { width: 66.4%; }
.bar.w70_1 { width: 70.1%; }
.bar.w89_3 { width: 89.3%; }
.bar.w100 { width: 100%; }

/* theme: navy header and footer, light body (KY chose option B, 2026-11-22) */
.bar.est{color:#0B1730}
header.site{background:#0B0F19;border-bottom:0}
header.site .brand{color:#F8FAFC}
header.site .brand span{color:#94A3B8}
header.site nav.main a{color:#E2E8F0}
header.site .wrap{padding-top:12px;padding-bottom:12px}
footer.site{background:#0B0F19;border-top:0;color:#94A3B8}
footer.site a{color:#CBD5E1}
.logo{height:34px;width:auto;vertical-align:middle;margin-right:12px}
