:root {
  /* Light theme — cool near-white with a violet bias, pulled from the logo */
  --paper: #F3F3F8;
  --paper-raised: #FFFFFF;
  --ink: #17141F;
  --muted: #575569;
  --line: #E2E0EC;
  --accent: #6D28D9;
  --accent-strong: #5B21B6;
  --accent-ink: #FFFFFF;
  --warm: #C2410C;
  --danger: #BE2A3A;
  --shadow: 0 1px 2px rgba(23,20,31,0.06), 0 10px 30px rgba(23,20,31,0.08);
  /* Signature helix gradient — matches the GbDx logo */
  --grad: linear-gradient(90deg, #7C3AED 0%, #C0328A 40%, #E23030 70%, #F0562E 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0A14;
    --paper-raised: #16131F;
    --ink: #ECEBF5;
    --muted: #9E9BB6;
    --line: #272336;
    --accent: #A78BFA;
    --accent-strong: #C4B5FD;
    --accent-ink: #0C0A14;
    --warm: #FF7A4D;
    --danger: #F0808C;
    --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
    --grad: linear-gradient(90deg, #9F67FF 0%, #D65BA6 40%, #F0544E 70%, #FF7A4D 100%);
  }
}
:root[data-theme="dark"] {
  --paper: #0C0A14;
  --paper-raised: #16131F;
  --ink: #ECEBF5;
  --muted: #9E9BB6;
  --line: #272336;
  --accent: #A78BFA;
  --accent-strong: #C4B5FD;
  --accent-ink: #0C0A14;
  --warm: #FF7A4D;
  --danger: #F0808C;
  --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
  --grad: linear-gradient(90deg, #9F67FF 0%, #D65BA6 40%, #F0544E 70%, #FF7A4D 100%);
}
:root[data-theme="light"] {
  --paper: #F3F3F8;
  --paper-raised: #FFFFFF;
  --ink: #17141F;
  --muted: #575569;
  --line: #E2E0EC;
  --accent: #6D28D9;
  --accent-strong: #5B21B6;
  --accent-ink: #FFFFFF;
  --warm: #C2410C;
  --danger: #BE2A3A;
  --shadow: 0 1px 2px rgba(23,20,31,0.06), 0 10px 30px rgba(23,20,31,0.08);
  --grad: linear-gradient(90deg, #7C3AED 0%, #C0328A 40%, #E23030 70%, #F0562E 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow {
  max-width: 720px;
}

/* ---- well-plate dot grid texture ---- */
.plate-grid {
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--line);
}

/* ---- nav ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Signature helix gradient strip across the very top */
header.site::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  /* multiply blends the logo's white background into the light page color,
     so a white-background PNG stops clashing with the off-white paper. */
  mix-blend-mode: multiply;
}
/* Logo art has black lettering, so on dark backgrounds it sits on a small
   white chip to stay legible (blend turned off there). */
@media (prefers-color-scheme: dark) {
  .brand-logo { background: #fff; padding: 4px 8px; mix-blend-mode: normal; }
}
:root[data-theme="dark"] .brand-logo { background: #fff; padding: 4px 8px; mix-blend-mode: normal; }
:root[data-theme="light"] .brand-logo { background: transparent; padding: 0; mix-blend-mode: multiply; }
nav.links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
nav.links a:hover, nav.links a.active { color: var(--accent); }
.nav-call {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
}
.nav-call:hover { border-color: var(--accent); color: var(--accent) !important; }
@media (max-width: 900px) {
  nav.links a:not(.nav-call) { display: none; }
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero .plate-grid {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-logo {
  display: block;
  width: auto;
  max-height: 118px;
  max-width: min(300px, 78vw);
  margin-bottom: 26px;
  border-radius: 10px;
  /* Solid page-colored backing so the hero's dot texture doesn't show
     through the logo's transparent areas. Matches the paper, so no visible box. */
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  .hero-logo { background: #fff; padding: 12px 16px; }
}
:root[data-theme="dark"] .hero-logo { background: #fff; padding: 12px 16px; }
:root[data-theme="light"] .hero-logo { background: var(--paper); padding: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}
h1.headline {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.14;
  max-width: 18ch;
}
.hero-sub {
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-strong); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- sections generic ---- */
section { padding: 60px 0; }
.page-head { padding: 56px 0 8px; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-label {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
  display: block;
}
h2.section-title { font-size: clamp(24px, 3vw, 32px); }
h1.page-title { font-size: clamp(28px, 3.6vw, 38px); }
.section-dek { color: var(--muted); margin-top: 14px; font-size: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---- certificate panel ---- */
.cert {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px clamp(22px, 5vw, 52px);
  border-radius: 4px;
}
.cert-tick {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--warm);
}
.cert-tick.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.cert-tick.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.cert-tick.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.cert-tick.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.cert blockquote {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}
.cert-principles {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cert-principles p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

/* ---- values grid ---- */
.values-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}
.value-card h3 { font-size: 17px; font-family: -apple-system, "Segoe UI", sans-serif; font-weight: 650; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

.notice-banner {
  background: color-mix(in srgb, var(--warm) 12%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--warm) 45%, var(--line));
  color: var(--ink);
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 28px;
}
.notice-banner strong { color: var(--warm); }

/* ---- testing menu: autosuggest combobox ---- */
.combo { position: relative; max-width: 480px; margin-bottom: 20px; }
.combo-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}
.combo-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.combo-option {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 5px;
}
.combo-option .combo-name { display: block; font-weight: 600; font-size: 15px; }
.combo-option .combo-meta { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.combo-option:hover,
.combo-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper-raised));
}
.combo-option[aria-selected="true"] .combo-name { color: var(--accent-strong); }
.combo-empty { padding: 14px; font-size: 14px; color: var(--muted); }

/* ---- noscript fallback list ---- */
.test-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.test-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.test-item a:hover, .test-item a:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); }
.test-name { font-weight: 600; font-size: 15.5px; flex: 1 1 220px; }
.test-meta { color: var(--muted); font-size: 13px; flex: 2 1 280px; }
.test-action { color: var(--accent); font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.menu-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* ---- providers band ---- */
.providers-band { background: var(--ink); color: var(--paper); }
.providers-band .section-dek { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.providers-band h2, .providers-band h1 { color: var(--paper); }
.providers-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 780px) { .providers-inner { grid-template-columns: 1fr; } }
.providers-band .btn-solid { background: var(--warm); color: #241505; }
.providers-band .btn-solid:hover { background: #c9853f; }
.providers-band .btn-outline { border-color: color-mix(in srgb, var(--paper) 35%, transparent); color: var(--paper); }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cred-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.cred-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cred-list .cred-tag {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  color: var(--warm);
  letter-spacing: 0.05em;
  flex: none;
  padding-top: 2px;
}

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block h3 {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.contact-block p { margin: 0 0 6px; }
.contact-block a.big-link { font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-block a.big-link:hover { color: var(--accent); }
table.hours { border-collapse: collapse; width: 100%; }
table.hours td { padding: 6px 0; font-size: 14.5px; }
table.hours td:first-child { color: var(--muted); }
table.hours td:last-child { text-align: right; }
.map-link { font-size: 13.5px; margin-top: 12px; display: inline-block; }
.note-block {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- auth / forms ---- */
.auth-shell {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.auth-card h1 { font-size: 22px; }
.auth-card .section-dek { font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-error {
  background: color-mix(in srgb, var(--danger) 12%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.form-success {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper-raised));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent-strong);
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* ---- gated pages ---- */
.gate-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px clamp(20px, 4vw, 40px);
}
.gate-card + .gate-card { margin-top: 22px; }
.packaging-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: pkg; }
.packaging-steps li {
  counter-increment: pkg;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.packaging-steps li::before {
  content: counter(pkg);
  flex: none;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.packaging-steps p { margin: 0; font-size: 14.5px; }
.packaging-steps strong { display: block; margin-bottom: 3px; font-size: 15px; }
.request-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .request-form .field-row { grid-template-columns: 1fr; } }

footer.site { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-note { max-width: 62ch; font-size: 12.5px; color: var(--muted); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
