/* ==========================================================================
   BloodTest AI Nutrition — site styles
   Colour system borrows from blood-collection tube caps:
   gold = diet, sky = lifestyle, lavender = nutraceutical, green = herbal,
   red is reserved for results flagged outside their reference range.
   ========================================================================== */

:root {
  --herb: #0e3b32;
  --herb-2: #15524a;
  --leaf: #2f7d5b;
  --mist: #eef4f1;
  --paper: #ffffff;
  --ink: #1f2b28;
  --ink-soft: #4a5a55;
  --line: #d6e2dd;

  --gold: #e3a82b;
  --sky: #4f9fd3;
  --lavender: #8c78c9;
  --green: #2f9e6a;
  --flag: #d7263d;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow: 0 24px 60px -24px rgba(14, 59, 50, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--herb); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--herb);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--herb); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--herb);
  --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 700 1.0625rem/1 var(--font-body);
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { color: var(--fg); background: var(--herb-2); border-color: var(--herb-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { --bg: transparent; --fg: var(--herb); border-color: var(--herb); }
.btn--ghost:hover { --fg: #fff; }
.btn--gold { --bg: var(--gold); --fg: var(--herb); }
.btn--gold:hover { --fg: var(--herb); background: #f0bb45; border-color: #f0bb45; }
.btn--light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,0.6); }
.btn--light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--herb); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__name { font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand__name span { color: var(--leaf); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav__links a:hover { color: var(--leaf); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--herb); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy .lede { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); max-width: 34em; margin: 0; }
.hero__note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--leaf); }

.hero { overflow-x: clip; }
.hero__visual { position: relative; min-height: 660px; }
.hero__panel { position: absolute; top: 48px; bottom: 48px; left: 22%; right: calc(-1 * var(--gutter) - 50vw); background: var(--herb); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.hero__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--herb-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--vials { top: 0; right: 0; width: 60%; aspect-ratio: 4 / 5; }
.hero__photo--herbs { bottom: 0; right: 5%; width: 34%; aspect-ratio: 1; border: 6px solid var(--herb); }
.hero__photo--food { top: 18px; left: 4%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); }

/* Example report card (hero) */
.report-card {
  position: absolute; left: 0; bottom: 20px; z-index: 2;
  width: min(390px, 63%);
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 18px 20px 14px;
}
.report-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.report-card__title { font: 800 1rem/1.2 var(--font-display); color: var(--herb); margin: 0; }
.report-card__tag { font-size: 0.8rem; color: var(--ink-soft); }
.marker { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.marker:last-child { border-bottom: 0; padding-bottom: 2px; }
.marker__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.95rem; }
.marker__name { font-weight: 700; color: var(--ink); }
.marker__value { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.marker__value strong { color: var(--ink); }
.flag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--flag); }
.marker__plain { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.4; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--mist); font-size: 0.78rem; font-weight: 700; color: var(--herb); }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cap, var(--leaf)); }
.cap-diet { --cap: var(--gold); }
.cap-lifestyle { --cap: var(--sky); }
.cap-nutra { --cap: var(--lavender); }
.cap-herbal { --cap: var(--green); }

/* Reference-range bar */
.range { position: relative; height: 8px; margin-top: 10px; border-radius: 999px; background: #e7eeeb; }
.range__ok { position: absolute; top: 0; bottom: 0; left: var(--lo, 25%); right: calc(100% - var(--hi, 75%)); background: #bfe0cf; border-radius: 999px; }
.range__dot { position: absolute; top: 50%; left: var(--pos, 50%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--leaf); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.range--flag .range__dot { background: var(--flag); }

/* The one orchestrated moment: markers settle into place, then the translation appears */
.report-card .range__dot { animation: settle 1.1s cubic-bezier(.2,.8,.2,1) both; }
.report-card .flag { animation: pop 0.35s ease-out both; }
.report-card .marker__plain,
.report-card .chips { animation: fadeUp 0.5s ease-out both; }
.report-card .marker:nth-child(2) .range__dot { animation-delay: 0.25s; }
.report-card .marker:nth-child(3) .range__dot { animation-delay: 0.4s; }
.report-card .marker:nth-child(4) .range__dot { animation-delay: 0.55s; }
.report-card .marker:nth-child(2) .flag { animation-delay: 1.2s; }
.report-card .marker:nth-child(3) .flag { animation-delay: 1.35s; }
.report-card .marker:nth-child(4) .flag { animation-delay: 1.5s; }
.report-card .marker:nth-child(2) :is(.marker__plain, .chips) { animation-delay: 1.5s; }
.report-card .marker:nth-child(3) :is(.marker__plain, .chips) { animation-delay: 1.7s; }
.report-card .marker:nth-child(4) :is(.marker__plain, .chips) { animation-delay: 1.9s; }
@keyframes settle { from { left: 50%; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes fadeUp { from { transform: translateY(6px); opacity: 0; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 24px 0 0 24px; }
  .hero__panel { left: 0; right: calc(-1 * var(--gutter)); border-radius: var(--r-lg) 0 0 var(--r-lg); top: 0; bottom: 120px; }
  .hero__photo { position: relative; inset: auto; width: auto; border: 0; box-shadow: none; }
  .hero__photo--vials { grid-row: span 2; aspect-ratio: 4 / 5; }
  .hero__photo--herbs, .hero__photo--food { aspect-ratio: 1; border-radius: var(--r-lg); }
  .report-card { position: relative; left: auto; top: auto; bottom: auto; grid-column: 1 / -1; width: auto; margin: 0 0 0 -24px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head p { color: var(--ink-soft); font-size: 1.2rem; }

/* ---------- How it works (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.steps__photo img { width: 100%; height: 100%; object-fit: cover; }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps__list li { position: relative; padding: 0 0 36px 84px; counter-increment: step; }
.steps__list li:last-child { padding-bottom: 0; }
.steps__list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 56px; height: 56px; display: grid; place-items: center;
  font: 800 1.5rem/1 var(--font-display); color: var(--herb);
  background: var(--gold); border-radius: 50%;
}
.steps__list li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 6px; width: 2px; background: var(--line); }
.steps__list h3 { margin-bottom: 6px; }
.steps__list p { color: var(--ink-soft); margin: 0; max-width: 32em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps__photo { aspect-ratio: 16 / 10; }
}

/* ---------- What your report covers ---------- */
.areas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.area { position: relative; border-radius: var(--r-md); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.area--diet { grid-column: span 7; }
.area--herbal { grid-column: span 5; }
.area--lifestyle, .area--nutra { grid-column: span 6; }
.area__photo { margin: 0; height: clamp(240px, 28vw, 380px); overflow: hidden; background: var(--mist); }
.area__photo img { width: 100%; height: 100%; object-fit: cover; }
.area__body { padding: 26px 28px 30px; }
.area__body h3 { display: flex; align-items: center; gap: 12px; }
.area__body h3::before { content: ""; width: 28px; height: 14px; border-radius: 4px 4px 2px 2px; background: var(--cap); flex: none; }
.area__body p { color: var(--ink-soft); margin: 0; }
.area__examples { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.area__examples li { font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; color: var(--herb); }
.area--diet { background: #fbf1da; }
.area--herbal { background: #e2f2e9; }
.area--lifestyle { background: #e4f0f8; }
.area--nutra { background: #ece8f7; }
.area__examples li { background: #fff; }
@media (max-width: 860px) {
  .area--diet, .area--herbal, .area--lifestyle, .area--nutra { grid-column: 1 / -1; }
}

/* ---------- Markers explained ---------- */
.markers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--herb); }
.markers article { padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.markers h3 { font-size: 1.25rem; margin-bottom: 6px; }
.markers p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.markers p + p { margin-top: 6px; }
.markers .food { color: var(--ink); }
.markers .food b { color: var(--herb); }
.markers__foot { margin-top: 28px; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 760px) { .markers { grid-template-columns: 1fr; } }

/* ---------- Food first ---------- */
.foodfirst { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 64px)); gap: 14px; }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-column: 1 / 5; grid-row: 1 / 5; }
.mosaic__b { grid-column: 5 / 7; grid-row: 1 / 4; }
.mosaic__c { grid-column: 5 / 7; grid-row: 4 / 7; }
.mosaic__d { grid-column: 1 / 5; grid-row: 5 / 7; }
.principles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.principles li { padding-left: 20px; border-left: 4px solid var(--cap, var(--leaf)); }
.principles b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--herb); }
.principles span { color: var(--ink-soft); }
@media (max-width: 860px) {
  .foodfirst { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: repeat(6, minmax(0, 48px)); }
}

/* ---------- Analyser ---------- */
.analyser { background: var(--herb); color: #e6efeb; }
.analyser h2, .analyser h3 { color: #fff; }
.analyser .section__head p { color: #c3d6cf; }
.analyser__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.panel { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.panel h3 { color: var(--herb); }
.dropzone {
  display: grid; place-items: center; gap: 8px; text-align: center;
  padding: 36px 20px; margin: 4px 0 18px;
  border: 2px dashed #9cc0b2; border-radius: var(--r-md); background: var(--mist);
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--leaf); background: #e2efe9; }
.dropzone.is-busy { opacity: 0.6; pointer-events: none; }
.dropzone:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.dropzone svg { width: 44px; height: 44px; color: var(--leaf); }
.dropzone__title { font-weight: 700; font-size: 1.1rem; color: var(--herb); }
.dropzone__hint { font-size: 0.95rem; color: var(--ink-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-chosen { display: none; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-sm); background: #e8f3ee; font-size: 0.98rem; word-break: break-all; }
.file-chosen.is-visible { display: flex; }
.file-chosen svg { width: 22px; height: 22px; color: var(--leaf); flex: none; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions .btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.tool-actions .btn--plain { --bg: transparent; --fg: var(--ink-soft); border-color: transparent; text-decoration: underline; padding: 0 8px; }
.tool-actions .btn--plain:hover { --fg: var(--herb); background: transparent; border-color: transparent; }
.status { margin: 16px 0 0; min-height: 1.6em; font-size: 0.98rem; color: var(--ink-soft); }
.status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--leaf); border-radius: 50%; animation: spin 0.8s linear infinite; }
.status.is-error { color: var(--flag); font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-disclaimer { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.stat dt { font-size: 0.9rem; color: #b9d0c8; }
.stat dd { margin: 4px 0 0; font: 800 1.6rem/1.15 var(--font-display); color: #fff; overflow-wrap: anywhere; }
.stat dd.is-small { font-size: 1.15rem; }
.stat--flagged dd.is-alert { color: #ff9aa5; }
.stat dd.risk-high { color: #ff9aa5; }
.stat dd.risk-moderate { color: #f6c860; }
.stat dd.risk-low { color: #8fd0ae; }

.report { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.report__empty { text-align: center; color: var(--ink-soft); padding: 28px 8px; }
.report__empty svg { width: 54px; height: 54px; margin: 0 auto 10px; color: #9cc0b2; }
.report__banner { padding: 10px 14px; margin-bottom: 18px; border-radius: var(--r-sm); background: #fff6df; border: 1px solid #f1d58f; font-size: 0.95rem; }
.analyser .report h3 { margin-top: 26px; color: var(--herb); }
.analyser .report #report-heading { margin-top: 0; }
.report__subhead { margin: 4px 0 8px; font: 700 1.15rem/1.2 var(--font-display); color: var(--herb); }
.report__summary p { font-size: 1.05rem; }
.report-section { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-md); background: var(--mist); }
.report-section p { margin: 0 0 0.6em; }
.report-section p:last-child { margin-bottom: 0; }
.report-section ol { margin: 0; padding-left: 22px; }
.report-section--markers { --cap: var(--flag); background: #fff; border: 1px solid var(--line); }
.report-section--safety { --cap: var(--flag); background: #fff; border: 2px solid var(--flag); }
.report-section--safety h4 { color: var(--flag); }
.tech-details { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.tech-details summary { cursor: pointer; font-weight: 700; }
.tech-details pre { white-space: pre-wrap; word-break: break-word; background: var(--mist); padding: 12px; border-radius: var(--r-sm); font-size: 0.85rem; }
.report-section h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 1.1rem/1.2 var(--font-display); color: var(--herb); }
.report-section h4::before { content: ""; width: 22px; height: 11px; border-radius: 3px 3px 2px 2px; background: var(--cap, var(--leaf)); }
.report-section ul { margin: 0; padding-left: 20px; }
.report-section li { margin: 4px 0; }
.report-section--gp { background: #fdecee; }
.report-section--gp h4::before { background: var(--flag); }
.report__fine { margin: 20px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 960px) { .analyser__grid { grid-template-columns: 1fr; } }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.redflags { padding: 28px 30px; border-radius: var(--r-md); border: 2px solid var(--flag); background: #fff; }
.redflags h3 { color: var(--flag); }
.redflags ul { margin: 0; padding-left: 22px; }
.redflags li { margin: 6px 0; }
.redflags p { margin: 16px 0 0; font-weight: 700; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 2px solid var(--herb); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 700 1.2rem/1.3 var(--font-display); color: var(--herb); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(45deg) translateY(-4px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 44em; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Closing CTA ---------- */
.cta { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 59, 50, 0.96) 0%, rgba(14, 59, 50, 0.86) 45%, rgba(14, 59, 50, 0.35) 100%); }
.cta__inner { padding: clamp(80px, 10vw, 140px) 0; max-width: 34rem; }
.cta h2 { color: #fff; }
.cta p { color: #d4e4de; font-size: 1.2rem; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2c25; color: #b9cfc7; padding: 64px 0 40px; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand__name span { color: #8fd0ae; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__heading { font-weight: 700; color: #fff; margin: 0 0 12px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin: 6px 0; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { text-decoration: underline; color: #fff; }
.footer__about p { margin-top: 14px; max-width: 30em; }
.footer__legal { padding-top: 24px; font-size: 0.88rem; display: grid; gap: 8px; }
.footer__legal p { margin: 0; max-width: 70em; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .hero__visual, .cta, .site-footer, .tool-actions, .dropzone { display: none !important; }
}

