/* Blent Covered Pool site.  Colours and layout from the "Covered-90 Pool"
   design canvas; fonts are self-hosted (no third-party requests). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --ink: #14181F; --ink-2: #23292F; --body: #3A4350; --muted: #55606E;
  --bg: #F4F5F1; --card: #FFFFFF; --line: #D9DCD3; --line-2: #E4E7DF;
  --accent: #1D4ED8; --accent-hover: #153BA6;
  --good: #0B5A3F; --good-bg: #DDF1E6;
  --warn: #8A4B00; --warn-ink: #5C3A00; --warn-bg: #FFF4E0; --warn-line: #E2B566;
  --bad: #9B1C1C; --bad-bg: #FDE8E8;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
a:focus-visible, .btn-solid:focus-visible, .btn-outline:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.body { margin: 0; color: var(--body); }
.strong { font-weight: 600; }
.accent { color: var(--accent); }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
.header-row { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 12px; font-weight: 500; text-decoration: none; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.btn-outline:hover { color: var(--ink); background: var(--bg); }
.btn-solid { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.btn-solid:hover { color: #fff; background: var(--accent-hover); }
.btn-solid[aria-disabled="true"] { background: #A9AFA3; pointer-events: none; }

.main { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }

.pilot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px; color: var(--warn-ink); font-size: 14px; }
.pilot strong { font-weight: 600; }
.pilot a { color: var(--warn-ink); font-weight: 600; }
.error { padding: 12px 16px; background: var(--bad-bg); border: 1px solid #F0B4B4; border-radius: 6px; color: var(--bad); font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
section.card.two-col { gap: 24px; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 17px; color: var(--body); max-width: 520px; }

.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

.ratio-card { display: flex; flex-direction: column; gap: 20px; }
.ratio-card p { margin: 0; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.big-figure { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--good); }
.big-figure.short { color: var(--bad); }
.bar { height: 14px; border-radius: 7px; background: var(--line-2); overflow: hidden; }
.bar-fill { height: 100%; background: var(--good); }
.bar-fill.short { background: var(--bad); }

.kv { margin: 0; display: grid; grid-template-columns: minmax(8.5em, 1fr) auto; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--body); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.figures .card { padding: 20px; }
.figure { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 4px 0; }

.h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; }
.h3 { margin: 0; font-size: 16px; font-weight: 600; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

.addr { padding: 12px 14px; background: var(--bg); border-radius: 6px; font-size: 14px; overflow-wrap: anywhere; }
.addr-inline { overflow-wrap: anywhere; text-decoration: none; }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.signers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.signers li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.signers li:last-child { border-bottom: 0; padding-bottom: 0; }
.signers .who { font-weight: 600; }
.signers .weight { white-space: nowrap; }
.signers .key { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dashed { padding: 14px 16px; border: 1px dashed #A9AFA3; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
thead tr { text-align: left; color: var(--muted); font-size: 13px; font-family: var(--sans); }
th, td { padding: 12px; border-bottom: 1px solid var(--line-2); }
thead th { padding-top: 8px; padding-bottom: 8px; font-weight: 500; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; }
tbody th { text-align: left; font-family: var(--sans); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tfoot th, tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; }
.num { text-align: right; }

.terms-card.covered { border-top: 4px solid var(--good); }
.terms-card.covered .h3 { color: var(--good); margin-bottom: 12px; }
.terms-card.not-covered { border-top: 4px solid var(--warn); }
.terms-card.not-covered .h3 { color: var(--warn); margin-bottom: 12px; }
.terms-card p { margin: 16px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps .body { margin-top: 4px; }
.step-n { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--accent); }
.claims-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }

footer.site { border-top: 1px solid var(--line); background: var(--card); }
.footer-row { padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* terms.html */
.doc { max-width: 760px; }
.doc h1 { font-family: var(--display); font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-family: var(--display); font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.doc table { min-width: 0; font-size: 14px; }
.doc td, .doc th { padding: 8px; text-align: left; vertical-align: top; }
.doc td:first-child, .doc th:first-child { padding-left: 0; }
