/* ==========================================================================
   WaterKnown · design system
   Type: Bricolage Grotesque (display) · Instrument Sans (body) · Spline Sans Mono (data)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/bricolage-grotesque-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/spline-sans-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/spline-sans-mono-latin-500-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #F6FAFB;
  --surface: #FFFFFF;
  --surface-2: #EEF5F7;
  --ink: #0C2430;
  --ink-2: #47646F;
  --ink-3: #7C939D;
  --line: #DDE8EC;
  --line-strong: #C6D7DD;

  --accent: #0E7C8C;
  --accent-deep: #0A5D6A;
  --accent-soft: #E2F1F3;
  --accent-ink: #0B4C56;

  --deep: #0B2530;
  --deep-2: #10313F;
  --on-deep: #E9F3F5;
  --on-deep-2: #9DB9C2;

  --good: #1D8A52;
  --good-bg: #E4F4EB;
  --good-ink: #135F38;
  --fair: #B97B10;
  --fair-bg: #FBF1DE;
  --fair-ink: #7E5309;
  --poor: #C24334;
  --poor-bg: #FBE8E5;
  --poor-ink: #8C2F24;

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(12, 36, 48, .05), 0 4px 14px rgba(12, 36, 48, .05);
  --shadow-2: 0 2px 4px rgba(12, 36, 48, .06), 0 14px 34px rgba(12, 36, 48, .10);

  --sec-pad: clamp(4.25rem, 9vw, 7rem);
  --head-gap: clamp(2.25rem, 4.5vw, 3.5rem);
  --container: 1320px;

  --t-fast: 150ms;
  --t-base: 260ms;
  --ease-out: cubic-bezier(.22, .8, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .55rem .9rem; border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease-out); text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; color: #fff; }

/* ---------- Layout primitives ---------- */
section { width: 100%; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.sec { padding-block: var(--sec-pad); }
.sec--tint { background: var(--surface-2); }
.sec--deep { background: var(--deep); color: var(--on-deep); }

.sec-head { max-width: 72rem; margin-bottom: var(--head-gap); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); text-wrap: balance; }
.sec-head .lede { color: var(--ink-2); font-size: 1.1rem; margin-top: 1rem; }
.sec--deep .sec-head .lede { color: var(--on-deep-2); }

.kicker {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec--deep .kicker { color: #6EC6D4; }
.sec--deep .kicker::before { background: #6EC6D4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 6px 18px rgba(14, 124, 140, .28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn--sm { padding: .5rem 1rem; font-size: .92rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 250, 251, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }
.nav {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .98rem;
  padding: .5rem .8rem; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.nav-cta { margin-left: .5rem; }
.nav-links a.nav-cta { color: #fff; background: var(--accent); }
.nav-links a.nav-cta:hover { color: #fff; background: var(--accent-deep); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    display: none; box-shadow: var(--shadow-2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75rem .9rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6rem) var(--sec-pad); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 85% -12%, rgba(14, 124, 140, .10), transparent 60%),
    radial-gradient(40rem 24rem at -10% 100%, rgba(14, 124, 140, .07), transparent 60%);
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); font-weight: 700; text-wrap: balance; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); margin-top: 1.25rem; max-width: 52rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-proof { margin-top: 1.9rem; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .lede { max-width: 52rem; }
}

/* ---------- Report card (signature) ---------- */
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.report-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); padding: .4rem; gap: .3rem; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.report-tab {
  flex: 1; border: none; background: transparent; font-family: var(--font-body); font-weight: 600;
  font-size: .9rem; color: var(--ink-2); padding: .55rem .5rem; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.report-tab:hover { color: var(--ink); }
.report-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.report-body { padding: 1.35rem 1.5rem 1.5rem; }
.report-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.report-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.report-sub { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin-top: .25rem; }

.score-chip {
  display: inline-flex; align-items: baseline; gap: .3rem; font-family: var(--font-mono);
  border-radius: var(--r-pill); padding: .32rem .75rem; font-size: 1rem; font-weight: 500; flex: none;
}
.score-chip small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.score-chip.good { background: var(--good-bg); color: var(--good-ink); }
.score-chip.fair { background: var(--fair-bg); color: var(--fair-ink); }
.score-chip.poor { background: var(--poor-bg); color: var(--poor-ink); }

/* readout rows: the lab-strip motif */
.readout { display: grid; gap: .72rem; }
.readout-row { display: grid; grid-template-columns: 8.2rem 1fr auto; align-items: center; gap: .8rem; }
.readout-row .lab { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout-row .val { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); text-align: right; white-space: nowrap; }
.bar { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px;
  background: var(--accent);
  transition: width 700ms var(--ease-out);
}
.bar i.good { background: var(--good); }
.bar i.fair { background: var(--fair); }
.bar i.poor { background: var(--poor); }
.bar .limit { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink-3); opacity: .55; }
.report-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.report-panel[hidden] { display: none; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 1.6rem 1.5rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: .95rem; }
.stat .unit { font-family: var(--font-mono); font-size: .95rem; color: var(--accent-deep); margin-left: .15rem; font-weight: 500; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.card p { color: var(--ink-2); font-size: .98rem; }

.step-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-deep); font-weight: 500; letter-spacing: .1em; margin-bottom: .9rem; }
.card .icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .icon svg { width: 22px; height: 22px; }

/* ---------- Product cards ---------- */
.product { padding: 1.45rem 1.45rem 1.35rem; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.product .type { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.dial { position: relative; width: 62px; height: 62px; flex: none; }
.dial svg { width: 62px; height: 62px; transform: rotate(-90deg); }
.dial .track { stroke: var(--surface-2); }
.dial .fill { stroke-linecap: round; transition: stroke-dashoffset 800ms var(--ease-out); }
.dial.good .fill { stroke: var(--good); }
.dial.fair .fill { stroke: var(--fair); }
.dial.poor .fill { stroke: var(--poor); }
.dial b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; }
.product .readout { margin-top: .35rem; }
.product .readout-row { grid-template-columns: 6.6rem 1fr auto; }
.product-foot { margin-top: 1.05rem; padding-top: .9rem; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.badge { display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap; font-family: var(--font-mono); font-size: .72rem; padding: .28rem .65rem; border-radius: var(--r-pill); }
.badge svg { width: 12px; height: 12px; }
.badge.tested { background: var(--accent-soft); color: var(--accent-ink); }
.badge.untested { background: var(--fair-bg); color: var(--fair-ink); }
.product-foot .more { font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.filter-bar .label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: .35rem; }
.chip {
  font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: .42rem .95rem; cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.search-wrap { position: relative; max-width: 30rem; }
.search-wrap svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search-input {
  width: 100%; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: .85rem 1.2rem .85rem 2.7rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.search-input::placeholder { color: var(--ink-3); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 124, 140, .14); }

.empty-state {
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 2.6rem 1.6rem;
  text-align: center; color: var(--ink-2); background: var(--surface);
}
.empty-state b { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); display: block; margin-bottom: .4rem; }
.empty-state[hidden] { display: none; }

/* ---------- Score scale ---------- */
.scale { margin-top: .6rem; }
.scale-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--poor) 0%, var(--fair) 45%, var(--good) 80%, #17A05E 100%); }
.scale-marks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin-top: .55rem; }
.scale-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.1rem; font-size: .92rem; color: var(--ink-2); }
.scale-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: .45rem; }

/* ---------- Mission band ---------- */
.mission p.big { font-family: var(--font-display); font-size: clamp(1.45rem, 2.9vw, 2.1rem); line-height: 1.34; font-weight: 500; letter-spacing: -.01em; max-width: 54rem; }
.mission .sig { margin-top: 2rem; font-family: var(--font-mono); font-size: .82rem; color: var(--on-deep-2); }

/* ---------- People ---------- */
.person { align-items: flex-start; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent-soft), #CBE7EB); color: var(--accent-ink);
  margin-bottom: 1rem;
}
.person h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.person .role { font-family: var(--font-mono); font-size: .76rem; color: var(--accent-deep); margin-bottom: .7rem; }
.person p { font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 64rem; margin-inline: auto; display: grid; gap: .9rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-fast) var(--ease-out); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-deep); font-size: 1.2rem; transition: rotate var(--t-fast) var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq .faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-wrap: balance; }
.cta-band .lede { color: var(--on-deep-2); max-width: 52rem; margin: 1rem auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Tables (methodology) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.data-table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.data-table th, .data-table td { text-align: left; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.data-table th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num { font-family: var(--font-mono); font-size: .85rem; white-space: nowrap; }

/* ---------- Prose pages ---------- */
.prose { max-width: 68rem; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-row .hint { font-size: .85rem; color: var(--ink-3); }
.input, textarea.input {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: .8rem 1rem; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
textarea.input { resize: vertical; min-height: 130px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 124, 140, .14); }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-success { background: var(--good-bg); color: var(--good-ink); border-radius: var(--r-md); padding: 1rem 1.2rem; font-weight: 500; }
.form-success[hidden] { display: none; }

/* newsletter (footer) */
.newsletter { display: flex; gap: .6rem; max-width: 26rem; }
.newsletter .input { background: var(--deep-2); border-color: #234653; color: var(--on-deep); border-radius: var(--r-pill); padding: .7rem 1.1rem; }
.newsletter .input::placeholder { color: var(--on-deep-2); }
.newsletter .input:focus { border-color: #6EC6D4; box-shadow: 0 0 0 4px rgba(110, 198, 212, .18); }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer .brand { color: var(--on-deep); }
.site-footer .tagline { margin-top: 1rem; max-width: 18rem; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--on-deep); text-decoration: none; }
.footer-col a:hover { color: #6EC6D4; }
.footer-bottom { border-top: 1px solid #1D3D4A; padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-family: var(--font-mono); font-size: .76rem; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(3rem, 6.5vw, 4.5rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; text-wrap: balance; }
.page-hero .lede { color: var(--ink-2); font-size: 1.12rem; max-width: 72rem; margin-top: 1rem; }
.page-hero + .sec { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.err-code { font-family: var(--font-mono); color: var(--accent-deep); font-size: .9rem; letter-spacing: .18em; margin-bottom: 1rem; }
.err-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr !important; } .about-grid .card { position: static !important; } }

/* ---- Citation layer: source lines on data cards ---- */
.src-foot { margin-top: 1.05rem; padding-top: .9rem; border-top: 1px dashed var(--line); display: grid; gap: .5rem; }
.src-line { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: .8rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); }
.src-line .src-what { white-space: nowrap; }
.src-line a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); text-align: right; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.src-line a:hover { border-bottom-color: var(--accent); }
.src-note { font-size: .82rem; color: var(--ink-2); line-height: 1.5; margin: .55rem 0 0; }
.flag { display: inline-flex; max-width: 100%; align-items: flex-start; gap: .38rem; white-space: normal; font-family: var(--font-mono); font-size: .72rem; padding: .2rem .5rem; border-radius: 6px; background: var(--fair-bg); color: var(--fair-ink); margin-top: .55rem; }
.samp-year { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-left: .35rem; }
.data-pending { opacity: .72; }
.data-pending .score-chip { background: var(--line); color: var(--ink-2); }

/* city grid: long utility names and flag text must never force overflow */
.product .product-top h3 { overflow-wrap: anywhere; }
.product .product-top .type { overflow-wrap: anywhere; }
.product .readout-row { grid-template-columns: minmax(0,5.6rem) minmax(0,1fr) auto; }
.product .readout-row .val { overflow-wrap: anywhere; white-space: normal; text-align: right; }
.flag { overflow-wrap: anywhere; }
.src-line span:last-child { overflow-wrap: anywhere; text-align: right; }

/* equal-height city cards with the citation pinned to the bottom */
#city-grid { align-items: stretch; }
#city-grid .card.product { display: flex; flex-direction: column; }
#city-grid .card.product .src-foot { margin-top: auto; }
#city-grid .card.product .flag { align-self: flex-start; }
.samp-year { white-space: nowrap; }

/* ---- City detail pages ---- */
.crumbs { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-2); }
.verdict { display: flex; align-items: flex-start; gap: 1.15rem; margin-top: 1.2rem; max-width: 46rem; }
.verdict .score-chip { flex: none; font-size: 1.5rem; padding: .5rem .85rem; }
.prose-wide { max-width: 64rem; }
.prose-wide h2 { margin: 2.2rem 0 .6rem; font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.prose-wide h2:first-child { margin-top: 0; }
.prose-wide p { color: var(--ink-2); line-height: 1.68; margin: 0 0 .9rem; }
@media (max-width: 620px) { .verdict { flex-direction: column; gap: .8rem; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-wrap table.data { min-width: 34rem; }
@media (max-width: 520px) { .table-wrap table.data { min-width: 30rem; font-size: .86rem; } }
.prose-wide { max-width: 72rem; margin-left: 0; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }
.byline { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); margin-top: 1.1rem; }
.prose-wide .table-wrap { margin: 1.3rem 0 1.6rem; }
.prose-wide strong { color: var(--ink); font-weight: 600; }
a.card.product h3 { color: var(--ink); }
a.card.product:hover h3 { color: var(--accent-ink); }
.grid-auto { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: stretch; }
.grid-auto .card.product { display: flex; flex-direction: column; }
.grid-auto .card.product .src-foot { margin-top: auto; }
.foot-bottom p a { color: var(--on-deep-2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); }
.foot-bottom p a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }

/* ==========================================================================
   Liquid glass
   Glass only reads as glass when there is something behind it to refract, so
   an ambient gradient field sits under the page and the panels sample it via
   backdrop-filter. Each surface gets three layers: a translucent fill, a
   light-catching top border, and a soft ambient shadow.
   ========================================================================== */

:root {
  --glass-fill: rgba(255,255,255,.58);
  --glass-fill-strong: rgba(255,255,255,.74);
  --glass-stroke: rgba(255,255,255,.75);
  --glass-edge: rgba(12,36,48,.07);
  --glass-blur: saturate(180%) blur(20px);
  --glass-shadow: 0 1px 2px rgba(12,36,48,.04), 0 12px 32px -12px rgba(12,36,48,.16);
  --glass-shadow-lift: 0 2px 6px rgba(12,36,48,.06), 0 22px 48px -16px rgba(12,36,48,.22);
}

/* ambient field: soft colour pools the glass has something to pick up */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 12% -8%, rgba(14,124,140,.13), transparent 62%),
    radial-gradient(40rem 30rem at 92% 6%, rgba(29,138,82,.09), transparent 60%),
    radial-gradient(52rem 38rem at 76% 88%, rgba(14,124,140,.10), transparent 64%),
    radial-gradient(34rem 26rem at 4% 72%, rgba(110,198,212,.10), transparent 60%);
}

/* the glass primitive */
.card,
.report,
.stats,
.faq details,
.search-input,
.chip,
.badge,
.score-chip {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1), background .28s ease;
}
.card:hover {
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-shadow-lift), inset 0 1px 0 rgba(255,255,255,.9);
}
a.card:hover { transform: translateY(-2px); }

.report {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow-lift), inset 0 1px 0 var(--glass-stroke);
}

.stats {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
}

.faq details {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
}
.faq details[open] { background: var(--glass-fill-strong); }

.search-input {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
}
.search-input:focus {
  background: rgba(255,255,255,.9);
  box-shadow: var(--glass-shadow-lift), inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 3px var(--accent-soft);
}

/* header: heavier glass, and it thickens once the page scrolls under it */
.site-header {
  background: rgba(246,250,251,.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(246,250,251,.78);
  border-bottom-color: var(--glass-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(12,36,48,.35);
}

/* pills and chips read as small pieces of the same material */
.chip {
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-stroke);
}
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px -8px rgba(12,36,48,.5);
}

.nav-cta {
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 20px -10px rgba(14,124,140,.7);
}

/* dark sections get the inverse treatment: glass over deep water */
.sec--deep { position: relative; overflow: hidden; }
.sec--deep::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 82% -18%, rgba(110,198,212,.20), transparent 62%),
    radial-gradient(30rem 22rem at 8% 118%, rgba(14,124,140,.26), transparent 60%);
}
.sec--deep > .container { position: relative; z-index: 1; }

/* tinted sections: make the tint translucent so the field shows through */
.sec--tint { background: rgba(232,242,244,.55); }

@media (prefers-reduced-transparency: reduce) {
  .card, .report, .stats, .faq details, .search-input, .chip, .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff;
  }
}

/* wordmark: tighter lockup, mark given a touch of dimension */
.brand { display: inline-flex; align-items: center; gap: .58rem; text-decoration: none; }
.brand .mark { width: 1.55rem; height: 1.55rem; flex: none; filter: drop-shadow(0 2px 5px rgba(14,124,140,.30)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.018em; color: var(--ink); }
.site-footer .brand-name { color: var(--on-deep); }

/* ---- Subscribe modal ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }  /* the hidden attribute must win over display:grid */
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(11,37,48,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s ease; }
.modal.is-open::before { opacity: 1; }
.modal-panel {
  position: relative; width: min(30rem, 100%);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-edge); border-radius: var(--r-lg);
  box-shadow: 0 24px 70px -20px rgba(11,37,48,.5), inset 0 1px 0 rgba(255,255,255,.9);
  padding: clamp(1.5rem, 4vw, 2.1rem);
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .26s cubic-bezier(.2,.7,.3,1), transform .26s cubic-bezier(.2,.7,.3,1);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: .7rem; right: .7rem; width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.modal-close:hover { background: rgba(12,36,48,.06); color: var(--ink); }
.modal-panel .kicker { margin-bottom: .5rem; }
.modal-panel h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); letter-spacing: -.015em; }
.modal-panel p { color: var(--ink-2); margin: .6rem 0 1.1rem; font-size: .96rem; line-height: 1.6; }
.modal-note { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); margin-top: 1rem; }
#beehiiv-host { min-height: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  .modal::before, .modal-panel { transition: none; }
}

/* ---- Not-yet-tested disclosure banner ---- */
.disclosure {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: rgba(185,123,16,.09);
  border: 1px solid rgba(185,123,16,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.disclosure svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--fair-ink); margin-top: .1rem; }
.disclosure p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.disclosure strong { color: var(--fair-ink); }

/* ---- Affiliate disclosure (FTC requires clear and conspicuous placement) ---- */
.aff-disclosure {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 1.1rem; border-radius: var(--r-md);
  background: rgba(14,124,140,.07);
  border: 1px solid rgba(14,124,140,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  font-size: .88rem; line-height: 1.6; color: var(--ink-2);
}
.aff-disclosure svg { flex: none; width: 1.05rem; height: 1.05rem; color: var(--accent-ink); margin-top: .18rem; }
.aff-disclosure p { margin: 0; }
.aff-disclosure strong { color: var(--accent-ink); }
.aff-disclosure a { color: var(--accent-ink); }
.aff-inline {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--ink-3); text-transform: uppercase; margin-left: .4rem;
}
.footer-legal { font-size: .82rem; color: var(--on-deep-2); margin-top: .9rem; line-height: 1.6; max-width: 34rem; }

.sec--flush { padding-block: 0 0; }
#product-grid .card.product, .grid-3 .card.product { display: flex; flex-direction: column; }
.card.product .buy-row { margin-top: auto; padding-top: 1rem; }
.card.product .src-foot { margin-top: 1rem; }


/* ==========================================================================
   Filter directory
   Full-width rows, not a table: the table auto-sized to content and collapsed
   into the left half of the screen. Each row has two exits, a review link and
   a priced call to action, with the action given real weight.
   ========================================================================== */
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem; text-decoration: none; color: var(--ink);
  background: var(--glass-fill); border: 1px solid var(--glass-edge);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-stroke);
  padding: .45rem .8rem; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.cat-nav a:hover { background: #fff; transform: translateY(-1px); }
.cat-nav a span { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }

.cat-block { margin-bottom: 3rem; scroll-margin-top: 5.5rem; }
.cat-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .5rem; }
.cat-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.dir-n { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }

.filter-list { display: grid; gap: .55rem; }
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) auto;
  align-items: center; gap: 1.25rem;
  padding: .95rem 1.15rem;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-stroke);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.filter-row:hover {
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-1px);
}

.fr-main { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.fr-name { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.02rem; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
a.fr-name:hover { color: var(--accent-ink); text-decoration: underline; }
.fr-badge { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .14rem .42rem; border-radius: 4px; }
.fr-status { font-family: var(--font-mono); font-size: .74rem; }
.fr-good { color: var(--good-ink); }
.fr-fair { color: var(--fair-ink); }
.fr-poor { color: var(--poor-ink); }
.fr-pending { color: var(--ink-3); }

.fr-meta { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .88rem; }
.fr-stars { color: #E0A419; letter-spacing: .04em; font-size: .92rem; }
.fr-rating { font-weight: 600; color: var(--ink); }
.fr-count { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); }
.fr-price { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); margin-left: .2rem; }

.fr-act { justify-self: end; }
.fr-buy { white-space: nowrap; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -8px rgba(14,124,140,.75); }
.fr-buy::after { content: " \2192"; }

@media (max-width: 900px) {
  .filter-row { grid-template-columns: minmax(0,1fr) auto; gap: .7rem 1rem; }
  .fr-meta { grid-column: 1; }
  .fr-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 560px) {
  .filter-row { grid-template-columns: 1fr; }
  .fr-act { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .fr-buy { display: block; text-align: center; }
}

.dir-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.dir-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.dir-toggle input { width: 1rem; height: 1rem; accent-color: var(--accent); cursor: pointer; }
.dir-result { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); margin-left: auto; }
.cat-block[hidden], .filter-row[hidden] { display: none !important; }

/* ==========================================================================
   Hero search (tap water)
   The search is the primary action on this page, so it gets the weight of one:
   a labelled, oversized field on its own glass panel, with popular cities as
   one-tap shortcuts and a live result count.
   ========================================================================== */
.hero-search {
  margin-top: 2rem; max-width: 46rem;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-lift), inset 0 1px 0 var(--glass-stroke);
  padding: clamp(1.2rem, 3vw, 1.7rem);
}
.hero-search-label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink);
  margin-bottom: .75rem; letter-spacing: -.01em;
}
.hero-search-box { position: relative; display: flex; align-items: center; }
.hero-search-box svg {
  position: absolute; left: 1.1rem; width: 22px; height: 22px;
  color: var(--accent); pointer-events: none;
}
.hero-search-input {
  width: 100%; font: inherit; font-size: clamp(1.02rem, 2vw, 1.15rem);
  padding: 1.05rem 1.1rem 1.05rem 3.1rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(12,36,48,.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hero-search-input::placeholder { color: var(--ink-3); }
.hero-search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 2px rgba(12,36,48,.04);
}
.hero-search-count {
  position: absolute; right: 1.2rem; font-family: var(--font-mono);
  font-size: .74rem; color: var(--ink-3); pointer-events: none;
}
.hero-search-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  margin-top: .95rem; font-size: .86rem;
}
.hero-search-quick > span { color: var(--ink-3); font-family: var(--font-mono); font-size: .74rem; margin-right: .2rem; }
.hero-search-quick button {
  font: inherit; font-size: .84rem; cursor: pointer;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: .34rem .75rem;
  transition: background .18s ease, transform .18s ease;
}
.hero-search-quick button:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.hero-search-note { margin: 1rem 0 0; font-size: .84rem; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 560px) {
  .hero-search-count { display: none; }
  .hero-search-quick { gap: .4rem; }
}

/* ghost button on dark bands: the plain .btn--ghost inherits dark ink and
   disappears against sec--deep */
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: #fff; }
.sec--deep .btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.sec--deep .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: #fff; }

/* ---- National lookup results ---- */
.lookup-results { display: grid; gap: 1.6rem; }
.lk-group { display: grid; gap: .7rem; }
.lk-city { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 0 0 .1rem; letter-spacing: -.01em; }
.lk-card {
  background: var(--glass-fill); border: 1px solid var(--glass-edge);
  border-radius: var(--r-md); padding: 1.1rem 1.25rem;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
}
.lk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .8rem; }
.lk-head h3 { margin: 0; font-size: 1.04rem; }
.lk-pop { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.lk-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .55rem 1.5rem; }
.lk-metric { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline;
  border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
.lk-lab { font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.lk-val { font-family: var(--font-mono); font-size: .8rem; text-align: right; }
.lk-val em { font-style: normal; color: var(--ink-3); }
.lk-good { color: var(--good-ink); }
.lk-fair { color: var(--fair-ink); }
.lk-poor { color: var(--poor-ink); }
.lk-none { color: var(--ink-3); }
.lk-act { margin-top: .9rem; }

/* ---- Filter finder ---- */
.ff-panel {
  background: var(--glass-fill-strong); border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg); padding: clamp(1.2rem,3vw,1.8rem); margin-bottom: 1.2rem;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-stroke);
}
.ff-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.1rem; }
.ff-head h2 { margin: 0; font-size: clamp(1.15rem,2.2vw,1.4rem); }
.ff-needs { display: grid; gap: .8rem; }
.ff-need { border-left: 3px solid var(--fair-ink); padding: .1rem 0 .1rem 1rem; }
.ff-found, .ff-cert { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin-bottom: .35rem; font-size: .96rem; }
.ff-tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--fair-bg); color: var(--fair-ink); padding: .16rem .45rem; border-radius: 4px;
}
.ff-tag-go { background: var(--accent-soft); color: var(--accent-ink); }
.ff-sub { margin: 1.6rem 0 .8rem; font-size: 1.05rem; }
.ff-picks { display: grid; gap: .55rem; }
.ff-pick {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .85rem 1rem; border: 1px solid var(--glass-edge); border-radius: var(--r-md);
  background: rgba(255,255,255,.55);
}
.ff-pick .lk-pop { display: block; margin-top: .18rem; }
.ff-clear { border-left: 3px solid var(--good-ink); padding: .1rem 0 .1rem 1rem; }
.ff-clear h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--good-ink); }
.ff-clear p { color: var(--ink-2); margin: 0 0 .7rem; line-height: 1.6; }
