/* PoolBotVerdict: deep-water bands over a pale pool-deck page.
   Signature: tile-grid bands, a waterline wave, and fill bars that "fill the pool" to show how much of a robot's rating your pool uses. */
:root {
  --bg: #f1f6f7;
  --surface: #ffffff;
  --ink: #0a2233;
  --muted: #4b6370;
  --line: #d3e3e8;
  --aqua: #0b8f9c;
  --aqua-ink: #06707a;
  --aqua-2: #2ad1d6;
  --aqua-soft: #dff3f5;
  --deep: #062b40;
  --deep-2: #0b3a55;
  --foam: #e8f6f8;
  --sun: #ffc53d;
  --coral: #d9472f;
  --good: #0f7a55;
  --warn: #b5470f;
  --focus: #1f6fd1;
  --font-display: "Unbounded", "Arial Black", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --wrap: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061823; --surface: #0b2333; --ink: #e3f1f5; --muted: #93aeb9; --line: #1d3b4d;
    --aqua: #2ad1d6; --aqua-ink: #6fe3e6; --aqua-soft: #0f3343; --good: #4fd19a; --warn: #f2945c; --coral: #ff7b63; --focus: #6aa8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061823; --surface: #0b2333; --ink: #e3f1f5; --muted: #93aeb9; --line: #1d3b4d;
  --aqua: #2ad1d6; --aqua-ink: #6fe3e6; --aqua-soft: #0f3343; --good: #4fd19a; --warn: #f2945c; --coral: #ff7b63; --focus: #6aa8ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.04rem/1.62 var(--font-body); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--aqua); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.86rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua-ink); }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; }
.brand b { color: var(--aqua); font-weight: 700; }
.logo { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-left: auto; font-weight: 700; font-size: 0.95rem; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--aqua); }

/* Buttons */
.btn { display: inline-block; font: 800 0.98rem var(--font-body); text-decoration: none; background: var(--sun); color: #2a1d00; border-radius: 999px; padding: 11px 20px; border: 2px solid var(--sun); }
.btn:hover { background: #ffd56e; border-color: #ffd56e; }
.btn-ghost { background: transparent; color: var(--foam); border-color: rgba(232, 246, 248, 0.55); }
.btn-ghost:hover { background: rgba(232, 246, 248, 0.1); border-color: var(--foam); }
.btn-ghost-dark { background: transparent; color: var(--foam); border-color: rgba(232, 246, 248, 0.55); font-size: 0.92rem; padding: 8px 16px; }
.btn-ghost-dark:hover { border-color: var(--foam); background: rgba(232, 246, 248, 0.1); }

/* Deep-water bands */
.hero-band, .model-band {
  color: var(--foam);
  background:
    linear-gradient(rgba(232, 246, 248, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(232, 246, 248, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 85% 0%, #0f5a74 0%, var(--deep-2) 45%, var(--deep) 100%);
  position: relative;
}
.hero-band::after, .model-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 10c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8v8H0z'/%3E%3C/svg%3E") 0 0 / 120px 18px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 10c15 0 15-8 30-8s15 8 30 8 15-8 30-8 15 8 30 8v8H0z'/%3E%3C/svg%3E") 0 0 / 120px 18px repeat-x;
}
.hero-band .eyebrow, .model-band .eyebrow { color: var(--aqua-2); }
.hero-band a:not(.btn), .model-band a:not(.btn):not(.btn-ghost-dark) { text-decoration-color: var(--aqua-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; padding-block: 52px 66px; }
.hero-copy { display: grid; gap: 16px; }
.hero-copy h1 em { font-style: normal; color: var(--aqua-2); }
.hero-copy .lede { font-size: 1.14rem; color: rgba(232, 246, 248, 0.86); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { font-size: 0.9rem; color: rgba(232, 246, 248, 0.7); }
.hero-pool { margin: 0; }
.hero-pool svg { width: 100%; height: auto; display: block; }
.hero-pool .bot { animation: glide 7s ease-in-out infinite alternate; }
.hero-pool .bot2 { animation: climb 4.5s ease-in-out infinite alternate; }
.hero-pool .wave { animation: lap 3.2s ease-in-out infinite alternate; }
@keyframes glide { from { transform: translateX(-110px); } to { transform: translateX(110px); } }
@keyframes climb { from { transform: translateY(40px); } to { transform: translateY(-50px); } }
@keyframes lap { from { transform: translateX(0); } to { transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-pool .bot, .hero-pool .bot2, .hero-pool .wave { animation: none; } }

/* Generic hero (light pages) */
.hero { padding-block: 34px 26px; display: grid; gap: 14px; }
.hero p.lede { font-size: 1.14rem; color: var(--muted); max-width: 64ch; }
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 22px; }
.model-band .crumbs { color: rgba(232, 246, 248, 0.7); }

/* Finder */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); margin-top: -36px; position: relative; z-index: 1; box-shadow: 0 18px 40px -26px rgba(6, 43, 64, 0.45); }
.hero + .finder, .crumbs + .hero + .finder { margin-top: 0; }
.finder-controls { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.finder-results { padding: 22px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.field-label { font-weight: 800; font-size: 0.88rem; display: block; margin-bottom: 8px; }
.dims { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.dims label { display: grid; gap: 2px; font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.dims input { font: 700 1.3rem var(--font-body); font-variant-numeric: tabular-nums; width: 88px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); padding: 6px 10px; }
.dims .x { font-weight: 800; color: var(--muted); padding-bottom: 8px; }
.dims [data-width-wrap][hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font: 700 0.86rem var(--font-body); border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--deep); color: var(--foam); border-color: var(--deep); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.seg button { font: 700 0.86rem var(--font-body); border: 0; background: var(--bg); color: var(--ink); padding: 7px 11px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--deep); color: var(--foam); }
:root[data-theme="dark"] .chip[aria-pressed="true"], :root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--aqua); color: #04202c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"], :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--aqua); color: #04202c; border-color: var(--aqua); } }
.hint { font-size: 0.85rem; color: var(--muted); }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.results-head h2 { font-size: 1.18rem; }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 118px; gap: 14px; align-items: center; }
.fit-name { min-width: 0; line-height: 1.25; }
.fit-name a { font-weight: 800; text-decoration: none; display: block; }
.fit-name a:hover { text-decoration: underline; text-decoration-color: var(--aqua); }
.fit-name small { color: var(--muted); font-size: 0.79rem; font-variant-numeric: tabular-nums; display: block; }
.tag { display: inline-block; margin: 4px 4px 0 0; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--aqua-soft); color: var(--aqua-ink); }
.tag.caution { background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.pool-bar { position: relative; height: 26px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.pool-fill { height: 100%; background: linear-gradient(180deg, var(--aqua-2), var(--aqua)); transition: width 0.35s ease; position: relative; }
.pool-fill::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 8px, transparent 8px 16px); }
.fit-row.tight .pool-fill { background: linear-gradient(180deg, #ffd56e, #e0a51c); }
.fit-row.miss { opacity: 0.6; }
.fit-row.miss .pool-bar { border-style: dashed; border-color: var(--warn); }
.fit-row.miss .pool-fill { background: repeating-linear-gradient(135deg, var(--warn) 0 6px, transparent 6px 12px); opacity: 0.4; }
.fit-verdict { font: 800 0.9rem var(--font-body); text-align: right; line-height: 1.25; }
.fit-row.miss .fit-verdict { color: var(--warn); }
.fit-verdict small { display: block; font-weight: 600; color: var(--muted); font-size: 0.76rem; }
.method { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Sections and cards */
.section { padding-block: 40px; display: grid; gap: 20px; }
.section-intro { display: grid; gap: 8px; max-width: 68ch; }
.section-intro p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 9px; align-content: start; border-top: 4px solid var(--aqua-2); }
.pick .use { font-weight: 800; color: var(--aqua-ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pick .specs { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.pick h3 a { text-decoration: none; }
.pick h3 a:hover { text-decoration: underline; text-decoration-color: var(--aqua); }
.zones { display: inline-flex; gap: 4px; }
.zones .z { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font: 800 0.7rem var(--font-body); border: 1px dashed var(--line); color: var(--muted); }
.zones .z.on { background: var(--deep); color: var(--aqua-2); border: 1px solid var(--deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zones .z.on { background: var(--aqua-soft); border-color: var(--aqua); } }
:root[data-theme="dark"] .zones .z.on { background: var(--aqua-soft); border-color: var(--aqua); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles div { display: grid; gap: 6px; border-top: 4px solid var(--aqua-2); padding-top: 12px; }
.principles p { color: var(--muted); font-size: 0.96rem; }
.brand-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.brand-list b { font-family: var(--font-display); font-weight: 600; margin-right: 6px; }

/* Model page */
.model-head { padding-block: 18px 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; }
.model-head > div { display: grid; gap: 12px; }
.model-head .lede { font-size: 1.1rem; color: rgba(232, 246, 248, 0.86); max-width: 60ch; }
.notice { background: rgba(255, 197, 61, 0.14); border: 1px solid rgba(255, 197, 61, 0.6); border-radius: 10px; padding: 10px 14px; font-size: 0.95rem; }
.verdict { background: rgba(232, 246, 248, 0.07); border: 1px solid rgba(232, 246, 248, 0.2); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.verdict-score { display: grid; gap: 2px; border-bottom: 1px solid rgba(232, 246, 248, 0.2); padding-bottom: 10px; }
.verdict-score b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--aqua-2); }
.verdict-score span { font-size: 0.9rem; color: rgba(232, 246, 248, 0.78); }
.price-line { font-size: 0.9rem; color: var(--sun); font-weight: 700; }
.verdict .small { color: rgba(232, 246, 248, 0.7); }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 48px; }
.chart-card { margin: 0; background: rgba(4, 22, 34, 0.45); border: 1px solid rgba(232, 246, 248, 0.14); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; align-content: start; }
.chart-card figcaption { display: grid; gap: 2px; }
.chart-card figcaption b { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.chart-card figcaption span { font-size: 0.78rem; color: rgba(232, 246, 248, 0.68); }
.chart { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.c-rated { fill: var(--aqua-2); }
.c-sun { fill: var(--sun); }
.c-ref { fill: none; stroke: var(--foam); stroke-opacity: 0.6; stroke-dasharray: 5 4; stroke-width: 1.5; }
.c-water { fill: var(--aqua-2); fill-opacity: 0.14; }
.c-grid { stroke: var(--foam); stroke-opacity: 0.12; }
.c-lab { fill: var(--foam); font-size: 12px; font-weight: 700; }
.c-lab-dark { fill: #04202c; font-size: 13px; font-weight: 800; }
.c-sub { fill: var(--foam); fill-opacity: 0.65; font-size: 10.5px; font-weight: 600; }
.c-ref-dark { stroke: #04202c; stroke-opacity: 0.7; }
.c-tiny-dark { fill: #04202c; fill-opacity: 0.8; font-size: 9.5px; font-weight: 700; }
.c-sub-dark { fill: #04202c; fill-opacity: 0.75; font-size: 11px; font-weight: 700; }
.c-zone { stroke-width: 6; stroke-linecap: round; }
.c-zone.c-on { stroke: var(--aqua-2); }
.c-zone.c-off { stroke: var(--foam); stroke-opacity: 0.22; stroke-dasharray: 4 6; }
.c-band.c-on { fill: var(--sun); }
.c-band.c-off { fill: var(--foam); fill-opacity: 0.18; }
.c-bot { fill: var(--foam); }
.c-bot-float { fill: var(--sun); }
.c-zl { font-size: 11px; font-weight: 800; }
.c-zl-on { fill: var(--foam); }
.c-zl-off { fill: var(--foam); fill-opacity: 0.45; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.two-col > div { display: grid; gap: 8px; align-content: start; }
.pros-cons { display: grid; gap: 30px; }
.pros-cons ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.pros-cons li { padding-left: 26px; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 0; top: -1px; font-weight: 800; color: var(--good); font-size: 1.15rem; }
.cons li::before { content: "!"; position: absolute; left: 6px; font-weight: 800; color: var(--warn); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.specs { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
table.specs th, table.specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs tbody th { font-weight: 700; width: 38%; }
table.data { min-width: 760px; }
table.data thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg); white-space: nowrap; }
table.data tbody th { width: auto; white-space: nowrap; }
table.data td { font-variant-numeric: tabular-nums; }
table.vs-table { min-width: 560px; }
table.vs-table tbody th { width: 26%; }

/* Prose */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }

/* VS */
.vs-band h1 { padding-top: 16px; }
.vs-band .lede { color: rgba(232, 246, 248, 0.86); max-width: 66ch; margin-top: 10px; font-size: 1.08rem; }
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 12px; padding-block: 26px 52px; align-items: start; }
.vs-side { display: grid; gap: 12px; }
.vs-side h2 { font-size: 1.25rem; }
.vs-price { color: var(--sun); font-weight: 800; font-size: 1.1rem; }
.vs-mid { align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #2a1d00; font: 700 1rem var(--font-display); }
.verdict-wide { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--aqua-2); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 8px; max-width: 80ch; }

/* FAQ */
.faq { max-width: 80ch; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-foot { margin-top: 30px; padding-block: 34px 44px; background: var(--deep); color: rgba(232, 246, 248, 0.82); }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot .brand { color: var(--foam); }
.site-foot .brand b { color: var(--aqua-2); }
.foot-brand { display: grid; gap: 8px; }
.site-foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; font-weight: 700; }
.site-foot nav a { text-decoration-color: var(--aqua-2); }
.site-foot .small { color: rgba(232, 246, 248, 0.62); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .model-head, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero-pool { max-width: 460px; }
  .charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3, .principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { margin-left: 0; width: 100%; gap: 6px 14px; font-size: 0.9rem; }
  .hero-grid { padding-block: 34px 52px; }
  .charts, .grid-3, .principles, .brand-list { grid-template-columns: minmax(0, 1fr); }
  .vs-grid { grid-template-columns: minmax(0, 1fr); }
  .vs-mid { width: 44px; height: 44px; }
  .fit-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .fit-row .pool-bar { grid-column: 1 / -1; grid-row: 2; }
  .finder-controls, .finder-results { padding: 16px; }
}
