/* Value Pools, option B: the price list (budget round).
   A cobalt bar, a yellow notice strip and yellow price tags on a pale grey page of white cards.
   Archivo at normal width throughout; prices are heavy (800) with tabular figures. */

:root {
  --cobalt: #1F3FBF;
  --cobalt-press: #17309A;
  --cobalt-deep: #12286F;
  --tint: #E4EAFB;
  --zebra: #F1F4FA;
  --yellow: #FFD23C;
  --yellow-press: #F5C400;
  --ground: #F2F4F7;
  --card: #FFFFFF;
  --ink: #111418;
  --ink-soft: #545B66;
  --water: #3DA5DA; /* the side view */
  --seat: #BFE4F4;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(16px, 3.2vw, 48px);
  --max: 1320px;
  --r: 12px;
  --r-s: 8px;
  --g: 14px;
  --sec: clamp(48px, 5.6vw, 80px);
  --ref: 802; /* pictures: one this many px wide (the widest pool) fills a card's picture box, so every card shares one scale */

  --fs-h1: clamp(30px, 4.4vw, 50px);
  --fs-h2: clamp(24px, 2.5vw, 34px);
  --fs-big: clamp(64px, 9.4vw, 132px);
  --fs-mid: clamp(26px, 3vw, 42px);
  --fs-price: clamp(28px, 2.4vw, 34px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-tag: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: var(--r-s); }
::selection { background: var(--cobalt); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }

.wrap { width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-s); }
.skip:focus { left: var(--m); }

.big-p, .mid-p, .price, .alt-p, .shelf-from b, .dp, .way-from b, .bill dd { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- buttons, links, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  background: var(--cobalt); color: #fff;
  font-size: var(--fs-body); font-weight: 700;
  text-decoration: none; border-radius: var(--r-s);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--cobalt-press); }
.btn:active { transform: translateY(1px); }
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover { background: var(--yellow-press); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-lead); }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }
.text-link:hover { color: var(--cobalt); }
.see { font-weight: 700; color: var(--cobalt); text-decoration: none; white-space: nowrap; }
.see::after { content: " \203A"; }
.see:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  padding: 3px 11px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-size: var(--fs-tag); font-weight: 700; line-height: 1.35; letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- header: cobalt bar + yellow notice strip ---------- */
.bar { background: var(--cobalt); color: #fff; }
.bar-in { display: flex; align-items: center; gap: 16px 32px; min-height: 68px; }
.mark { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: #fff; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a { font-weight: 600; text-decoration: none; padding-block: 8px; }
.nav a:hover { text-decoration: underline; }
.btn-bar { min-height: 44px; padding: 0 18px; }
.notice { background: var(--yellow); color: var(--ink); font-weight: 600; }
.notice .wrap { display: block; padding-block: 8px; }
.notice .nw { white-space: nowrap; }
.dot { padding-inline: 8px; }

/* ---------- hero: one yellow promo panel ---------- */
.hero { padding-top: 18px; }
.promo { display: grid; overflow: hidden; background: var(--yellow); border-radius: var(--r); }
.promo-text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3.2vw, 48px); }
.promo h1 { font-size: var(--fs-h1); max-width: 14em; }
.lede { margin-top: 12px; font-size: var(--fs-lead); max-width: 30em; }
.big { display: flex; flex-direction: column; margin-top: clamp(18px, 2.4vw, 32px); }
.big-way { font-size: var(--fs-h3); font-weight: 800; line-height: 1.1; }
.big-p { font-size: var(--fs-big); font-weight: 900; line-height: .92; letter-spacing: -0.035em; color: var(--cobalt); margin-left: -.04em; }
.mid { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-top: 10px; }
.mid-way { font-size: var(--fs-lead); font-weight: 700; }
.mid-p { font-size: var(--fs-mid); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(20px, 2.4vw, 30px); }
.promo-pic { min-height: 220px; }
.promo-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- section heads ---------- */
.pools, .ways, .why, .how, .delivery, .faq, .close { margin-top: var(--sec); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sec-head h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: 0; line-height: 1.05; }
.sec-sub { margin-top: 6px; max-width: 46em; }

/* ---------- product cards ---------- */
.shelf { margin-top: 22px; display: grid; gap: var(--g); }
.shelf-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px;
  padding: 16px 22px; border-radius: var(--r);
  background: var(--cobalt); color: #fff;
}
.shelf-head h3 { font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0; }
.shelf-range { font-weight: 700; }
.shelf-line { flex-basis: 100%; }
.shelf-from { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.shelf-from b { color: var(--yellow); font-weight: 800; font-size: 22px; }

.cards { display: grid; gap: var(--g); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; }
.pic { position: relative; display: block; aspect-ratio: 8 / 5; margin: 10px 8px 0; }
.pic img {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--w) / var(--ref) * 100%); max-width: 100%; height: auto; max-height: 100%; object-fit: contain;
}
.sh .sh-w { fill: var(--water); }
.sh .sh-l { fill: var(--seat); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 16px 16px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.price { font-size: var(--fs-price); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.alt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; margin-top: 8px; padding: 6px 10px; border-radius: var(--r-s); background: var(--tint); color: var(--cobalt-deep); }
.alt-l { font-weight: 600; }
.alt-p { font-size: 18px; font-weight: 700; }
.pname { margin-top: 12px; font-size: var(--fs-lead); letter-spacing: -0.005em; }
.pname a { text-decoration: none; }
.pname a:hover { text-decoration: underline; }
.psize { margin-bottom: 14px; }
.price-it {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: var(--r-s); background: var(--cobalt); color: #fff; font-weight: 700; text-decoration: none;
  transition: background-color .15s ease;
}
.price-it:hover { background: var(--cobalt-press); }

.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r); }
.tile h4 { font-size: var(--fs-h3); }
.tile .btn, .tile .see { margin-top: auto; }
.tile-cta { background: var(--yellow); }
.tile-del { background: var(--tint); }
.tile-del h4 { color: var(--cobalt-deep); }
.tile-free { font-size: var(--fs-price); font-weight: 800; line-height: 1; color: var(--cobalt); }
.guide { display: grid; gap: 8px; }
.guide b { font-weight: 800; }
.only-wide { display: none; }


/* ---------- two ways to buy ---------- */
.ways-card { margin-top: 16px; background: var(--card); border-radius: var(--r); padding: clamp(12px, 2vw, 28px); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; font-weight: 400; vertical-align: middle; }
.cmp thead th, .cmp thead td { vertical-align: top; padding-bottom: 18px; }
.cmp-intro p { font-size: var(--fs-lead); max-width: 18em; }
.way img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); margin-bottom: 12px; }
.way > span { display: block; }
.way-name { font-size: 22px; font-weight: 800; line-height: 1.15; }
.way-from { margin-top: 2px; font-weight: 600; }
.way-from b { font-size: var(--fs-price); font-weight: 800; letter-spacing: -0.02em; color: var(--cobalt); }
.way-short { margin-top: 2px; }
.cmp tbody tr:nth-child(odd) > * { background: var(--zebra); }
.cmp tbody th { font-weight: 600; }
.cmp .yes { font-weight: 700; color: var(--cobalt-deep); }
.cmp .yes::before { content: ""; display: inline-block; width: 7px; height: 13px; margin: 0 10px 2px 2px; border: solid var(--cobalt); border-width: 0 3px 3px 0; transform: rotate(45deg); vertical-align: middle; }
.cmp .no { color: var(--ink-soft); }
.cmp .no::before { content: ""; display: inline-block; width: 11px; height: 3px; margin: 0 9px 4px 0; background: var(--ink-soft); vertical-align: middle; }

/* ---------- why it costs less ---------- */
.why-panel { display: grid; overflow: hidden; background: var(--cobalt); color: #fff; border-radius: var(--r); }
.why-text { padding: clamp(22px, 3.2vw, 48px); }
.why h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: 0; }
.why-list { display: grid; gap: 18px; margin-top: 20px; }
.why-list h3 { font-size: 22px; color: var(--yellow); }
.why-list p { margin-top: 4px; max-width: 34em; }
.why-pic { min-height: 220px; }
.why-pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- how it works ---------- */
.how-card { display: grid; gap: 24px; margin-top: 16px; background: var(--card); border-radius: var(--r); padding: clamp(14px, 2vw, 24px); }
.how-pic img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); }
.steps { counter-reset: step; display: grid; gap: 20px 28px; align-content: center; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1;
}
.steps h3 { font-size: 22px; line-height: 1.2; padding-top: 2px; }
.steps p { margin-top: 2px; }

/* ---------- delivery ---------- */
.del-grid { display: grid; gap: var(--g); margin-top: 16px; align-items: start; }
.del-card, .slip { background: var(--card); border-radius: var(--r); padding: clamp(16px, 2.2vw, 28px); }
.del-lead { font-size: var(--fs-lead); max-width: 36em; }
.del-lead b { font-weight: 800; color: var(--cobalt); }
.bands { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; }
.bands th, .bands td { padding: 8px 12px; text-align: left; font-weight: 400; }
.bands thead th { font-weight: 700; color: var(--ink-soft); }
.bands tbody tr:nth-child(even) > * { background: var(--zebra); }
.bands tbody th { font-weight: 600; white-space: nowrap; }
.bands .dp { text-align: right; white-space: nowrap; }
.bands td.dp { font-size: 22px; font-weight: 800; }
.bands tr.free > * { background: var(--yellow) !important; }
.bands tr.free > :first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.bands tr.free > :last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }

.slip h3 { font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0; }
.slip-sub { margin-top: 8px; }
.slip-draw { display: grid; gap: 14px; margin-top: 16px; padding: 18px; border-radius: var(--r-s); background: var(--zebra); }
.slip-views { display: flex; align-items: flex-end; gap: 22px; }
.slip-views img, .slip-views .sh { flex: none; height: auto; }
/* the picture's empty margin (34 cm a side) hangs outside, so the shell itself lines up with the side view */
.slip-views img { --dw: 185px; width: var(--dw); margin: calc(var(--dw) * -0.045) calc(var(--dw) * -0.0949) calc(var(--dw) * -0.0949) calc(var(--dw) * -0.045); }
.slip-views .sh-side { width: 150px; }
.bill { margin: 14px 0 0; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 2px; }
.line + .line { box-shadow: inset 0 2px 0 var(--zebra); }
.bill dt { font-weight: 600; }
.line:not(.total) dt { max-width: calc(100% - 5.6 * var(--fs-mid)); }
.bill dd { margin: 0; font-size: 22px; font-weight: 800; white-space: nowrap; }
.line.total { margin-top: 6px; padding: 12px 14px; border-radius: var(--r-s); background: var(--yellow); box-shadow: none; }
.line.total dt { font-weight: 800; font-size: var(--fs-lead); }
.line.total dd { font-size: var(--fs-mid); font-weight: 900; letter-spacing: -0.03em; color: var(--cobalt); line-height: 1; }
.slip-not { margin-top: 14px; }

/* ---------- questions ---------- */
.qas { display: grid; gap: var(--g); margin: 16px 0 0; }
.qa { background: var(--card); border-radius: var(--r); padding: 20px 22px; }
.qa dt { font-size: var(--fs-lead); font-weight: 800; line-height: 1.25; }
.qa dd { margin: 6px 0 0; }

/* ---------- close ---------- */
.close-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(22px, 3vw, 40px); border-radius: var(--r); background: var(--cobalt); color: #fff;
}
.close-panel > div { flex: 1 1 22em; min-width: 0; }
.close-panel h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: 0; }
.close-panel p { margin-top: 8px; max-width: 34em; }

/* ---------- footer ---------- */
.foot { margin-top: var(--sec); background: var(--cobalt-deep); color: #fff; padding-block: 36px 40px; }
.foot-in { display: grid; gap: 18px 40px; align-items: center; }
.foot-mark { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* =================== widths =================== */

/* phone: one card to a row, drawing beside the text */
@media (max-width: 599px) {
  :root { --ref: 608; }
  .nav { display: none; }
  .bar-in { justify-content: space-between; min-height: 60px; }
  .mark { font-size: 24px; }
  .btn-bar { min-height: 40px; padding: 0 14px; }
  .promo-pic { aspect-ratio: 3 / 2; min-height: 0; }
  .scale-note { display: none; }
  .notice .dot { display: none; }

  .shelf-head { padding: 14px 18px; }
  .card { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; }
  .pic { aspect-ratio: 1 / .8; margin: 12px 4px 12px 12px; }
  .card-body { padding: 14px 14px 14px 8px; }
  .alt { display: block; margin-top: 6px; padding: 0; background: none; }
  .alt-l { display: block; }
  .pname { margin-top: 8px; }
  .psize { margin-bottom: 0; }
  .price-it { min-height: 0; margin-top: 6px; padding: 0; justify-content: flex-start; background: none; color: var(--cobalt); text-decoration: underline; }
  .price-it:hover { background: none; color: var(--cobalt-press); }
  .price-it::after { content: " \203A"; }


  .cmp th, .cmp td { padding: 9px 8px; }
  .cmp thead tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .cmp-intro { grid-column: 1 / -1; padding: 6px 8px 4px !important; }
  .cmp-intro p { max-width: none; }
  .way { display: block; }
  .way-name { font-size: var(--fs-lead); }
  .cmp tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp tbody th { grid-column: 1 / -1; padding-bottom: 2px; }
  .cmp tbody td { padding-top: 2px; }
  .cmp .yes::before { margin-right: 8px; }

  .how-pic img { aspect-ratio: 3 / 2; }
  .bands .hint { display: none; }
  .slip-views img { --dw: 148px; }
  .slip-views .sh-side { width: 120px; }
}

/* small tablets and up: three cards to a row, a size bar above each shelf */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf-from { margin-left: auto; }
  .qas { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* about 800 px and up: photo inside the promo panel */
@media (min-width: 760px) {
  .promo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .promo-pic { min-height: 100%; }
  .why-panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* tablets: delivery, how-it-works and footer stay stacked, at full width */
@media (min-width: 600px) and (max-width: 1099px) {
  .how-pic img { aspect-ratio: 21 / 9; }
  .slip-draw { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
}

/* desktop: five cards to a row; fill tiles keep each shelf's rows full */
@media (min-width: 1100px) {
  .promo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .only-wide { display: flex; }
  .not-wide { display: none; }
  .tile-2 { grid-column: span 2; }
  .shelf-line { flex-basis: auto; }
  .shelf-head { padding: 16px 24px; }
  .del-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .how-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .foot-in { grid-template-columns: auto auto minmax(0, 1fr); }
  .foot nav ul { flex-wrap: nowrap; }
  .foot-note { justify-self: end; text-align: right; text-wrap: balance; }
  .qas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =================== valuepools.co.za: the pages beyond the home page ===================
   Added after look B's style.css (build.py joins the two into /assets/style.css).
   Same colours, type and radii as B: a yellow head panel, white cards on the grey ground. */

/* the hidden attribute wins over the display rules below (the mobile/email fields, the contact form's states) */
[hidden] { display: none !important; }

/* short pages keep the footer at the bottom of the window */
.sub { display: flex; flex-direction: column; min-height: 100vh; }
.sub > main { flex: 1 0 auto; }
.sub > .top, .sub > .foot { flex: none; }

/* ---------- page head ---------- */
.page-head { padding-top: 18px; }
.ph { background: var(--yellow); border-radius: var(--r); padding: clamp(22px, 3.2vw, 44px); }
.ph h1 { font-size: var(--fs-h1); max-width: 18em; }
.ph .lede { max-width: 38em; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 22px; }

/* ---------- text pages: privacy, terms ---------- */
.doc { margin-top: var(--g); background: var(--card); border-radius: var(--r); padding: clamp(20px, 3.4vw, 48px); }
.doc-in { max-width: 44em; }
.doc .updated { color: var(--ink-soft); font-weight: 600; }
.doc h2 { font-size: var(--fs-h3); margin-top: 32px; }
.doc h2:first-of-type { margin-top: 22px; }
.doc p, .doc ul { margin-top: 10px; }
.doc ul { display: grid; gap: 6px; padding-left: 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); }
.doc a { color: var(--cobalt); font-weight: 600; }
.doc strong { font-weight: 800; }

/* ---------- forms (contact and the estimate's last step) ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input:not([type]), .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid #C9D1E3; border-radius: var(--r-s); background: #fff; color: var(--ink);
  font: inherit; font-size: 17px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--tint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-weight: 600; }
.err:empty { display: none; }
.via-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.via-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 12px; border-radius: var(--r-s); background: var(--zebra); font-weight: 600; cursor: pointer; }
.via-opt:has(input:checked) { background: var(--cobalt); color: #fff; }
.via-opt input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); flex: none; }
.check label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 2px; }
.check a { color: var(--cobalt); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.form-msg, .est-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-s); background: var(--tint); color: var(--cobalt-deep); font-weight: 600; }
.form-msg.is-bad, .est-status.is-bad { background: #FDECEA; color: #7A1A12; }
.form-msg a, .est-status a { color: inherit; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: var(--g); margin-top: var(--g); align-items: start; }
.c-card, .c-side { background: var(--card); border-radius: var(--r); padding: clamp(18px, 3vw, 36px); }
.c-card h2, .c-side h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.c-side { display: grid; gap: 12px; }
.c-side h2 { margin-bottom: 0; }
.c-mail { font-size: 20px; font-weight: 800; color: var(--cobalt); overflow-wrap: anywhere; }
.c-side .btn { justify-self: start; margin-top: 6px; }
.c-thanks h2 { font-size: var(--fs-h3); }
.c-thanks p { margin-top: 8px; }
.nojs { padding: 16px; border-radius: var(--r-s); background: var(--zebra); }
.nojs h2 { font-size: 22px; margin-bottom: 6px; }
.nojs a { color: var(--cobalt); font-weight: 700; }

/* ---------- the estimate ---------- */
.est { margin-top: var(--g); }
.est-grid { display: grid; gap: var(--g); align-items: start; }
.est-card { background: var(--card); border-radius: var(--r); padding: clamp(16px, 2.6vw, 32px); min-width: 0; }
.est-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; font-weight: 700; color: var(--ink-soft); }
.est-bar { display: block; height: 8px; margin-bottom: 6px; border-radius: 999px; background: var(--zebra); overflow: hidden; }
.est-bar > span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--cobalt); transition: width .35s ease; }
.est-stages .is-on { color: var(--ink); }
.est-stages .is-on .est-bar > span { width: 50%; }
.est-stages .is-done .est-bar > span { width: 100%; }
.est-loading { color: var(--ink-soft); }

.q-h { font-size: var(--fs-h2); line-height: 1.1; }
.q-h:focus { outline: none; }
.q-help { margin-top: 8px; max-width: 40em; }
.q-body { margin-top: 20px; }
.qgroup + .qgroup { margin-top: 22px; }
.qgroup h3 { font-size: 20px; margin-bottom: 10px; }

.opts { display: grid; gap: 10px; }
.opt {
  display: grid; gap: 4px; align-content: start; width: 100%; min-height: 56px; padding: 14px 16px;
  border: 2px solid transparent; border-radius: var(--r-s); background: var(--zebra); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.opt:hover { background: var(--tint); }
.opt:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.opt[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.opt b { font-size: var(--fs-lead); font-weight: 800; line-height: 1.2; }
.opt small { font-size: var(--fs-body); }

.opt-way { padding: 0; overflow: hidden; background: var(--zebra); }
.opt-way img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.opt-way .ow-t { display: grid; gap: 4px; padding: 14px 16px 16px; }
.opt-way .ow-from { font-weight: 600; }
.opt-way .ow-from strong { font-size: var(--fs-price); font-weight: 800; letter-spacing: -0.02em; color: var(--cobalt); font-variant-numeric: tabular-nums lining-nums; }
.opt-way[aria-pressed="true"] .ow-from strong { color: var(--yellow); }
/* set and plumbed is the big price; the DIY kit is the small one */
.opt-way[data-val="diy"] .ow-from strong { font-size: 1.15rem; }
.opt-way .ow-pick { justify-self: start; margin-top: 6px; padding: 3px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: var(--fs-tag); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--zebra); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.opt-pool { grid-template-columns: 104px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 10px 14px 10px 10px; }
.opt-pool .mini { position: relative; width: 104px; aspect-ratio: 8 / 5; border-radius: 6px; background: #fff; }
.opt-pool .mini img { position: absolute; inset: 0; margin: auto; width: calc(var(--w) / var(--ref) * 100%); max-width: 100%; height: auto; max-height: 100%; }
.opt-pool .op-t { display: grid; gap: 2px; }
.opt-pool .op-p { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.opt-pool[aria-pressed="true"] .op-p { color: var(--yellow); }

.opt-dist .od-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-dist .od-p { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

.est-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.back { min-height: 48px; padding: 0 8px; border: 0; background: none; color: var(--cobalt); font: inherit; font-weight: 700; cursor: pointer; }
.back::before { content: "\2039  "; }
.back:hover { text-decoration: underline; }

/* the running total beside the steps */
.est-side { display: grid; gap: 14px; background: var(--cobalt); color: #fff; border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); }
.est-side h2 { font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0; }
.side-pic { position: relative; aspect-ratio: 8 / 5; border-radius: var(--r-s); background: #fff; }
.side-pic img { position: absolute; inset: 0; margin: auto; width: calc(var(--w) / var(--ref) * 100%); max-width: 100%; height: auto; max-height: 100%; }
.est-side dl { display: grid; gap: 10px; margin: 0; }
.est-side dt { font-size: var(--fs-tag); font-weight: 600; color: #C9D4FA; }
.est-side dd { margin: 0; font-weight: 600; }
.run { font-size: var(--fs-mid); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums lining-nums; }
.run-note { margin-top: -6px; }

/* the result */
.est-top { display: grid; gap: 6px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r); background: var(--yellow); }
.est-top:focus { outline: none; }
.est-top-what { font-size: var(--fs-lead); font-weight: 800; }
.est-top-p { font-size: var(--fs-big); font-weight: 900; line-height: .92; letter-spacing: -0.035em; color: var(--cobalt); font-variant-numeric: tabular-nums lining-nums; }
.est-result .bill { margin-top: 16px; }
.est-result .bill dd { font-variant-numeric: tabular-nums lining-nums; }
.est-inc { display: grid; gap: 10px; margin-top: 16px; }
.est-inc > div { padding: 16px 18px; border-radius: var(--r-s); background: var(--zebra); }
.est-inc h3 { font-size: 20px; margin-bottom: 8px; }
.est-inc ul { display: grid; gap: 6px; }
.est-inc .yes li::before { content: ""; display: inline-block; width: 7px; height: 13px; margin: 0 12px 2px 2px; border: solid var(--cobalt); border-width: 0 3px 3px 0; transform: rotate(45deg); vertical-align: middle; }
.est-inc .no li::before { content: ""; display: inline-block; width: 11px; height: 3px; margin: 0 10px 4px 0; background: var(--ink-soft); vertical-align: middle; }
.est-fine { margin-top: 14px; color: var(--ink-soft); }
.est-after { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-line { background: #fff; color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); border: 0; font-family: inherit; cursor: pointer; }
.btn-line:hover { background: var(--tint); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }

/* ---------- not found ---------- */
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- widths ---------- */
@media (max-width: 599px) {
  .q-h { font-size: 26px; }
  .opt-pool { grid-template-columns: 84px minmax(0, 1fr); }
  .opt-pool .mini { width: 84px; }
  .est-top-p { font-size: clamp(52px, 16vw, 72px); }
}
@media (min-width: 600px) {
  .opts.two, .opts.pools, .opts.dist { grid-template-columns: 1fr 1fr; }
  .est-inc { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .est-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .est-side { position: sticky; top: 16px; }
  .opts.dist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

@media print {
  .top, .foot, .page-head, .est-side, .est-stages, .est-after, .skip, .est-nav { display: none !important; }
  body { background: #fff; }
  .est-card { padding: 0; }
  .est-top { border: 2px solid var(--ink); }
}

/* ---------- header: white bar with the Value Pools logo ---------- */
.bar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--tint); }
.mark-logo img { display: block; height: 46px; width: auto; }
.bar .nav a { color: var(--ink); }
.bar .btn-bar { background: var(--cobalt); color: #fff; }
.bar .btn-bar:hover { background: var(--cobalt-press); }
@media (max-width: 599px) {
  .mark-logo img { height: clamp(28px, 8.7vw, 34px); }  /* logo and button share one line down to 360 px */
  .bar-in { column-gap: 12px; }
}
