/* peolet.com — single stylesheet, no external requests.
   Light and dark are both first-class; the site is read in both. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --fg: #16191d;
  --fg-muted: #565d68;
  --line: #dfe3e8;
  --accent: #124e78;
  --accent-fg: #ffffff;
  --warn-bg: #fff6e5;
  --warn-fg: #6b4a00;
  --ok: #17603a;
  --unverified: #8a5a00;
  --radius: 6px;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --bg-alt: #171b21;
    --fg: #e8ebef;
    --fg-muted: #a3acb8;
    --line: #2a313a;
    --accent: #7db3e0;
    --accent-fg: #0f1216;
    --warn-bg: #2c2415;
    --warn-fg: #f0d79a;
    --ok: #6fcf97;
    --unverified: #e0b062;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose .table-wrap, .prose .coverage-grid, .prose .tool { max-width: none; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-fg); padding: .6rem 1rem;
}
.skip:focus { left: .5rem; top: .5rem; z-index: 10; }

/* header ---------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-block: .9rem;
}
.brand { text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { display: block; font-weight: 700; letter-spacing: -.01em; font-size: 1.15rem; }
.brand-tag { display: block; font-size: .78rem; color: var(--fg-muted); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: inherit; padding: .45rem .8rem; border-radius: var(--radius); font: inherit;
}
#site-nav ul {
  display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0;
  font-size: .93rem;
}
#site-nav a { color: var(--fg); text-decoration: none; }
#site-nav a:hover, #site-nav a[aria-current] { text-decoration: underline; }
#site-nav a[aria-current] { font-weight: 600; }

@media (max-width: 46rem) {
  .nav-toggle { display: block; }
  #site-nav { flex-basis: 100%; display: none; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: .65rem; padding-block: .5rem; }
}

/* hero ------------------------------------------------------------------ */

.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.hero h1 { max-width: 20ch; margin-top: 0; }
.hero-sub { max-width: 58ch; font-size: 1.1rem; color: var(--fg-muted); }

/* typography ------------------------------------------------------------ */

main { padding-block: 1.75rem 3.5rem; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; line-height: 1.25; margin-top: 2.4rem; }
h3 { font-size: 1.1rem; margin-top: 1.8rem; }
p, ul, ol { margin-block: 1rem; }
li { margin-block: .3rem; }
.lede { font-size: 1.1rem; color: var(--fg-muted); }

.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0 0 1rem; padding: 0; font-size: .84rem; color: var(--fg-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

.answer-first {
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.answer-first p { margin: 0; font-size: 1.05rem; }

.byline { font-size: .85rem; color: var(--fg-muted); }
.byline .pending { color: var(--unverified); }

.disclosure {
  border: 1px solid var(--line); background: var(--bg-alt);
  padding: .75rem .9rem; border-radius: var(--radius); font-size: .88rem;
}

.gate-note {
  border: 1px solid var(--unverified); background: var(--warn-bg); color: var(--warn-fg);
  padding: .85rem 1rem; border-radius: var(--radius); font-size: .9rem;
}
.gate-note ul { margin-bottom: 0; }

blockquote {
  margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--line);
  color: var(--fg-muted);
}

/* tables ---------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.data caption {
  text-align: left; padding: .8rem 1rem; color: var(--fg-muted);
  font-size: .85rem; border-bottom: 1px solid var(--line);
}
table.data th, table.data td {
  text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody th { font-weight: 600; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
td.unverified, .unverified { color: var(--unverified); }
td.ok, .ok { color: var(--ok); }
td.warn, .warn { color: var(--unverified); }
a.src { font-size: .78rem; white-space: nowrap; }

.coverage { font-size: .9rem; color: var(--fg-muted); }
.coverage-grid {
  display: grid; gap: 1rem; margin-block: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.coverage-grid > div {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--bg-alt);
}
.coverage-grid .num { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.coverage-grid span:last-child { font-size: .85rem; color: var(--fg-muted); }

.sibling-links, .sources { padding-left: 1.1rem; }

/* forms and tools -------------------------------------------------------- */

.tool {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; background: var(--bg-alt); margin-block: 1.5rem;
}
.field { margin-block: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
input, select, button { font: inherit; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, input:not([type]) {
  width: 100%; max-width: 26rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
}
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.radio, .check { display: block; font-weight: 400; margin-block: .45rem; cursor: pointer; }
.radio input, .check input { width: auto; margin-right: .55rem; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: .65rem 1.1rem; text-decoration: none; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }

.progress {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0;
  font-size: .78rem; color: var(--fg-muted);
}
.progress li { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
.progress li[aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.wizard-controls { display: flex; gap: .75rem; flex-wrap: wrap; }
.gate-msg { color: var(--warn-fg); background: var(--warn-bg); padding: .6rem .8rem; border-radius: var(--radius); font-size: .9rem; }
.consent { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.consent #consent-language { font-size: .85rem; }
.buyer-list { margin-block: .75rem; }
.fineprint { font-size: .8rem; color: var(--fg-muted); }

.calc-output { display: block; margin-top: 1rem; }
.calc-output table { margin-top: .5rem; }
.calc-method { margin-top: 1rem; font-size: .9rem; }
.calc-method summary { cursor: pointer; font-weight: 600; }

.cta {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-block: 2.5rem; background: var(--bg-alt);
}
.cta h2 { margin-top: 0; }

.faq details {
  border-bottom: 1px solid var(--line); padding-block: .75rem;
}
.faq summary { cursor: pointer; font-weight: 600; }

/* footer ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 2.5rem 2rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .5rem; color: var(--fg-muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.footer-col li { margin-block: .35rem; }
.footer-note, .footer-legal { font-size: .82rem; color: var(--fg-muted); max-width: 70ch; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1rem; }

@media print {
  .site-header nav, .cta, .site-footer { display: none; }
}
