/* Prop 65 Record — design system
   Editorial, restrained, data-forward. No external fonts or CDNs. */

:root {
  --paper: #faf8f3;
  --paper-2: #f4f0e8;
  --card: #ffffff;
  --ink: #15181d;
  --ink-2: #3b424b;
  --muted: #6b717a;
  --line: #e5dfd2;
  --line-strong: #d4ccbb;
  --accent: #8a5629;
  --accent-2: #a97444;
  --accent-soft: #f4e9db;
  --green: #2c6549;
  --green-soft: #e8f0ea;
  --amber: #a44f1c;
  --amber-soft: #f8e9dd;
  --slate: #4a5462;
  --slate-soft: #edf0f3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 24, 29, .05), 0 18px 44px -26px rgba(21, 24, 29, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .seal {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1;
  background: var(--card);
  flex: none;
}
.brand .seal span { transform: translateY(1px); }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--ink);
  background: var(--card);
  transition: background .15s ease, color .15s ease;
}
.nav a.cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.12; }
h3 { font-size: 1.18rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.65; max-width: 46ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .92em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: var(--sans);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #71431f; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: start;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-note b { color: var(--ink-2); font-weight: 600; }

/* ---------- check card ---------- */
.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}
.check-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(138, 86, 41, .14);
  border-radius: 11px;
  pointer-events: none;
}
.check-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.check-head h2 { font-size: 1.3rem; }
.field { margin-bottom: 14px; position: relative; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(169, 116, 68, .13);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -20px rgba(21, 24, 29, .4);
  max-height: 260px;
  overflow: auto;
  z-index: 30;
  display: none;
}
.suggest.open { display: block; }
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 13px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid #f1ede4;
}
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button.active { background: var(--accent-soft); }
.suggest .s-cas { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-left: 6px; }

.verdict {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  background: var(--slate-soft);
  transition: background .2s ease, border-color .2s ease;
}
.verdict .v-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.verdict .v-title { font-family: var(--serif); font-size: 1.16rem; line-height: 1.25; }
.verdict .v-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.verdict.is-warning { background: var(--amber-soft); border-color: #ecd3c0; border-left-color: var(--amber); }
.verdict.is-below { background: var(--green-soft); border-color: #cfe0d4; border-left-color: var(--green); }
.verdict.is-insufficient { background: var(--slate-soft); border-color: #dbe1e8; border-left-color: var(--slate); }
.verdict.is-listed { background: var(--accent-soft); border-color: #ecddc9; border-left-color: var(--accent); }
.verdict.is-neutral { background: var(--paper-2); border-color: var(--line); border-left-color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 40ch; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 30px 30px 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; padding-right: 0; }
.step .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--card);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; max-width: 34ch; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #e6d5bf;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 14px;
}

/* ---------- record preview ---------- */
.record-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.record-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 26px 60px -34px rgba(21, 24, 29, .5);
  padding: 30px 32px;
  font-size: 12px;
  color: var(--ink-2);
  transform: rotate(-.4deg);
}
.record-sheet .rs-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.record-sheet .rs-title { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.record-sheet .rs-id { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.record-sheet dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0 0 14px; }
.record-sheet dt { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.record-sheet dd { margin: 0; color: var(--ink); }
.record-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.record-sheet th, .record-sheet td { text-align: left; font-size: 10.5px; padding: 6px 6px 6px 0; border-bottom: 1px solid #f0ece4; }
.record-sheet th { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.record-sheet .rs-seal {
  display: flex; justify-content: space-between; align-items: end;
  border-top: 1px solid var(--line); padding-top: 10px; font-family: var(--mono); font-size: 9.5px; color: var(--muted);
}
.record-sheet .rs-stamp {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ---------- data strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip .stat { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.strip .stat:last-child { border-right: 0; }
.strip .stat b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.1; }
.strip .stat span { font-size: 12px; color: var(--muted); }
.strip .stat .mono { font-size: 12.5px; }

/* ---------- notice ---------- */
.notice-band { background: var(--ink); color: #ece7dc; }
.notice-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.notice-band h2 { color: #fbf8f1; max-width: 18ch; }
.notice-band p { color: #b9b2a5; }
.notice-band .eyebrow { color: #c99a68; }
.notice-band a { color: #e6c9a8; }
.timeline { border-left: 1px solid rgba(236, 231, 220, .22); padding-left: 22px; }
.timeline .tl-item { margin-bottom: 20px; }
.timeline .tl-date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #c99a68; }
.timeline .tl-text { font-size: 14px; color: #d9d2c6; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.12rem;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 72ch; }

/* ---------- cta band ---------- */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { max-width: 24ch; }
.cta-band p { color: var(--muted); margin: 8px 0 0; max-width: 46ch; }

/* ---------- content pages ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); max-width: 22ch; }
.page-head .lede { margin-top: 18px; }
.meta-line { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.meta-line span { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }

.prose { padding: 52px 0 72px; }
.prose.prose-after-table { padding-top: 36px; }
.prose h2 { margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14.5px;
}
.prose .callout strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- label diagrams ---------- */
.label-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 22px 0 6px;
}
.label-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.ca-label {
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  padding: 14px 16px;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 420px;
}
.ca-label .w-symbol { font-size: 22px; line-height: 1; margin-right: 6px; }
.ca-label .w-text { font-size: 11px; line-height: 1.35; }
.ca-label .w-url { font-size: 11px; margin-top: 5px; }

/* ---------- builder ---------- */
.builder-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 40px; align-items: start; padding: 48px 0 72px; }
.builder-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 86px;
}
.builder-form h2 { font-size: 1.3rem; margin-bottom: 4px; }
.preview-shell { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 48px 40px;
  min-height: 620px;
  box-shadow: 0 24px 50px -34px rgba(21, 24, 29, .45);
  font-size: 13px;
  color: var(--ink-2);
}
.sheet .sh-top { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.sheet .sh-brand { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.sheet .sh-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sheet h3.sh-title { font-size: 1.5rem; color: var(--ink); margin: 0 0 4px; }
.sheet .sh-sub { font-size: 12px; color: var(--muted); }
.sheet dl { display: grid; grid-template-columns: 130px 1fr; gap: 7px 14px; margin: 18px 0; }
.sheet dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sheet dd { margin: 0; color: var(--ink); }
.sheet table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.sheet th, .sheet td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid #f0ece4; font-size: 11.5px; vertical-align: top; }
.sheet th { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sheet .sh-note { font-size: 11px; color: var(--muted); line-height: 1.55; }
.sheet .sh-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.sheet .sig-line { border-top: 1px solid var(--ink); padding-top: 6px; font-size: 11px; }
.sheet .sig-line span { color: var(--muted); font-size: 10px; }
.sheet .sh-foot { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.preview-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.preview-note { margin-top: 12px; max-width: 60ch; }
.btn-block { width: 100%; justify-content: center; }
.form-rule { border-top: 1px solid var(--line); margin: 24px 0 20px; }
.hint-inline { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.entry-list { margin-top: 8px; }
.entry-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
  background: var(--paper);
}
.entry-chip b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.entry-chip .tiny { display: block; margin-top: 1px; }
.entry-chip.d-warn { border-left-color: var(--amber); }
.entry-chip.d-below { border-left-color: var(--green); }
.entry-chip.d-gap { border-left-color: var(--slate); }
.chip-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
}
.chip-remove:hover { background: var(--paper-2); color: var(--ink); }
.sheet .sh-id { text-align: right; }
.sheet .sheet-empty { color: var(--muted); font-style: italic; }
.sheet .sheet-parent { display: block; font-size: 10px; color: var(--muted); }
.sheet .sheet-cas { font-size: 10px; color: var(--muted); font-family: var(--mono); }
.sheet .d-warn { color: var(--amber); font-weight: 600; }
.sheet .d-below { color: var(--green); }
.sheet .d-gap { color: var(--slate); }
.sheet .sh-disclaimer { margin-top: 18px; }
.sheet .hash { font-size: 9px; word-break: break-all; text-align: right; }
.sheet .sh-foot .hash { max-width: 60%; }

/* ---------- label page ---------- */
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.label-grid .label-figure { margin: 0; }
.ca-label .w-symbol { display: inline-block; width: 22px; height: 20px; vertical-align: -3px; margin-right: 5px; }
.symbol-row { display: flex; align-items: center; gap: 18px; margin: 18px 0 26px; }
.p65-symbol { width: 74px; height: 68px; flex: none; }
.faq-inline { margin-top: 18px; }


/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card .p-name { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.price-card .p-price { font-family: var(--serif); font-size: 2rem; margin: 8px 0 2px; }
.price-card .p-price small { font-size: .45em; color: var(--muted); font-family: var(--sans); }
.price-card .p-unit { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.price-card li { padding: 7px 0; border-top: 1px solid #f1ede4; }
.price-card .btn { margin-top: auto; }
.pricing-note { max-width: 72ch; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }

/* ---------- list page ---------- */
.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px 190px 170px;
  gap: 12px;
  align-items: end;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 66px;
  background: var(--paper);
  z-index: 20;
}
.toolbar .field { margin: 0; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding-bottom: 11px; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--accent); }
.list-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.chem { width: 100%; border-collapse: collapse; font-size: 13px; }
table.chem th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
}
table.chem td { padding: 11px 14px; border-bottom: 1px solid #f1ede4; vertical-align: top; }
table.chem tr:last-child td { border-bottom: 0; }
table.chem tr:hover td { background: #fcfaf6; }
table.chem .c-name { color: var(--ink); font-weight: 500; }
table.chem .row-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
table.chem .row-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
table.chem .c-child { padding-left: 30px; color: var(--ink-2); }
table.chem .c-cas { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
table.chem .c-lim { font-family: var(--mono); font-size: 12px; color: var(--ink); }
table.chem tr.delisted td { color: #9a958c; }
table.chem tr.delisted .c-name { text-decoration: line-through; text-decoration-thickness: 1px; color: #9a958c; }
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: var(--paper);
  margin: 0 4px 3px 0;
  white-space: nowrap;
}
.pill.cancer { border-color: #e2cdbd; background: #f8ece2; color: #8a4a1e; }
.pill.repro { border-color: #cdd9e4; background: #eef3f8; color: #3a5166; }
.pill.del { border-color: var(--line); background: transparent; color: #9a958c; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); padding: 52px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.foot-grid a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.foot-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); max-width: 90ch; line-height: 1.6; }

/* ---------- utilities ---------- */
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.demo-foot .pill { cursor: pointer; font-family: var(--mono); }
.stat-num { font-size: 1.05rem; letter-spacing: .02em; }
.mb-22 { margin-bottom: 22px; }
.cta-tight { padding: 56px 0; }

/* ---------- misc ---------- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 20ch; }
  .record-grid { grid-template-columns: 1fr; gap: 32px; }
  .notice-band .wrap { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .step:last-child { border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip .stat:nth-child(2) { border-right: 0; }
  .strip .stat:nth-child(1), .strip .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-form { position: static; }
  .label-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .nav { gap: 14px; font-size: 13px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 44px 0 40px; }
  .check-card { padding: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .sheet { padding: 26px 20px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .strip .stat:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .record-sheet { padding: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media print {
  .masthead, .site-foot, .preview-actions, .builder-form, .hero-actions, .nav,
  .page-head, .builder-grid .prose, .preview-note, .skip { display: none !important; }
  body { background: #fff; }
  .builder-grid { display: block; padding: 0; }
  .preview-shell { border: 0; background: #fff; padding: 0; }
  .sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; min-height: 0; }
  .sheet .d-warn { color: #000; }
  @page { margin: 18mm 16mm; }
}
