/* Lab requisition. Ink masthead, paper sheet, green on the pay button only. */

:root {
  --bg: #e4ebe6;
  --sheet: #fbfcfb;
  --ink: #132019;
  --muted: #5a6a62;
  --line: #c5d0c9;
  --buy: #0d6a3e;
  --buy-hover: #0a5532;
  --buy-ink: #f3fff7;
  --notice: #f4efe4;
  --focus: #132019;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--sheet);
  padding: 8px 12px;
}
.skip:focus { transform: none; z-index: 5; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.bar { background: var(--ink); color: #f4f7f5; }
.bar-row {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  min-height: 64px;
}
.mark {
  font: 600 15px/1 var(--font);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.phone {
  margin-left: auto;
  color: #f4f7f5;
  font: 500 14px/1 var(--mono);
  text-decoration: none;
}
.phone:hover { color: #f4f7f5; text-decoration: underline; text-underline-offset: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nav a {
  color: #f4f7f5;
  text-decoration: none;
  font-size: 15px;
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.mast { background: var(--ink); color: #f4f7f5; padding: 12px 0 72px; }
.mast-short { padding-bottom: 56px; }
.mast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.6fr);
  gap: 32px;
  align-items: end;
}
.mast-grid > *, .product-grid > *, .req, .req-name, .deck, h1 {
  min-width: 0;
}
.kicker {
  margin: 0 0 12px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5d0c9;
}
.kicker a { color: #f4f7f5; }
h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}
.deck {
  max-width: 38rem;
  margin: 16px 0 0;
  color: #d5ded8;
  font-size: 18px;
  text-wrap: pretty;
}
.counts { margin: 0; }
.counts a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(244, 247, 245, 0.28);
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}
.counts a:hover dt { text-decoration: underline; text-underline-offset: 3px; }
.counts dt { font-size: 14px; color: #d5ded8; }
.counts dd {
  margin: 0;
  font: 500 18px/1 var(--mono);
}

.sheet {
  margin-top: -36px;
  background: var(--sheet);
  border: 1px solid var(--ink);
  margin-bottom: 48px;
}
.sheet-pad { padding: 28px 28px 36px; }
.sheet-head, .group-label, .bands-note { padding: 22px 22px 8px; }
.sheet-head h2, .bands-note h2, .prose h2, .product h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.sheet-head p, .group-label a { color: var(--muted); }
.group { border-top: 4px solid var(--ink); }
.group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 0;
}
.group-label h3 {
  margin: 0;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.group-label a { font: 400 13px/1 var(--mono); text-decoration: none; }

.req-head, .req {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 120px 72px 124px;
  gap: 12px 16px;
  align-items: center;
  padding: 12px 22px;
}
.req-head {
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0;
}
.reqs { list-style: none; margin: 0; padding: 0 0 8px; }
.req { border-top: 1px solid var(--line); }
.req:hover { background: #f3f7f4; }
.code, .price, .band { font: 500 14px/1.3 var(--mono); }
.req-name {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.req-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 400 14px/1.4 var(--font);
  letter-spacing: 0;
}
.price { text-align: right; }
.req form, .req .buy { justify-self: end; }

.steps { margin: 8px 0 0; padding: 0; list-style: none; max-width: 42rem; }
.steps li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps strong { display: block; font-weight: 600; letter-spacing: -0.02em; }
.buy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: var(--buy);
  color: var(--buy-ink);
  font: 600 14px/1 var(--font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.buy:hover { background: var(--buy-hover); color: var(--buy-ink); }
.buy:disabled { background: var(--muted); cursor: not-allowed; }
.buy-link { min-width: 180px; }

.bands-note { border-top: 4px solid var(--ink); padding-bottom: 28px; }
.sheet table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.sheet th, .sheet td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sheet th { font-weight: 600; width: 11rem; }
.bands-note p, .fine { color: var(--muted); max-width: 65ch; }

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 36px;
  align-items: start;
}
.plate {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plate span { font-size: 28px; letter-spacing: -0.04em; text-transform: none; }
.lede { font-size: 20px; line-height: 1.4; max-width: 40rem; text-wrap: pretty; }
.includes { margin: 0; padding-left: 1.2rem; max-width: 40rem; }
.includes li { margin: 6px 0; }
.buy-panel {
  position: sticky;
  top: 16px;
  padding-top: 4px;
  border-top: 4px solid var(--ink);
}
.price-lg { font-size: 40px; text-align: left; margin: 12px 0 4px; }
.buy-panel .buy { width: 100%; margin-top: 8px; }
.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.switch a, .switch span {
  flex: 1 1 160px;
  padding: 14px 12px 14px 0;
  text-decoration: none;
  font: 500 14px/1.3 var(--mono);
}
.switch a { text-decoration: underline; text-underline-offset: 3px; }
.switch [aria-current="page"] { text-decoration: none; }

.prose { max-width: none; }
.prose p { max-width: 65ch; }
.notice {
  background: var(--notice);
  padding: 12px 14px;
  margin: 0 0 16px;
}

.form { display: grid; gap: 14px; max-width: 36rem; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--font);
  padding: 12px;
  border-radius: 0;
}
.buy-panel .form { max-width: none; }
.weight-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.fit-preview {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.colophon { padding: 12px 0 36px; color: var(--muted); font-size: 14px; }
.foot {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.foot a, .foot-note a { color: var(--ink); display: block; margin: 4px 0; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-name { margin: 0 0 8px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.foot-label {
  margin: 0 0 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot p { margin: 0; max-width: 28rem; }
.foot-note { margin: 18px auto 0; }

.lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 36px auto 40px;
}
.lines + .wrap > .sheet { margin-top: 0; }
.line {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.line img, .product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.line h2 {
  margin: 12px 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.line p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.product-photo { margin: 0 0 16px; }
.faq th { width: 18rem; vertical-align: top; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  margin: 0 auto 56px;
}
.story-flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.story-flip figure { order: 2; }
.story figure { margin: 0; }
.story img, .about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.story:last-of-type img, .about-photo img { aspect-ratio: 4 / 3; }
.story h2 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.story p { margin: 0 0 12px; max-width: 42rem; text-wrap: pretty; }
.about-photo { margin: 28px 0 0; max-width: 640px; }
.reach {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.reach img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  display: block;
}
.reach-main {
  display: inline-block;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* Homepage counter. The first screen is the catalog. */
.home .kicker { color: var(--muted); }
.home .deck { color: var(--ink); max-width: 38rem; }
.counter {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.9fr);
  background: var(--sheet);
  border-bottom: 1px solid var(--ink);
  align-items: stretch;
}
.counter-photo {
  position: relative;
  min-width: 0;
  min-height: 520px;
  background: #d5ddd8;
  overflow: hidden;
}
.counter-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.counter-photo img[hidden] { display: none; }
.counter-buy {
  padding: 48px 48px 36px 40px;
  max-width: 680px;
}
.home h1 { font-size: clamp(44px, 5vw, 64px); }
.spec-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 28px 0 0;
  border-bottom: 1px solid var(--ink);
}
.spec-switch button {
  appearance: none;
  margin: 0 0 -1px;
  padding: 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #8a978f;
  font: 500 16px/1 var(--font);
  letter-spacing: -0.02em;
  cursor: pointer;
}
.spec-switch button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.counter-photo img[data-photo="urine-blood"] { object-position: 62% 55%; }
.counter-photo img[data-photo="hair"] { object-position: center 30%; }
.counter-photo img[data-photo="saliva"] { object-position: center 60%; }
.spec-lead {
  margin: 16px 0 4px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 15px;
}
.offers { list-style: none; margin: 8px 0 0; padding: 0; }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.offer-name { text-decoration: none; min-width: 0; }
.offer-name strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.offer-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.offer-price {
  font: 500 20px/1 var(--mono);
  letter-spacing: -0.03em;
}
.counter-note {
  margin: 14px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 14px;
}
.counter-note a { color: var(--ink); }

.home-block { padding: 64px 0 8px; }
.home-block h2 {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.how {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 8px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ink);
}
.how span {
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
}
.how h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.how p, .file-grid p, .band-row p, .band-aside, .asks p, .desk p {
  margin: 0;
  color: var(--muted);
}
.file-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.file-grid h2 { max-width: 16ch; }
.file-grid figure { margin: 22px 0 0; }
.file-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.sample {
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 28px 28px 22px;
}
.sample h2 { max-width: none; font-size: 32px; }
.sample-kicker, .sample-meta, .sample-foot {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sample-kicker { margin: 0 0 14px; color: var(--muted); }
.sample-meta { margin: -8px 0 18px; }
.sample ol { list-style: none; margin: 0; padding: 0; }
.sample li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.sample li span { font: 500 13px/1.4 var(--mono); }
.sample-foot {
  margin: 8px 0 0;
  text-transform: none;
  letter-spacing: 0;
  font: 400 14px/1.45 var(--font);
  color: var(--muted);
}
.band-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.band-row article { padding: 20px 28px 8px 0; }
.band-row article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.band-row h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.band-price {
  margin-top: 14px;
  color: var(--ink);
  font: 500 16px/1.45 var(--mono);
}
.band-aside { max-width: 46rem; margin-top: 22px; }
.water-line {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.water-line h2 { margin-bottom: 12px; }
.water-line p { margin: 0; max-width: 40rem; color: var(--muted); }
.water-figure {
  margin: 0;
  min-width: 180px;
  padding: 18px 20px;
  background: var(--sheet);
  border: 1px solid var(--ink);
  display: grid;
  gap: 4px;
}
.water-figure span { font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.water-figure strong { font-size: 48px; letter-spacing: -0.04em; line-height: 1; }
.asks { border-top: 1px solid var(--ink); }
.asks div {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.asks h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 48px;
}
.desk img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.desk .mail { color: var(--ink); }

@media (max-width: 800px) {
  .bar-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 0 12px;
  }
  .phone { margin-left: 0; }
  .story, .story-flip, .reach, .lines, .foot { grid-template-columns: minmax(0, 1fr); }
  .sheet-pad th { width: auto; }
  .story-flip figure { order: 0; }
  .story h2 { font-size: 28px; }
  .mast { padding-bottom: 56px; }
  .mast-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  h1, .deck, .sheet-head p, .req-name, .req-name small { text-wrap: wrap; overflow-wrap: break-word; }
  h1 { font-size: 32px; line-height: 1.05; }
  .req-head { display: none; }
  .req {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "code name"
      "band price"
      "buy buy";
    align-items: start;
  }
  .code { grid-area: code; }
  .req-name { grid-area: name; min-width: 0; }
  .band { grid-area: band; }
  .price { grid-area: price; text-align: left; }
  .req form, .req .buy { grid-area: buy; justify-self: stretch; width: 100%; }
  .sheet-pad { padding: 22px 16px 28px; }
  .req-head, .req, .sheet-head, .group-label, .bands-note { padding-left: 16px; padding-right: 16px; }
  .buy-panel { position: static; }
  .counter { grid-template-columns: minmax(0, 1fr); }
  .counter-photo { height: 240px; min-height: 240px; }
  .counter-buy { padding: 28px 16px 24px; }
  .home h1 { font-size: 36px; }
  .offer {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .offer .buy { grid-column: 1 / -1; width: 100%; }
  .how, .file-grid, .band-row, .water-line, .desk { grid-template-columns: minmax(0, 1fr); }
  .band-row article, .band-row article + article {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .band-row article:first-child { border-top: 0; }
  .asks div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .home-block { padding-top: 40px; }
  .water-figure strong { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
