/*
 * Happy Farmer — Landing Page Styles
 * Rebuilt against css/design-tokens.css (Iris — sourced from the real
 * landing-page reference at
 * design-reference/landing-page-review/authoritative-landing-page-reference.dc.html).
 *
 * Token-only policy: every color, font-size, and spacing value below comes
 * from css/design-tokens.css. Two documented exceptions, called out inline
 * where they occur:
 *   1. Border-width (1px / 1.5px / 2px) — design-tokens.css has no
 *      semantic border-width scale (flagged to Iris as a gap; see
 *      session log). Literal px used, same as the reference itself.
 *   2. A handful of one-off decorative swatches that appear exactly once
 *      each and were never meant to be systemized (macOS traffic-light
 *      dots, per-person avatar-initial background colors, dashboard-mock
 *      status-pill colors). These are presentational accents inside a
 *      fully aria-hidden decorative mockup, not reusable UI colors.
 *
 * Accessibility notes (see also: session log for this build):
 *  - Focus ring: default ring uses --color-primary-hover, which clears
 *    7.7:1 on white. That same ring measures ~1.6:1 on the dark-green
 *    surfaces used by the footer, the final CTA panel, the dark
 *    hero-feature card, and the dark testimonial card — invisible.
 *    Those surfaces get an explicit override to --color-accent-light,
 *    which clears 7.1:1 on --color-dark-green and 9.9:1 on
 *    --color-near-black (computed, not eyeballed).
 *  - Footer copyright line and the "VERSI 1.0.0 STABLE" tag use the
 *    reference's literal rgba(255,255,255,.3) and rgba(74,222,128,.6)
 *    respectively — both measured below 4.5:1 AA (2.70:1 and 4.37:1).
 *    Bumped to rgba(255,255,255,.5) (reusing --color-label-on-dark,
 *    5.16:1) and rgba(74,222,128,.65) (4.90:1) instead.
 *  - `overflow-x: clip` (not `hidden`) on html AND body — `hidden` on
 *    both breaks `position: sticky` on the nav; `clip` doesn't establish
 *    a scroll container so sticky keeps working while still preventing
 *    the closed mobile-nav panel from creating horizontal scroll.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* see file header — clip, not hidden, to preserve position:sticky */
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-near-black);
  background: var(--color-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* see file header */
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.section {
  padding-block: var(--space-22);
  padding-inline: var(--space-gutter);
}

.section--tint { background: var(--color-surface-faint); }

section[id] {
  scroll-margin-top: var(--space-16);
}

.sr-only {
  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: -100px;
  left: var(--space-4);
  z-index: 200;
  background: var(--color-dark-green);
  color: var(--color-surface);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-body-sm);
  transition: top .15s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Global focus-visible ring — 7.7:1 on white (computed). Never removed. */
a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--color-primary-hover);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Dark-surface override: the default ring above measures ~1.6:1 on
   --color-dark-green / --color-near-black (computed) — effectively
   invisible. Any interactive element inside these four dark containers
   gets a light ring instead (7.1:1 on dark-green, 9.9:1 on near-black,
   both computed). */
.hf-footer a:focus-visible,
.hf-footer button:focus-visible,
.hf-cta-panel a:focus-visible,
.hf-cta-panel button:focus-visible,
.hf-feature-hero a:focus-visible,
.hf-feature-hero button:focus-visible,
.hf-testimonial--dark a:focus-visible,
.hf-testimonial--dark button:focus-visible {
  outline-color: var(--color-accent-light);
}

.section-label {
  display: block;
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-label); /* AA-fixed token — see design-tokens.css */
  margin-bottom: var(--space-3);
}

.section-head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--space-12);
}

.section-head__title {
  font-size: var(--text-section-h2);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-near-black);
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

.section-head__lead {
  font-size: var(--text-body-md);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-body-sm);
  white-space: nowrap;
  padding: 14px var(--space-7);
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-btn-primary);
}

.btn--primary:hover { background: var(--color-primary-hover); }

.btn--outline {
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  border: 1.5px solid var(--color-border-accent); /* border-width: literal px, see file header */
}

.btn--outline:hover { background: var(--color-surface-tint); }

.btn--sm {
  font-size: var(--text-body-xs);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  /* Team house standard (SOP-005) requires 44x44 tap targets, stricter
     than the WCAG 2.2 AA 24x24 floor this already clears. min-height
     (not more padding) so the label stays vertically centered via the
     .btn base's align-items:center regardless of line-height rounding. */
  min-height: 44px;
}

.btn--sm.btn--outline {
  color: var(--color-label);
  border-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.btn--sm.btn--primary {
  box-shadow: var(--shadow-btn-nav);
}

.btn--block { width: 100%; }

.btn--on-dark {
  background: var(--color-surface);
  color: var(--color-dark-green);
  box-shadow: var(--shadow-btn-cta-panel);
}

.btn--on-dark:hover { background: var(--color-surface-tint); }

.btn--outline-on-dark {
  background: transparent;
  color: var(--color-surface);
  font-weight: var(--font-weight-semibold);
  border: 1.5px solid rgba(255, 255, 255, 0.3); /* one-off: no alpha-white border token exists */
}

.btn--outline-on-dark:hover { background: rgba(255, 255, 255, 0.07); }

/* ============================================================
   NAV
   ============================================================ */
.hf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97); /* one-off: translucent surface, no alpha token */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
}

.hf-nav__row {
  padding-inline: var(--space-gutter);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 64px;
}

.hf-nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hf-nav__logo {
  height: 40px;
  width: auto;
}

.hf-nav__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex: 1;
  justify-content: center;
}

.hf-nav__links {
  display: flex;
  gap: var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-nav__links a {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.hf-nav__links a:hover { color: var(--color-primary); }

.hf-nav__auth {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

/* Hamburger — hidden by default (desktop), shown under the 768px breakpoint.
   44x44 to clear the team's house tap-target standard (SOP-005), stricter
   than the 24x24 WCAG AA floor. */
.hf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: var(--radius-md);
}

.hf-hamburger__bar {
  width: 100%;
  height: 2px;
  background: var(--color-near-black);
  border-radius: 2px;
  display: block;
}

/* ============================================================
   MOBILE NAV (dropdown panel — mobile breakpoint only)
   ============================================================ */
@media (max-width: 768px) {
  .hf-hamburger { display: flex; }

  .hf-nav__nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98); /* one-off: translucent surface, no alpha token */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-5) var(--space-gutter) var(--space-6);
    box-shadow: var(--shadow-mobile-menu);

    /* Closed state must be out of the tab order, not just visually hidden.
       transform/opacity alone leave the links keyboard-focusable while
       off-screen. visibility:hidden removes it from the tab order (and
       the accessibility tree); the transition delay on the closing side
       lets the slide/fade finish first, while opening switches back to
       visible immediately. */
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }

  .hf-nav__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  }

  .hf-nav__links {
    flex-direction: column;
    gap: 0;
  }

  .hf-nav__links a {
    display: block;
    font-size: var(--text-body);
    font-weight: var(--font-weight-medium);
    /* Reference used 13px; nearest token is --space-3 (12px), closer than
       --space-4 (16px). */
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-surface-faint);
  }

  .hf-nav__auth {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding-top: var(--space-4);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hf-hero {
  padding-block: var(--space-18) var(--space-20);
  padding-inline: var(--space-gutter);
  display: flex;
  align-items: center;
  gap: var(--space-14);
}

.hf-hero__copy { flex: 1; min-width: 0; }

.hf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-surface-tint);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-full);
  /* 5px 14px repeats identically 3x across the eyebrow-pill pattern
     (here, .hf-feature-hero__eyebrow, .hf-cta-panel__eyebrow) — clearly
     intentional, but never named as a token. Flagged to Iris as a
     candidate for a --space-pill (or similar) token; left as a literal
     for now per Vera's QA note rather than inventing one unapproved. */
  padding: 5px 14px;
  margin-bottom: var(--space-6);
}

.hf-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

.hf-hero__eyebrow-text {
  font-size: var(--text-badge);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.hf-hero__title {
  font-size: var(--text-hero-h1);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--color-near-black);
  text-wrap: balance;
  margin-bottom: var(--space-5);
}

.hf-hero__title-accent { color: var(--color-primary); }

.hf-hero__subhead {
  font-size: var(--text-body-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: var(--space-9);
}

.hf-hero__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-9);
}

.hf-hero__social {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hf-hero__avatars {
  display: flex;
  align-items: center;
}

.hf-hero__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-surface);
  margin-right: -8px;
  position: relative;
}

/* Three one-off decorative avatar-fill colors — same rationale as the
   dashboard-mockup swatches noted in the file header. */
.hf-hero__avatar--1 { background: #15803d; z-index: 3; }
.hf-hero__avatar--2 { background: #0d9488; z-index: 2; }
.hf-hero__avatar--3 { background: #7c3aed; z-index: 1; margin-right: 0; }

.hf-hero__social-count {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
}

.hf-hero__social-suffix {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

.hf-hero__divider {
  width: 1px;
  height: 20px;
  background: var(--color-border-mid);
}

.hf-hero__rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hf-hero__rating-score {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
}

.hf-hero__rating-suffix {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

.hf-hero__visual {
  flex: 1;
  min-width: 0;
  max-width: 540px;
  position: relative;
}

.hf-hero__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-badge-float);
  display: flex;
  align-items: center;
  gap: 9px;
}

@media (prefers-reduced-motion: no-preference) {
  .hf-hero__badge { animation: hf-float 3.5s ease-in-out infinite; }
  .hf-hero__copy, .hf-hero__visual { animation: hf-fade-up .5s ease both; }
  .hf-hero__visual { animation-delay: .12s; }
}

.hf-hero__badge-icon {
  width: 32px;
  height: 32px;
  background: var(--color-surface-tint);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-hero__badge-label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hf-hero__badge-value {
  font-size: var(--text-body-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
}

.hf-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-4xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero-image);
}

.hf-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes hf-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   LOGOS MARQUEE
   ============================================================ */
.hf-logos {
  background: var(--color-surface-faint);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-6) var(--space-gutter);
  overflow: hidden;
}

.hf-logos__row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.hf-logos__label {
  flex-shrink: 0;
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.hf-logos__viewport {
  flex: 1;
  overflow: hidden;
}

.hf-logos__track {
  display: flex;
  gap: var(--space-12);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .hf-logos__track {
    animation: hf-marquee 26s linear infinite;
  }

  /* SC 2.2.2 (Pause, Stop, Hide): this is non-essential, auto-moving
     content running longer than 5s in parallel with the rest of the
     page — give users a way to stop it. */
  .hf-logos:hover .hf-logos__track,
  .hf-logos:focus-within .hf-logos__track {
    animation-play-state: paused;
  }
}

@keyframes hf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hf-logos__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: .65;
  flex-shrink: 0;
}

.hf-logos__swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-border-mid);
}

.hf-logos__name {
  font-size: var(--text-body-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
  white-space: nowrap;
}

/* ============================================================
   PRODUCT PREVIEW (decorative browser-chrome mockup)
   ============================================================ */
.hf-preview__frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-dashboard);
  border: 1px solid var(--color-border-mid);
}

.hf-preview__chrome {
  background: var(--color-surface-faint);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border-mid);
}

.hf-preview__dots { display: flex; gap: 6px; }

.hf-preview__dot { width: 12px; height: 12px; border-radius: 50%; }
/* macOS traffic-light colors — one-off decorative, see file header */
.hf-preview__dot--red { background: #ff5f57; }
.hf-preview__dot--yellow { background: #febc2e; }
.hf-preview__dot--green { background: #28c840; }

.hf-preview__url {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-sm);
  padding: 5px var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hf-preview__body {
  background: var(--color-border-light);
  display: flex;
  min-height: 420px;
}

.hf-preview__sidebar {
  width: 180px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-light);
  padding: var(--space-4) var(--space-3);
  flex-shrink: 0;
}

.hf-preview__sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-surface-tint);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.hf-preview__sidebar-mark {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  border-radius: 5px;
}

.hf-preview__sidebar-brand span {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.hf-preview__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hf-preview__sidebar-link {
  padding: 6px var(--space-2);
  border-radius: 6px;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  color: #6a8a6a; /* one-off muted mockup tone, see file header */
  display: flex;
  align-items: center;
  gap: 6px;
}

.hf-preview__sidebar-link span {
  width: 8px;
  height: 8px;
  background: var(--color-border-mid);
  border-radius: 2px;
}

.hf-preview__sidebar-link--active {
  background: var(--color-surface-tint);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  border-left: 2px solid var(--color-primary);
}

.hf-preview__sidebar-link--active span {
  background: var(--color-primary);
}

.hf-preview__main {
  flex: 1;
  padding: var(--space-5);
  overflow: hidden;
}

.hf-preview__main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.hf-preview__main-title {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
}

.hf-preview__main-meta {
  font-size: var(--text-caption);
  color: #6a8a6a;
}

.hf-preview__main-cta {
  padding: 5px var(--space-3);
  background: var(--color-primary);
  border-radius: 6px;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-bold);
  color: var(--color-surface);
  white-space: nowrap;
}

.hf-preview__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hf-preview__stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.hf-preview__stat--warn {
  background: #fffbeb; /* one-off mockup tone, see file header */
  border-color: #fde68a;
}

.hf-preview__stat-label {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: #6a8a6a;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 4px;
}

.hf-preview__stat--warn .hf-preview__stat-label { color: #92400e; }

.hf-preview__stat-value {
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-near-black);
}

.hf-preview__stat--verified .hf-preview__stat-value { color: var(--color-primary); }
.hf-preview__stat--warn .hf-preview__stat-value { color: #92400e; }

.hf-preview__stat-bar {
  height: 4px;
  background: var(--color-border-light);
  border-radius: 2px;
  margin-top: var(--space-2);
  overflow: hidden;
}

.hf-preview__stat-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.hf-preview__stat-bar-fill--info {
  width: 70%;
  background: linear-gradient(90deg, var(--color-info), var(--color-info-light));
}

.hf-preview__stat-bar-fill--verified {
  width: 27%;
  background: var(--color-accent-mid);
}

.hf-preview__stat-delta {
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  margin-top: 4px;
  color: var(--color-primary);
}

.hf-preview__stat--warn .hf-preview__stat-delta { color: #b45309; }

.hf-preview__table {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hf-preview__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: var(--space-2) var(--space-3);
  align-items: center;
}

.hf-preview__row--head {
  background: var(--color-surface-faint);
  border-bottom: 1px solid var(--color-border-light);
}

.hf-preview__row--head span {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: #6a8a6a;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hf-preview__row + .hf-preview__row {
  border-top: 1px solid var(--color-surface-faint);
}

.hf-preview__person {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hf-preview__person-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* One-off decorative per-row avatar fills, see file header */
.hf-preview__person-avatar--1 { background: #15803d; }
.hf-preview__person-avatar--2 { background: #0d9488; }
.hf-preview__person-avatar--3 { background: #7c3aed; }

.hf-preview__person-name {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.hf-preview__cell {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.hf-preview__pill {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hf-preview__pill--commodity {
  background: var(--color-surface-tint);
  color: var(--color-primary);
}

/* One-off status-pill tones, scoped to this decorative mockup only */
.hf-preview__pill--active { background: #dcfce7; color: #16a34a; }
.hf-preview__pill--pending { background: #fff7ed; color: #ea580c; }

/* ============================================================
   FEATURES
   ============================================================ */
.hf-feature-hero {
  background: var(--color-dark-green);
  border-radius: var(--radius-4xl);
  padding: var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-5);
}

.hf-feature-hero__copy { flex: 1; }

.hf-feature-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.15); /* alpha-tint of --color-accent-light, no token */
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-5);
}

.hf-feature-hero__eyebrow span {
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-light);
  letter-spacing: var(--tracking-wide);
}

.hf-feature-hero__title {
  font-size: var(--text-feature-hero-h3);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-surface);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight-sm);
  margin-bottom: var(--space-4);
}

.hf-feature-hero__body {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7); /* computed 6.9:1 on dark-green */
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: var(--space-7);
}

.hf-feature-hero__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-feature-hero__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hf-feature-hero__check {
  width: 20px;
  height: 20px;
  background: rgba(74, 222, 128, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-feature-hero__list span {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.85); /* computed 9.3:1 on dark-green */
}

.hf-feature-hero__visual {
  flex-shrink: 0;
  width: 280px;
  height: 240px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.hf-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-feat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hf-feat-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-card-hover);
}

.hf-feat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.hf-feat-card__icon--green { background: var(--color-surface-tint); }
.hf-feat-card__icon--blue { background: #eff6ff; } /* one-off tile tint, pairs with --color-info */
.hf-feat-card__icon--amber { background: var(--color-accent-amber-bg); }
.hf-feat-card__icon--purple { background: #fdf4ff; } /* one-off tile tint, pairs with --color-accent-purple */

.hf-feat-card__title {
  font-size: var(--text-card-title);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
  margin-bottom: var(--space-2);
}

.hf-feat-card__desc {
  font-size: var(--text-body-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hf-feat-card--cta {
  background: var(--color-surface-tint);
  border-color: var(--color-border-accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .15s ease;
}

.hf-feat-card--cta:hover {
  background: #dcf0e4; /* one-off darker tint on hover, no token */
  border-color: var(--color-border-accent);
  box-shadow: none;
}

.hf-feat-card--cta .hf-feat-card__title { color: var(--color-dark-green); }
.hf-feat-card--cta .hf-feat-card__desc { color: #2a5a35; } /* one-off, dark-green family, on light tint */

.hf-feat-card--cta .btn {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-body-xs);
  width: fit-content;
}

/* ============================================================
   CARA KERJA
   ============================================================ */
.hf-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Connector line rendered as a pseudo-element on the <ol> itself, not a
   real DOM node — a <div> is not valid content inside <ol> (only <li>
   and script-supporting elements are). */
.hf-how::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 2px;
  background: var(--color-accent-mid);
  border-radius: 1px;
  z-index: 0;
}

.hf-how__step {
  padding-inline: var(--space-8);
  position: relative;
  z-index: 1;
}

.hf-how__number {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  box-shadow: 0 0 0 8px var(--color-surface-tint);
}

.hf-how__number span {
  font-size: 24px;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-surface);
}

.hf-how__title {
  font-size: var(--text-step-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
  text-align: center;
  margin-bottom: var(--space-3);
}

.hf-how__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  text-align: center;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.hf-eco {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: center;
}

.hf-eco__intro-title {
  font-size: var(--text-section-h2-eco);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-near-black);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.hf-eco__intro-body {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hf-eco__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-eco__card {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--color-dark-green);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}

.hf-eco__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hf-eco__card--petani img { object-position: center top; }
.hf-eco__card--pengolah img { object-position: center; }
.hf-eco__card--konsumen img { object-position: center; }

.hf-eco__card-overlay {
  position: absolute;
  inset: 0;
  /* One-off gradient scrim — tuned per card in the reference for legibility
     of the caption over photography; not a systemized token. */
  background: linear-gradient(to top, rgba(0, 12, 4, .97) 0%, rgba(0, 12, 4, .82) 45%, rgba(0, 12, 4, .25) 75%, rgba(0, 12, 4, 0) 100%);
}

.hf-eco__card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
}

.hf-eco__card-category {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(74, 222, 128, 0.8); /* computed >8:1 on the near-opaque scrim behind it */
  margin-bottom: var(--space-2);
}

.hf-eco__card-headline {
  font-size: var(--text-card-title);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-surface);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.hf-eco__card-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-eco__card-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hf-eco__card-list span {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   IMPACT STATS
   ============================================================ */
.hf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-border-light);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.hf-stat {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.hf-stat__value {
  font-size: var(--text-stat);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.hf-stat__suffix {
  font-size: .55em;
  color: var(--color-text-muted);
}

.hf-stat__label {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-2);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.hf-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
}

.hf-testimonial--dark {
  background: var(--color-dark-green);
  border: none;
}

.hf-testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}

.hf-testimonial__quote {
  font-size: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
  color: #2a3a2a; /* one-off near-black quote tone, matches reference; >13:1 on white */
}

.hf-testimonial--dark .hf-testimonial__quote {
  color: rgba(255, 255, 255, 0.85);
}

.hf-testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hf-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* One-off per-person avatar fills, see file header */
.hf-testimonial__avatar--1 { background: var(--color-primary); color: var(--color-surface); }
.hf-testimonial__avatar--2 { background: var(--color-accent-light); color: var(--color-dark-green); }
.hf-testimonial__avatar--3 { background: #0d9488; color: var(--color-surface); }

.hf-testimonial__name {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
}

.hf-testimonial--dark .hf-testimonial__name { color: var(--color-surface); }

.hf-testimonial__role {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.hf-testimonial--dark .hf-testimonial__role { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   FAQ
   ============================================================ */
.hf-faq {
  max-width: 720px;
  margin: 0 auto;
}

.hf-faq__item {
  border-bottom: 1px solid var(--color-border-light);
}

.hf-faq__question { margin: 0; }

.hf-faq__trigger {
  width: 100%;
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
}

.hf-faq__trigger span {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
  line-height: 1.4;
}

.hf-faq__chevron {
  flex-shrink: 0;
  transition: transform .2s ease;
  color: var(--color-text-muted);
}

.hf-faq__trigger[aria-expanded="true"] .hf-faq__chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.hf-faq__panel {
  padding-bottom: var(--space-5);
  padding-right: var(--space-8);
}

.hf-faq__panel p {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.hf-cta {
  padding: var(--space-20) var(--space-gutter);
}

.hf-cta-panel {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-dark-green);
  border-radius: var(--radius-5xl);
  padding: var(--space-18) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hf-cta-panel__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.08);
  pointer-events: none;
}

.hf-cta-panel__circle--top {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
}

.hf-cta-panel__circle--bottom {
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(74, 222, 128, 0.06);
}

.hf-cta-panel__inner {
  position: relative;
  z-index: 1;
}

.hf-cta-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-6);
}

.hf-cta-panel__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-light);
  border-radius: 50%;
}

.hf-cta-panel__eyebrow span {
  font-size: var(--text-badge);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-light);
}

.hf-cta-panel__title {
  font-size: var(--text-section-h2-cta);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-surface);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.hf-cta-panel__body {
  font-size: var(--text-body-md);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.hf-cta-panel__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hf-cta-panel .btn--on-dark,
.hf-cta-panel .btn--outline-on-dark {
  padding: var(--space-4) var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.hf-footer {
  background: var(--color-near-black);
  padding: var(--space-14) var(--space-gutter) var(--space-8);
}

.hf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.hf-footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-4);
  /* The logo asset has a transparent background (verified), so inverting
     it renders a clean white silhouette on the dark footer — no extra
     background needed. */
  filter: brightness(0) invert(1);
}

.hf-footer__tagline {
  font-size: var(--text-body-xs);
  color: rgba(255, 255, 255, 0.5); /* == --color-label-on-dark, 5.16:1 computed */
  line-height: 1.7;
  max-width: 260px;
}

.hf-footer__heading {
  font-size: var(--text-label-footer);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-label-on-dark); /* AA-fixed token — see design-tokens.css */
  margin-bottom: var(--space-4);
}

.hf-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-footer__links a {
  font-size: var(--text-body-xs);
  color: rgba(255, 255, 255, 0.6); /* computed 6.9:1 on near-black */
  font-weight: var(--font-weight-medium);
}

.hf-footer__links a:hover { color: var(--color-accent-light); }

.hf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hf-footer__contact a,
.hf-footer__contact span {
  font-size: var(--text-body-xs);
  color: rgba(255, 255, 255, 0.6);
}

.hf-footer__contact a:hover { color: var(--color-accent-light); }

.hf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hf-footer__copyright {
  font-size: var(--text-caption);
  /* Reference used rgba(255,255,255,.3) here — measures 2.70:1, fails AA.
     Reusing --color-label-on-dark (5.16:1, already AA-fixed by Iris)
     instead of inventing a new value. */
  color: var(--color-label-on-dark);
}

.hf-footer__version {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  /* Reference used rgba(74,222,128,.6) here — measures 4.37:1, just under
     AA for 12px/600 text. Bumped to .65 (4.90:1, computed) — same hue,
     minimally different, no new hue introduced. */
  color: rgba(74, 222, 128, 0.65);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 2-column grids where the reference collapses 3 -> 2 */
@media (min-width: 769px) and (max-width: 1100px) {
  .hf-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-eco__cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .hf-hero {
    flex-direction: column;
    gap: var(--space-9);
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
  }

  .hf-hero__visual { max-width: 100%; width: 100%; }

  .hf-preview__body { flex-direction: column; height: auto; }
  .hf-preview__sidebar { display: none; }

  .hf-feature-hero {
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-7);
  }

  .hf-feature-hero__visual { width: 100%; height: 200px; flex-shrink: unset; }

  .hf-feat-grid { grid-template-columns: 1fr; }

  .hf-how { grid-template-columns: 1fr; gap: var(--space-10); }
  .hf-how::before { display: none; }
  .hf-how__step { padding-inline: var(--space-4); }

  .hf-eco { grid-template-columns: 1fr; gap: var(--space-8); }
  .hf-eco__cards { grid-template-columns: 1fr; }
  .hf-eco__card { min-height: 240px; }

  .hf-stats { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-2xl); }

  .hf-testi-grid { grid-template-columns: 1fr; }

  .hf-cta-panel { padding: var(--space-12) var(--space-7); border-radius: var(--radius-4xl); }

  .hf-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .hf-footer__brand { grid-column: 1 / -1; }
  .hf-footer__bottom { flex-direction: column; gap: var(--space-2); align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .hf-footer__grid { grid-template-columns: 1fr; }
}
