/* Sterile Home Solutions. Tokens first; every color and type choice derives from these. */
:root {
  --mist: #EAF1EC;      /* page background: soft sage, clean but warm */
  --paper: #FFFFFF;
  --spruce: #1D3A33;    /* ink */
  --spruce-2: #44625A;  /* secondary text */
  --glove: #3F68AD;     /* nitrile-glove blue: clinical accents and links */
  --sun: #F3B33D;       /* family warmth: calls to action only */
  --sun-ink: #2A2105;
  --lcd: #C9D8C0;       /* meter screen */
  --lcd-ink: #142A20;
  --line: #CFDCD3;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,58,51,.06), 0 8px 24px rgba(29,58,51,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--spruce); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--glove); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--glove); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: .9rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--spruce-2); max-width: 60ch; }
/* Eyebrows use the meter's mono face: they label what a section measures or does. */
.eyebrow { font: 700 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glove); margin-bottom: 14px; display: block; }

/* Draft banner */
.draft-banner { background: var(--spruce); color: #F4F7F5; text-align: center; padding: 9px 16px; font-size: .92rem; }
.draft-banner a { color: var(--sun); }

/* Header */
.site-header { background: var(--mist); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--spruce); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--glove); }
.brand-name { font: 800 1.15rem/1 var(--display); }
.brand-name span { font-weight: 600; color: var(--spruce-2); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--spruce); text-decoration: none; font-weight: 700; font-size: .98rem; }
.site-nav a:hover { color: var(--glove); }
.site-nav .nav-phone { font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sun, .site-nav a.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover, .site-nav a.btn-sun:hover { background: #E9A521; color: var(--sun-ink); }
.btn-line { border-color: var(--spruce); color: var(--spruce); background: transparent; }
.btn-line:hover { background: var(--spruce); color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Breadcrumbs */
.crumbs { width: min(1120px, 100% - 32px); margin: 18px auto 0; font-size: .9rem; color: var(--spruce-2); }
.crumbs a { color: var(--spruce-2); }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.tight { padding: 40px 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band-dark { background: var(--spruce); color: #EEF4F0; }
.band-dark h2, .band-dark h3 { color: #FFFFFF; }
.band-dark .eyebrow { color: var(--lcd); }
/* Links on dark bands are yellow, but never buttons: a yellow link color made the yellow button text invisible (2026-10-02). */
.band-dark a:not(.btn) { color: var(--sun); }
.page-head { padding: 36px 0 24px; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 .stack { display: block; }
.hero h1 .stack:nth-child(2) { color: var(--glove); }
.hero h1 .stack:nth-child(3) { color: var(--spruce-2); }

/* SIGNATURE: an animated handheld ATP tester (our own drawing, styled after common handheld luminometers).
   site.js drives the screen through a real test sequence: ready, swab in, reading countdown, result (labeled DEMO). */
.tester { justify-self: center; width: min(230px, 70vw); text-align: center; }
.tester svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 28px rgba(20,42,32,.22)); }
.tester .swab { transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.tester .swab.in { transform: translateY(54px); }
.tester .lcd-text { font-family: var(--mono); fill: #1B2A22; }
.tester .key { cursor: default; }
.tester .key-press { animation: press .35s ease; transform-box: fill-box; transform-origin: center; }
.tester .bar { transition: width .2s linear; }
.meter-note { text-align: center; font-size: .85rem; color: var(--spruce-2); margin-top: 14px; }
@keyframes press { 50% { transform: scale(.88); } }@keyframes blink { 50% { opacity: 0; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.pillar h3 { font: 800 2rem/1 var(--display); margin-bottom: 12px; }
.pillar h3 em { font-style: normal; color: var(--glove); }
.pillar p { color: var(--spruce-2); }
.pillar a { margin-top: auto; font-weight: 700; }

/* Visit sequence: this list IS a real order of operations, so it is numbered. */
.visit { counter-reset: step; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.visit li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.visit li::before { content: counter(step); font: 800 2rem/1 var(--display); color: var(--glove); background: var(--mist); border-radius: 12px; width: 56px; height: 56px; display: grid; place-items: center; }
.visit h3 { margin-bottom: 4px; }
.visit p { margin: 0; color: var(--spruce-2); }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--spruce); display: block; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--glove); transform: translateY(-2px); color: var(--spruce); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--spruce-2); margin: 0; }
.card .more { display: inline-block; margin-top: 12px; color: var(--glove); font-weight: 700; }

.chip-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.where { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.where p { margin: 0; }
@media (max-width: 920px) { .chip-groups { grid-template-columns: 1fr; gap: 6px; } }
.chip-label { font: 700 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--spruce-2); margin: 22px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 10px 0 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; }

/* Muted clinical photo slots (real photos replace these; see CLAUDE.md image rules). */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #C5D2CB, #9FB2A9 60%, #8EA49A); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.photo svg { width: 46%; color: rgba(255,255,255,.85); }
.photo.wide { aspect-ratio: 16 / 9; }
/* One gentle grade on every photo so bright and soft source images read as one muted, clinical set. */
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(.97); }
.photo figcaption.ill { left: auto; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.78); color: var(--spruce); font-size: .68rem; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(20,42,32,.55); color: #F2F6F3; font: 500 .78rem/1.4 var(--mono); }

/* Quote / proof */
.proof-quote { font: 800 clamp(1.6rem, 3.4vw, 2.6rem)/1.15 var(--display); letter-spacing: -0.01em; max-width: 24ch; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--glove) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.band-dark .checks li::before { background-color: var(--sun); }

/* Report sample */
.report { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.report-head { background: var(--spruce); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-head strong { font-family: var(--display); font-size: 1.2rem; }
.report table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.report th, .report td { text-align: left; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.report th { font: 700 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--spruce-2); }
.report td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.report .foot { padding: 14px 22px; font-size: .88rem; color: var(--spruce-2); }

/* FAQ */
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; font: 700 1.4rem/1 var(--mono); color: var(--glove); }
details.faq[open] summary::after { content: '\2212'; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq > div { padding-bottom: 18px; color: var(--spruce-2); }

/* Prose pages */
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.source { font-size: .88rem; color: var(--spruce-2); }
.callout { border-left: 4px solid var(--glove); background: #F3F7FC; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.draft-note { border: 2px dashed #C48A12; background: #FFF6E0; color: #5A4206; padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin: 1em 0; }
.draft-note::before { content: 'DRAFT NOTE FOR RICHARD: '; font: 700 .72rem/1 var(--mono); letter-spacing: .08em; display: block; margin-bottom: 6px; }
.facts { width: 100%; border-collapse: collapse; margin: 1em 0; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; color: var(--spruce-2); font-weight: 700; }

/* Forms */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--spruce-2); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #A9BDB2; border-radius: 10px; font: inherit; color: var(--spruce); background: #FBFDFC; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--glove); outline: 3px solid rgba(63,104,173,.25); outline-offset: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checkset { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkset label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.checkset input { width: 20px; height: 20px; min-height: 0; }
.hp { position: absolute; left: -5000px; }
.form-error { color: #9B2C1E; font-weight: 700; }

/* Footer */
.site-footer { background: var(--spruce); color: #DCE7E1; padding: 56px 0 24px; margin-top: 40px; }
.site-footer a { color: #F3F7F4; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-name { font: 800 1.3rem/1 var(--display); color: #fff; margin-bottom: 6px; }
.footer-slogan { font-family: var(--mono); font-size: .85rem; color: var(--lcd); }
.footer-brand a { display: inline; color: var(--sun); }
.footer-h { font: 700 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lcd); margin-bottom: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: .85rem; }
.footer-base .build { font-family: var(--mono); opacity: .6; }

.mobile-bar { display: none; }

.site-nav a, a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--spruce); background: transparent; font: 700 .95rem/1 var(--body); color: var(--spruce); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--mist); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; }
  .site-nav .btn { margin-top: 8px; }
  .header-row { position: relative; }
}
@media (max-width: 920px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .tester { margin-top: 28px; }
  .pillars, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { min-height: 46px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--spruce); border: 1.5px solid var(--line); }
  .mobile-bar .mb-quote { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
  body { padding-bottom: 72px; }
  .form .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .visit li { grid-template-columns: 1fr; }
  .report th, .report td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
