/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a3a1a; background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Tokens ── */
:root {
  --green-dark:   #1a3a1a;
  --green-field:  #2d5a27;
  --green-mid:    #4a7c3f;
  --green-light:  #6aaa5f;
  --green-pale:   #f0fdf4;
  --yellow:       #f5c842;
  --investor:     #1a56db;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-900:     #111827;
}

/* ── Layout ── */
.container { max-width: 1152px; margin: 0 auto; padding: 0 2.5rem; }

/* ── Utilities ── */
.text-yellow   { color: var(--yellow); }
.text-green    { color: var(--green-field); }
.text-dark     { color: var(--green-dark); }
.text-investor { color: var(--investor); }
.rounded-full  { border-radius: 9999px; }
.rounded-2xl   { border-radius: 1rem; }
.shadow-sm     { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.shadow-lg     { box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* ── Card hover ── */
.card-hover {
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

/* ── Textures ── */
.bg-grain {
  background-image:
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
}
.bg-animated-grad {
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(106,170,95,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(245,200,66,.12), transparent 60%),
    linear-gradient(180deg, #1a3a1a 0%, #163217 100%);
}

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-dark);
  border-bottom: 1px solid var(--green-field);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.nav-logo-mark { flex-shrink: 0; font-size: 1.4rem; line-height: 1; display: inline-block; }
.nav-wordmark { letter-spacing: -.005em; }
.nav-hawk { color: var(--yellow); }
/* Brand suffix — "Agro" is always underlined wherever the brand name appears */
.brand-agro { text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: .12em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: rgba(240,253,244,.75); font-size: .875rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--yellow); color: var(--green-dark);
  font-size: .875rem; font-weight: 700;
  padding: .45rem 1.1rem; border-radius: 9999px;
  transition: filter .2s, transform .2s;
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px); color: var(--green-dark); }
.lang-btn { background: transparent; border: none; color: rgba(255,255,255,.7); padding: .3rem .25rem; font-size: .85rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: color .2s; letter-spacing: .02em; }
.lang-btn:hover { color: #fff; }
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: all .25s;
}
.nav-mobile-menu {
  display: none; flex-direction: column;
  background: var(--green-dark); padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--green-field);
}
.nav-mobile-menu a {
  color: rgba(240,253,244,.8); font-size: .95rem;
  padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-mobile-menu a:last-child { border: none; }
.nav-mobile-menu .nav-cta { display: inline-block; margin-top: .75rem; text-align: center; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-menu.open { display: flex; }
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--green-dark);
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute; inset: 0;
  background: url('imgs/hero-field.jpg') center/cover no-repeat;
  opacity: .22;
  mix-blend-mode: luminosity;
}
.hero-grain { position: absolute; inset: 0; opacity: .6; pointer-events: none; }
.hero-fade {
  position: absolute; inset-x: 0; bottom: 0; height: 8rem;
  background: linear-gradient(to bottom, transparent, var(--green-dark));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
  padding-top: 6rem; padding-bottom: 6rem;
}
.hero-eyebrow {
  color: var(--yellow); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero-h1 {
  color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.12; margin-bottom: 1.25rem;
}
.hero-h1 span {
  background: linear-gradient(90deg, var(--yellow), var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: rgba(240,253,244,.88); font-size: 1.1rem;
  line-height: 1.65; max-width: 500px; margin-bottom: 2.2rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.btn-primary {
  background: var(--yellow); color: var(--green-dark);
  font-weight: 700; font-size: .95rem;
  padding: 1rem 2rem; border-radius: 9999px;
  box-shadow: 0 6px 24px rgba(245,200,66,.25);
  transition: filter .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); color: var(--green-dark); }

/* Glowing variant — matches the "Try the demo app" CTA */
.btn-primary--glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 0 rgba(245,200,66,.55),
    0 8px 22px rgba(245,200,66,.35);
  animation: hiwGlow 2.4s ease-in-out infinite;
  transition: filter .2s, transform .2s, color .2s, box-shadow .3s;
}
.btn-primary--glow::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    transparent 0%, transparent 35%,
    rgba(255,255,255,.65) 50%,
    transparent 65%, transparent 100%);
  transform: translateX(-120%);
  animation: hiwShine 3.2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
.btn-primary--glow:hover {
  animation-play-state: paused;
  box-shadow: 0 0 0 12px rgba(245,200,66,0), 0 14px 34px rgba(245,200,66,.55);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary--glow { animation: none; }
  .btn-primary--glow::before { animation: none; display: none; }
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  font-size: .95rem; font-weight: 500;
  padding: 1rem 2rem; border-radius: 9999px;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); color: #fff; }
.hero-backers { color: rgba(240,253,244,.7); font-size: 1rem; font-weight: 500; }
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(240,253,244,.4); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 2rem;
  background: rgba(240,253,244,.3);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

@media (max-width: 1024px) {
  /* ── 1. HERO CONTAINER SECTIONS ── */
  .hero {
    overflow: hidden;
    width: 100%;
    padding-bottom: 6rem;
  }

  .hero .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-inner {
    display: block;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
    width: 100%;
  }

  /* ── 2. HERO INTRO TEXT & TYPOGRAPHY ── */
  .hero-text-intro {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 7vw, 3.6rem);
    line-height: 1.12;
    text-align: center;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-sub {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* ── 3. BUTTONS & BACKERS LINE ── */
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-white {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-backers {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
  }

  /* ── 4. RESOLUTION-INDEPENDENT MOCKUP ENGINE ── */
  .hero-dashboard-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .hero-dashboard {
    width: 88vw !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  /* Force the container card to adapt perfectly to the boundary constraints */
  .hero-dashboard .hd-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fluidly scale all typography inside the mockup based on viewport width.
   *    This overrides Android's display density scaling multiplier, keeping
   *    the internal text sizes inside the mockup perfectly proportional. */
  .hero-dashboard,
  .hero-dashboard div,
  .hero-dashboard span,
  .hero-dashboard p,
  .hero-dashboard h1,
  .hero-dashboard h2,
  .hero-dashboard h3,
  .hero-dashboard a,
  .hero-dashboard strong {
    font-size: clamp(8px, 3vw, 13px) !important;
  }

  /* Re-proportion specific larger text nodes relative to the viewport scale */
  .hero-dashboard [style*="font-size:1.65rem"] {
    font-size: clamp(16px, 5.5vw, 24px) !important; /* Locks "North field" title */
  }

  .hero-dashboard [style*="font-size:.58rem"] {
    font-size: clamp(7px, 2vw, 9px) !important; /* Locks "Basic/Expert" label sizing */
  }

  .hero-dashboard [style*="font-size:.6rem"] {
    font-size: clamp(7px, 2vw, 9px) !important; /* Prevents matrix cells like "critical" from breaking out */
  }

  /* ── 5. GRID MATRIX LOCKS ── */
  /* This prevents the 4-column row (Today, Fri, Sat, Sun) from wrapping or
   *    overflowing by enforcing a strict, flexible grid model. */
  .hero-dashboard .hd-weather-row,
  .hero-dashboard [style*="display:grid"],
  .hero-dashboard [style*="display: grid"] {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.25rem !important; /* Uses a slightly tighter mobile gap to maximize inner space */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Snug internal spacing inside the grid blocks so text cells don't spill outwards */
  .hero-dashboard [style*="padding:.65rem .2rem"] {
    padding: 0.4rem 0.1rem !important;
    box-sizing: border-box !important;
  }
}

/* ── Hero Dashboard ── */
.hero-dashboard { perspective: 1400px; }
.hd-card {
  background: rgba(255,255,255,.97);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  animation: hdFloat 6s ease-in-out infinite;
  position: relative;
}
@keyframes hdFloat {
  0%,100%{transform:rotateY(-6deg) rotateX(3deg) translateY(0)}
  50%{transform:rotateY(-6deg) rotateX(3deg) translateY(-6px)}
}
.hd-pulse-rings { position: absolute; inset: -1rem; pointer-events: none; }
.hd-pulse {
  position: absolute; inset: 0; border-radius: 1.5rem;
  border: 1px solid rgba(245,200,66,.35);
  animation: pulseRing 4s ease-out infinite;
}
.hd-pulse:nth-child(1){ animation-delay: 0s; }
.hd-pulse:nth-child(2){ animation-delay: -2s; }
@keyframes pulseRing{0%{transform:scale(.6);opacity:.7}70%{opacity:0}100%{transform:scale(2.2);opacity:0}}
.hd-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.2rem;
  background: var(--green-dark); color: #fff;
}
.hd-dots { display: flex; gap: .4rem; }
.hd-dot { width: 10px; height: 10px; border-radius: 50%; }
.hd-url { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.hd-live { font-size: .65rem; opacity: .55; }
.hd-body { padding: 1.25rem 1.4rem; }
.hd-field-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.hd-field-tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: 2px; }
.hd-field-name { color: var(--green-dark); font-weight: 700; font-size: 1.05rem; }
.hd-field-sync { font-size: .68rem; color: var(--gray-500); margin-top: 2px; }
.hd-status { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hd-led-row { display: flex; align-items: center; gap: 5px; font-size: .65rem; font-weight: 600; color: var(--green-field); }
.hd-led { width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); animation: ledBlink 1.6s ease-in-out infinite; }
@keyframes ledBlink{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(106,170,95,.6)}50%{opacity:.4;box-shadow:0 0 0 4px rgba(106,170,95,0)}}
.hd-signal { font-size: .6rem; color: var(--gray-400); }
.hd-weather-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-bottom: 1.1rem; }
.hd-metric { background: rgba(240,253,244,.5); border-radius: .5rem; padding: .5rem .6rem; }
.hd-metric-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 2px; }
.hd-metric-val { font-weight: 700; color: var(--green-dark); font-size: .95rem; }
.hd-moisture-section { margin-bottom: 1rem; }
.hd-moisture-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.hd-moisture-label { font-size: .75rem; font-weight: 600; color: var(--gray-700); }
.hd-moisture-val { font-size: .85rem; font-weight: 700; color: #b45309; }
.hd-bar-track { position: relative; height: 10px; background: var(--gray-100); border-radius: 9999px; overflow: hidden; }
.hd-optimal-zone { position: absolute; inset-y: 0; background: rgba(106,170,95,.15); left: 45%; right: 25%; }
.hd-bar-fill {
  position: absolute; inset-y: 0; left: 0;
  background: linear-gradient(90deg, var(--yellow), #d97706);
  border-radius: 9999px;
  width: 0; animation: barFill 2.6s cubic-bezier(.22,1,.36,1) .6s forwards;
}
@keyframes barFill{to{width:32%}}
.hd-bar-marker { position: absolute; inset-y: 0; width: 1px; background: var(--gray-300); }
.hd-bar-labels { display: flex; justify-content: space-between; font-size: .58rem; color: var(--gray-400); margin-top: 3px; letter-spacing: .04em; }
.hd-chart-section { }
.hd-chart-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: .4rem; }
.hd-chart-line-path {
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: drawLine 1.8s ease-out .8s forwards;
}
@keyframes drawLine{to{stroke-dashoffset:0}}
.hd-chart-fill-path { opacity: 0; animation: fadeIn 1s ease-out 2s forwards; }
@keyframes fadeIn{to{opacity:1}}

/* Alert popup */
.hd-alert {
  position: absolute; bottom: -1rem; right: -1.5rem;
  background: #fff; border-radius: .85rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  border: 1.5px solid rgba(245,200,66,.35);
  overflow: hidden; max-width: 240px;
  opacity: 0;
  transform: translate(12px,10px) scale(.95);
  animation: alertIn .7s cubic-bezier(.22,1,.36,1) 2.6s forwards,
             alertFloat 4s ease-in-out 3.5s infinite;
}
@keyframes alertIn{to{opacity:1;transform:translate(0,0) scale(1)}}
@keyframes alertFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.hd-alert-bar { height: 3px; background: linear-gradient(90deg, var(--yellow), #ef4444); }
.hd-alert-body { display: flex; gap: .6rem; padding: .65rem .75rem; align-items: flex-start; }
.hd-alert-icon {
  width: 32px; height: 32px; border-radius: .5rem;
  background: rgba(245,200,66,.15); display: flex; align-items: center; justify-content: center;
  color: #b45309; flex-shrink: 0;
}
.hd-alert-tag { font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: #b45309; font-weight: 700; }
.hd-alert-title { font-size: .85rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; margin: 1px 0; }
.hd-alert-sub { font-size: .68rem; color: var(--gray-500); }

/* Weather chip */
.hd-chip {
  position: absolute; top: -1rem; left: -1rem;
  background: #fff; border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border: 1.5px solid var(--green-pale);
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem;
  opacity: 0;
  transform: translate(-8px,-8px) scale(.9);
  animation: chipIn .6s cubic-bezier(.22,1,.36,1) 1.4s forwards,
             chipFloat 5s ease-in-out 2.5s infinite;
}
@keyframes chipIn{to{opacity:1;transform:translate(0,0) scale(1)}}
@keyframes chipFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.hd-chip span { font-size: .75rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* ════════════════════════════════════
   TRUST BAR
════════════════════════════════════ */
.trust-bar {
  background: var(--green-pale);
  border-bottom: 1px solid rgba(45,90,39,.12);
  padding: 1.1rem 0;
}
.trust-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: .75rem;
}
.trust-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--gray-400); margin-right: .25rem;
}
.trust-badge {
  font-size: .8rem; font-weight: 700; color: var(--green-field);
  border: 1.5px solid rgba(45,90,39,.25);
  padding: .3rem .85rem; border-radius: 9999px;
  transition: background .2s, border-color .2s, transform .2s;
}
.trust-badge:hover { background: #fff; border-color: var(--green-field); transform: translateY(-1px); }

/* ════════════════════════════════════
   SECTION SHARED
════════════════════════════════════ */
.section { padding: 6rem 0; }
.section-eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--green-field); margin-bottom: .75rem; text-align: center;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
  color: var(--green-dark); text-align: center; margin-bottom: .9rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--gray-500); text-align: center;
  max-width: 540px; margin: 0 auto 3.5rem; line-height: 1.65; font-size: 1.05rem;
}

/* ════════════════════════════════════
   PROBLEM
════════════════════════════════════ */
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.problem-card {
  border-left: 4px solid var(--green-field);
  background: var(--green-pale); border-radius: 0 1rem 1rem 0;
  padding: 1.5rem;
}
.problem-icon { font-size: 2rem; margin-bottom: .75rem; }
.problem-title { font-weight: 700; color: var(--green-dark); font-size: 1.05rem; margin-bottom: .5rem; }
.problem-body { color: var(--gray-600); font-size: .875rem; line-height: 1.65; }
@media(max-width:760px){.problem-grid{grid-template-columns:1fr}}

/* ════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════ */
.how-section {
  background: var(--green-field); position: relative; overflow: hidden;
}
.how-section .section-title { color: #fff; }
.how-section .section-sub { color: rgba(240,253,244,.75); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
  position: relative;
}
.steps-connector {
  position: absolute; top: 56px; left: 16%; right: 16%;
  height: 1px; background: rgba(255,255,255,.2);
}
.step-card {
  background: #fff; border-radius: 1rem; padding: 2rem 1.5rem; text-align: center;
}
.step-icon-wrap {
  width: 64px; height: 64px; border-radius: 9999px;
  background: var(--green-pale); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  transition: transform .3s;
}
.step-card:hover .step-icon-wrap { transform: scale(1.1); }
.step-num { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--green-field); margin-bottom: .4rem; }
.step-title { font-weight: 700; color: var(--green-dark); font-size: 1rem; margin-bottom: .5rem; }
.step-body { color: var(--gray-600); font-size: .85rem; line-height: 1.65; }
@media(max-width:760px){.steps-grid{grid-template-columns:1fr}.steps-connector{display:none}}

/* ════════════════════════════════════
   FEATURES
════════════════════════════════════ */
.features-section { background: linear-gradient(to bottom, var(--gray-50), #fff); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.feature-card {
  background: #fff; border: 1.5px solid var(--gray-100);
  border-radius: 1rem; padding: 1.75rem;
}
.feature-card:hover { border-color: rgba(45,90,39,.25); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; transition: transform .3s; display: inline-block; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(3deg); }
.feature-title { font-weight: 700; color: var(--green-dark); font-size: 1rem; margin-bottom: .5rem; }
.feature-desc { color: var(--gray-600); font-size: .85rem; line-height: 1.7; }
@media(max-width:760px){.features-grid{grid-template-columns:1fr}.layers-grid{grid-template-columns:1fr!important}}
@media(min-width:761px) and (max-width:1000px){.features-grid{grid-template-columns:repeat(2,1fr)}}

/* ════════════════════════════════════
   ROI STATS
════════════════════════════════════ */
.roi-section {
  background: var(--green-dark); position: relative; overflow: hidden;
}
.roi-section .section-title { color: #fff; }
.roi-section .section-sub { color: rgba(240,253,244,.65); }
.roi-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.roi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .85rem; padding: 1.75rem 1rem;
  text-align: center; backdrop-filter: blur(4px);
}
.roi-value { font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 800; color: var(--yellow); margin-bottom: .3rem; font-variant-numeric: tabular-nums; }
.roi-label { color: rgba(240,253,244,.55); font-size: .85rem; }
.roi-footnote { color: rgba(240,253,244,.4); font-size: .72rem; text-align: center; }
@media(max-width:900px){.roi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:540px){
  .roi-grid {
    /* 1. Switch from Grid to Flexbox */
    display: flex;
    /* 2. Allow cards to wrap to the next line */
    flex-wrap: wrap;
    /* 3. This perfectly centers the leftover item on the new row */
    justify-content: center;
  }

  .roi-grid .roi-card {
    /* 4. Force cards to take up roughly half the width (minus the gap) */
    flex: 1 1 calc(50% - 0.5rem);
    /* 5. Set a safe minimum width so they don't get too squished */
    min-width: 140px;
  }
}

/* ════════════════════════════════════
   PRICING
════════════════════════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 760px; margin: 0 auto 1.25rem;
}
.pricing-card {
  border: 2px solid; border-radius: 1rem; padding: 2rem;
  position: relative;
}
.pricing-card.popular { border-color: var(--green-field); background: linear-gradient(135deg, #fff 0%, rgba(240,253,244,.5) 100%); }
.pricing-card.secondary { border-color: var(--green-mid); }
.pricing-badge {
  position: absolute; top: -12px; right: 1rem;
  background: var(--yellow); color: var(--green-dark);
  font-size: .7rem; font-weight: 700; padding: .25rem .75rem; border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pricing-name { font-weight: 700; color: var(--green-dark); font-size: 1.1rem; margin-bottom: .25rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.pricing-price.main { color: var(--green-field); }
.pricing-price.alt { color: var(--green-field); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.pricing-list li { font-size: .875rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: .5rem; }
.pricing-list li::before { content: '✓'; color: var(--green-field); font-weight: 700; flex-shrink: 0; }
.pricing-note {
  max-width: 760px; margin: 0 auto;
  background: var(--green-pale); border-radius: 1rem; padding: 1.5rem;
  text-align: center;
}
.pricing-note strong { color: var(--green-dark); }
.pricing-note p { color: var(--gray-600); font-size: .875rem; margin: .25rem 0 .75rem; }
.pricing-subsidy {
  display: inline-block; background: var(--green-field); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .3rem .9rem; border-radius: 9999px;
}
.pricing-footer { text-align: center; color: var(--gray-400); font-size: .72rem; margin-top: 1rem; }
.pricing-footer a { color: var(--green-field); }
@media(max-width:600px){.pricing-grid{grid-template-columns:1fr}}

/* — Expanded pricing — */
.pricing-grid-4 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  max-width: 1080px; margin: 0 auto 2.5rem;
}

/* Setup explainer (between sub-heading and the 4-card grid) */
.pricing-explainer {
  max-width: 1080px;
  margin: 0 auto 2.25rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 1.75rem;
  background: linear-gradient(135deg, #fff 0%, #f9fbf6 100%);
  border: 1px solid var(--green-pale);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(45,90,39,.04);
}
.pe-diagram {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-pale);
  border-radius: .75rem;
  padding: .65rem;
  min-height: 120px;
}
.pe-eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-field);
  margin-bottom: .55rem;
}
.pe-body p {
  color: var(--gray-600); font-size: .96rem; line-height: 1.65;
  text-wrap: pretty; margin: 0;
}
.pe-body strong { color: var(--green-dark); font-weight: 700; }

/* Animated core glow + pulsing halo */
.pe-core {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(245,200,66,.55));
  animation: peCorePulse 2.4s ease-in-out infinite;
}
.pe-core-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: peHaloPulse 2.4s ease-in-out infinite;
}
@keyframes peCorePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(245,200,66,.45));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 12px rgba(245,200,66,.85));
  }
}
@keyframes peHaloPulse {
  0%, 100% { transform: scale(.85); opacity: .55; }
  50%      { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pe-core, .pe-core-halo { animation: none; }
  .pe-pulse-dots animate, .pe-pulse-dots animateMotion { display: none; }
}

@media (max-width: 720px) {
  .pricing-explainer { grid-template-columns: 1fr; padding: 1.25rem; gap: 1rem; }
  .pe-diagram { min-height: 110px; max-width: 220px; margin: 0 auto; width: 100%; }
}
.pricing-card.popular { border-color: var(--green-field); background: linear-gradient(135deg, #fff 0%, rgba(240,253,244,.6) 100%); }
.pricing-card.muted { border-color: var(--gray-200, #e5e7eb); background: #fafafa; }
.pricing-card .pc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  margin-bottom: .85rem;
}
.pc-tag {
  display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .55rem; border-radius: 9999px;
  white-space: nowrap; flex-shrink: 0;
}
.pc-tag-req { background: var(--yellow); color: var(--green-dark); }
.pc-tag-rec { background: var(--green-pale); color: var(--green-field); }
.pc-tag-soon { background: #eef0eb; color: var(--gray-500); }
.pc-tags { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; flex-shrink: 0; }
.pc-tags .pc-tag { font-size: .6rem; padding: .22rem .5rem; letter-spacing: .12em; }
/* Self-host cards: "Optional" badge sits right next to the title (like add-on cards) */
.pricing-selfhost-grid .pc-head { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: .5rem; flex-wrap: wrap; }
.pricing-selfhost-grid .pc-head .pricing-name { flex: 0 1 auto; }
.pricing-selfhost-grid .pc-tags { justify-content: flex-start; }
.pc-price-row { display: flex; align-items: baseline; gap: .65rem; margin-bottom: .15rem; }
.pc-price-strike {
  font-size: 1.15rem; font-weight: 600; color: var(--gray-400);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.pc-price-row .pricing-price { margin-bottom: 0; font-size: 2.25rem; line-height: 1; }
.pc-price-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: 1rem;
}
.pricing-card.muted .pc-price-label { color: var(--gray-500); }
.pricing-card sup { font-size: .65em; color: var(--gray-500); margin-left: 1px; }

/* Add-on services */
.pricing-subhead {
  max-width: 1080px; margin: 0 auto 1rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800;
  color: var(--green-dark); letter-spacing: -.01em; text-align: center;
}
.pricing-addons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 1080px; margin: 0 auto 2.5rem;
}
.addon-card {
  border: 2px solid var(--green-pale); border-radius: 1rem; padding: 1.75rem;
  background: #fff; display: flex; flex-direction: column;
}
.addon-head {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  margin-bottom: .65rem; flex-wrap: wrap;
}
.addon-name { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }
.addon-optional {
  display: inline-block;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-500); background: #eef0eb;
  padding: .22rem .5rem; border-radius: 9999px;
  vertical-align: middle; margin-left: .15rem;
  position: relative; top: -1px;
}
/* Single shared "Optional" badge — identical on self-host cards AND add-on cards */
.opt-badge {
  display: inline-block;
  font-size: .6rem; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-500); background: #eef0eb;
  padding: .35rem .55rem; border-radius: 9999px;
  vertical-align: middle; white-space: nowrap; flex-shrink: 0;
  position: relative; top: -1px;
}
.addon-free {
  font-size: .6rem; font-weight: 700; line-height: 1; letter-spacing: .06em;
  background: var(--yellow); color: var(--green-dark);
  padding: .35rem .55rem; border-radius: 9999px;
  white-space: nowrap;
}
.addon-price {
  font-size: 2rem; font-weight: 800; color: var(--green-field);
  line-height: 1.1; margin-bottom: .9rem;
}
.addon-price .addon-unit {
  font-size: .82rem; font-weight: 500; color: var(--gray-500);
  margin-left: .25rem;
}
.addon-subprice {
  font-size: .82rem; font-weight: 600; color: var(--gray-500);
  margin-top: -.65rem; margin-bottom: .9rem;
}
.addon-desc { color: var(--gray-600); font-size: .9rem; line-height: 1.6; text-wrap: pretty; }
.addon-list {
  list-style: none; display: flex; flex-direction: column; gap: .55rem;
  font-size: .87rem; color: var(--gray-600); line-height: 1.55;
}
.addon-list li {
  position: relative; padding-left: 1rem;
}
.addon-list li::before {
  content: ''; position: absolute; left: 2px; top: .58rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green-field);
}
.addon-list li strong { color: var(--green-dark); font-weight: 700; }
.addon-foot {
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--green-pale);
  color: var(--gray-500); font-size: .82rem; font-style: italic; line-height: 1.55;
}

/* Subsidy banner */
.pricing-subsidy-banner {
  max-width: 1080px; margin: 0 auto 2rem;
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-field) 100%);
  color: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem;
}
.psb-stars {
  flex-shrink: 0; color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.psb-body { display: flex; flex-direction: column; gap: .2rem; line-height: 1.45; }
.psb-body strong { font-size: 1rem; font-weight: 700; }
.psb-body span { font-size: .87rem; color: rgba(255,255,255,.8); }

/* CTAs */
.pricing-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-top: 2rem;
}
.btn-ghost {
  background: transparent; color: var(--green-field);
  font-weight: 700; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 9999px;
  border: 1.5px solid var(--green-pale);
  text-decoration: none; display: inline-block;
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--green-pale); border-color: var(--green-field);
  transform: translateY(-2px); color: var(--green-field);
}

/* Silver button — used for "coming soon" CTAs */
.btn-silver {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(180deg, #f4f5f7 0%, #d9dde2 100%);
  color: #4a5160;
  font-weight: 700; font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid #c4cad3;
  text-decoration: none;
  cursor: not-allowed;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(20,30,50,.08),
    0 4px 12px rgba(20,30,50,.06);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-silver:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 2px 4px rgba(20,30,50,.1),
    0 8px 18px rgba(20,30,50,.1);
  color: #4a5160;
}
.btn-silver .btn-silver-soon {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--yellow);
  color: var(--green-dark);
  padding: .25rem .55rem; border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  white-space: nowrap;
}

@media (max-width: 880px) {
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .pricing-addons { grid-template-columns: 1fr; }
}

/* Self-hosting group wraps the banner + its 2 product cards visually as one block */
.pricing-selfhost-group {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(240,253,244,.4) 0%, rgba(255,255,255,.6) 100%);
  border: 1.5px dashed rgba(45,90,39,.28);
  border-radius: 1.1rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pricing-selfhost-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
/* Drop the divider's own outer dashed border when it sits inside the group */
.pricing-selfhost-group .pricing-divider {
  border: none; background: transparent;
  padding: .25rem .35rem 0;
  border-radius: 0;
}
/* Inside the group, the muted cards get a cleaner solid background so they
   pop against the dashed wrapper instead of looking like another muted layer. */
.pricing-selfhost-grid .pricing-card.muted {
  background: #fff;
  border-color: rgba(45,90,39,.14);
}

@media (max-width: 880px) {
  .pricing-selfhost-grid { grid-template-columns: 1fr; }
  .pricing-selfhost-group { padding: 1rem; }
}

/* Self-host divider banner inside pricing-grid-4 */
.pricing-divider {
  margin: .25rem 0 0;
  padding: 1rem .35rem 0;
  position: relative;
}
.pd-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .65rem;
  flex-wrap: wrap;
}
.pd-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--green-pale);
  color: var(--green-field);
  display: inline-flex; align-items: center; justify-content: center;
}
.pd-title {
  font-size: 1.15rem; font-weight: 800; color: var(--green-dark);
  letter-spacing: -.005em;
  display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.pd-pill {
  display: inline-block;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--yellow); color: var(--green-dark);
  padding: .28rem .6rem; border-radius: 9999px;
  white-space: nowrap;
}
.pd-body {
  color: var(--gray-600); font-size: .94rem; line-height: 1.65;
  text-wrap: pretty; margin: 0 0 .85rem;
}
.pd-body strong { color: var(--green-dark); font-weight: 700; }
.pd-note {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--gray-500); font-style: italic;
  background: #fff;
  border: 1px solid rgba(45,90,39,.12);
  border-radius: 9999px;
  padding: .4rem .85rem .4rem .75rem;
}
.pd-note svg { color: var(--green-field); flex-shrink: 0; }

/* ════════════════════════════════════
   TEAM
════════════════════════════════════ */
.team-section { background: var(--gray-50); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.team-card {
  background: #fff; border-radius: 1rem; padding: 1.5rem;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.team-avatar {
  width: 64px; height: 64px; border-radius: 9999px;
  background: var(--green-pale); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: transform .3s;
}
.team-card:hover .team-avatar { transform: scale(1.1); }
.team-name { font-weight: 700; color: var(--green-dark); font-size: 1rem; }
.team-role { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--green-field); margin: .25rem 0 .75rem; }
.team-bio { color: var(--gray-600); font-size: .85rem; line-height: 1.65; }
.team-advisors { text-align: center; color: var(--gray-500); font-size: .875rem; }
.team-advisors strong { color: var(--green-dark); }
@media(max-width:700px){.team-grid{grid-template-columns:1fr}}

/* ════════════════════════════════════
   INVESTOR TEASER
════════════════════════════════════ */
.investor-section {
  background: rgba(26,86,219,.04);
  border-top: 1px solid rgba(26,86,219,.1);
  border-bottom: 1px solid rgba(26,86,219,.1);
}
.investor-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  max-width: 640px; margin: 0 auto 2.5rem;
}
.investor-card {
  background: #fff; border: 1.5px solid rgba(26,86,219,.18);
  border-radius: .85rem; padding: 1rem .75rem; text-align: center;
}
.investor-value { font-weight: 800; font-size: 1.25rem; color: var(--investor); }
.investor-label { font-size: .75rem; color: var(--gray-500); margin-top: .2rem; }
.btn-outline-investor {
  display: inline-block; border: 2px solid var(--investor); color: var(--investor);
  font-weight: 700; padding: .85rem 2rem; border-radius: 9999px;
  transition: background .2s, color .2s, transform .2s;
}
.btn-outline-investor:hover { background: var(--investor); color: #fff; transform: translateY(-2px); }
@media(max-width:600px){.investor-grid{grid-template-columns:repeat(2,1fr)}}

/* ════════════════════════════════════
   ROI CALCULATOR
════════════════════════════════════ */
.rc-section {
  background: #f5efe5;
  padding: 6rem 0;
}
.rc-head {
  max-width: 760px; margin: 0 auto 3rem; text-align: center;
}
.rc-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: 1rem;
}
.rc-head .section-title { margin-bottom: 1rem; }
.rc-head .section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green-field), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rc-sub {
  color: var(--gray-500); font-size: 1rem; line-height: 1.65;
  max-width: 620px; margin: 0 auto; text-wrap: pretty;
}

.rc-shell {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}

/* Form card */
.rc-form {
  background: #fff;
  border: 1.5px solid var(--green-pale);
  border-radius: 1.1rem;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 4px 30px rgba(45,90,39,.06);
}
.rc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.1rem;
}
.rc-field { display: flex; flex-direction: column; gap: .4rem; }
.rc-field--wide { grid-column: 1 / -1; }
.rc-label {
  font-size: .78rem; font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .005em;
}
.rc-input-wrap {
  position: relative; display: block;
  background: #fafaf7;
  border: 1.5px solid #e7e7df;
  border-radius: .65rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rc-input-wrap::before {
  content: attr(data-prefix);
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  font-size: .95rem; font-weight: 700;
  color: var(--gray-400);
  pointer-events: none;
}
.rc-input-wrap input {
  width: 100%; box-sizing: border-box;
  background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--green-dark);
  padding: .8rem .9rem .8rem 2rem;
  border-radius: .65rem;
}
.rc-input-wrap input::placeholder { color: #c4c4ba; font-weight: 500; }
.rc-input-wrap:focus-within {
  background: #fff;
  border-color: var(--green-field);
  box-shadow: 0 0 0 3px rgba(31,138,91,.12);
}
/* Hide native number spin buttons for cleaner look */
.rc-input-wrap input::-webkit-outer-spin-button,
.rc-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rc-input-wrap input[type=number] { -moz-appearance: textfield; }

.rc-actions {
  margin-top: 1.5rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.rc-reset {
  padding: .8rem 1.2rem; font-size: .9rem; font-weight: 600;
}

.rc-privacy {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px dashed rgba(45,90,39,.15);
  color: var(--gray-500); font-size: .8rem; line-height: 1.5;
}
.rc-privacy svg { color: var(--green-field); flex-shrink: 0; margin-top: .15rem; }

/* Results panel */
.rc-results {
  background: linear-gradient(135deg, var(--green-pale) 0%, #fff 100%);
  border: 1.5px solid rgba(45,90,39,.18);
  border-radius: 1.1rem;
  padding: 2rem;
  animation: roiFadeIn .35s ease-out;
}
@keyframes roiFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rc-results-head { text-align: center; margin-bottom: 1.75rem; }
.rc-results-eyebrow {
  font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: .65rem;
}
.rc-results-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 800;
  color: var(--green-dark); letter-spacing: -.005em; line-height: 1.25;
  text-wrap: balance;
}

.rc-paybacks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem;
}
.rc-payback {
  background: #fff;
  border: 1.5px solid var(--green-pale);
  border-radius: .9rem;
  padding: 1.25rem 1.4rem;
}
.rc-payback--alt {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.rc-payback-tag {
  display: inline-block;
  font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-field);
  background: var(--green-pale);
  padding: .3rem .55rem; border-radius: 9999px;
  margin-bottom: .85rem;
}
.rc-payback--alt .rc-payback-tag {
  color: var(--green-dark); background: var(--yellow);
}
.rc-payback-line {
  font-size: .85rem; color: var(--gray-500); margin-bottom: .35rem;
  line-height: 1.4;
}
.rc-payback--alt .rc-payback-line { color: rgba(240,253,244,.7); }
.rc-payback-value {
  font-size: 2.4rem; font-weight: 800;
  color: var(--green-dark);
  line-height: 1.05;
  letter-spacing: -.015em;
  display: flex; align-items: baseline; gap: .45rem;
}
.rc-payback--alt .rc-payback-value { color: var(--yellow); }
.rc-payback-unit {
  font-size: 1rem; font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0;
}
.rc-payback--alt .rc-payback-unit { color: rgba(240,253,244,.65); }
.rc-payback-meta {
  margin-top: .85rem; font-size: .78rem;
  color: var(--gray-500);
}
.rc-payback--alt .rc-payback-meta { color: rgba(240,253,244,.55); }

.rc-ongoing {
  background: #fff;
  border-radius: .9rem;
  padding: 1.4rem 1.5rem;
  border: 1.5px solid var(--green-pale);
}
.rc-ongoing-eyebrow {
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: .55rem;
}
.rc-ongoing-body {
  color: var(--gray-600); font-size: .98rem; line-height: 1.6;
  margin: 0 0 1rem;
  text-wrap: pretty;
}
.rc-ongoing-body strong {
  color: var(--green-dark); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.01em;
}
.rc-breakdown {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: .35rem .75rem;
  padding-top: 1rem;
  justify-content: center;
  border-top: 1px dashed rgba(45,90,39,.18);
}
.rc-breakdown li {
  display: flex; justify-content: flex-start; align-items: baseline; gap: .4rem;
  font-size: .82rem; white-space: nowrap;
}
.rc-breakdown li span:first-child { color: var(--gray-500); }
.rc-breakdown li span:first-child::after { content: ':'; }
.rc-breakdown li span:last-child { color: var(--green-dark); font-weight: 700; font-variant-numeric: tabular-nums; }

.rc-note {
  margin-top: 1.25rem;
  color: var(--gray-500); font-size: .82rem; line-height: 1.6;
  text-wrap: pretty;
}
.rc-note strong { color: var(--green-dark); font-weight: 700; }

@media (max-width: 760px) {
  .rc-section { padding: 4.5rem 0; }
  .rc-form { padding: 1.4rem; }
  .rc-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-paybacks { grid-template-columns: 1fr; }
  .rc-results { padding: 1.4rem; }
  .rc-payback-value { font-size: 2rem; }
}
@media (max-width: 460px) {
  .rc-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   EARLY ACCESS CTA
════════════════════════════════════ */
.cta-section {
  background: var(--green-dark); position: relative; overflow: hidden;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: rgba(240,253,244,.75); }

/* — Early access hero (text block) — */
.ea-hero { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; position: relative; }
.ea-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 1.25rem;
}
.ea-title {
  font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 800; line-height: 1.12;
  color: #fff; margin-bottom: 1.1rem; letter-spacing: -.015em;
  text-wrap: balance;
}
.ea-lede {
  color: rgba(240,253,244,.78); font-size: 1.02rem; line-height: 1.6;
  max-width: 600px; margin: 0 auto; text-wrap: pretty;
}

/* — Stats strip — */
.ea-stats {
  max-width: 860px; margin: 0 auto 1.75rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem; padding: 1.1rem 0;
  backdrop-filter: blur(4px);
  position: relative;
}
.ea-stat {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .25rem 1rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ea-stat:last-child { border-right: none; }
.ea-stat-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(240,253,244,.55);
}
.ea-stat-value {
  font-size: 1rem; font-weight: 700; color: var(--yellow);
  text-align: center;
}

/* — Form card wrapper (wider than original ea-form) — */
.ea-card {
  max-width: 860px; margin: 0 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}
/* Reset ea-form constraints inside the new card */
.ea-card .ea-form {
  background: transparent; border: none; padding: 0;
  max-width: none; margin: 0; backdrop-filter: none;
}

/* — Segmented control — */
.ea-field { margin-bottom: 0; }
.ea-segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin-top: .55rem;
}
.ea-seg {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  color: rgba(240,253,244,.85);
  font-family: inherit; font-size: .92rem; font-weight: 600;
  padding: .85rem 1rem; border-radius: .65rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.ea-seg:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.ea-seg.active {
  background: var(--yellow); border-color: var(--yellow);
  color: var(--green-dark);
}

.ea-divider {
  height: 1px; background: rgba(255,255,255,.08);
  margin: 1.5rem 0;
}

.ea-textarea {
  resize: vertical; min-height: 96px; line-height: 1.55;
  font-family: inherit;
}

.ea-foot {
  text-align: center; font-size: .78rem; color: rgba(240,253,244,.55);
  margin-top: .9rem;
}
.ea-foot a { color: inherit; text-decoration: none; }
.ea-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Re-spec ea-form-row gap to give it a bit more breathing room */
.ea-card .ea-form-row { margin-bottom: 1.1rem; }
.ea-card .ea-form > div + div { margin-top: 0; }
.ea-card .ea-form > .ea-field + .ea-divider + .ea-form-row { margin-top: 0; }
.ea-card .ea-form > div { margin-bottom: 1.1rem; }
.ea-card .ea-form > .ea-divider { margin-bottom: 1.1rem; }
.ea-card .ea-form > .ea-field { margin-bottom: 1.1rem; }
.ea-card .ea-form > button.ea-submit { margin-top: .5rem; }

@media (max-width: 700px) {
  .ea-stats { grid-template-columns: repeat(2, 1fr); padding: .5rem 0; gap: 0; }
  .ea-stat { padding: .9rem 1rem; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
  .ea-stat:nth-child(2n) { border-right: none; }
  .ea-stat:nth-last-child(-n+2) { border-bottom: none; }
  .ea-segmented { grid-template-columns: 1fr; }
  .ea-card { padding: 1.5rem; }
}
.ea-form {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem; padding: 2rem;
  max-width: 560px; margin: 0 auto;
  backdrop-filter: blur(4px);
}
.ea-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.ea-label { display: block; font-size: .8rem; font-weight: 600; color: rgba(240,253,244,.8); margin-bottom: .4rem; }
.ea-input {
  width: 100%; padding: .75rem 1rem; border-radius: .65rem;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: .9rem; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.ea-input::placeholder { color: rgba(255,255,255,.35); }
.ea-input:focus { border-color: var(--yellow); }
.ea-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  padding-right: 2.5rem;
}
.ea-select option { background: var(--green-dark); color: #fff; }
.ea-full { grid-column: 1 / -1; }
.ea-submit {
  width: 100%; background: var(--yellow); color: var(--green-dark);
  font-weight: 700; font-size: 1rem; padding: .9rem;
  border: none; border-radius: .65rem; cursor: pointer;
  margin-top: .75rem; font-family: inherit;
  transition: filter .2s, transform .2s;
}
.ea-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ea-success {
  display: none; text-align: center; padding: 2rem 1rem;
  color: rgba(240,253,244,.9);
}
.ea-success-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.ea-success h3 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
@media(max-width:520px){.ea-form-row{grid-template-columns:1fr}}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer { background: var(--green-dark); border-top: 1px solid rgba(255,255,255,.08); }

/* Partners strip */
.footer-partners {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}
.footer-partners-img {
  display: block;
  max-width: 760px; width: 100%;
  height: auto; margin: 0 auto;
  border-radius: .65rem;
}
.footer-partners-caption {
  max-width: none; margin: .35rem auto 0;
  color: rgba(240,253,244,.65);
  font-size: .82rem; line-height: 1.4;
  white-space: nowrap;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .footer-partners-caption { white-space: normal; max-width: 520px; }
}

/* Bottom row */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .75rem; color: rgba(240,253,244,.6);
}
.footer-legal { line-height: 1.5; }
.footer-legal a { color: rgba(240,253,244,.7); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* Socials */
.footer-socials { display: flex; gap: .5rem; align-items: center; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: rgba(240,253,244,.7);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.footer-socials a:hover {
  color: var(--yellow);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}
.footer-col-title { color: #fff; font-weight: 600; font-size: .875rem; margin-bottom: .65rem; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col-links a { color: rgba(240,253,244,.55); font-size: .82rem; transition: color .2s; }
.footer-col-links a:hover { color: #fff; }

/* ════════════════════════════════════
   TWEAKS PANEL
════════════════════════════════════ */
.tweaks-panel {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: #fff; border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  width: 280px; display: none; flex-direction: column;
  border: 1.5px solid var(--gray-100); overflow: hidden;
}
.tweaks-panel.open { display: flex; }
.tweaks-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--green-dark); color: #fff;
}
.tweaks-header h4 { font-size: .9rem; font-weight: 700; }
.tweaks-close { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.tweaks-body { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.tweak-row label { display: block; font-size: .75rem; font-weight: 600; color: var(--gray-600); margin-bottom: .35rem; }
.tweak-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.tweak-toggle-row label { margin: 0; }
.toggle-switch { position: relative; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 11px;
  background: var(--gray-100); cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--green-field); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.tweak-colors { display: flex; gap: .5rem; flex-wrap: wrap; }
.tweak-color-btn {
  width: 28px; height: 28px; border-radius: .4rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s;
}
.tweak-color-btn:hover { transform: scale(1.1); }
.tweak-color-btn.active { border-color: var(--gray-900); }
.tweak-select {
  width: 100%; padding: .45rem .65rem; border-radius: .5rem;
  border: 1.5px solid var(--gray-100); font-size: .85rem; font-family: inherit;
  color: var(--gray-700); background: #fff; outline: none;
}

/* ── Hero iPhone mockup ── */
@keyframes hdBlinkGreen { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(36,178,107,.5)} 50%{opacity:.45;box-shadow:0 0 0 4px rgba(36,178,107,0)} }
@keyframes hdBlinkRed   { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,59,48,.55)} 50%{opacity:.4;box-shadow:0 0 0 4px rgba(255,59,48,0)} }
.animate-blink-green { animation: hdBlinkGreen 1.8s ease-in-out infinite; }
.animate-blink-red   { animation: hdBlinkRed 1.4s ease-in-out infinite; }
.hd-alert-sub a { color: var(--investor); font-weight: 600; }
.hd-alert-sub a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* Face the phone straight-on so the floating callouts stack cleanly in front
   (a 3D tilt pushes the card's near edges forward in Z and occludes them). */
@keyframes hdFloatFlat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.hero-dashboard .hd-card { transform: none; animation: hdFloatFlat 6s ease-in-out infinite; }
.hero-dashboard .hd-chip, .hero-dashboard .hd-alert { z-index: 30; }
@media (prefers-reduced-motion: reduce) {
  .animate-blink-green, .animate-blink-red { animation: none; }
  .hero-dashboard .hd-card { animation: none; }
}


/* ── Features v2 ── */
.features-v2 { background: linear-gradient(180deg, #fafaf7 0%, #fff 60%); padding: 6rem 0; }
.fv2-head { max-width: 720px; margin: 0 auto 3.25rem; text-align: center; }
.fv2-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-field);
  padding: .35rem .85rem; border-radius: 9999px;
  background: rgba(45,90,39,.08); margin-bottom: 1.1rem;
}
.fv2-title {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1;
  margin-bottom: .9rem; letter-spacing: -.01em;
  font-style: normal;
  background: linear-gradient(90deg, var(--green-field), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fv2-title em {
  font-style: normal; font-weight: 800;
  background: linear-gradient(90deg, var(--green-field), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.fv2-sub { color: var(--gray-500); font-size: 1.02rem; line-height: 1.65; max-width: 560px; margin: 0 auto; }

.fv2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.fv2-card {
  position: relative; isolation: isolate;
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 1.1rem; padding: 1.6rem 1.4rem 1.5rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.fv2-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: 0;
  transition: opacity .35s;
}
.fv2-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--accent-soft); opacity: 0; z-index: -1;
  transition: opacity .35s, transform .5s cubic-bezier(.22,1,.36,1);
}
.fv2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 40, 20, .08);
  border-color: transparent;
}
.fv2-card:hover::before { opacity: 1; }
.fv2-card:hover::after { opacity: 1; transform: scale(1.1); }

.fv2-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.05rem;
}
.fv2-icon {
  width: 46px; height: 46px; border-radius: .75rem;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; line-height: 1;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.fv2-card:hover .fv2-icon { transform: scale(1.08) rotate(-4deg); }
.fv2-num {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gray-400); font-variant-numeric: tabular-nums;
}
.fv2-name {
  font-size: 1.1rem; font-weight: 700; color: var(--green-dark);
  margin-bottom: .45rem; letter-spacing: -.01em;
}
.fv2-desc {
  color: var(--gray-600); font-size: .88rem; line-height: 1.6;
  margin-bottom: 1.1rem; text-wrap: pretty;
}
.fv2-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .05em;
  color: var(--accent);
  padding: .3rem .7rem; border-radius: 9999px;
  background: var(--accent-soft);
}

@media (max-width: 900px) { .fv2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fv2-grid { grid-template-columns: 1fr; } }

/* ── Promise section ── */
.promise-section {
  background: linear-gradient(180deg, #fafaf7 0%, #fff 60%);
  padding: 6.5rem 0;
}
.promise-head { max-width: 760px; margin: 0 auto 4rem; text-align: center; }
.promise-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: 1.25rem;
}
.promise-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12;
  color: var(--green-dark); margin-bottom: 1.1rem; letter-spacing: -.015em;
  text-wrap: balance;
}
.promise-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green-field), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.promise-sub {
  color: var(--gray-500); font-size: 1.02rem; line-height: 1.65;
  max-width: 580px; margin: 0 auto;
}

.promise-timeline {
  display: flex; flex-direction: column;
  max-width: 720px; margin: 0 auto;
  position: relative;
}
.promise-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(74,124,63,.18) 6%,
    rgba(74,124,63,.18) 94%,
    transparent 100%);
  z-index: 0;
}

.promise-item {
  position: relative;
  display: flex; gap: 1.5rem;
  padding-bottom: 2.5rem;
  z-index: 1;
}
.promise-item:last-child { padding-bottom: 0; }

.promise-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green-field);
  box-shadow: 0 0 0 5px rgba(74,124,63,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-field);
}
.promise-h3 {
  font-size: 1.08rem; font-weight: 700; color: var(--green-dark);
  margin-bottom: .55rem; letter-spacing: -.005em;
  padding-top: .55rem; /* nudge title to vertically align with icon center */
}
.promise-body { padding-bottom: .15rem; }
.promise-body p {
  color: var(--gray-600); font-size: .92rem; line-height: 1.62;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .promise-section { padding: 4.5rem 0; }
  .promise-item { gap: 1.1rem; padding-bottom: 2rem; }
  .promise-icon { width: 40px; height: 40px; }
  .promise-timeline::before { left: 19px; }
  .promise-h3 { padding-top: .35rem; }
}

/* ── System diagram ── */
.diagram-section { background: linear-gradient(180deg, #fafaf7 0%, #fff 60%); padding: 6.5rem 0; }
.diag-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.diag-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-field);
  padding: .35rem .85rem; border-radius: 9999px;
  background: rgba(45,90,39,.08); margin-bottom: 1.1rem;
}
.diag-title {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.01em; color: var(--green-dark);
}

.diag { position: relative; max-width: 1080px; margin: 0 auto; container-type: inline-size; }
.diag-img { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .diag { transition: none; }
}

/* ── How it works (v2) ── */
.hiw-section {
  background: var(--green-dark);
  padding: 6rem 0;
  position: relative; overflow: hidden;
}
.hiw-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.hiw-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 1.1rem;
}
.hiw-title {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.12;
  color: #fff; letter-spacing: -.015em;
  text-wrap: balance;
}

.hiw-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1040px; margin: 0 auto;
}
.hiw-line {
  position: absolute; top: 48px; left: 16%; right: 16%;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.45) 0, rgba(255,255,255,.45) 6px,
    transparent 6px, transparent 12px);
  z-index: 0;
}

.hiw-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 .5rem;
  border-radius: 1rem;
  transition: background .25s, transform .35s cubic-bezier(.22,1,.36,1);
}
.hiw-ring {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 0 0 6px var(--green-dark), 0 6px 16px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.6rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s;
}
.hiw-step:hover .hiw-ring { transform: translateY(-4px); border-color: var(--yellow); }
.hiw-ring--cta {
  background: var(--yellow); border-color: var(--yellow); color: var(--green-dark);
}
.hiw-step:hover .hiw-ring--cta { background: #fff; border-color: #fff; }
.hiw-emoji { font-size: 2.1rem; line-height: 1; }
.hiw-step-title {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: .65rem; letter-spacing: -.005em;
}
.hiw-num { color: var(--yellow); margin-right: .15em; }
.hiw-step-body {
  color: rgba(240,253,244,.75); font-size: .9rem; line-height: 1.65;
  max-width: 300px;
  text-wrap: pretty;
}
.hiw-cta-btn {
  position: relative;
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--yellow); color: var(--green-dark);
  font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 9999px;
  box-shadow:
    0 0 0 0 rgba(245,200,66,.55),
    0 8px 22px rgba(245,200,66,.35);
  transition: filter .2s, transform .2s, color .2s, box-shadow .3s;
  animation: hiwGlow 2.4s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
}
.hiw-cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    transparent 0%, transparent 35%,
    rgba(255,255,255,.65) 50%,
    transparent 65%, transparent 100%);
  transform: translateX(-120%);
  animation: hiwShine 3.2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes hiwGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,66,.55), 0 8px 22px rgba(245,200,66,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(245,200,66,0),   0 10px 28px rgba(245,200,66,.5); }
}
@keyframes hiwShine {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.hiw-step--link {
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.hiw-step--link:hover { transform: translateY(-3px); }
.hiw-cta-silver {
  margin-top: 1.1rem;
}
.hiw-step--link:hover .hiw-cta-silver {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* Soft "coming soon" treatment */
.hiw-step--soon { cursor: not-allowed; }
.hiw-step--soon .hiw-ring--cta { opacity: .92; }
.hiw-soon-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  white-space: nowrap;
  z-index: 2;
}
.hiw-soon-note {
  display: block; margin-top: .35rem;
  font-style: normal;
  font-size: .78rem; font-weight: 600;
  color: var(--yellow); letter-spacing: .01em;
}
.hiw-cta-btn:hover {
  filter: brightness(1.06); transform: translateY(-2px); color: var(--green-dark);
}
@media (prefers-reduced-motion: reduce) {
  .hiw-cta-btn { animation: none; }
  .hiw-cta-btn::before { animation: none; display: none; }
}

@media (max-width: 800px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hiw-line { display: none; }
  .hiw-section { padding: 4.5rem 0; }
}

/* ── Supported crops ── */
.crops-section {
  background: #f5efe5;
  padding: 6rem 0;
}
.crops-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.crops-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-field); margin-bottom: 1.1rem;
}
.crops-title {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.12;
  color: var(--green-dark); letter-spacing: -.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.crops-sub {
  color: var(--gray-600); font-size: 1.02rem; line-height: 1.65;
  max-width: 580px; margin: 0 auto;
}

.crops-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.crops-marquee-fade { display: none; }
.crops-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  padding: .5rem 0;
}
.crop-card {
  background: #fff;
  border: 1px solid rgba(45,90,39,.08);
  border-radius: .9rem;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: flex-start; gap: .9rem;
  flex-shrink: 0;
  width: 320px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .25s;
  user-select: none;
}
.crop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20,40,20,.08);
  border-color: rgba(45,90,39,.2);
}
.crop-emoji {
  font-size: 1.6rem; line-height: 1; flex-shrink: 0;
  margin-top: 2px;
}
.crop-name {
  font-size: 1.02rem; font-weight: 700; color: var(--green-dark);
  margin-bottom: .25rem; letter-spacing: -.005em;
}
.crop-desc {
  color: var(--gray-600); font-size: .85rem; line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .crop-card { width: 270px; padding: 1rem 1.1rem; }
  .crops-section { padding: 4.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crops-track { animation: none; }
}

@media (max-width: 430px) {
  /* Scale down the entire dashboard container cleanly if the viewport is narrower than the phone design */
  .hero-dashboard-wrap {
    transform: scale(0.88);
    transform-origin: center top;
    /* Pull back the bottom margin margin tightly so the empty space from scaling doesn't leave a massive gap underneath */
    margin-bottom: -3rem;
  }
}

@media (max-width: 360px) {
  .hero-dashboard-wrap {
    transform: scale(0.78);
    margin-bottom: -5rem;
  }
}

@media (max-width: 760px) {
  /* Target the diagram container inside the system section */
  .diagram-section .container {
    /* 1. Force the container wrapper to span the absolute full width */
    max-width: 100vw;

    /* 2. Strip away the standard left/right utility padding */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .diagram-section .diag {
    /* 3. Ensure the inner alignment wrapper takes up 100% space */
    width: 100%;
  }

  .diagram-section .diag-img {
    /* 4. Force the image to confidently stretch from edge to edge */
    width: 100%;
    border-radius: 0; /* Optional: flattens any corners for a flush look */
  }
}

/* ── Mobile Optimization for Pricing, ROI, & Contact Form ── */
@media (max-width: 760px) {
  #pricing .container,
  #roi-calc .container,
  #early-access .container {
  /* Reclaim screen real estate by trimming down the aggressive desktop side padding */
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  }

  /* Pricing Cards adjustments */
  .pricing-card {
    padding: 1.5rem 1.25rem;
  }
  .pricing-selfhost-group {
    padding: 1rem .75rem;
  }

  /* ROI Calculator adjustments */
  .rc-form,
  .rc-results {
    padding: 1.25rem 1rem;
  }

  /* Contact Form wrapper adjustments */
  .ea-card {
    padding: 1.25rem 1rem !important;
  }
}

/* ── Mobile Optimization for Hero Dashboard Mockup ── */
@media (max-width: 760px) {
  /* 1. Prevent the floating alert from spilling over the right edge of the screen */
  .hero-dashboard .hd-alert {
    right: 0.25rem;
  }

  /* 2. Pull the risk chip slightly inward to match the safety margin */
  .hero-dashboard .hd-chip {
    left: 0.25rem;
  }

  /* 3. Force floating widgets and the main mockup card to use desktop alignment rules */
  .hd-alert,
  .hd-chip,
  .hero-dashboard .hd-card {
    text-align: left;
  }

  /* 4. Force absolute centering on the phone mockup wrapper container */
  .hero-dashboard-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto; /* Added to help Safari anchor the box layout */
  }

  /* 5. Snug the container width down gracefully for mobile viewports */
  .hero-dashboard {
    width: 100%;
    max-width: 360px !important; /* Force override over the inline 400px style */
    margin: 0 !important;        /* Clear the inline auto-margin causing Safari layout shifting */
  }
}

/* 6. Fix the scale scaling shifts */
@media (max-width: 430px) {
  .hero-dashboard-wrap {
    transform: scale(0.88);
    transform-origin: top center; /* Ensure scale origin anchors straight from the center top */
    margin-bottom: -3rem;
  }
}

@media (max-width: 360px) {
  .hero-dashboard-wrap {
    transform: scale(0.78);
    transform-origin: top center;
    margin-bottom: -5rem;
  }
}

