/* =====================================================================
   Ezina marketing site — main stylesheet (rebuilt from Figma 0.1)
   ---------------------------------------------------------------------
   Token names mirror Figma variable paths so any swap is find/replace.
   Mobile-first; desktop rules under (min-width: 900px).

   Page structure top → bottom:
     1. Site header (brown bg, yellow wordmark, purple hamburger)
     2. Hero (brown bg, centered copy + signup form)
     3. Feature callout / carousel (brown bg, centered title + mockup)
     4. What Ezina does (brown bg, eggshell comparison table)
     5. Transparency promise (brown bg, long-form text — content TBD)
     6. Tester benefits + follow-up form (eggshell bg, dark text)
     7. Bug bounty (eggshell bg, title + mockup)
     8. Footer (eggshell bg, brown text + wordmark)
   ===================================================================== */

/* ── Fonts ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/assets/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Variable.woff2') format('woff2-variations'),
       url('/assets/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens (from Figma 424:22522, 433:26885, 433:27098, 433:27295) ── */
:root {
  /* Eggshell — light surfaces, text on dark */
  --color-eggshell-1: #FAF6EC;
  --color-eggshell-2: #F5F0E2;

  /* Brown — warm dark hues + form chrome.
     --color-brand-bg sourced from Figma 424:22496 (top nav) rgba(74,51,36),
     not the deeper #2C1100 inherited from the email template. */
  --color-brown-1: #F5EBDE;     /* input bg, light surface accent */
  --color-brown-2: #C5B49F;     /* "border/subtle" — used for the footer divider */
  --color-brown-3: #AA947E;     /* input border, footer type + logo */
  --color-brown-5: #6D5441;     /* placeholder text */
  --color-brand-bg: #4A3324;    /* hero/dark section bg (warm dark brown) */

  /* Text */
  --color-text-primary: #281207;   /* dark text on eggshell */

  /* Green — CTAs */
  --color-green-6: #2C5F39;
  --color-green-6-hover: #245030;

  /* Purple — link text, in-app menu accent */
  --color-purple-3: #C8ABEA;
  --color-purple-link: #7F59A1;

  /* Yellow — wordmark + in-app accent */
  --color-yellow-5: #DBA605;
  --color-yellow-wordmark: #F2C94C;

  /* Blue — eyebrow tag (Figma 457:6435) */
  --color-blue-7: #192F60;
  --color-blue-4: #6586D2;
  --color-eggshell-3: #F1E9D8;

  /* Purple — References pill (fill + stroke) */
  --color-purple-7: #3D1F62;
  --color-purple-4: #B084D6;

  /* Error tokens — calm desaturated terracotta */
  --color-error-text: #B33A3A;
  --color-error-bg:   #FBE9E7;
  --color-error-border: #D88B85;

  /* Status pill tokens — exact values from Figma 431:26333/26278/26286.
     "At launch" is a new variant not in Figma; uses brand brown. */
  --status-success:    #477C51;
  --status-success-bg: #F6FDF1;
  --status-warning:    #9A710A;
  --status-warning-bg: #FFF5DC;
  --status-info:       #4C69AC;
  --status-info-bg:    #D7E0F4;
  --status-neutral:    #6D5441;
  --status-neutral-bg: #F5EBDE;

  /* Typography */
  --font-sans: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-black:   900;

  --fs-xs:   10px;
  --fs-sm:   13px;
  --fs-base: 16px;
  --fs-lg:   20px;
  --fs-xl:   clamp(1.75rem, 4vw + 0.5rem, 2.5rem);   /* mobile ~31px → ~40px wide */
  --fs-2xl:  clamp(2.25rem, 6vw + 0.5rem, 4rem);     /* mobile ~39px → ~64px wide */

  --lh-tight: 1.15;
  --lh-snug:  1.4;     /* 18.2px on 13px */
  --lh-body:  1.5;

  /* Spacing (Figma --spacing/N values, rounded to whole px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;     /* --spacing/8 */
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;     /* --radius/md (button) */
  --radius-md: 8px;     /* --radius/lg (input) */
  --radius-pill: 999px;

  --container-max:    1200px;
  --container-narrow:  640px;
  --container-pad:    var(--space-4);
}

/* ── Reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-purple-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:focus-visible { outline: 2px solid var(--color-yellow-wordmark); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: var(--lh-tight); font-weight: var(--fw-medium); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: var(--space-4);
  background: var(--color-brand-bg); color: var(--color-eggshell-1);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: var(--space-4); }

/* ── Layout primitives ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: var(--space-9); } }

.section--dark {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
}
.section--light {
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
}

/* ── Site header (Figma 424:22495) ───────────────────────────────────── */
/* Brown bg (transparent over hero — but for safety also brown). Yellow
   EZINA wordmark on left, purple 3-bar hamburger on right, padding 16px. */
.site-header {
  background: var(--color-brand-bg);
  padding: var(--space-4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-header__logo { display: inline-flex; align-items: center; gap: var(--space-2); }
.site-header__logo img {
  width: auto;
  height: 20px;
  display: block;
}

/* Desktop nav links — hidden on mobile (hamburger takes over). */
.site-nav { display: none; }
/* Hamburger — 3 purple bars, 27×3 each, 8px stack gap. Toggle is visual
   only for now; pop-out menu is a future round. */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: var(--space-2);
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: var(--radius-sm);
  background: var(--color-purple-3);
}
.menu-toggle:focus-visible { outline: 2px solid var(--color-yellow-wordmark); outline-offset: 2px; border-radius: 4px; }
@media (min-width: 900px) {
  .menu-toggle__bar { width: 36px; height: 4px; }
}

/* ── Hero (Figma 424:22522 mobile + 408:12711 desktop) ───────────────────
   Full-span container. Plant illustration is the BACKGROUND fill (absolute,
   covers the whole hero). Foreground stacks vertically: headline → lede →
   signup form → 3 phone mockups centered horizontally beneath. On mobile
   the mockup row is hidden to match the Figma mobile hero (text + form only). */
.hero {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: var(--space-7) var(--space-8);
  position: relative;
  overflow: hidden;
  isolation: isolate;          /* contain z-index against parent stacking */
}
@media (min-width: 900px) {
  .hero { padding-block: var(--space-9); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  max-width: 540px;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--color-blue-7);
  border: 1px solid var(--color-blue-4);
  border-radius: var(--radius-md);
  color: var(--color-eggshell-3);
  font-family: var(--font-sans);
  font-weight: 800;          /* Cabinet Grotesk Extrabold */
  font-size: var(--fs-xs);   /* 10px */
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 10px;
  margin-bottom: var(--space-2);
  white-space: nowrap;
}
.hero__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  color: var(--color-eggshell-1);
  margin: 0;
}
.hero__lede {
  color: var(--color-eggshell-2);
  font-size: var(--fs-base);
  max-width: 32ch;
  margin: 0;
}

/* Hero mockup — the 3-phone fan is a single Figma export, so layout
   and the middle-phone offset come from the image itself. We just size
   it responsively and center it under the form. */
.hero__mockup-fan {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: var(--space-5) auto 0;
}

/* "Screens not final, pre-alpha state." caption (Figma 408:16645).
   Small italic-feeling note centered under the phone fan. */
.hero__caption {
  margin: var(--space-3) auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-eggshell-2);
  opacity: 0.85;
}

/* ── Signup form (Figma 424:23688 hero + 433:26889 follow-up) ──────────
   Form-level layout: column, items-center, 8px gap between the
   email+radios sub-group and the submit button. Width 278px to match
   Figma's email (266px) + 6px inner padding. */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);              /* 8px → Figma gap-8 between subgroup and button */
  align-items: center;
  width: 100%;
  max-width: 280px;
}

/* Email + radios share a sub-group with tight 6px gap, items-start
   (left-aligned within the centered form). Matches Figma 424:23689. */
.signup-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;                          /* Figma 424:23689 gap-6.453 */
  align-items: stretch;
  width: 100%;
}
.signup-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
}

/* Email input — eggshell-cream bg, brown border, brown placeholder.
   Matches Figma 424:23691 + 433:26891. */
.signup-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--color-brown-1);
  color: var(--color-text-primary);
  border: 1px solid var(--color-brown-3);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.signup-form input[type="email"]::placeholder { color: var(--color-brown-5); }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-brown-5);
  box-shadow: 0 0 0 3px rgba(109, 84, 65, 0.2);
}
.signup-form input[type="email"][aria-invalid="true"] {
  border-color: var(--color-error-border);
  background: var(--color-error-bg);
  color: var(--color-error-text);
}
.signup-form input[type="email"][aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.15);
}

/* Platform radio group — small circle + label, Android first.
   Hero (424:23693): gap 22px, items-start, slight px-7 indent.
   Follow-up (433:26893): gap 28px, justify-center. */
.signup-form__platform {
  display: flex;
  gap: 22px;
  border: 0;
  padding: 0;
  margin: 0;
  padding-inline: 7px;
  justify-content: flex-start;
}
.signup-form--followup .signup-form__platform {
  gap: 28px;
  padding-inline: 0;
  justify-content: center;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  line-height: 1;            /* keep label visually centered with the circle */
  color: var(--color-eggshell-1);
}
.platform-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.platform-pill::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--color-green-6);
  background: transparent;
  flex-shrink: 0;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.platform-pill:has(input:checked)::before {
  background: var(--color-green-6);
  box-shadow: inset 0 0 0 3px var(--color-eggshell-1);
}
.platform-pill:has(input:focus-visible)::before {
  outline: 2px solid var(--color-yellow-wordmark);
  outline-offset: 2px;
}
.section--light .platform-pill { color: var(--color-text-primary); }

/* Submit button — Figma 424:23697 + 433:26896.
   Fixed width 204px in design; we keep that on the follow-up form
   (designed centered) and stretch to fill on the hero form (mobile
   constrained). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 32px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: var(--fw-bold);     /* Bold (700), not Black */
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.02em;          /* 2% tracking */
  transition: background-color 120ms ease, opacity 120ms ease;
}
.btn--primary {
  background: var(--color-green-6);
  color: var(--color-eggshell-2);
}
.btn--primary:hover { background: var(--color-green-6-hover); }

/* Hero submit — full-width inside the form on mobile; the desktop
   @media block resizes to the design's 306px below. */
.signup-form--hero .btn--primary {
  width: 100%;
}
.btn--primary:focus-visible {
  outline: 2px solid var(--color-eggshell-1);
  outline-offset: 2px;
}
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.7; cursor: not-allowed; }
.btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Error messages */
.signup-form__error {
  color: var(--color-error-text);
  font-size: var(--fs-sm);
  margin: 0;
}
.signup-form__error--form {
  width: 100%;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

/* Success state — calm eggshell card, green accent border. */
.signup-form__success {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  padding: var(--space-4) var(--space-5);
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-green-6);
  border-radius: var(--radius-sm);
  max-width: 360px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .btn__spinner { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Feature callout / carousel (Figma 431:25096) ────────────────────── */
/* Centered headline over a phone mockup. Mockup is the existing PNG
   asset; a full in-app camera-UI recreation is deferred. */
.feature-callout {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: var(--space-6) var(--space-7);
}
.feature-callout__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.feature-callout__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 28ch;
  margin: 0;
  color: var(--color-eggshell-1);
}
.feature-callout__mock {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ── What Ezina does (Figma 431:26337 — table inside) ────────────────── */
/* Brown section wrapping an eggshell-card comparison table. Table content
   is structural scaffold — actual rows come in the next round. */
.feature-table-section {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: var(--space-7) var(--space-7);
}
.feature-table-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.feature-table-section__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-eggshell-1);
  margin: 0;
}
.feature-table-section__lede {
  color: var(--color-eggshell-2);
  font-size: var(--fs-sm);
  max-width: 50ch;
}
.feature-table {
  width: 100%;
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border-collapse: collapse;
}
.feature-table thead {
  background: var(--color-green-6);
  color: var(--color-eggshell-1);
}
.feature-table th,
.feature-table td {
  text-align: left;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--color-brown-1);
  vertical-align: middle;
}
/* Match Figma 431:26185: feature cell is Cabinet Grotesk Medium 12.5px,
   text-primary #281207. The "What it does" column shares the same size
   but with Regular weight and muted color for visual hierarchy. */
.feature-table th {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}
.feature-table td {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--color-text-primary);
}
.feature-table__feature  { font-weight: var(--fw-medium); }
.feature-table__what     { font-weight: var(--fw-regular); color: var(--color-brown-5); }
.feature-table tbody tr:last-child td { border-bottom: 0; }
.feature-table td:last-child,
.feature-table th:last-child {
  text-align: right;
  padding-right: var(--space-4);
  white-space: nowrap;
  width: 1%;          /* shrink to content so left columns stretch */
}

/* Status pills — match Figma 431:26333/26278/26286 exactly.
   5px dot + uppercase text inside a fully-rounded filled pill.
   Figma text is 6.875px which is below web legibility threshold;
   we bump to 9px to keep the same hierarchy without hurting accessibility. */
.feature-table__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.feature-table__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.feature-table__status--ready {
  background: var(--status-success-bg);
  color: var(--status-success);
}
.feature-table__status--progress {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}
.feature-table__status--soon {
  background: var(--status-info-bg);
  color: var(--status-info);
}
.feature-table__status--launch {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

/* Mobile: hide the "What it does" column. Figma mobile table was 2-column
   only, so this matches the source design while preserving the third column
   for desktop where there's room. */
@media (max-width: 599px) {
  .feature-table th:nth-child(2),
  .feature-table td:nth-child(2) {
    display: none;
  }
}

/* ── Accordion (transparency promise collapsible sections) ───────────── */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion__item {
  border: 0;
  background: transparent;
}
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-eggshell-1);
  border-bottom: 1px solid rgba(245, 240, 226, 0.15);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::marker { content: ""; }
.accordion__summary:hover { color: var(--color-yellow-wordmark); }
.accordion__summary:focus-visible {
  outline: 2px solid var(--color-yellow-wordmark);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Right-pointing triangle that rotates 90° down when open. */
.accordion__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.accordion__item[open] .accordion__chevron { transform: rotate(45deg); }
.accordion__body {
  padding: var(--space-3) 0 var(--space-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--color-eggshell-2);
}
.accordion__body > * + * { margin-top: var(--space-3); }
.accordion__body ul,
.accordion__body ol {
  padding-left: var(--space-5);
  margin: 0;
}
.accordion__body ul li,
.accordion__body ol li { margin-bottom: var(--space-2); }
.accordion__body a {
  color: var(--color-yellow-wordmark);
  text-decoration: underline;
}

/* Animate opening if the browser supports interpolate-size + reduced
   motion is not requested. Graceful no-op otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .accordion__item::details-content {
    transition: block-size 200ms ease, content-visibility 200ms allow-discrete;
  }
}

/* ── Transparency promise (Figma 431:26337 lower portion) ────────────── */
/* Long-form text block on brown bg with eggshell text. Content needs
   to be pasted in from the source doc. */
.transparency {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: var(--space-7) var(--space-8);
}
.transparency__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.transparency__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}
.transparency__intro {
  color: var(--color-eggshell-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  margin-bottom: var(--space-5);
}
.transparency__date {
  color: var(--color-eggshell-2);
  font-size: var(--fs-xs);
  font-style: italic;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}
.transparency__contact {
  color: var(--color-eggshell-2);
  font-size: var(--fs-sm);
  margin-top: var(--space-5);
}
.transparency__contact a {
  color: var(--color-yellow-wordmark);
  text-decoration: underline;
}

/* ── Tester intro (eggshell band under hero) ─────────────────────────
   Restored above the bug bounty section. Title + bullets only. */
.tester-intro {
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
  padding-block: var(--space-7);
}
.tester-intro__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.tester-intro__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  margin: 0;
}
.tester-intro__list {
  list-style: disc;
  padding-left: var(--space-5);
  margin: 0;
  text-align: left;
  font-size: var(--fs-base);
}
.tester-intro__list li {
  margin-bottom: var(--space-3);
  line-height: var(--lh-body);
}
.tester-intro__list li:last-child { margin-bottom: 0; }
.tester-intro__list a {
  color: var(--color-purple-link);
  text-decoration: underline;
}

/* ── Policies (continues the brown band under transparency) ──────────
   "Legal requirements" h2 styled like the transparency title, then a
   4-up grid of accordion tiles below. */
.policies {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: 0 var(--space-7);
}
.policies__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.policies__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-5);
}

/* ── Follow-up signup (brown band, slots under transparency) ─────────
   Brown bg matches the hero so the dark stretch reads continuously.
   Centered title + the same form fields as the hero signup. */
.signup-followup {
  background: var(--color-brand-bg);
  color: var(--color-eggshell-1);
  padding-block: var(--space-6) var(--space-7);
}
.signup-followup__inner {
  max-width: 480px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.signup-followup__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-eggshell-1);
  margin: 0;
}

/* Form container — transparent so the brown band shows through. */
.signup-form--followup-wrap {
  width: 100%;
  padding: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.signup-form--followup { align-items: center; }
/* Platform-pill labels need eggshell text now that the band is brown. */
.signup-form--followup .platform-pill { color: var(--color-eggshell-1); }

/* ── Bug bounty (Figma 431:25799) ─────────────────────────────────────
   Mobile: single column, text block then mock+caption stacked beneath.
   Desktop overrides switch the inner to a 2-column grid. */
.bug-bounty {
  background: var(--color-eggshell-1);
  color: var(--color-text-primary);
  padding-block: var(--space-6) var(--space-7);
}
.bug-bounty__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.bug-bounty__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.bug-bounty__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bug-bounty__icon {
  width: 35px;
  height: auto;
}
.bug-bounty__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  margin: 0;
}
.bug-bounty__lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin: 0;
}
.bug-bounty__body {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  margin: 0;
}
.bug-bounty__mock {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}
.bug-bounty__note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-brown-5);
  margin: 0;
}

/* ── Footer (Figma 433:27295) ──────────────────────────────────────────
   Brown band that continues the dark stretch from the section above.
   All type + the wordmark are brown-3 (SVG ships with #AA947E fill, so
   it picks up the same colour against the dark background naturally).
   Divider is border/subtle (--color-brown-2). */
.site-footer {
  background: var(--color-brand-bg);
  color: var(--color-brown-3);
  padding-block: var(--space-5) var(--space-3);
  border-top: 1px solid var(--color-brown-2);
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 104px;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}
.site-footer__nav a {
  color: var(--color-brown-3);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--color-eggshell-1); }
.site-footer__wordmark img {
  width: auto;
  height: 32px;
}
@media (min-width: 900px) {
  .site-footer__wordmark img { height: 48px; }
}

/* ── No-JS banner ────────────────────────────────────────────────────── */
.noscript-banner {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  padding: var(--space-4);
  text-align: center;
  font-size: var(--fs-sm);
}
.noscript-banner a { color: inherit; }

/* =====================================================================
   Desktop layout (≥900px) — Figma frame 408:12711, design width 2520px.
   Values are scaled where appropriate; absolute design values that need
   to render at parity (form widths, status pills) are kept literal.

   Layout rules:
   - Nav, hero, and the bottom (eggshell) band visually span full viewport
   - Feature table, transparency, tester signup, and bug bounty sit
     inside a 1200px centered column
   - Brown band extends through nav → hero → feature table → transparency
   ===================================================================== */
@media (min-width: 900px) {

  /* ── Header (Figma 408:13144) ──────────────────────────────────────
     Full-bleed brown band. Logo at left with 80px gutter; nav links
     follow IMMEDIATELY to the right of the logo (no auto-margin push),
     matching the design's left-anchored cluster. Hamburger is hidden
     entirely on desktop — it's a mobile-only affordance. */
  .site-header {
    padding: 32px 80px;
  }
  /* 3-col grid: logo on the left, nav centered in the band, empty
     column on the right balances the layout so the nav cluster sits
     in the visual middle. */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: none;
    margin: 0;
    gap: 0;
  }
  .site-header__logo {
    justify-self: start;
  }
  .site-header__logo img { height: 28px; }
  .menu-toggle { display: none !important; }

  .site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    font-family: var(--font-sans);
  }
  .site-nav a {
    color: var(--color-eggshell-2);
    font-weight: var(--fw-medium);
    font-size: 15px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: color 120ms ease;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--color-yellow-wordmark);
  }

  /* ── Hero (Figma 408:12940) ───────────────────────────────────────
     Centered headline ("We grow better, together.") at the top, then
     a 12px-gap lede, then a horizontal signup form, then a 3-phone
     fan with the middle phone offset down. */
  .hero {
    padding-block: 40px 0;
  }
  /* Figma 408:12940 spacing:
       eyebrow → title:   8px (Frame 229 gap)
       title → lede:     12px (Frame 193 gap)
       lede → form:      35px (Frame 9, between text block and form)
       form → mockup:    16px (Frame 230, between Frame 9 and mock)
       mockup → caption: 26px (caption sits 26px below the phone fan)
     Realized via per-element margins on the hero children rather than
     a single flex gap. */
  .hero__inner {
    max-width: 1320px;
    gap: 0;
  }
  .hero__copy {
    gap: 0;
    max-width: none;
  }
  .hero__eyebrow {
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .hero__title {
    /* Figma 408:16471: Cabinet Grotesk Medium 100px, line-height 114px,
       breaks to 2 lines via explicit <br> in the markup. */
    font-size: clamp(56px, 7vw, 100px);
    line-height: 1.14;
    font-weight: var(--fw-medium);
    text-align: center;
    margin: 0;
  }
  .hero__lede {
    /* Figma 408:16472: Cabinet Grotesk Regular 25px, max 670px wide */
    font-size: clamp(18px, 1.6vw, 25px);
    line-height: 1.3;
    max-width: 670px;
    text-align: center;
    margin: 12px 0 0;
  }
  .signup-form--hero {
    margin-top: 35px;
  }
  .hero__mockup-fan {
    margin-top: 16px;
  }
  .hero__caption {
    margin-top: 26px;
    margin-bottom: 0;
    padding-bottom: 40px;
  }

  /* Hero signup — horizontal layout (Figma 423:22462).
     Left column: email (330px) above the radio row.
     Right column: 306px green submit button. 24px gap between columns. */
  .signup-form--hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 720px;
  }
  .signup-form--hero .signup-form__group {
    width: auto;
    flex: 0 0 auto;
    gap: 8px;
  }
  .signup-form--hero .signup-form__field { width: 346px; }
  .signup-form--hero input[type="email"] {
    width: 330px;
    margin-inline: 8px;       /* matches Figma 8px inner padding */
    height: 40px;
  }
  .signup-form--hero .signup-form__platform {
    gap: 28px;
    padding-inline: 9px;
    justify-content: flex-start;
  }
  .signup-form--hero .btn--primary {
    width: 306px;
    min-width: 306px;
    height: 40px;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    /* font-weight inherits the base .btn rule (700 Bold) — Black was
       overshooting the Figma render. */
  }

  /* Hero mockup — desktop max-width matches the Figma fan width
     (Frame 408:13167 at 1564px on a 2520 canvas → ~1100px in this column).
     margin-top is set above in the per-element spacing block (16px). */
  .hero__mockup-fan {
    max-width: 1100px;
  }

  /* ── Tester intro (eggshell band, restored above bug bounty) ───── */
  .tester-intro {
    padding-block: 80px 48px;
  }
  .tester-intro__inner {
    max-width: 820px;
    gap: 32px;
  }
  .tester-intro__title {
    font-size: 49px;
    font-weight: var(--fw-medium);
  }
  .tester-intro__list {
    font-size: 18px;
    max-width: 720px;
    margin-inline: auto;
  }
  .tester-intro__list li { margin-bottom: 8px; }

  /* ── Feature callout — desktop design has no separate callout section,
     the "Identify plants" mock is folded into the hero phone fan. */
  .feature-callout { display: none; }

  /* Bug bounty: tighten top padding so it follows tester-intro snugly. */
  .bug-bounty {
    padding-block: 32px 96px;
  }

  /* ── What Ezina does (Figma 433:26354 — Feature_table) ───────────────
     Eggshell-card table with green/5 header band and tinted status pills. */
  .feature-table-section {
    padding-block: 64px 80px;
  }
  .feature-table-section__inner {
    max-width: var(--container-max);
    gap: 24px;
  }
  .feature-table-section__title {
    /* Figma title heights ~61px → ~49px font (Font/Size/3xl). */
    font-size: 49px;
    font-weight: var(--fw-bold);
  }
  .feature-table-section__lede {
    font-size: 20px;
    max-width: none;
  }

  .feature-table {
    background: var(--color-eggshell-3, #f1e9d8);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
  }
  /* Restore the "What it does" column on desktop (hidden on small viewports). */
  .feature-table th:nth-child(2),
  .feature-table td:nth-child(2) {
    display: table-cell;
  }
  .feature-table thead {
    background: var(--color-green-6);
    color: var(--color-eggshell-1);
  }
  .feature-table th {
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-weight: var(--fw-black);
    font-size: 25px;
    letter-spacing: 0.04em;
    line-height: 1.05;
  }
  .feature-table th:last-child {
    text-align: right;
    padding-right: 52px;
  }
  .feature-table td {
    padding: 14px 32px;
    border-bottom: 1px solid var(--color-brown-1);
    vertical-align: baseline;
    font-size: 16px;
    line-height: 1.05;
  }
  .feature-table td:last-child { padding-right: 52px; }
  .feature-table td.feature-table__feature {
    font-weight: var(--fw-medium);
    font-size: 20px;
    color: var(--color-text-primary);
  }
  .feature-table td.feature-table__what {
    font-weight: 300;
    color: var(--color-text-primary);
  }
  .feature-table__status {
    font-size: 11px;
    padding: 4px 8px;
    gap: 6px;
    letter-spacing: 0.04em;
  }
  .feature-table__status::before { width: 8px; height: 8px; }

  /* ── Transparency (Figma 431:25568) ────────────────────────────────── */
  .transparency { padding-block: 80px 96px; }
  .transparency__inner {
    max-width: var(--container-max);
    padding-inline: var(--container-pad);
  }
  .transparency__title {
    font-size: 49px;
    margin-bottom: 24px;
  }
  .transparency__date { font-size: 14px; margin-bottom: 16px; }
  .transparency__intro {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 40px;
    max-width: 900px;
  }
  .accordion { gap: 0; }
  .accordion__item + .accordion__item { margin-top: 4px; }
  .accordion__summary {
    font-size: 26px;
    font-weight: var(--fw-medium);
    padding: 20px 0;
  }
  .accordion__chevron { width: 12px; height: 12px; }
  .accordion__body {
    font-size: 17px;
    line-height: 1.55;
    padding-block: 16px 24px;
    max-width: 900px;
  }
  .transparency__contact {
    font-size: 17px;
    margin-top: 40px;
  }

  /* ── Policies accordion (continues transparency band) ───────────────
     "Legal requirements" h2 styled like the transparency title, then
     a 4-up grid of accordion tiles below. Each tile expands its body
     in place on click. */
  .policies {
    padding-block: 0 96px;
  }
  .policies__inner {
    max-width: var(--container-max);
    padding-inline: var(--container-pad);
  }
  .policies__title {
    font-size: 32px;
    margin-bottom: 32px;
  }
  .accordion--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  /* Transparency promise accordion stacks one tile per row so each
     long promise stays readable across its full body width. */
  .transparency .accordion--grid {
    grid-template-columns: 1fr;
  }
  .accordion--grid .accordion__item {
    background: rgba(245, 240, 226, 0.05);
    border: 1px solid rgba(245, 240, 226, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    transition: background-color 120ms ease, border-color 120ms ease;
  }
  .accordion--grid .accordion__item:hover {
    background: rgba(245, 240, 226, 0.08);
    border-color: rgba(245, 240, 226, 0.25);
  }
  .accordion--grid .accordion__summary {
    /* Equal-height row across all 4 tiles so chevrons + titles align
       horizontally even when one title wraps. Single-line where it
       fits; centered if not. */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    font-size: 17px;
    font-weight: var(--fw-medium);
    padding: 0;
    border-bottom: 0;
    line-height: 1.2;
  }
  .accordion--grid .accordion__chevron {
    width: 10px;
    height: 10px;
    margin-right: 0;
    flex-shrink: 0;
    align-self: center;
  }
  /* Override the vertical-accordion 4px stack margin — grid uses gap. */
  .accordion--grid .accordion__item + .accordion__item {
    margin-top: 0;
  }

  /* Purple variant — used by the References pill in the transparency grid
     so it reads as a distinct "research source" tile. */
  .accordion--grid .accordion__item--purple {
    background: var(--color-purple-7);
    border-color: var(--color-purple-4);
  }
  .accordion--grid .accordion__item--purple:hover {
    background: var(--color-purple-7);
    border-color: var(--color-purple-4);
    filter: brightness(1.08);
  }
  .accordion--grid .accordion__body {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 0;
    border-top: 1px solid rgba(245, 240, 226, 0.12);
    font-size: 13px;
    line-height: 1.55;
    max-height: 480px;
    overflow-y: auto;
  }
  .accordion--grid .accordion__body h3,
  .accordion--grid .accordion__body h4 {
    font-size: 14px;
    font-weight: var(--fw-bold);
    margin: 16px 0 8px;
    color: var(--color-eggshell-1);
  }
  .accordion--grid .accordion__body > *:first-child { margin-top: 0; }
  .accordion--grid .accordion__references {
    padding-left: 18px;
  }
  .accordion--grid .accordion__references li {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  /* ── Follow-up signup (brown band between transparency and policies)
     Form inherits the hero's horizontal layout (email+radios left,
     306px submit right). Extra padding-block-end per request; tight
     gap between title and form per request. */
  .signup-followup {
    padding-block: 64px 160px;
  }
  .signup-followup__inner {
    max-width: 760px;
    gap: 12px;
  }
  .signup-followup__title {
    font-size: 32px;
  }
  .signup-form--followup-wrap {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding: 0;
  }
  /* The hero form has margin-top:35px (gap from lede). The followup
     form has its own title above and doesn't need that spacing. */
  .signup-followup .signup-form--hero {
    margin-top: 0;
  }

  /* ── Bug bounty (Figma 431:25799) ──────────────────────────────────
     2-column grid: text on the left (~564px), bug_report image right. */
  .bug-bounty {
    padding-block: 64px 96px;
  }
  .bug-bounty__inner {
    max-width: var(--container-max);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 120px;
    align-items: start;
  }
  .bug-bounty__text {
    gap: 24px;
  }
  .bug-bounty__icon { width: 35px; }
  .bug-bounty__title {
    font-size: 49px;
    font-weight: var(--fw-medium);
  }
  .bug-bounty__lede {
    font-size: 22px;
    line-height: 1.4;
  }
  .bug-bounty__body {
    font-size: 17px;
    line-height: 1.55;
  }
  .bug-bounty__media {
    align-items: flex-end;
    gap: 12px;
  }
  .bug-bounty__mock {
    width: 100%;
    max-width: 515px;
    margin: 0;
  }
  .bug-bounty__note {
    text-align: right;
    font-size: 14px;
  }

  /* ── Footer (Figma 431:25883) ──────────────────────────────────────
     Brown bg matching the section above; vertical nav stack on the
     left, wordmark sits right next to the nav cluster (not pushed to
     the right edge). Divider above is border/subtle (brown-2). */
  .site-footer {
    padding-block: 32px 24px;
    border-top-color: var(--color-brown-2);
  }
  .site-footer__inner {
    max-width: var(--container-max);
    align-items: center;
    justify-content: flex-start;
    gap: 56px;
    min-height: 104px;
  }
  .site-footer__nav {
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
  }
  .site-footer__wordmark img { height: 40px; }
}
