/* ==================================================
   AGRISCAN — REDESIGNED
   Light-themed, leaf green palette
   Organic/natural feel for mission-driven ag-tech
   ================================================== */

@font-face {
  font-family: 'ClashGrotesk';
  src: url('./fonts/ClashGrotesk-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- WARM PARCHMENT PALETTE --- */
  /* Surfaces */
  --color-canvas: #C5BEB5;
  /* page background — the "underexposed" layer */
  --color-bg: #F9F8F6;
  --color-surface: #F1EEE9;
  --color-surface-2: #E9E5DC;
  --color-surface-alt: #DDD5C5;
  --color-border: #C8BFB0;
  --color-divider: #D4CBBA;

  /* Text — dark brown instead of dark green */
  --color-text: #2C2218;
  --color-text-muted: #6B5C48;
  --color-text-faint: #A8957E;
  --color-text-inverse: #F7F4EE;

  /* Primary — deep forest green */
  --color-primary: #2D6328;
  --color-primary-hover: #214D1E;
  --color-primary-active: #163614;
  --color-primary-light: #E2F0DC;

  /* Accent — richer clay/terracotta */
  --color-accent: #A85A2A;
  --color-accent-hover: #8A4620;
  --color-accent-light: #F5E8DC;

  /* Semantic */
  --color-success: #5DA64A;
  --color-warning: #A85A2A;
  --color-error: #B03A3A;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — warm brown-tinted */
  --shadow-sm: 0 1px 3px rgba(44, 34, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 34, 24, 0.09);
  --shadow-lg: 0 12px 40px rgba(44, 34, 24, 0.12);
  --shadow-xl: 0 24px 56px rgba(44, 34, 24, 0.15);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1000px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'ClashGrotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'ClashGrotesk', 'Helvetica Neue', sans-serif;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- HERO ANCHOR TOKENS (hero-scoped; reconcile with --color-primary later) --- */
  --color-anchor: #34372B;
  /* warm dark olive-taupe hero surface */
  --color-anchor-text: #F2ECDD;
  /* cream headline/foreground */
  --color-anchor-muted: #B4B19A;
  /* warm sage for body copy */
  --color-anchor-faint: #9DA086;
  /* microcopy under the CTA */
  --color-cta: #5FA64A;
  /* brighter, confident green for primary button */
  --color-cta-text: #11240A;
  --color-cta-hover: #54963F;
}



/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

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

.btn--ghost {
  background: transparent;
  color: var(--color-anchor-text);
  border-color: rgba(242, 236, 221, 0.3);
}

.btn--ghost:hover {
  background: rgba(242, 236, 221, 0.08);
  border-color: rgba(242, 236, 221, 0.5);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

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

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
}

/* ==================================================
   NAVIGATION
   ================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  --nav-height: 65px;
}

.nav--scrolled {
  border-bottom-color: var(--color-divider);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--color-text);
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nav__logo-img {
  height: 52px;
  width: 52px;
  display: block;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}

.nav__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition);
}

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

.nav__links a:hover::after {
  width: 100%;
}

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

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm, 8px);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X when the menu is open */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-6) var(--space-6);
  gap: var(--space-1);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
  /* Collapsed by default — animate open via grid-rows */
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  opacity: 0;
  transition: max-height var(--transition), opacity var(--transition),
    padding var(--transition), border-color var(--transition);
}

.nav__mobile a {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm, 8px);
}

.nav__mobile a:not(.btn):hover {
  background: var(--color-surface, oklch(from var(--color-text) l c h / 0.05));
  color: var(--color-primary);
}

.nav__mobile.active {
  max-height: 80vh;
  opacity: 1;
  padding-top: var(--space-2);
  padding-bottom: var(--space-6);
  border-top-color: var(--color-divider);
}

@media (max-width: 900px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* Above the breakpoint, keep the mobile panel fully hidden */
@media (min-width: 901px) {
  .nav__mobile {
    display: none;
  }
}

/* ==================================================
   HERO — Asymmetric left-heavy layout
   ================================================== */
.hero {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6);
  overflow: hidden;
  background: var(--color-anchor);
}

/* Hero-scoped primary button uses the brighter CTA green */
.hero .btn--primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-color: var(--color-cta);
}

.hero .btn--primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  box-shadow: 0 4px 16px rgba(95, 166, 74, 0.3);
}

.hero__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  color: var(--color-anchor-text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-anchor-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-anchor-faint);
  margin-top: var(--space-5);
}

.hero__proof svg {
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
}

.hero__img {
  border-radius: var(--radius-xl);
  object-fit: cover;
  width: 100%;
  height: auto;
  border: 1px solid rgba(242, 236, 221, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Lead with the message + CTA on mobile; image follows below */
  .hero__content {
    order: -1;
  }

  .hero__img {
    max-height: 60vh;
    object-position: top;
  }
}

/* ==================================================
   TRUST STRIP — Horizontal, minimal
   ================================================== */
.trust-strip {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.trust-strip__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.trust-strip__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.trust-strip__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 24ch;
}

@media (max-width: 768px) {
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-8);
  }
}

@media (max-width: 420px) {
  .trust-strip__inner {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   SECTIONS — base
   ================================================== */
.section {
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6);
  background: var(--color-bg);
}

@media (max-width: 480px) {
  .section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--content-narrow);
}

.section__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.1;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

/* ==================================================
   HOW IT WORKS — Single-column numbered timeline
   ================================================== */
.process {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Numbered step rows with a continuous spine line through the number column */
.process__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
  position: relative;
}

.process__step:last-child {
  border-bottom: none;
}

/* Vertical connector — runs from bottom of first number to top of last,
   skipping above step 1 and below step 3 */
.process__step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-divider);
  z-index: 0;
}

.process__step:first-child::before {
  top: calc(var(--space-6) + 1.2em);
}

.process__step:last-child::before {
  bottom: calc(100% - var(--space-6) - 1.2em);
}

.process__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.process__body h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.process__body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 600px) {
  .process__step {
    grid-template-columns: 36px 1fr;
    gap: var(--space-4);
  }

  .process__step::before {
    left: 17px;
  }
}

/* ==================================================
   PRODUCT — Asymmetric split with offset image
   ================================================== */
.product {
  background: var(--color-surface);
}

.product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.product__image img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}

.product__content {
  display: flex;
  flex-direction: column;
}

.product__content>p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.product__components {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.component {
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.component__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.component__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.product__specs {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.spec {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.spec__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary);
}

.spec__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .product__grid {
    grid-template-columns: 1fr;
  }

  .product__specs {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .spec {
    flex: 1 1 40%;
  }
}

/* ==================================================
   DASHBOARD — Text left, image right, checklist
   ================================================== */
.dashboard__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
}

.dashboard__content {
  display: flex;
  flex-direction: column;
}

.dashboard__content>p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.dashboard__image img {
  border-radius: var(--radius-xl);
  width: fit-content;
  height: auto;
  box-shadow: var(--shadow-lg);
  object-fit: ;
  object-position: top;
}

@media (max-width: 768px) {
  .dashboard__grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   MISSION — Full-width callout with texture
   ================================================== */
.mission {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.mission__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: center;
}

.mission__text-block {
  display: flex;
  flex-direction: column;
}

.mission__lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.mission__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.mission__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.mission__stat {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}

.mission__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mission__stat:first-child {
  padding-top: 0;
}

.mission__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.mission__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.mission__image {
  margin-top: var(--space-6);
  grid-column: 1 / -1;
}

.mission__image img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .mission__layout {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   AUDIENCE — Staggered 2+2 grid, NOT 4 identical cards
   ================================================== */
.audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.audience__card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.audience__card:hover {
  box-shadow: var(--shadow-md);
}

.audience__card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.audience__card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Make first card span full width for visual break */
.audience__card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-primary-light);
  border-color: transparent;
}

.audience__card:first-child h3 {
  margin-bottom: 0;
}

.audience__card:first-child p {
  margin-top: var(--space-1);
}

@media (max-width: 600px) {
  .audience__grid {
    grid-template-columns: 1fr;
  }

  .audience__card:first-child {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   FAQ — Clean accordion
   ================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.faq {
  border-bottom: 1px solid var(--color-divider);
}

.faq__q {
  padding: var(--space-5) 0;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--color-text);
}

.faq__q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-text-faint);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq[open] .faq__q::after {
  content: '−';
  color: var(--color-primary);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__a {
  padding: 0 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ==================================================
   CTA — Light background, not dark
   ================================================== */
.cta-section {
  background: var(--color-anchor);
  text-align: center;
}

.cta-section .section__eyebrow {
  text-align: center;
  color: var(--color-cta);
}

.cta-section .section__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-anchor-text);
}

.cta__subtitle {
  text-align: center;
  color: var(--color-anchor-muted);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-form {
  max-width: 460px;
  margin: 0 auto;
}

.cta-form__row {
  display: flex;
  gap: var(--space-3);
}

.cta-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text);
  outline: none;
}

.cta-form__input::placeholder {
  color: var(--color-text-muted);
}

.cta-form__input:focus {
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(95, 166, 74, 0.25);
}

.cta-form__btn {
  flex-shrink: 0;
}

.cta-form__note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-anchor-faint);
  margin-top: var(--space-3);
}

@media (max-width: 500px) {
  .cta-form__row {
    flex-direction: column;
  }
}

/* ==================================================
   FOOTER — Minimal, quiet
   ================================================== */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.footer__brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer__brand strong {
  font-size: var(--text-sm);
}

.footer__brand span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* ==================================================
   SCROLL ANIMATIONS
   ================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 160ms;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 240ms;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}
/* ==================================================
   BACK TO TOP
   ================================================== */
.to-top {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  /* Hidden until scrolled: fade + slide, toggled via .to-top--visible. */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition),
    background var(--transition);
}

.to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.to-top:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .to-top {
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity var(--transition); transform: none; }
  .to-top--visible { transform: none; }
}
