/* ===== colors ===== */
/* ============================================================================
   ASTEY - COLOR TOKENS
   Raw scales (primitives) + semantic aliases. Components reference only the
   semantic aliases (--brand, --text-primary, --bg-surface ...), never the raw
   scale values.
   ========================================================================== */

:root {
  /* ---- RAW SCALES (primitives) ---------------------------------------- */

  /* Botanical green - the brand core (leaf, crop, growth) */
  --green-50:  #F2F9F4;
  --green-100: #E6F3EB;
  --green-200: #BFE3CA;
  --green-300: #84C99A;
  --green-400: #4FB06D;
  --green-500: #2F8F4E;  /* interactive accent */
  --green-600: #246B3C;
  --green-700: #1B4A2B;  /* primary brand */
  --green-800: #14361F;
  --green-900: #0E2A18;  /* deepest, inverse surfaces */

  /* Sand - warm neutral (soil, seed husk, paper) */
  --sand-50:  #FBF9F4;
  --sand-100: #F4EFE3;   /* page background */
  --sand-200: #E9E2D0;
  --sand-300: #D9CFB8;
  --sand-400: #BBAE90;
  --sand-500: #9A8C6B;

  /* Ink - green-tinted neutrals for text & lines */
  --ink-900: #16201A;
  --ink-700: #2C3A30;
  --ink-500: #54635A;
  --ink-300: #8A968D;
  --ink-100: #D7DDD8;

  /* Gold - earthy secondary accent (grain, certification, premium) */
  --gold-100: #F3E7C9;
  --gold-300: #E2C77E;
  --gold-500: #B9892F;
  --gold-700: #8A6420;

  /* Pure */
  --white: #FFFFFF;
  --black: #000000;

  /* Status primitives */
  --red-100:    #FBE7E5;
  --red-500:    #C0392B;
  --amber-100:  #FBF0D6;
  --amber-500:  #B9892F;
  --blue-100:   #E2EDF6;
  --blue-500:   #2F6DA0;

  /* ---- SEMANTIC ALIASES (use these in components) --------------------- */

  /* Brand */
  --brand:          var(--green-700);
  --brand-strong:   var(--green-800);
  --brand-soft:     var(--green-100);
  --brand-contrast: var(--white);
  --accent:         var(--green-500);
  --accent-strong:  var(--green-600);
  --secondary:      var(--gold-500);
  --secondary-soft: var(--gold-100);

  /* Surfaces */
  --bg-page:         var(--sand-100);
  --bg-surface:      var(--white);
  --bg-surface-alt:  var(--sand-50);
  --bg-muted:        var(--sand-200);
  --bg-inverse:      var(--green-800);
  --bg-inverse-alt:  var(--green-900);
  --bg-brand-tint:   var(--green-50);

  /* Text */
  --text-primary:         var(--ink-900);
  --text-secondary:       var(--ink-700);
  --text-muted:           var(--ink-500);
  --text-subtle:          var(--ink-300);
  --text-inverse:         var(--sand-50);
  --text-on-brand:        var(--white);
  --text-on-brand-muted:  rgba(255, 255, 255, 0.72); /* hero lead / secondary text on dark surfaces */
  --text-on-brand-subtle: rgba(255, 255, 255, 0.45); /* footer social links on dark surfaces */
  --text-link:            var(--accent-strong);

  /* Overlay / scrim */
  --scrim:           rgba(14, 42, 24, 0.48); /* full-screen nav overlay (--green-900 @ 48%) */

  /* Borders & dividers */
  --border:          var(--ink-100);
  --border-strong:   var(--sand-400);
  --border-brand:    var(--green-200);
  --border-inverse:  rgba(255, 255, 255, 0.16);

  /* Status */
  --success:      var(--green-600);
  --success-soft: var(--green-100);
  --warning:      var(--amber-500);
  --warning-soft: var(--amber-100);
  --danger:       var(--red-500);
  --danger-soft:  var(--red-100);
  --info:         var(--blue-500);
  --info-soft:    var(--blue-100);
}

/* ===== typography ===== */
/* ============================================================================
   ASTEY - TYPOGRAPHY TOKENS
   Refined serif display (Playfair Display) + clean sans UI (Inter) + mono for data
   (IBM Plex Mono). Type scale is ~1.25 modular on a 16px base.
   ========================================================================== */

:root {
  /* Families */
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (1rem = 16px) */
  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-md:   1.125rem;   /* 18 */
  --text-lg:   1.25rem;    /* 20 */
  --text-xl:   1.5rem;     /* 24 */
  --text-2xl:  1.875rem;   /* 30 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  3rem;       /* 48 */
  --text-5xl:  3.75rem;    /* 60 */
  --text-6xl:  4.5rem;     /* 72 */

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  /* Line heights */
  --leading-none:    1;
  --leading-tight:   1.12;
  --leading-snug:    1.28;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.015em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.09em;  /* eyebrows / uppercase labels */
}

/* ===== spacing ===== */
/* ============================================================================
   ASTEY - SPACING & LAYOUT TOKENS
   4px base grid, section rhythm, container widths, breakpoints.
   ========================================================================== */

:root {
  /* Spacing (4px base grid) */
  --space-0:  0;
  --space-1:  0.25rem;   /* 4  */
  --space-2:  0.5rem;    /* 8  */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.25rem;   /* 20 */
  --space-6:  1.5rem;    /* 24 */
  --space-8:  2rem;      /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */
  --space-24: 6rem;      /* 96 */
  --space-32: 8rem;      /* 128 */

  /* Section rhythm */
  --section-y:  var(--space-24);
  --gutter:     var(--space-6);

  /* Containers */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1200px;
  --container-max: 1200px;

  /* Breakpoints (documented; consumed in media queries) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
}

/* ===== radii ===== */
/* ============================================================================
   ASTEY - RADII TOKENS
   Soft radii: pill buttons, 16px cards, 32px CTA panels.
   ========================================================================== */

:root {
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 999px;
}

/* ===== shadows ===== */
/* ============================================================================
   ASTEY - SHADOW & FOCUS TOKENS
   Soft, warm-green-tinted shadows - never pure black.
   ========================================================================== */

:root {
  --shadow-xs: 0 1px 2px rgba(20, 54, 31, 0.06);
  --shadow-sm: 0 2px 6px rgba(20, 54, 31, 0.08);
  --shadow-md: 0 6px 18px rgba(20, 54, 31, 0.10);
  --shadow-lg: 0 16px 40px rgba(20, 54, 31, 0.14);
  --shadow-xl: 0 28px 64px rgba(20, 54, 31, 0.18);

  /* Focus ring */
  --focus-ring:   0 0 0 3px rgba(47, 143, 78, 0.35);
  --shadow-focus: var(--focus-ring);

  /* Component-specific shadows */
  --shadow-navbar: 0 2px 28px rgba(20, 54, 31, 0.13); /* navbar on scroll */
  --shadow-drawer: 4px 0 32px rgba(0, 0, 0, 0.12);    /* side-drawer panel */
}

/* ===== motion ===== */
/* ============================================================================
   ASTEY - MOTION, BORDERS & Z-INDEX TOKENS
   Subtle, tasteful motion only. Standard ease-in-out, short durations.
   ========================================================================== */

:root {
  /* Borders */
  --border-width:        1px;
  --border-width-strong: 2px;

  /* Transitions */
  --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --transition-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */

  /* Z-index scale */
  --z-base:    0;    /* @kind other */
  --z-raised:  10;   /* @kind other */
  --z-sticky:  100;  /* @kind other */
  --z-overlay: 500;  /* @kind other */
  --z-modal:   1000; /* @kind other */
  --z-toast:   1500; /* @kind other */
}

/* ===== base ===== */
/* ============================================================================
   ASTEY - BASE
   Modern reset + element defaults. Sets the typographic baseline so raw HTML
   (h1-h6, p, ul, a, ...) is already on-brand before any component class.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--brand-strong); }

/* Headings - display serif, tight tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

p { line-height: var(--leading-relaxed); text-wrap: pretty; }

strong, b { font-weight: var(--weight-semibold); }

small { font-size: var(--text-sm); }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
code {
  background: var(--bg-brand-tint);
  color: var(--brand-strong);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--border);
  margin: var(--space-8) 0;
}

::selection { background: var(--green-200); color: var(--brand-strong); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Layout primitives (shared by components & pages) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-md); }
.container--wide   { max-width: 1320px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--space-16); }
.section--alt   { background: var(--bg-surface-alt); }
.section--muted { background: var(--bg-muted); }
.section--brand-tint { background: var(--bg-brand-tint); }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.section--inverse h1,
.section--inverse h2,
.section--inverse h3,
.section--inverse h4 { color: var(--white); }

@media (max-width: 768px) {
  :root { --section-y: var(--space-16); }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

/* ===== patterns ===== */
/* ============================================================================
   ASTEY - PATTERNS
   Reusable UI pattern classes (the visual implementation behind the React
   components and used directly by UI-kit screens). Class names are semantic;
   variants use BEM modifiers (block--mod). All values come from tokens.
   ========================================================================== */

/* ---- TEXT HELPERS --------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  font-weight: var(--weight-semibold);
}
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  border-radius: var(--radius-full);
}
.eyebrow--inverse { color: var(--green-300); }
.eyebrow--inverse::before { background: var(--green-400); }

.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent-strong); }
.text-balance { text-wrap: balance; }

/* ---- BRAND LOCKUP --------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
  color: var(--brand-strong);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--white);
  font-size: var(--text-lg);
  flex: none;
}
.brand__mark img, .brand__mark svg { width: 22px; height: 22px; }
.brand__name { line-height: 1; }
.brand__suffix {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}
.brand--inverse,
.brand--inverse .brand__name { color: var(--white); }
.brand--inverse .brand__mark { background: var(--green-500); }
.brand--inverse .brand__suffix { color: var(--green-300); }

/* ---- BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: var(--border-width-strong) solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-fast),
              box-shadow var(--transition-base);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--brand-strong); color: var(--white); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }

.btn--secondary {
  background: var(--bg-surface);
  color: var(--brand-strong);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--bg-brand-tint); }

.btn--ghost { background: transparent; color: var(--brand-strong); }
.btn--ghost:hover { background: var(--bg-brand-tint); color: var(--brand-strong); }

.btn--on-dark { background: var(--white); color: var(--brand-strong); }
.btn--on-dark:hover { background: var(--sand-100); }

.btn--outline-dark { background: transparent; color: var(--white); border-color: var(--border-inverse); }
.btn--outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); }
.btn--block { display: flex; width: 100%; }

.btn[disabled],
.btn--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---- BADGES / TAGS -------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.badge--accent  { background: var(--green-100); color: var(--accent-strong); }
.badge--gold    { background: var(--secondary-soft); color: var(--gold-700); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--gold-700); }
.badge--danger  { background: var(--danger-soft); color: var(--danger); }
.badge--info    { background: var(--info-soft); color: var(--info); }
.badge--outline {
  background: transparent;
  border: var(--border-width) solid var(--border-strong);
  color: var(--text-secondary);
}
.badge--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ---- CARDS ---------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base), transform var(--transition-base),
              border-color var(--transition-base);
}
.card--hover:hover {
  box-shadow: var(--shadow-lg), inset 0 2px 0 var(--accent);
  transform: translateY(-3px);
  border-color: var(--border-brand);
}
.card--flat   { box-shadow: none; }
.card--tint   { background: var(--bg-brand-tint); border-color: var(--border-brand); }
.card--inverse {
  background: var(--bg-inverse);
  border-color: var(--border-inverse);
  color: var(--text-inverse);
}
.card--inverse h3, .card--inverse h4 { color: var(--white); }

.card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card__text  { color: var(--text-secondary); line-height: var(--leading-relaxed); }

/* Feature card - icon + title + text */
.feature-card { display: flex; flex-direction: column; gap: var(--space-4); }
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
  box-shadow: var(--shadow-sm);
}
.feature-card__icon svg { width: 28px; height: 28px; }

/* Product card - image area + body */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--green-700), var(--green-500));
  position: relative;
}
.product-card__media .badge { position: absolute; top: var(--space-4); left: var(--space-4); }
.product-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.product-card__meta {
  display: flex; gap: var(--space-4);
  font-size: var(--text-sm); color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Product card description - prose rendering for admin-authored rich text */
.product-card__desc p { margin: 0 0 var(--space-3); }
.product-card__desc p:last-child { margin-bottom: 0; }
.product-card__desc ul,
.product-card__desc ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.product-card__desc ul { list-style: none; }
.product-card__desc ul li { position: relative; padding-left: var(--space-4); }
.product-card__desc ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand);
}
.product-card__desc ol { list-style: decimal; padding-left: var(--space-6); }
.product-card__desc li:last-child { margin-bottom: 0; }
.product-card__desc strong, .product-card__desc b { font-weight: var(--weight-semibold); color: var(--text-primary); }
.product-card__desc a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.product-card__desc a:hover { color: var(--brand); }
.product-card__desc h4, .product-card__desc h5, .product-card__desc h6 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin: var(--space-4) 0 var(--space-2);
}
.product-card__desc h4:first-child, .product-card__desc h5:first-child, .product-card__desc h6:first-child { margin-top: 0; }
.product-card__desc blockquote {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-brand);
  color: var(--text-secondary);
}
.product-card__desc hr { border: none; border-top: var(--border-width) solid var(--border); margin: var(--space-3) 0; }
.product-card__desc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  /* Fixed layout keeps an admin-authored table inside the card: cells wrap instead of
     forcing a min-content width that would stretch the carousel grid column. */
  table-layout: fixed;
}
.product-card__desc th, .product-card__desc td {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border-width) solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.product-card__desc th { width: 44%; }
.product-card__desc th { color: var(--text-muted); font-weight: var(--weight-medium); }
.product-card__desc td { color: var(--text-primary); }
.product-card__desc tr:last-child th, .product-card__desc tr:last-child td { border-bottom: none; }

/* Document / certification card */
.doc-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); }
.doc-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-md);
  background: var(--secondary-soft);
  color: var(--gold-700);
}
.doc-card__title { font-weight: var(--weight-semibold); color: var(--text-primary); }
.doc-card__sub { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- STAT BLOCK ----------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--brand);
  line-height: 1;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}
.stat--inverse .stat__value { color: var(--green-300); }
.stat--inverse .stat__label { color: var(--green-100); }

/* ---- CHECK LIST ----------------------------------------------------------- */
.check-list { display: flex; flex-direction: column; gap: var(--space-4); }
.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: var(--leading-normal);
}
.check-list__item::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-full);
  background:
    var(--green-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23246B3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---- NAVBAR / HEADER ------------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: var(--border-width) solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}
.navbar__nav { display: flex; align-items: center; gap: var(--space-6); }
.navbar__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.navbar__link:hover,
.navbar__link[aria-current="page"] { color: var(--brand-strong); }
.navbar__actions { display: flex; align-items: center; gap: var(--space-3); }

/* Language toggle (EN / UA) */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: var(--border-width) solid var(--border);
}
.lang-toggle__btn {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  /* Vertical padding raised from space-1 (4px) to 6px to bring hit area >=24 px */
  padding: 6px var(--space-3);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}
.lang-toggle__btn[aria-current="true"] {
  background: var(--bg-surface);
  color: var(--brand-strong);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
}

/* ---- HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-32);
  background: linear-gradient(180deg, #071f14 0%, #0b2b1d 50%, #103524 100%);
  overflow: hidden;
}
.hero__inner { max-width: 820px; display: flex; flex-direction: column; gap: var(--space-8); }
.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.08;
}
.hero__lead { font-size: var(--text-lg); color: var(--text-secondary); max-width: 58ch; line-height: var(--leading-relaxed); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }

/* ---- SECTION HEADER ------------------------------------------------------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 680px;
  margin-bottom: var(--space-16);
}
.section-header--center { align-items: center; text-align: center; margin-inline: auto; }

/* ---- GRID HELPERS --------------------------------------------------------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--space-16); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4, .grid--split { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ---- FORMS ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); }
.label__req { color: var(--danger); }

.input, .textarea, .select {
  width: 100%;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.textarea { min-height: 140px; resize: vertical; line-height: var(--leading-normal); }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.field__hint { font-size: var(--text-sm); color: var(--text-muted); }
.field--error .input,
.field--error .textarea { border-color: var(--danger); }
.field--error .field__hint { color: var(--danger); }

.checkbox { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent-strong); margin-top: 2px; }

/* ---- ALERT / NOTE --------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-brand);
  background: var(--bg-brand-tint);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}
.alert__title { font-weight: var(--weight-semibold); color: var(--text-primary); }
.alert--success { background: var(--success-soft); border-color: var(--green-200); }
.alert--warning { background: var(--warning-soft); border-color: var(--gold-300); }
.alert--danger  { background: var(--danger-soft);  border-color: var(--red-500); }
.alert--info    { background: var(--info-soft);    border-color: var(--blue-500); }

/* ---- TABLE ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: var(--border-width) solid var(--border); }
.table { width: 100%; border-collapse: collapse; background: var(--bg-surface); font-size: var(--text-sm); }
.table th, .table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-width) solid var(--border);
}
.table th {
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs);
  background: var(--bg-surface-alt);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-brand-tint); }

/* ---- CTA PANEL ------------------------------------------------------------ */
.cta {
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--green-600) 0%, transparent 60%),
    var(--bg-inverse);
  color: var(--text-inverse);
  padding: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta__title { color: var(--white); font-size: var(--text-3xl); max-width: 24ch; }
.cta__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---- FOOTER --------------------------------------------------------------- */
.footer {
  background: var(--bg-inverse-alt);
  color: var(--text-inverse);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--border-width) solid var(--border-inverse);
}
.footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--green-300);
  margin-bottom: var(--space-4);
}
.footer__link { display: block; color: var(--sand-200); font-size: var(--text-sm); padding-block: var(--space-1); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); flex-wrap: wrap;
  padding-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--green-100);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .cta { padding: var(--space-10); }
}

/* ===== page styles ===== */
    /* -- SPLIT LAYOUT --------------------------------------- */
    .split-layout {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: var(--space-16);
      align-items: center;
    }
    .split-layout--rev { direction: rtl; }
    .split-layout--rev > * { direction: ltr; }

    /* Split media image wrapper (replaces React ImgPlaceholder) */
    .split-media {
      margin: 0;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: var(--bg-inverse);
      min-height: 320px;
    }
    .split-media img {
      display: block;
      width: 100%;
      height: 100%;
      min-height: 320px;
      object-fit: cover;
    }

    @media (max-width: 768px) {
      .split-layout { grid-template-columns: 1fr; direction: ltr !important; gap: var(--space-8); }
      .split-layout > * { direction: ltr !important; }
    }

    /* -- TRUST BAR ------------------------------------------ */
    .trust-bar {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: var(--bg-surface);
      padding: var(--space-4) 0;
    }
    .trust-bar__inner {
      display: flex;
      gap: var(--space-6);
      flex-wrap: wrap;
      justify-content: center;
    }
    .trust-bar__item {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      font-size: var(--text-sm);
      font-weight: var(--weight-semibold);
      color: var(--brand-strong);
      white-space: nowrap;
    }
    .trust-bar__dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    /* -- PROCESS STEPS -------------------------------------- */
    .process-steps {
      list-style: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: var(--space-5);
    }
    .process-step {
      display: flex;
      gap: var(--space-4);
      align-items: flex-start;
    }
    .process-step__num {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--brand);
      color: var(--white);
      display: grid;
      place-items: center;
      font-family: var(--font-display);
      font-weight: var(--weight-semibold);
      font-size: var(--text-sm);
      flex-shrink: 0;
      margin-top: 3px;
    }
    .process-step__title {
      display: block;
      font-weight: var(--weight-semibold);
      color: var(--text-primary);
      margin-bottom: 3px;
    }
    .process-step__desc {
      display: block;
      color: var(--text-muted);
      font-size: var(--text-sm);
      line-height: var(--leading-relaxed);
    }

    /* -- FAQ ------------------------------------------------ */
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }
    .faq-item {
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      overflow: hidden;
      background: var(--bg-surface);
    }
    .faq-item__btn {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-4);
      padding: var(--space-5) var(--space-6);
      font-size: var(--text-base);
      font-weight: var(--weight-semibold);
      color: var(--text-primary);
      text-align: left;
      background: none;
      border: none;
      cursor: pointer;
      transition: background var(--transition-fast, 140ms ease);
    }
    .faq-item__btn:hover { background: var(--bg-brand-tint); }
    .faq-chevron {
      flex-shrink: 0;
      color: var(--text-muted);
      transition: transform var(--transition-base, 200ms ease);
    }
    @media (prefers-reduced-motion: reduce) {
      .faq-chevron { transition: none; }
    }
    .faq-item--open .faq-chevron { transform: rotate(180deg); }
    .faq-item__body {
      padding: var(--space-2) var(--space-6) var(--space-6);
      color: var(--text-secondary);
      line-height: var(--leading-relaxed);
      font-size: var(--text-base);
    }
    /* Collapsed by default; JS toggles .faq-item--open. No-JS fallback keeps
       answers visible (the html.js gate hides them only when JS is active). */
    html.js .faq-item__body { display: none; }
    html.js .faq-item--open .faq-item__body { display: block; }

    /* -- CONTACT -------------------------------------------- */
    .contact-centered {
      max-width: 680px;
      margin: 0 auto;
    }
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: var(--space-5);
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-4);
    }
    @media (max-width: 768px) {
      .form-row { grid-template-columns: 1fr; }
    }

    /* -- MOBILE NAV ----------------------------------------- */
    .navbar__hamburger {
      display: none;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-md);
      color: var(--brand-strong);
      transition: background 140ms ease;
      flex-shrink: 0;
    }
    .navbar__hamburger:hover { background: var(--bg-brand-tint); }
    .navbar__cta-desk { /* desktop only - hidden below */ }

    @media (max-width: 1024px) {
      .navbar__nav      { display: none; }
      .navbar__hamburger { display: flex; }
      .navbar__cta-desk  { display: none !important; }
    }

    .mobile-nav {
      position: fixed;
      inset: 0;
      z-index: 999;
      background: var(--scrim);
      backdrop-filter: blur(4px);
      display: flex;
    }
    .mobile-nav[hidden] { display: none; }
    .mobile-nav__drawer {
      width: min(340px, 88vw);
      background: var(--bg-surface);
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      padding: var(--space-6);
      overflow-y: auto;
      box-shadow: var(--shadow-drawer);
      animation: drawerIn 220ms ease;
    }
    @keyframes drawerIn {
      from { transform: translateX(-100%); opacity: 0; }
      to   { transform: translateX(0);     opacity: 1; }
    }
    .mobile-nav__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: var(--space-4);
      margin-bottom: var(--space-2);
      border-bottom: 1px solid var(--border);
    }
    .mobile-nav__close {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-md);
      display: grid;
      place-items: center;
      color: var(--text-secondary);
      transition: background 140ms ease;
    }
    .mobile-nav__close:hover { background: var(--bg-muted); }
    .mobile-nav__links {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
    }
    .mobile-nav__link {
      font-size: var(--text-base);
      font-weight: var(--weight-medium);
      color: var(--text-secondary);
      padding: var(--space-3) var(--space-4);
      border-radius: var(--radius-md);
      transition: background 140ms ease, color 140ms ease;
    }
    .mobile-nav__link:hover { background: var(--bg-brand-tint); color: var(--brand-strong); }
    .mobile-nav__foot {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
      padding-top: var(--space-4);
      margin-top: var(--space-4);
      border-top: 1px solid var(--border);
    }

    @media (prefers-reduced-motion: reduce) {
      .mobile-nav__drawer { animation: none; }
    }

    /* -- SCROLL REVEAL -------------------------------------- */
    @media (prefers-reduced-motion: no-preference) {
      html.js [data-reveal] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 560ms ease, transform 560ms ease;
      }
      html.js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      [data-reveal], [data-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
    }

    /* -- GLOBAL OVERFLOW GUARD -------------------------------- */
    body { overflow-x: hidden; }

    /* -- PREMIUM SITE-LEVEL OVERRIDES ------------------------ */

    /* Slightly larger base type on desktop */
    @media (min-width: 768px) { body { font-size: var(--text-md); } }

    /* Stronger heading hierarchy */
    h2 { font-weight: var(--weight-bold); }
    h3 { font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }

    /* Section visual rhythm - subtle top line on light sections */
    .section:not(.section--inverse):not(.hero) {
      border-top: 1px solid var(--border);
    }

    /* Navbar - smoother on scroll */
    .navbar { transition: box-shadow var(--transition-base), background var(--transition-base); }
    .navbar--scrolled { box-shadow: var(--shadow-sm); }

    /* -- HERO REFINEMENTS ----------------------------------- */
    .hero .eyebrow    { color: var(--green-300); }
    .hero .hero__title { color: var(--text-on-brand); }
    .hero .hero__lead  { color: var(--text-on-brand-muted); }

    /* -- SECTION ANCHOR OFFSET (sticky header) -------------- */
    section[id] {
      scroll-margin-top: 80px;
    }

    /* -- NAVBAR SCROLL SHADOW -------------------------------- */
    .navbar--scrolled {
      box-shadow: var(--shadow-navbar);
      transition: box-shadow 240ms ease;
    }

    /* -- HERO ENTRANCE ANIMATIONS ----------------------------- */
    @media (prefers-reduced-motion: no-preference) {
      .hero .eyebrow { animation: heroUp 600ms cubic-bezier(0.4,0,0.2,1) 160ms both; }
      .hero__title   { animation: heroUp 720ms cubic-bezier(0.4,0,0.2,1) 320ms both; }
      .hero__lead    { animation: heroUp 600ms cubic-bezier(0.4,0,0.2,1) 480ms both; }
      .hero__actions { animation: heroUp 560ms cubic-bezier(0.4,0,0.2,1) 630ms both; }
    }
    @keyframes heroUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }

    /* -- TRUST BAR MARQUEE ------------------------------------ */
    .trust-bar { overflow: hidden; }
    .trust-bar__marquee { overflow: hidden; padding: var(--space-4) 0; }
    .trust-bar__track {
      display: flex;
      gap: var(--space-8);
      width: max-content;
    }
    .trust-bar__item {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      font-size: var(--text-sm);
      font-weight: var(--weight-semibold);
      color: var(--brand-strong);
      white-space: nowrap;
    }
    .trust-bar__dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }
    @media (prefers-reduced-motion: no-preference) {
      .trust-bar__track { animation: marquee 32s linear infinite; }
      .trust-bar__marquee:hover .trust-bar__track { animation-play-state: paused; }
    }
    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-33.333%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .trust-bar__track {
        flex-wrap: wrap; width: 100%;
        justify-content: center; padding: var(--space-1) var(--space-6);
      }
    }

    /* -- PRODUCT CARD MEDIA ----------------------------------- */
    .card.product-card { display: flex; flex-direction: column; }
    .product-card__media {
      position: relative;
      height: 200px;
      background: linear-gradient(145deg, var(--green-800) 0%, var(--green-500) 100%);
      overflow: hidden;
      flex-shrink: 0;
    }
    .product-card__media .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
    .product-card__body { padding: var(--space-5); flex: 1; }
    .product-card__reg {
      font-size: var(--text-xs);
      color: var(--accent-strong);
      font-family: var(--font-mono);
      background: var(--green-50);
      padding: 3px var(--space-2);
      border-radius: var(--radius-xs);
      display: inline-block;
      margin-bottom: var(--space-2);
    }
    .product-card__desc th, .product-card__desc td { padding: var(--space-1) var(--space-2); }

    /* -- GENETICS CAROUSEL ------------------------------------ */
    .genetics-carousel { position: relative; }
    .genetics-track {
      display: grid;
      /* minmax(0, …) instead of 1fr: an auto minimum would let a wide cell in the
         admin-authored description stretch one card and unbalance the row. */
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-6);
    }
    .carousel-dots, .carousel-arrow { display: none; }

    @media (max-width: 767px) {
      .genetics-track {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding: var(--space-1) var(--space-1) var(--space-3);
        margin: 0 calc(-1 * var(--space-1));
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .genetics-track::-webkit-scrollbar { display: none; }
      .genetics-slide { flex: 0 0 82%; scroll-snap-align: center; min-width: 0; }
      .carousel-dots {
        display: flex;
        justify-content: center;
        /* gap clears the active dot's scale(1.35) bleed: a scaled 48px box grows
           ~8.4px past each edge, so >=8.4px of gap keeps the 48px tap targets from
           overlapping their neighbours. */
        gap: 12px;
        margin-top: var(--space-4);
      }
      .carousel-dot {
        /* Visual dot: 8x8 px - kept identical to the original design.
           box-sizing: content-box OVERRIDES the global border-box reset so the
           padding below actually expands the box instead of eating the 8px core
           (under border-box the content box collapses to 0 and nothing paints). */
        box-sizing: content-box;
        width: 8px; height: 8px;
        border-radius: 50%;
        background: var(--ink-300);
        border: none; cursor: pointer;
        /* Expand hit area to 48x48 px. Lighthouse's tap-target audit uses a 48px
           "finger size" — a target >=48px in both dimensions never fails it
           (24px / WCAG 2.5.5 is not enough for the Lighthouse audit). 8px core +
           20px padding each side = 48px clickable box. background-clip: content-box
           restricts the visible fill to the 8x8 core so the dot still LOOKS 8px. */
        padding: 20px;
        background-clip: content-box;
        transition: background 200ms ease, transform 200ms ease;
      }
      /* background-COLOR (not the shorthand) so the inherited background-clip:
         content-box is preserved — the shorthand would reset it to border-box
         and paint the whole 24px box green. */
      .carousel-dot--active { background-color: var(--brand); transform: scale(1.35); }
      .carousel-arrow {
        display: flex;
        align-items: center; justify-content: center;
        position: absolute; top: 88px;
        width: 36px; height: 36px;
        border-radius: 50%;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        color: var(--brand);
        transition: box-shadow 160ms ease;
        z-index: 2;
      }
      .carousel-arrow:hover { box-shadow: var(--shadow-md); }
      .carousel-arrow--prev { left: 4px; }
      .carousel-arrow--next { right: 4px; }
      .carousel-arrow.is-hidden { opacity: 0; pointer-events: none; }
    }
    @media (min-width: 768px) and (max-width: 1023px) {
      .genetics-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    /* -- STATS + CTA - UNIFIED DARK BLOCK --------------------- */
    .stats-cta-block {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 85% 50%, color-mix(in srgb, var(--green-400) 11%, transparent) 0%, transparent 52%),
        radial-gradient(ellipse at 12% 80%, color-mix(in srgb, var(--green-500) 6%, transparent) 0%, transparent 44%),
        var(--green-900);
    }
    .scb-orb {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      filter: blur(72px);
      z-index: 0;
    }
    .scb-orb--1 {
      top: -18%; right: -6%;
      width: 540px; height: 540px;
      background: radial-gradient(circle at center, var(--green-500) 0%, transparent 65%);
      opacity: 0.32;
    }
    .scb-orb--2 {
      bottom: -30%; left: -5%;
      width: 400px; height: 400px;
      background: radial-gradient(circle at center, color-mix(in srgb, var(--green-500) 70%, transparent) 0%, transparent 65%);
      opacity: 0.18;
    }
    .scb-orb--3 {
      top: 40%; left: 30%;
      width: 300px; height: 300px;
      background: radial-gradient(circle at center, color-mix(in srgb, var(--green-400) 40%, transparent) 0%, transparent 65%);
      opacity: 0.07;
    }
    @media (prefers-reduced-motion: no-preference) {
      .scb-orb--1 { animation: orbPulse 10s ease-in-out infinite; }
      .scb-orb--2 { animation: orbPulse 14s ease-in-out infinite reverse; }
      .scb-orb--3 { animation: orbPulse 18s ease-in-out 2s infinite; }
    }
    @keyframes orbPulse {
      0%, 100% { transform: scale(1) translateY(0); }
      50%       { transform: scale(1.09) translateY(-10px); }
    }
    .scb-stats { position: relative; z-index: 1; padding-bottom: var(--space-12); }
    .scb-divider {
      width: min(640px, 80%);
      height: 1px;
      margin: 0 auto;
      background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--white) 8%, transparent) 30%, color-mix(in srgb, var(--white) 8%, transparent) 70%, transparent 100%);
      position: relative; z-index: 1;
    }
    .cta-panel__inner {
      position: relative; z-index: 1;
      text-align: center;
      display: flex; flex-direction: column; align-items: center;
      gap: var(--space-8);
      padding-top: var(--space-12);
    }
    .cta-panel__title { color: var(--text-on-brand); max-width: 640px; margin: 0; line-height: 1.15; }
    @media (max-width: 480px) {
      .cta-panel__title { font-size: clamp(1.55rem, 6vw, 2rem); }
      .cta-panel__inner .cta__actions { flex-direction: column; width: 100%; }
      .cta-panel__inner .cta__actions .btn { width: 100%; justify-content: center; }
    }

    /* -- GRID STAGGER ----------------------------------------- */
    @media (prefers-reduced-motion: no-preference) {
      html.js [data-stagger] > * {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 480ms ease, transform 480ms ease;
      }
      html.js [data-stagger].is-revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay: 50ms; }
      html.js [data-stagger].is-revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay:160ms; }
      html.js [data-stagger].is-revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:270ms; }
      html.js [data-stagger].is-revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:380ms; }
    }

    /* -- FAQ OPEN ANIMATION ----------------------------------- */
    @media (prefers-reduced-motion: no-preference) {
      .faq-item__body { animation: faqOpen 200ms ease; }
      @keyframes faqOpen {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: none; }
      }
    }

    /* -- RESPONSIVE ------------------------------------------- */

    /* Tablet landscape (<= 1199px) */
    @media (max-width: 1199px) {
      .section-header { margin-bottom: var(--space-12); }
    }

    /* Tablet portrait (<= 1023px) - align to screen width */
    @media (max-width: 1023px) {
      :root           { --gutter: var(--space-5); }        /* 20px sides */
      .section-header { margin-bottom: var(--space-10); }
    }

    /* Phablet / large phone (<= 767px) */
    @media (max-width: 767px) {
      :root                     { --gutter: var(--space-4); } /* 16px sides */
      body                      { font-size: var(--text-base); }
      .brand__suffix            { display: none; }           /* hide "F1SeedTech" in navbar */
      .brand                    { font-size: var(--text-base); gap: var(--space-2); }
      .brand__mark              { width: 30px; height: 30px; }
      .navbar__inner            { gap: var(--space-3); height: 60px; }
      .navbar__actions          { gap: var(--space-2); }
      .hero                     { padding-block: var(--space-20) !important; }
      .hero__inner               { gap: var(--space-5); max-width: 100%; }
      .hero__title               { word-break: break-word; }
      .section-header            { margin-bottom: var(--space-8); }
      .stats-cta-block .grid--4  { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
      .scb-stats                 { padding-bottom: var(--space-8); }
      .cta-panel__inner          { padding-top: var(--space-8); gap: var(--space-5); }
      .footer__grid              { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    }

    /* Phone (<= 479px) - iPhone SE / XR full-width */
    @media (max-width: 479px) {
      :root                      { --gutter: var(--space-4); } /* 16px sides */
      .hero                      { padding-block: var(--space-16) !important; }
      .hero__title               { font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl)) !important; }
      .hero__lead                { font-size: var(--text-base); }
      .hero__actions             { flex-direction: column; align-items: center; }
      .hero__actions .btn        { width: 100%; justify-content: center; }
      .hero__inner               { gap: var(--space-4); }
      .section-header            { margin-bottom: var(--space-6); gap: var(--space-3); }
      .stats-cta-block .grid--4  { grid-template-columns: 1fr 1fr !important; gap: var(--space-4); }
      .stat                      { text-align: center; }
      .stat__value               { font-size: var(--text-4xl); }
      .scb-stats                 { padding-bottom: var(--space-6); }
      .cta-panel__inner          { padding-top: var(--space-6); gap: var(--space-4); }
      .cta-panel__title          { font-size: clamp(1.55rem, 6vw, 2rem); }
      .cta-panel__inner .cta__actions      { flex-direction: column; width: 100%; }
      .cta-panel__inner .cta__actions .btn { width: 100%; justify-content: center; }
      .footer__grid              { grid-template-columns: 1fr; }
      .form-row                  { grid-template-columns: 1fr; }
      .faq-item__btn             { padding: var(--space-4); }
      .faq-item__body            { padding: var(--space-1) var(--space-4) var(--space-5); font-size: var(--text-sm); }
    }

    /* -- HERO DECORATIVE ELEMENTS -------------------------------- */
    .hero__orb {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      filter: blur(90px);
      z-index: 0;
    }
    .hero__orb--1 { top: -20%; right: -8%; width: 680px; height: 680px; background: radial-gradient(circle, color-mix(in srgb, var(--green-500) 22%, transparent) 0%, transparent 65%); }
    .hero__orb--2 { bottom: -25%; left: -10%; width: 540px; height: 540px; background: radial-gradient(circle, color-mix(in srgb, var(--green-900) 18%, transparent) 0%, transparent 65%); }
    .hero__orb--3 { top: 30%; right: 22%; width: 360px; height: 360px; background: radial-gradient(circle, color-mix(in srgb, var(--green-400) 9%, transparent) 0%, transparent 65%); }
    .hero__deco { position: absolute; pointer-events: none; z-index: 0; }
    .hero__deco--veins { bottom: -5%; right: -8%; width: 580px; height: 812px; opacity: 0.05; }
    .hero__deco--topo  { top: -15%; left: -18%; width: 860px; height: 860px; opacity: 0.04; }
    .hero__inner { position: relative; z-index: 1; }

    /* -- FOOTER SOCIAL -------------------------------------------- */
    .footer__bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
    .footer__social { display: flex; gap: var(--space-4); align-items: center; }
    /* Minimum 44x44 px tap target: 24 px icon + 10 px padding each side */
    .footer__social-link { color: var(--text-on-brand-subtle); transition: color 200ms ease; display: inline-flex; align-items: center; padding: 10px; margin: -10px; }
    .footer__social-link:hover { color: var(--text-on-brand); }
    @media (max-width: 767px) {
      .footer__bottom { flex-direction: column; align-items: center; justify-content: center; }
      .footer__social { justify-content: center; }
    }

    /* -- CONTACT FORM - response banner & submitting state ------------ */
    .contact-form__response { display: none; margin-top: var(--space-2); }
    .contact-form__response .alert { display: none; }

    /* Legal checkbox error highlight - _ds only covers .field--error .input/.textarea;
       extend here with a token-based outline on the .checkbox wrapper */
    .field--error.checkbox,
    .field--error .checkbox { color: var(--danger); }
    .field--error.checkbox input,
    .field--error .checkbox input { outline: 2px solid var(--danger); outline-offset: 3px; border-radius: var(--radius-xs); }

    /* Submitting: dim + block the submit button */
    .contact-form--submitting button[type="submit"] {
      opacity: .6;
      pointer-events: none;
    }
