/* Hallmark · checked: 2026-10-31 · genre: editorial (inferred) · surface: absolute
 * floor: 0 FAIL · fixed: 6 (6a, 48, 54, 67, 1, 24b) · structural: 2 printed (58, 69)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 7b · surface: absolute, paper is #fff · the live site's white is a fixed brand colour (HANDOFF fixed rule 2) and the logo sits on it */
/* Hallmark · dismissed 58 · the pages are spec sheets with lab tables, and the owner holds the copy */
/* Hallmark · dismissed 69 · "100 g" is the unit of the azadirachtin assay (A, B and A+B per 100 g), repeated in each table and not a restated claim */
/* Hallmark · dismissed 25 · the footer blurb is a three-line caption beside the link columns */
/* AIB site, v3 look: follows the live agriindiabiotech.net (white, photo-led, centred section heads,
 * rounded photo cards, outline pill buttons, dark footer). Logo, colours and fonts unchanged (tokens.css). */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1360px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #ffffff; --color-paper-2: oklch(95.6% 0.015 102.5); --color-paper-3: oklch(92.4% 0.018 108);
  --color-ink: oklch(18.7% 0.016 244.7); --color-ink-2: oklch(31% 0.014 248); --color-muted: oklch(46% 0.012 255);
  --color-night: #1B1F1C; --color-night-ink: oklch(95.6% 0.015 102.5); --color-night-muted: oklch(78% 0.012 110); --color-night-rule: oklch(34% 0.014 244);
  --color-rule: oklch(90% 0.01 108);
  --color-accent: oklch(62.5% 0.153 148.8); --color-accent-ink: oklch(18.7% 0.016 244.7); --color-accent-deep: oklch(46% 0.125 149); --color-focus: oklch(60% 0.18 149);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif; --font-body: "Inter", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 20px; --radius-sm: 12px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: 0 10px 30px -12px rgb(13 20 26 / 0.18);
  --tracking-display: -0.02em;
  --scrim-top: color-mix(in oklab, var(--color-ink) 38%, transparent); --scrim-bottom: color-mix(in oklab, var(--color-ink) 58%, transparent); --scrim-text: color-mix(in oklab, var(--color-ink) 25%, transparent); --scrim-dialog: color-mix(in oklab, var(--color-ink) 55%, transparent);
  --color-on-photo-soft: color-mix(in oklab, var(--color-paper) 90%, transparent); --color-on-photo-line: color-mix(in oklab, var(--color-paper) 80%, transparent); --color-on-photo-wash: color-mix(in oklab, var(--color-paper) 14%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
abbr[title] { text-decoration: none; }


/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: var(--tracking-display); color: var(--color-ink); }
h1 { font-size: var(--text-display-s); line-height: 1.08; max-width: 20ch; }
h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.875rem); line-height: 1.12; max-width: 24ch; }
h3 { font-size: var(--text-title); line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: var(--text-lead); line-height: 1.6; color: var(--color-ink-2); max-width: 52ch; }
.small { font-size: var(--text-sm); color: var(--color-muted); }
.label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--color-accent-deep); }
.fig { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; color: var(--color-ink); }
.fig .unit { font-size: 0.42em; letter-spacing: 0; color: var(--color-accent-deep); margin-inline-start: var(--space-2xs); }
.prose { display: grid; gap: var(--space-md); }
.prose p { max-width: 60ch; line-height: 1.7; color: var(--color-ink-2); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: var(--space-sm) var(--space-xl); border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-paper); font-weight: 600; text-decoration: none; white-space: nowrap;
  border: var(--rule-hair) solid var(--color-ink);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--light { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn--light:hover { background: var(--color-paper-2); }
.btn--line-light { background: transparent; color: var(--color-paper); border-color: var(--color-on-photo-line); }
.btn--line-light:hover { background: var(--color-on-photo-wash); }
.link {
  font-weight: 600; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  transition: color var(--dur-short) var(--ease-out);
}
.link:hover { color: var(--color-accent-deep); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }

/* ---------- header (as on the live site) ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); box-shadow: 0 1px 0 var(--color-rule); }
.site-head .container { display: flex; align-items: center; gap: var(--space-xl); min-height: 76px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 2px; }
.nav { display: flex; gap: var(--space-lg); margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink); padding-block: var(--space-xs); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav a:hover { color: var(--color-accent-deep); }
.nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 0.5em; }
.site-head .btn { min-height: 44px; padding-inline: var(--space-lg); }
.menu { display: none; margin-inline-start: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu ul { position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); list-style: none; margin: 0; padding: var(--space-xs); min-width: 15rem; background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-card), 0 0 0 1px var(--color-rule); }
.menu li a { display: block; padding: var(--space-sm) var(--space-md); text-decoration: none; font-size: var(--text-md); }
.menu li a:hover { color: var(--color-accent-deep); }
.menu li a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
@media (max-width: 68rem) {
  .nav, .site-head .container > .btn { display: none; }
  .menu { display: block; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap-s); }
.section--tight { padding-block: var(--space-3xl); }
.section--cream { background: var(--color-paper-2); }
.section--night { background: var(--color-night); color: var(--color-night-ink); }
.section--night h2, .section--night h3, .section--night .fig { color: var(--color-night-ink); }
.section--night .small, .section--night .lede { color: var(--color-night-muted); }
.head { display: grid; gap: var(--space-md); margin-block-end: var(--space-2xl); }
.head--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 48rem; }
.head--center .lede { margin-inline: auto; }

/* ---------- photo banner (home hero and page tops) ---------- */
.banner { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(420px, 62svh, 640px); color: var(--color-paper); text-align: center; overflow: hidden; }
.banner--page { min-height: clamp(340px, 46svh, 460px); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--scrim-top), var(--scrim-bottom)); }
.banner .container { display: grid; justify-items: center; gap: var(--space-lg); padding-block: var(--space-3xl); }
.banner h1 { color: var(--color-paper); max-width: 22ch; text-shadow: 0 2px 24px var(--scrim-text); }
.banner .lede { color: var(--color-on-photo-soft); margin-inline: auto; }
.banner .actions { justify-content: center; }
.banner--home h1 { font-size: var(--text-display); max-width: 18ch; }
.crumbs { font-size: var(--text-sm); color: var(--color-on-photo-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: var(--space-xs); opacity: 0.7; }
.crumbs a { color: inherit; }

/* ---------- intro: text beside a rounded photo with a quote card ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.intro-text { display: grid; gap: var(--space-lg); align-content: center; }
.intro-text .actions { margin-block-start: var(--space-xs); }
.intro-photo { position: relative; margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius-card); }
.intro-photo--wide img { aspect-ratio: 4 / 3; }
.quote { position: absolute; left: clamp(16px, 4%, 32px); right: clamp(16px, 4%, 32px); bottom: clamp(16px, 4%, 32px); margin: 0; padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.45; color: var(--color-ink); }
.quote::before { content: "\201C"; display: block; font-size: 2.5rem; line-height: 0.6; color: var(--color-accent-deep); margin-block-end: var(--space-xs); }
.quote--stat { left: auto; right: clamp(16px, 4%, 32px); bottom: auto; top: clamp(16px, 4%, 32px); width: auto; max-width: 15rem; background: var(--color-paper); }
.quote--stat::before { content: none; }
.quote--stat .fig { display: block; font-variant-numeric: tabular-nums; font-size: clamp(2rem, 3vw, 2.75rem); color: var(--color-accent-deep); }
.quote--stat .fig .unit { display: inline; font-family: var(--font-display); font-size: 0.42em; color: var(--color-accent-deep); }
.quote--stat > span:not(.fig) { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); margin-block-start: var(--space-2xs); }

/* ---------- photo cards with a caption box over the bottom edge ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: grid; }
.card > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-card); }
.cards--2 .card > img { aspect-ratio: 16 / 10; }
.card-body { position: relative; margin: -72px var(--space-lg) 0; padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); display: grid; gap: var(--space-sm); text-align: center; justify-items: center; }
.card-body p { color: var(--color-ink-2); max-width: 46ch; }
.card-body .tag { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-deep); }
.card a.stretch { text-decoration: none; color: inherit; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card a.stretch:focus-visible { outline: none; }
.card:has(a.stretch:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.card:has(a.stretch:hover) h3 { color: var(--color-accent-deep); }
.card .go { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }

/* ---------- stat strip ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.stats li { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-xl); background: var(--color-paper); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); }
.stats .fig { font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 3.6vw, 3.5rem); color: var(--color-accent-deep); }
.stats p:not(.fig) { color: var(--color-ink-2); }

/* ---------- feature list (icon-free, plain) ---------- */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.feats li { display: grid; gap: var(--space-xs); padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--color-rule); }
.feats p { color: var(--color-ink-2); }
.section--cream .feats li { box-shadow: none; }

/* ---------- panels around tables and terms ---------- */
.panel { padding: var(--space-xl); background: var(--color-paper); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); display: grid; gap: var(--space-lg); min-width: 0; }
.section--cream .panel { box-shadow: none; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.two > .head { margin: 0; position: sticky; top: 110px; }

/* ---------- tables ---------- */
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: start; font-size: var(--text-sm); color: var(--color-muted); padding-block-end: var(--space-md); }
.ledger th, .ledger td { text-align: start; padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }
.ledger thead th { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); white-space: nowrap; border-bottom: var(--rule-hair) solid var(--color-rule) !important; }
.ledger tbody th { font-weight: 400; }
.ledger td.num { font-weight: 600; white-space: nowrap; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: 0; }
.terms div { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-2xs); }
.terms dt { font-size: var(--text-sm); color: var(--color-muted); }
.terms dd { margin: 0; font-weight: 600; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-md); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-paper-2); font-family: var(--font-display); font-weight: 600; color: var(--color-accent-deep); }
.steps strong { display: block; font-weight: 600; margin-block-end: var(--space-2xs); }
.steps li > div { padding-block-start: 0.55rem; color: var(--color-ink-2); }
.steps strong { color: var(--color-ink); }
.section--cream .steps li::before { background: var(--color-paper); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-sm); max-width: 52rem; margin-inline: auto; }
.faq details { background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--color-rule); }
.section--cream .faq details { box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-md); align-items: center; padding: var(--space-lg); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; line-height: 1; color: var(--color-accent-deep); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details > p { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-ink-2); max-width: 65ch; }

/* ---------- closing band ---------- */
.close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: center; padding: var(--space-2xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.close > div:first-child { display: grid; gap: var(--space-md); }
.close address { font-style: normal; display: grid; gap: var(--space-sm); }
.close address a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.close address a:hover { color: var(--color-accent-deep); }
.close-wrap { padding-block: var(--section-gap-s); background: var(--color-paper); }

/* ---------- certifications ---------- */
.certs { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); max-width: 60rem; }
.certs li { display: grid; gap: var(--space-sm); justify-items: center; text-align: center; }
.certs img { width: 100%; max-width: 10rem; aspect-ratio: 4 / 3; object-fit: contain; background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--color-rule); padding: var(--space-md); }
.certs span { font-size: var(--text-md); font-weight: 600; }

/* ---------- downloads ---------- */
.doc .link { white-space: normal; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.docs a { display: grid; gap: var(--space-2xs); padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--color-rule); text-decoration: none; transition: box-shadow var(--dur-short) var(--ease-out); }
.docs a:hover { box-shadow: 0 0 0 2px var(--color-accent-deep); }
.docs strong { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.docs a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- request-sample form ---------- */
.ask { display: grid; gap: var(--space-xl); }
.ask fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ask legend { font-weight: 600; padding: 0; margin-block-end: var(--space-sm); }
.pick { flex: 1 1 12rem; display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-md); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.pick:hover { border-color: var(--color-ink-2); }
.pick:has(input:checked) { border-color: var(--color-accent-deep); box-shadow: inset 0 0 0 1px var(--color-accent-deep); }
.pick > span { display: grid; gap: var(--space-3xs); }
.tick { display: inline-flex; gap: var(--space-xs); align-items: center; min-height: 44px; padding-inline-end: var(--space-lg); cursor: pointer; }
.ask input[type="checkbox"] { width: 1.125rem; height: 1.125rem; margin: 0.2em 0 0; accent-color: var(--color-accent-deep); flex-shrink: 0; }
.tick input[type="checkbox"] { margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); align-content: start; }
.field > span:first-child { font-weight: 600; font-size: var(--text-sm); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); background: var(--color-paper); color: var(--color-ink); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-sm); transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.preview { display: grid; gap: var(--space-xs); }
.preview pre { margin: 0; padding: var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.err { color: var(--color-error); font-weight: 600; }

/* ---------- CoA request (pop-up and /coa/ page) ---------- */
.ask input[type="radio"] { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--color-accent-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.coa-done { display: grid; gap: var(--space-sm); }
.coa-done:focus { outline: none; }
.coa-done h3 { font-size: var(--text-xl); }
.coa-links { margin: 0; padding-inline-start: 1.2em; display: grid; gap: var(--space-xs); }
.coa-dialog { width: min(44rem, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: var(--space-xl); border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); }
.coa-dialog::backdrop { background: var(--scrim-dialog); }
.coa-dialog > .lede { margin-block: var(--space-xs) var(--space-xl); }
.coa-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-md); }
.coa-dialog-head h2 { font-size: var(--text-2xl); }
.coa-x { flex-shrink: 0; width: 44px; height: 44px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-ink); }
.coa-x:hover { border-color: var(--color-ink); }
.coa-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.coa-dialog .pick { flex-basis: 100%; }
@media (max-width: 40rem) { .coa-dialog { padding: var(--space-lg); } }

/* ---------- "In short" summary: the answer Google and AI search quote ---------- */
.summary-band { padding-block: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.summary { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-3xl); align-items: start; }
.summary-text { display: grid; gap: var(--space-md); }
.summary-text p { font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink); max-width: 62ch; }
.facts { margin: 0; display: grid; gap: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 60rem) { .summary { grid-template-columns: minmax(0, 1fr); } }

/* ---------- blog ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; max-width: 48rem; }
.posts li { display: grid; gap: var(--space-xs); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.posts h2 { font-size: var(--text-2xl); max-width: none; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { color: var(--color-accent-deep); }
.post { max-width: 48rem; padding-block: var(--space-2xl) var(--section-gap-s); display: grid; gap: var(--space-2xl); }
.post-head { display: grid; gap: var(--space-md); }
.post .prose h2 { font-size: var(--text-2xl); margin-block-start: var(--space-lg); }

/* ---------- footer (dark, as on the live site) ---------- */
.site-foot { background: var(--color-night); color: var(--color-night-ink); padding-block: var(--space-3xl) var(--space-xl); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-xl) var(--gap-columns); }
.foot-grid .foot-head { margin-block-start: 0; font-size: var(--text-md); font-weight: 600; letter-spacing: 0; color: var(--color-night-muted); margin-block-end: var(--space-md); }
.foot-brand { display: grid; gap: var(--space-md); align-content: start; }
.foot-brand .brand img { height: 56px; background: var(--color-paper); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); }
.foot-brand p { color: var(--color-night-muted); max-width: 32ch; }
.foot-grid address { font-style: normal; display: grid; gap: var(--space-xs); color: var(--color-night-muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.foot-grid a { text-decoration: none; color: var(--color-night-ink); }
.foot-grid a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.foot-grid a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot-base { margin-block-start: var(--space-2xl); padding-block-start: var(--space-lg); border-top: var(--rule-hair) solid var(--color-night-rule); color: var(--color-night-muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .link, .nav a, .pick, .field input, .field textarea, .docs a, .faq summary::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .intro, .two, .close { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .two > .head { position: static; }
  .intro-photo { order: -1; }
  .cards, .stats { grid-template-columns: minmax(0, 1fr); }
  .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close { padding: var(--space-xl); }
}
@media (max-width: 40rem) {
  .feats, .terms, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: var(--space-lg); }
  .card-body { margin-inline: var(--space-sm); }
  .quote { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; margin-block-start: calc(-1 * var(--space-2xl)); margin-inline: var(--space-md); }
  .intro-photo img { aspect-ratio: 4 / 3.4; }
  .quote--stat { top: auto; margin-block-start: var(--space-md); max-width: none; margin-inline: 0; }
  .ledger th, .ledger td { padding-inline-end: var(--space-sm); }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .ledger tbody tr:last-child { border-bottom: 0; }
  .ledger tbody th, .ledger tbody td { border: 0; padding-block: var(--space-2xs); }
  .banner .actions .btn { width: 100%; }
}

/* ---------- older layout classes (lab reports, sample form, 404, blog) mapped to the v3 look ---------- */
.wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.wide > .head { margin: 0; }
.wide > .body { min-width: 0; padding: var(--space-xl); background: var(--color-paper); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); }
.section--cream .wide > .body { box-shadow: none; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.uses li { display: grid; gap: var(--space-xs); }
.uses p { color: var(--color-ink-2); }
.p-hero { display: grid; gap: var(--space-lg); padding-block: var(--space-3xl); }
.p-hero > div { display: grid; gap: var(--space-lg); }
.section--cream .container > .ledger { background: var(--color-paper); border-radius: var(--radius-card); }
@media (max-width: 60rem) { .wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (max-width: 40rem) { .uses { grid-template-columns: minmax(0, 1fr); } .wide > .body { padding: var(--space-lg); } }
