/* Plunge Pool Planner, look B "Pool tile, bright and clean" (David picked it 5 Nov 2026) */
:root {
  --bg: #FFFFFF; --surface: #F2FAFC; --ink: #0B2545; --muted: #46607A; --line: #D5E7EE;
  --brand: #0B2545; --brand-ink: #FFFFFF; --pool: #00A6C8; --pool-deep: #007A94; --pool-soft: #D6F2F8;
  --accent: #FFD447; --accent-ink: #0B2545; --hero: #00A6C8; --hero-ink: #FFFFFF; --hero-muted: #E3F7FB;
  --no: #E0442E; --maybe: #F2A20C; --ok: #1F8A5B; --warn-bg: #FFF4D6; --warn: #6A4A00;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px; --r-sm: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--pool-deep); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--pool-deep); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }

/* header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 14px; }
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.wm svg { width: 34px; height: 24px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 260px; font-weight: 600; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--pool); }
.foot { background: var(--brand); color: #C9D6E2; font-size: .9rem; padding-block: 32px; margin-top: 48px; }
.foot a { color: #FFFFFF; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #FFC81F; color: var(--accent-ink); }
.btn-line { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-white { background: #FFFFFF; color: var(--brand); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* home */
.hero { background-color: var(--hero); color: var(--hero-ink); padding-block: 44px 56px;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lede { font-size: 1.15rem; color: var(--hero-muted); max-width: 32em; }
.soon { display: inline-block; background: rgba(11,37,69,.18); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.plan { flex: 1 1 300px; min-width: 0; max-width: 440px; margin: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.plan svg { width: 100%; height: auto; display: block; }
.plan figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; margin-top: 10px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.door { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: -28px; position: relative; }
.door p { color: var(--muted); flex: 1 1 320px; }
.door h2 { font-size: 1.35rem; flex: 1 1 100%; }
.section { padding-block: 48px; display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card .size { font-size: .9rem; color: var(--muted); }
.card .price { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--brand); }
.card .src { font-size: .78rem; color: var(--muted); margin-top: auto; }
.shape { height: 70px; background: var(--pool-soft); border-radius: 10px; display: grid; place-items: center; }
.shape span { display: block; background: var(--pool); }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.fact { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.fact-a { background: var(--brand); color: var(--brand-ink); }
.fact-b { background: var(--pool-soft); }
.fact .big { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.fact .go { font-weight: 700; margin-top: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }

/* guide pages */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px 32px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.checked { font-size: .9rem; color: var(--muted); }
.answer { background: var(--pool-soft); border-left: 6px solid var(--pool); border-radius: var(--r-sm); padding: 18px 20px; font-size: 1.08rem; }
.prose { display: flex; flex-direction: column; gap: 16px; padding-block: 32px 8px; }
.prose h2 { margin-top: 20px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.clause { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.tag-ok { background: #DDF3E8; color: var(--ok); }
.tag-no { background: #FDE3DE; color: #A42A18; }
.tag-maybe { background: var(--warn-bg); color: var(--warn); }
.note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 12px 16px; font-size: .95rem; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; background: #FFFFFF; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; }
.sources { font-size: .9rem; color: var(--muted); }
.sources ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-weight: 700; text-decoration: none; color: var(--brand); }

@media (max-width: 560px) {
  .hero { padding-block: 32px 48px; }
  .btns .btn { width: 100%; }
  th, td { padding: 8px 10px; }
}

/* Pool Fit check */
.fit { padding-block: 24px; }
.fit-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fit-label { font-weight: 700; }
.fit-search input { width: 100%; min-height: 52px; border: 2px solid var(--line); border-radius: 14px; padding: 0 16px; font: 500 1.05rem var(--body); color: var(--ink); }
.fit-search input:focus { outline: none; border-color: var(--pool); }
.fit-sugg { list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden; }
.fit-sugg li { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.fit-sugg li[aria-selected="true"], .fit-sugg li:hover { background: var(--pool-soft); }
.fit-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fit-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.fit-prompt { background: var(--pool-soft); border-radius: 12px; padding: 10px 14px; }
.fit-photo { border-radius: 14px; overflow: hidden; background: #DDE4E6; }
.fit-wait { aspect-ratio: 4 / 3; animation: fitpulse 1.4s ease-in-out infinite; }
@keyframes fitpulse { 50% { opacity: .55; } }
.fit-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
.fit-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.fit-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.fit-tools label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.fit-tools select { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 0 10px; font: 500 1rem var(--body); color: var(--ink); background: #fff; }
.fit-turn { display: flex; gap: 8px; }
.fit-turn .btn { min-height: 44px; padding: 0 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pool-deep); font: inherit; text-decoration: underline; cursor: pointer; }
.fit-live p, .fit-card .fit-good, .fit-card .fit-bad, .fit-card .fit-near { border-radius: 10px; padding: 10px 14px; margin: 0; }
.fit-good { background: #DDF3E8; color: #135A3B; }
.fit-bad { background: #FDE3DE; color: #8E2414; }
.fit-near { background: var(--warn-bg); color: var(--warn); }
.fit-live { display: flex; flex-direction: column; gap: 8px; }
.fit-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fit-q legend { font-weight: 700; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: inherit; font-size: .95rem; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--pool); background: var(--pool-soft); }
.fit-card ul:not(.fit-facts):not(.fit-sugg) { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
