/* ============================================================
   PFASWAP — Vol. 01 identity
   Palette: clean water + chlorophyll. Cool, green-biased.
   Type: Fraunces (voice) · Archivo (system) · Hanken (body)
   ============================================================ */

:root {
  /* Brand */
  --deep-pine: #12291F;
  --pine:      #1B4D37;
  --fern:      #2E7A54;
  --chloro:    #5FB06F;
  --brass:     #A9843F;
  --mist:      #E7ECE3;

  /* Surfaces — neutrals biased cool/green, never warm */
  --ground:    #E7ECE3;
  --surface:   #F2F5EF;
  --raised:    #FAFCF8;
  --ink:       #12291F;
  --ink-2:     #33493C;
  --muted:     #62766A;
  --line:      #C6D2C2;
  --line-2:    #D6DFD1;
  --on-pine:   #EDF3EA;
  --pine-hover:#12291F;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --util:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;

  --rail-w: 268px;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --measure: 64ch;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:  #0D1D15;
    --surface: #12281D;
    --raised:  #173225;
    --ink:     #E6EFE6;
    --ink-2:   #C4D6C6;
    --muted:   #8DA596;
    --line:    #26432F;
    --line-2:  #1D3626;
    --pine:    #8CCFA5;
    --fern:    #6FC28D;
    --chloro:  #7FD48F;
    --brass:   #D3A968;
    --on-pine: #0D1D15;
    --pine-hover: #B6E4C6;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground:  #0D1D15;
  --surface: #12281D;
  --raised:  #173225;
  --ink:     #E6EFE6;
  --ink-2:   #C4D6C6;
  --muted:   #8DA596;
  --line:    #26432F;
  --line-2:  #1D3626;
  --pine:    #8CCFA5;
  --fern:    #6FC28D;
  --chloro:  #7FD48F;
  --brass:   #D3A968;
  --on-pine: #0D1D15;
  --pine-hover: #B6E4C6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; background: var(--ground); }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine); text-underline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--chloro);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--pine);
  color: var(--on-pine);
  font-family: var(--util);
  font-size: 0.8rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Lockup ───────────────────────────────────────────────── */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--ink);
}

.lockup .mark { display: block; flex-shrink: 0; color: var(--pine); }

/* Fraunces, uppercase, 0.42em tracking. Never re-spaced. */
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.06em;
  color: var(--ink);
}

.member-badge {
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.26rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.member-badge.is-on { color: var(--brass); border-color: var(--brass); }

/* ── Shell ────────────────────────────────────────────────── */

.shell { display: block; }
.main { display: block; }

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem var(--pad);
  border-bottom: 1px solid var(--line);
}
.topbar .member-badge { margin-left: auto; }

.rail { display: none; }

#app {
  display: block;
  padding: 0 var(--pad);
  max-width: 1080px;
  margin: 0 auto;
}

#app:focus { outline: none; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.hero.is-compact {
  border-bottom: none;
  padding-bottom: 1.2rem;
}

.eyebrow {
  font-family: var(--util);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero h1:focus { outline: none; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--pine); }

.hero-sub {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--util);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.92rem 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover { background: var(--pine-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }

.linklike {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.form-error {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--brass);
  max-width: 40ch;
}

/* ── Blocks ───────────────────────────────────────────────── */

.block {
  padding: clamp(2.4rem, 5.5vw, 3.8rem) 0;
  border-bottom: 1px solid var(--line);
}
.block:last-child { border-bottom: none; }
.block.is-flush { border-bottom: none; padding-top: 1rem; }

.block-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.block-num {
  font-family: var(--util);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.block h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.block-purpose {
  margin-bottom: 1.9rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-more {
  margin-top: 1rem;
  font-family: var(--util);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Signal meter ─────────────────────────────────────────── */

.signal { display: inline-flex; gap: 2px; align-items: center; flex-shrink: 0; }

.signal i {
  display: block;
  width: 4px;
  height: 13px;
  background: var(--line);
  border-radius: 1px;
}
.signal i.on { background: var(--pine); }

.signal-text {
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.signal-text.is-first { color: var(--pine); }

.family-tags { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }

/* Each family carries its own clock, because one object can hold
   families that behave completely differently once they are in you. */
.family-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--line);
  padding: 0.22rem 0.45rem;
  white-space: nowrap;
}

.family-name {
  font-family: var(--util);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.family-clock {
  font-family: var(--util);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
}

/* ── Two clocks ───────────────────────────────────────────── */

.clocks {
  margin-top: 2.2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.clocks-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.45rem;
}

.clocks-intro {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.clocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.clock { background: var(--surface); padding: 1.35rem 1.3rem; }

.clock-family {
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* The one contrast that matters gets the display face and nothing else. */
.clock-time {
  font-family: var(--display);
  font-weight: 300;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--pine);
  margin-bottom: 0.75rem;
}

.clock-body { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }

.clocks-line {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--chloro);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

.clocks-foot {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

/* ── Checks (the standard) ────────────────────────────────── */

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.check { background: var(--surface); padding: 1.3rem 1.25rem; }

.check-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--util);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.check h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.check p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }

.seal-line {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* ── Benefits ─────────────────────────────────────────────── */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem 2.2rem;
}

.benefit h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--chloro);
  text-wrap: balance;
}

.benefit p { font-size: 0.93rem; color: var(--ink-2); line-height: 1.58; }

/* ── Evidence ─────────────────────────────────────────────── */

.evidence {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ev {
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr;
  gap: 0.35rem 1.4rem;
  padding: 1.15rem 1.3rem;
  align-items: baseline;
}

.ev-fig {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}

.ev-text { font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

.ev-src {
  grid-column: 2;
  font-family: var(--util);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.ev-src a { color: var(--muted); text-decoration: none; }
.ev-src a:hover { color: var(--pine); text-decoration: underline; }

/* ── Ladder ───────────────────────────────────────────────── */

.ladder { list-style: none; padding: 0; border-top: 1px solid var(--line); }

.ladder > li { display: block; }

.rung {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0 1rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  padding: 1.05rem 0.5rem 1.05rem 0.15rem;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.14s;
}

a.rung:hover { background: var(--surface); }

/* Locked rows carry no detail line, so they align centred and sit
   tighter — a compact placeholder rather than a hollow full row. */
.rung.is-locked {
  align-items: center;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: var(--muted);
}

.rung.is-locked .rung-title { color: var(--muted); }

.rung.is-locked .rung-meta {
  flex-direction: row;
  align-items: center;
  padding-top: 0;
}

.rung-rank {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rung-body { min-width: 0; }

.rung-room {
  display: block;
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.rung-title {
  display: block;
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.rung-detail {
  display: block;
  font-size: 0.89rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 0.22rem;
  max-width: 52ch;
}

.rung-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  padding-top: 0.25rem;
}

.lockmark {
  font-family: var(--util);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ── Gate ─────────────────────────────────────────────────── */

.gate {
  margin-top: 1.5rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--brass);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.1rem 1.8rem;
}

.gate-copy { flex: 1 1 280px; min-width: 0; }

.gate h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.gate p { font-size: 0.93rem; color: var(--ink-2); max-width: 46ch; }

.gate-action { flex: 0 0 auto; }

.gate-note {
  margin-top: 0.5rem;
  font-family: var(--util);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ── Rooms ────────────────────────────────────────────────── */

.rooms { border-top: 1px solid var(--line); }

.room-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 1rem 0.35rem;
  min-height: 48px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--util);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.room-head:hover { color: var(--pine); }

.chev {
  color: var(--muted);
  font-size: 0.7rem;
  transition: transform 0.18s;
}
.room-head[aria-expanded="true"] .chev { transform: rotate(90deg); }

.room-name { flex: 1; }

.room-count {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.room-panel { border-bottom: 1px solid var(--line-2); padding-bottom: 0.4rem; }

.room-blurb {
  padding: 0.8rem 0.35rem 0.5rem 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 56ch;
}

.room-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  align-items: center;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  padding: 0.72rem 0.35rem 0.72rem 1.4rem;
  min-height: 48px;
  border-top: 1px solid var(--line-2);
}

.room-item:hover { background: var(--surface); }

.room-item-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.room-item-rank {
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.room-item-detail {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ── Detail ───────────────────────────────────────────────── */

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--util);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 1.6rem 0 0;
  min-height: 44px;
}
.backlink:hover { color: var(--pine); }

.detail-head { padding: 0.6rem 0 1.5rem; border-bottom: 1px solid var(--line); }

.detail-room {
  font-family: var(--util);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 0.7rem;
}

.detail-head h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.024em;
  max-width: 16ch;
  text-wrap: balance;
}
.detail-head h1:focus { outline: none; }

.detail-signal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 1.05rem;
}

.detail-hint {
  margin-top: 0.65rem;
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: var(--measure);
}

.detail-grid { display: grid; grid-template-columns: 1fr; }

.dsec { padding: 1.9rem 0; border-bottom: 1px solid var(--line-2); }
.dsec:last-child { border-bottom: none; }

.dsec h2 {
  font-family: var(--util);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.dsec p { max-width: var(--measure); line-height: 1.65; }

.swaps { list-style: none; padding: 0; display: grid; gap: 0.9rem; max-width: var(--measure); }

.swaps li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0 0.5rem;
  align-items: baseline;
  font-size: 0.99rem;
  line-height: 1.55;
}

/* The chlorophyll leaf, used as the connective motif. */
.swaps li::before {
  content: '';
  width: 9px;
  height: 11px;
  background: var(--chloro);
  clip-path: polygon(50% 0%, 100% 38%, 78% 100%, 22% 100%, 0% 38%);
  transform: translateY(2px);
}

.muted-note { font-size: 0.92rem; color: var(--muted); max-width: var(--measure); }

/* ── Products ─────────────────────────────────────────────── */

.picks { display: grid; gap: 0.65rem; max-width: var(--measure); }

.pick {
  display: block;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.pick-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 0.95rem;
  align-items: start;
}

.pick-price {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  padding-top: 0.05rem;
}

.pick-tag {
  display: inline-block;
  font-family: var(--util);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.22rem;
}

/* Trade-off row — the honest part. Never collapsed into a score. */
.pick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-2);
}

.ev-meter { display: inline-flex; align-items: center; gap: 0.4rem; }

.ev-name,
.fact {
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.fact b {
  display: block;
  font-family: var(--util);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.ev-name {
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
}

.fact-wide { flex: 1 1 22ch; max-width: 46ch; }

.pick-unpaid {
  color: var(--fern);
  border-color: var(--fern);
}

.pick:hover { border-color: var(--pine); background: var(--raised); }

.pick-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--ground);
  border: 1px solid var(--line);
}

.pick-seal {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brass);
  background: var(--ground);
}

.pick-body { min-width: 0; }
.pick-name { display: block; font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.pick-why { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.12rem; line-height: 1.45; }

.pick-flag {
  display: inline-block;
  margin-top: 0.32rem;
  font-family: var(--util);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 0.12rem 0.32rem;
}

.price-tier {
  display: block;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.price-today {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine);
  white-space: nowrap;
}
.pick-deal {
  display: block;
  width: fit-content;
  margin: 0 0 0.3rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--util);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid var(--pine);
}
.price-key {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: var(--measure);
}

.pick-limit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.pick-limit b {
  display: block;
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A standalone fact worth more than any product card on the page. */
.callout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  background: var(--surface);
  max-width: var(--measure);
}
.callout h2 { font-size: 1rem; margin: 0 0 0.35rem; }
.callout p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); margin: 0; }

.pick-go { font-size: 0.85rem; color: var(--muted); }
.pick:hover .pick-go { color: var(--pine); }

.cat-note {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* ── Comparison ───────────────────────────────────────────── */

.compare-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.9rem;
}

.compare-sort-label {
  font-family: var(--util);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.15rem;
}

.chip {
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.4rem 0.62rem;
  min-height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip:hover { border-color: var(--pine); color: var(--pine); }

.chip[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--on-pine);
}

.compare-scroll { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare thead th {
  font-family: var(--util);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  background: var(--raised);
}

.compare td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.45;
}

.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover { background: var(--raised); }

.c-tag {
  display: inline-block;
  font-family: var(--util);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

.c-name {
  display: block;
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.c-name:hover { color: var(--pine); text-decoration: underline; }
.c-go { color: var(--muted); }

.c-why {
  display: block;
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.22rem;
  max-width: 34ch;
}

.compare .c-ev {
  display: block;
  font-family: var(--util);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin-top: 0.3rem;
}

.c-price {
  font-family: var(--display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.c-lasts { color: var(--ink-2); max-width: 18ch; }
.c-trade { color: var(--ink-2); max-width: 34ch; }

.compare .pick-flag { margin-top: 0.35rem; }

/* Column widths only apply once there is room for columns. */
@media (min-width: 760px) {
  .compare th:nth-child(1), .compare td:nth-child(1) { width: 25%; }
  .compare th:nth-child(2), .compare td:nth-child(2) { width: 16%; }
  .compare th:nth-child(3), .compare td:nth-child(3) { width: 9%; }
  .compare th:nth-child(4), .compare td:nth-child(4) { width: 17%; }
  .compare th:nth-child(5), .compare td:nth-child(5) { width: 33%; }
}

/* Below that, the same DOM reflows into stacked rows — no table
   scrolling sideways on a phone, and no duplicate markup. */
@media (max-width: 759px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; left: -9999px; }

  .compare tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 0.7rem;
  }
  .compare tbody tr:last-child { border-bottom: none; }

  .compare td {
    border-bottom: none;
    padding: 0.3rem 0.85rem;
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0 0.8rem;
    align-items: baseline;
  }

  .compare td[data-label="Product"] { grid-template-columns: 1fr; padding-top: 0.75rem; }
  .compare td[data-label="Product"]::before { content: none; }

  .compare td::before {
    content: attr(data-label);
    font-family: var(--util);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .c-why, .c-lasts, .c-trade { max-width: none; }

  .c-evwrap { display: inline-flex; align-items: center; gap: 0.5rem; }
  .compare .c-ev { margin-top: 0; }
}

/* ── Evidence legend ──────────────────────────────────────── */

.ev-legend {
  margin-top: 0.9rem;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.ev-legend > summary {
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-family: var(--util);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ev-legend > summary::-webkit-details-marker { display: none; }

.ev-legend > summary::before {
  content: '+';
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted);
}

.ev-legend[open] > summary::before { content: '\2212'; }
.ev-legend > summary:hover { color: var(--ink); }

.ev-legend dl {
  margin: 0;
  padding: 0 0.9rem 0.3rem;
  border-top: 1px solid var(--line-2);
}

.ev-legend-row {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) 1fr;
  gap: 0.2rem 1.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}

.ev-legend-row:last-child { border-bottom: none; }

.ev-legend dt { display: flex; align-items: center; gap: 0.5rem; }

.ev-legend-name {
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
}

.ev-legend dd {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
}

.ev-legend-foot {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 66ch;
}

@media (max-width: 759px) {
  .ev-legend-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

.provisional {
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--brass);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: var(--measure);
  line-height: 1.5;
}

.fine-print {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: var(--measure);
  line-height: 1.5;
}

/* ── Plan ─────────────────────────────────────────────────── */

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tier { background: var(--surface); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.tier.is-paid { background: var(--raised); }

.tier-name {
  font-family: var(--util);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.tier.is-paid .tier-name { color: var(--brass); }

.tier-price {
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tier-price small {
  font-family: var(--util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 0.3rem;
}

.tier ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.55rem; flex: 1; }

.tier li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
  align-items: baseline;
}
.tier li::before { content: '\2014'; color: var(--muted); }
.tier.is-paid li::before { color: var(--chloro); }

.tier-active { font-size: 0.9rem; color: var(--ink-2); }

/* ── Prose ────────────────────────────────────────────────── */

.prose { max-width: var(--measure); }
.prose p { margin-bottom: 0.95rem; line-height: 1.65; }
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.86em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border: 1px solid var(--line-2);
}

/* ── Footer — in the document flow, never pinned ──────────── */

.site-footer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.2rem var(--pad) 3rem;
}

.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 1.2rem; }

.footer-disclosure {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-2);
  max-width: 68ch;
}

.footer-health { font-size: 0.8rem; color: var(--muted); max-width: 68ch; line-height: 1.55; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

.footer-nav a {
  font-family: var(--util);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--pine); }

/* ── Bottom nav (mobile) ──────────────────────────────────── */

.botnav {
  position: sticky;
  bottom: 0;
  z-index: 80;
  display: flex;
  background: var(--ground);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.botnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.62rem 0.3rem 0.7rem;
  min-height: 52px;
  font-family: var(--util);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.botnav a[aria-current="page"] { color: var(--pine); }

/* ── Desktop ──────────────────────────────────────────────── */

@media (min-width: 900px) {
  .shell {
    display: grid;
    grid-template-columns: var(--rail-w) 1fr;
    align-items: start;
  }

  .topbar, .botnav { display: none; }

  .rail {
    display: block;
    position: sticky;
    top: 0;
    padding: 2rem 1.5rem 2rem var(--pad);
    border-right: 1px solid var(--line);
    min-height: 100vh;
  }

  .rail-nav { margin-top: 2.2rem; display: grid; gap: 0.1rem; }

  .rail-nav a {
    display: block;
    padding: 0.6rem 0.6rem;
    font-family: var(--util);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
  }

  .rail-nav a:hover { color: var(--pine); }

  .rail-nav a[aria-current="page"] {
    color: var(--pine);
    border-left-color: var(--chloro);
    background: var(--surface);
  }

  .rail-foot { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }

  #app {
    max-width: 920px;
    margin: 0;
    padding-left: clamp(1.75rem, 3.5vw, 3.25rem);
    padding-right: clamp(1.75rem, 3.5vw, 3.25rem);
  }

  .site-footer { padding-left: clamp(1.75rem, 3.5vw, 3.25rem); }
  .footer-inner { margin: 0; max-width: 920px; }

  .ev { grid-template-columns: minmax(0, 9rem) 1fr; }

  /* Two-column detail, with picks spanning the full width */
  .detail-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 3rem; }
  .detail-grid .dsec.is-span { grid-column: 1 / -1; }
}

@media (min-width: 1280px) {
  #app, .footer-inner { max-width: 1000px; }
}

/* ── Reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Relabelled hotspot ───────────────────────────────────── */

/* Shown where a hotspot's PFAS premise did not survive checking.
   Saying so is the product working, so it reads as a finding, not
   an apology. */
.relabel {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--brass);
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ── Membership coming soon ───────────────────────────────── */

.soon {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 1.4rem;
  max-width: 60ch;
}

.soon-label {
  font-family: var(--util);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}

.soon h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.soon p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }

/* The third clock gets prose rather than a column: giving it equal
   visual weight would overstate how much we know about it. */
.clocks-third {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  max-width: 62ch;
}

.clocks-third .clock-family { margin-bottom: 0.4rem; }
