/* healthfeen.com styles. Fonts are self-hosted (SIL OFL, licenses in /fonts). */

@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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #0b1a2b;
  --ink-2: #13283f;
  --ink-3: #1d3a57;
  --paper: #f5f2ec;
  --white: #ffffff;
  --line: #e2ddd3;
  --text: #13202e;
  --muted: #566372;
  --on-dark: #e8eef5;
  --on-dark-muted: #9fb0c3;
  --blue: #1663d6;
  --water: #3b82f6;
  --zest: #c9f45a;
  --zest-hover: #b8e83f;
  --ok: #1d9a72;
  --warn: #d99413;
  --bad: #d4483f;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(11 26 43 / 6%), 0 12px 32px -12px rgb(11 26 43 / 18%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--zest); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.s-good { --c: var(--ok); }
.s-warn { --c: var(--warn); }
.s-bad { --c: var(--bad); }

/* Buttons and tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 650 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-zest { background: var(--zest); color: var(--ink); }
.btn-zest:hover { background: var(--zest-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #eef2f6; color: var(--muted); font: 600 .75rem/1.3 var(--body); letter-spacing: 0; white-space: nowrap; }
.tag-now { background: var(--zest); color: var(--ink); }
.tag-warn { background: color-mix(in srgb, var(--warn) 16%, white); color: color-mix(in srgb, var(--warn) 70%, black); }
.report-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.report-title { font: 700 1.15rem/1.3 var(--display); }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 32px; height: 32px; }
.brand-mark .drop { fill: var(--zest); }
.brand-mark .peaks { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--white); text-decoration: underline; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 10%, rgb(22 99 214 / 38%), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgb(201 244 90 / 10%), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  padding: 140px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 116px 0 96px; } }
.hero h1 { color: var(--white); }
.hl { color: var(--zest); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 12px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--on-dark);
}
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--zest); box-shadow: 0 0 0 0 rgb(201 244 90 / 60%); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(201 244 90 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(201 244 90 / 0%); } }
.lede { margin-top: 22px; max-width: 56ch; font-size: 1.12rem; color: var(--on-dark-muted); }
.fineprint { margin-top: 10px; font-size: .85rem; color: var(--on-dark-muted); }
.spectrum { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.spectrum path { fill: none; stroke: rgb(201 244 90 / 35%); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Waitlist forms */
.waitlist input, .waitlist select {
  width: 100%; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--text);
  font: 400 1rem var(--body);
}
.waitlist input::placeholder { color: #8a95a3; }
.waitlist-inline { position: relative; display: flex; gap: 10px; margin-top: 32px; max-width: 520px; }
.waitlist-inline input { border-radius: 999px; border-color: transparent; }
.waitlist-inline .form-status { position: absolute; top: calc(100% + 8px); left: 18px; }
.waitlist-inline + .fineprint { margin-top: 14px; }
.waitlist-inline:has(.form-status:not(:empty)) + .fineprint { visibility: hidden; }
@media (max-width: 520px) { .waitlist-inline { flex-direction: column; } .waitlist-inline .form-status { position: static; margin-top: 2px; } }
.form-status { font-size: .92rem; font-weight: 500; }
.form-status.is-ok { color: var(--zest); }
.form-status.is-error { color: #ff9d95; }

/* Hero: water dashboard preview */
.app-card {
  padding: 20px; border-radius: 22px; background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 60%); transform: rotate(1.2deg);
}
@media (max-width: 920px) { .app-card { transform: none; } }
.wc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status { flex: none; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--c) 15%, white); color: color-mix(in srgb, var(--c) 72%, black); }
.wc-chart { padding-top: 14px; }
.wc-legend { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.wc-legend i { width: 18px; border-top: 2px dashed var(--blue); }
.chart { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.chart .band-good, .pc-chart .band-good { fill: color-mix(in srgb, var(--ok) 12%, white); }
.chart .band-warn { fill: color-mix(in srgb, var(--warn) 12%, white); }
.chart .band-bad { fill: color-mix(in srgb, var(--bad) 10%, white); }
.chart .band-label { fill: var(--muted); font: 600 9px var(--body); text-anchor: end; }
.chart .baseline { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.chart circle { fill: var(--ink); }
.chart circle.last { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.chart circle.ping { fill: none; stroke: var(--blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.chart .axis-label { fill: var(--muted); font: 600 9px var(--body); text-anchor: middle; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .chart .draw { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2s ease-out .4s forwards; }
  .chart circle:not(.ping) { opacity: 0; animation: fade-in .4s ease-out forwards; }
  .chart circle:nth-of-type(1) { animation-delay: .5s; } .chart circle:nth-of-type(2) { animation-delay: .8s; }
  .chart circle:nth-of-type(3) { animation-delay: 1.1s; } .chart circle:nth-of-type(4) { animation-delay: 1.4s; }
  .chart circle:nth-of-type(5) { animation-delay: 1.7s; } .chart circle:nth-of-type(6) { animation-delay: 2s; }
  .chart circle.ping { animation-delay: 2.4s; opacity: 0; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.taps { display: grid; gap: 8px; margin-top: 14px; }
.taps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: .93rem; font-weight: 500; }
.taps b { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .76rem; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 75%, black); }
.app-card figcaption { margin-top: 14px; }

/* Proof strip */
.proof { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid rgb(255 255 255 / 6%); }
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-row li { padding: 26px 20px; border-left: 1px solid rgb(255 255 255 / 8%); }
.proof-row li:first-child { border-left: 0; padding-left: 0; }
.proof-row strong { display: block; font: 700 1.15rem/1.2 var(--display); color: var(--white); }
.proof-row span { font-size: .9rem; color: var(--on-dark-muted); }
@media (max-width: 760px) {
  .proof-row { grid-template-columns: 1fr 1fr; }
  .proof-row li { padding: 18px 0; border-left: 0; border-top: 1px solid rgb(255 255 255 / 8%); }
  .proof-row li:nth-child(-n+2) { border-top: 0; }
  .proof-row li:nth-child(even) { padding-left: 16px; }
}

/* Sections */
.section { padding: 104px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.kicker { margin-bottom: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.section-dark .kicker { color: var(--zest); }
.section-lede { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-lede { color: var(--on-dark-muted); }
.note { margin-top: 28px; font-size: .88rem; color: var(--muted); }
.section-dark .note { color: var(--on-dark-muted); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* "City tests here, not at your tap" flow diagram */
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: start; margin-top: 64px; }
.flow-node { display: flex; flex-direction: column; align-items: center; width: 136px; text-align: center; }
.node-icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); }
.node-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node-icon.ok { background: color-mix(in srgb, var(--ok) 10%, white); border-color: color-mix(in srgb, var(--ok) 55%, white); }
.hazard .node-icon { background: color-mix(in srgb, var(--warn) 10%, white); border-color: color-mix(in srgb, var(--warn) 55%, white); }
.node-icon.you { background: var(--ink); border-color: var(--ink); }
.node-icon.you svg { stroke: var(--zest); }
.hazard .node-icon::after, .node-icon.you::after {
  content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 2px solid var(--warn); opacity: 0;
  animation: ring 2.4s ease-out infinite;
}
.node-icon.you::after { border-color: var(--zest); animation-duration: 1.8s; }
.flow-node:nth-child(5) .node-icon::after { animation-delay: .5s; }
.flow-node:nth-child(7) .node-icon::after { animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.node-title { margin-top: 14px; font: 700 .98rem/1.25 var(--display); }
.node-badge { margin-top: 8px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.node-badge.ok { background: color-mix(in srgb, var(--ok) 14%, white); color: color-mix(in srgb, var(--ok) 75%, black); }
.node-badge.you { background: var(--zest); color: var(--ink); }
.flow-pipe { position: relative; height: 14px; margin: 33px -6px 0; border-radius: 99px; overflow: hidden; background: var(--pipe); }
.flow-pipe .drops {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 0 2.6px, transparent 3.2px);
  background-size: 26px 14px; background-repeat: repeat-x; background-position: 0 50%;
  animation: flow-x 1.4s linear infinite;
}
.seg-0 { --pipe: var(--water); --dot: rgb(255 255 255 / 75%); }
.seg-1 { --pipe: linear-gradient(90deg, var(--water), #5d86a8); --dot: #f7c948; }
.seg-2 { --pipe: linear-gradient(90deg, #5d86a8, #7d7e7a); --dot: #f59e0b; }
.seg-3 { --pipe: linear-gradient(90deg, #7d7e7a, #8a6a5a); --dot: #ef5a4c; }
@keyframes flow-x { to { background-position: 26px 50%; } }
@keyframes flow-y { to { background-position: 50% 26px; } }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; justify-items: center; margin-top: 44px; }
  .flow-node { width: auto; }
  .flow-pipe { width: 14px; height: 48px; margin: 14px 0; }
  .flow-pipe .drops { background-size: 14px 26px; background-repeat: repeat-y; background-position: 50% 0; animation-name: flow-y; }
  .seg-1 { --pipe: linear-gradient(180deg, var(--water), #5d86a8); }
  .seg-2 { --pipe: linear-gradient(180deg, #5d86a8, #7d7e7a); }
  .seg-3 { --pipe: linear-gradient(180deg, #7d7e7a, #8a6a5a); }
}

/* Baseline: city notice vs your tap */
.tap-card { padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.city-note { padding: 16px 20px; border-radius: 16px; border: 1px dashed #b9c2cc; background: var(--paper); }
.city-quote { margin-top: 6px; font: 700 1.05rem/1.35 var(--display); }
.src-q { margin-top: 10px; font-weight: 650; color: var(--muted); }
.tap-compare { margin-top: 14px; padding: 18px 20px 4px; }
.bars2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; padding: 0 8%; }
.bars2 > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 200px; text-align: center; }
.b-val { font: 800 1.3rem/1 var(--display); color: color-mix(in srgb, var(--c) 75%, black); }
.b-val small { font: 500 .78rem var(--body); color: var(--muted); }
.b-bar { width: 56px; margin-top: 8px; border-radius: 10px 10px 4px 4px; background: var(--c); transform-origin: bottom; }
.h12 { height: 12%; } .h98 { height: 72%; }
@media (prefers-reduced-motion: no-preference) {
  .b-bar { animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
  .bars2 > div:nth-child(2) .b-bar { animation-delay: .5s; }
}
@keyframes grow { from { transform: scaleY(0); } }
.b-label { margin-top: 10px; font-size: .8rem; line-height: 1.3; color: var(--muted); }
.tap-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.tap-card figcaption { margin-top: 12px; }

/* How it works: steps with a traveling sample vial */
.process { margin-top: 52px; }
.process-track { position: relative; height: 18px; margin: 0 10% 22px; }
.process-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 2px dashed #c3cad3; }
.vial {
  position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--zest); border: 3px solid var(--ink); animation: travel 10s ease-in-out infinite;
}
@keyframes travel { 0%, 6% { left: 0; } 18%, 26% { left: 25%; } 38%, 46% { left: 50%; } 58%, 66% { left: 75%; } 78%, 100% { left: 100%; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps, .steps-5 { grid-template-columns: repeat(3, 1fr); } .process-track { display: none; } }
@media (max-width: 680px) { .steps, .steps-5 { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 24px 22px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 22px; right: 22px; font: 800 .95rem/1 var(--display); color: #c3cad3; }
.steps svg { width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--zest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) and (min-width: 1001px) {
  .steps-5 li { animation: step-on 10s ease-in-out infinite; }
  .steps-5 li:nth-child(2) { animation-delay: 2s; } .steps-5 li:nth-child(3) { animation-delay: 4s; }
  .steps-5 li:nth-child(4) { animation-delay: 6s; } .steps-5 li:nth-child(5) { animation-delay: 8s; }
}
@keyframes step-on {
  0%, 20% { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-4px); background: var(--white); }
  26%, 100% { border-color: var(--line); box-shadow: none; transform: none; background: var(--paper); }
}

/* Home Health: water now, the rest later */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; align-items: stretch; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
.home-now { position: relative; padding: 32px 30px; border-radius: 22px; background: var(--ink); color: var(--on-dark); }
.home-now .tag { position: absolute; top: 26px; right: 26px; }
.home-now svg { width: 52px; height: 52px; padding: 11px; border-radius: 14px; background: var(--water); fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.home-now h3 { margin-top: 18px; font-size: 1.8rem; color: var(--white); }
.home-now > p { margin-top: 10px; color: var(--on-dark-muted); }
.home-later { padding: 28px 28px 20px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.later-list { margin-top: 10px; }
.later-list li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.later-list li:last-child { border-bottom: 0; }
.later-list strong { font: 700 1rem/1.4 var(--display); }
.later-list span { color: var(--muted); }
@media (max-width: 460px) { .later-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Ticks */
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 28px; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.home-now .ticks li::before, .plan-featured .ticks li::before { background-color: var(--zest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a2b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
@media (max-width: 920px) { .plans, .plans-2 { grid-template-columns: 1fr; max-width: 560px; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.plan-featured { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.plan-featured h3 { color: var(--white); padding-right: 96px; }
.plan .tag { position: absolute; top: 26px; right: 22px; }
.price { margin-top: 12px; font: 800 2.2rem/1.1 var(--display); letter-spacing: -0.02em; }
.price small { font: 500 .9rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan-featured .price { font-size: 1.5rem; color: var(--zest); padding-top: 8px; }

/* Heavy metals */
.big4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 920px) { .big4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .big4 { grid-template-columns: 1fr; } }
.big4 li { position: relative; padding: 22px 22px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgb(255 255 255 / 8%); }
.big4 b { position: absolute; top: 18px; right: 20px; font-size: .8rem; font-weight: 600; color: var(--on-dark-muted); }
.big4 strong { display: block; font: 800 3rem/1 var(--display); color: var(--zest); letter-spacing: -0.03em; }
.big4 .el-name { display: block; margin-top: 6px; font: 700 1.1rem/1.2 var(--display); color: var(--white); }
.big4 p { margin-top: 10px; font-size: .93rem; color: var(--on-dark-muted); }
.also { margin-top: 36px; }
.also > p:first-child { font-size: .85rem; font-weight: 600; color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li { padding: 5px 12px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; font-size: .85rem; color: var(--on-dark); }

/* Video ideas */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .cards, .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards, .cards-3 { grid-template-columns: 1fr; } }
.cards li { padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.cards h3 { margin-top: 14px; }
.cards p { margin-top: 10px; color: var(--muted); font-size: .97rem; }
.video-cards li { border-top: 4px solid var(--zest); }

/* Your home's health log: element explorer */
.s-info { --c: #7b8794; }
.explorer { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 24px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }
.ex-fallback { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.ex-side { padding: 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.ex-taps { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--paper); }
.ex-tap { flex: 1 1 auto; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .88rem var(--body); cursor: pointer; }
.ex-tap:hover { color: var(--text); }
.ex-tap[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ex-summary { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.ex-group { margin-top: 16px; }
.ex-group-name { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
@media (max-width: 900px) and (min-width: 561px) { .ex-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 400px) { .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 66px; padding: 6px 6px 7px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ex-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.ex-tile[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.ex-tile .ex-z { font-size: .62rem; font-weight: 600; color: var(--muted); }
.ex-tile .ex-sym { margin-top: 1px; font: 800 1.25rem/1 var(--display); }
.ex-tile .ex-name { margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6rem; letter-spacing: -0.01em; color: var(--muted); }
.ex-tile[aria-pressed="true"] .ex-z, .ex-tile[aria-pressed="true"] .ex-name { color: var(--on-dark-muted); }
.ex-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.ex-detail { padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 16px; }
@media (max-width: 520px) { .ex-detail, .ex-side { padding: 16px; } }
.ex-head { display: flex; align-items: center; gap: 14px; }
.ex-badge { display: flex; flex-direction: column; justify-content: space-between; flex: none; width: 60px; height: 60px; padding: 6px 8px; border-radius: 14px; background: var(--ink); color: var(--zest); }
.ex-badge .ex-z { font-size: .66rem; font-weight: 600; color: var(--on-dark-muted); }
.ex-badge .ex-sym { font: 800 1.6rem/1 var(--display); }
.ex-title { flex: 1; min-width: 0; }
.ex-title h3 { font-size: 1.5rem; }
.ex-sub { margin-top: 2px; font-size: .85rem; color: var(--muted); }
.ex-head .status.s-info { background: #eef2f6; color: var(--muted); }
@media (max-width: 460px) { .ex-head { flex-wrap: wrap; } .ex-head .status { order: 3; } }
.ex-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.ex-stat { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.ex-stat-label { font-size: .72rem; font-weight: 600; color: var(--muted); }
.ex-stat-value { margin-top: 2px; font: 800 1.2rem/1.2 var(--display); }
@media (max-width: 460px) { .ex-stats { grid-template-columns: 1fr 1fr; } .ex-stat:last-child { grid-column: 1 / -1; } }
.ex-chart-wrap { margin-top: 18px; }
.ex-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: .75rem; color: var(--muted); }
.ex-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ex-legend span::before { content: ""; width: 18px; border-top: 2px dashed var(--blue); }
.ex-legend .lg-limit::before { border-top-color: var(--bad); }
.ex-chart { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.ex-chart .ex-grid { stroke: var(--line); stroke-width: 1; }
.ex-chart .ex-band-bad { fill: color-mix(in srgb, var(--bad) 8%, white); }
.ex-chart .ex-limit { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ex-chart .ex-limit-label { fill: color-mix(in srgb, var(--bad) 80%, black); font: 600 10px var(--body); text-anchor: start; }
.ex-chart .ex-baseline { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ex-chart .ex-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ex-chart .ex-pt { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.ex-chart .ex-pt.last { fill: var(--blue); }
.ex-chart .ex-axis { fill: var(--muted); font: 600 10px var(--body); text-anchor: middle; }
.ex-chart .ex-axis-y { text-anchor: end; }
.ex-chart .ex-val { fill: var(--ink); font: 800 12px var(--body); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .ex-chart .ex-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw-long 1.1s ease-out forwards; }
}
@keyframes draw-long { to { stroke-dashoffset: 0; } }
.ex-gauge { margin-top: 16px; }
.ex-gauge-bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.ex-gauge-fill { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.ex-gauge-label { margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.ex-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--blue); background: color-mix(in srgb, var(--blue) 6%, white); font-size: .93rem; }
.ex-facts { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.ex-facts dt { font-weight: 700; }
.ex-facts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .ex-facts { grid-template-columns: 1fr; gap: 2px; } .ex-facts dd + dt { margin-top: 10px; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }

/* Join */
.join-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px; color: var(--on-dark);
  background: radial-gradient(600px 400px at 100% 0%, rgb(22 99 214 / 45%), transparent 65%), var(--ink);
}
@media (max-width: 920px) { .join-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; } }
@media (max-width: 420px) { .join-card { padding: 32px 20px; } }
.join-card h2 { color: var(--white); }
.join-card > div > p { margin-top: 16px; color: var(--on-dark-muted); max-width: 44ch; }
.waitlist-full { display: grid; gap: 8px; }
.waitlist-full label { margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--on-dark); }
.waitlist-full label:first-child { margin-top: 0; }
.waitlist-full .opt { font-weight: 400; color: var(--on-dark-muted); }
.waitlist-full .btn { margin-top: 16px; }
.waitlist-full .fineprint a { color: var(--on-dark); }

/* Footer */
.site-footer { padding: 56px 0 40px; background: var(--ink); color: var(--on-dark-muted); font-size: .92rem; }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 8%); font-size: .82rem; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } .footer-links { flex-wrap: wrap; } }

/* Simple pages (privacy, thanks, 404) */
.page-header { position: static; background: var(--ink); }
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { margin-top: 40px; font-size: 1.4rem; }
.page p, .page ul { margin-top: 14px; max-width: 68ch; }
.page ul { padding-left: 1.2em; list-style: disc; }
.page li + li { margin-top: 6px; }
.page .muted { color: var(--muted); }
.page .btn { margin-top: 28px; background: var(--ink); color: var(--white); }
.page .btn:hover { background: var(--ink-3); }
