/* ==========================================================================
   Smart Agri Africa — site stylesheet
   Design system rooted in what the platform actually does: digitised field
   boundaries (line motif) and the NDVI colour ramp (accent gradient).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* brand */
  --brand:        #36B54A;   /* sampled from the Smart Agri Africa logo */
  --brand-600:    #2C9B3E;
  --brand-300:    #7ED08B;
  --brand-100:    #DCF1E0;

  /* veld — deep section grounds */
  --veld-900:     #071B12;
  --veld-800:     #0C2A1C;
  --veld-700:     #123723;
  --veld-600:     #1B4630;

  /* soil & sun — the South African warmth */
  --soil:         #B85C2B;
  --soil-300:     #E39B6B;
  --sun:          #E5A93A;
  --sun-100:      #F7E6C4;

  /* warm neutrals — African light, never cold grey */
  --paper:        #FBF9F5;
  --paper-alt:    #F3EFE7;
  --line:         #E2DCD1;
  --ink:          #14211A;
  --ink-70:       #4A5852;
  --ink-50:       #6E7A73;
  --white:        #FFFFFF;

  /* the one alert colour — a brick red that belongs to the soil palette
     rather than a stock UI red, used only for failed form submission */
  --alert:        #A33327;

  /* NDVI ramp — bare soil → stressed → healthy → vigorous */
  --ndvi: linear-gradient(90deg, #8C5A2B 0%, #C98B2E 22%, #E5C63F 45%, #9DC63F 70%, #36B54A 86%, #17703A 100%);

  /* type */
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* rhythm */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7, 27, 18, .06), 0 4px 12px rgba(7, 27, 18, .05);
  --shadow-md: 0 12px 32px rgba(7, 27, 18, .10), 0 2px 6px rgba(7, 27, 18, .06);
  --shadow-lg: 0 30px 70px rgba(7, 27, 18, .22);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* the off-canvas nav is parked outside the viewport; clip rather than
     hidden so the sticky header keeps working */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  background: var(--veld-800); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 8px 0; font-weight: 600;
  transform: translateY(-120%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section--dark { background: var(--veld-800); color: #E6EFE9; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--darker { background: var(--veld-900); color: #E6EFE9; }
.section--darker h2, .section--darker h3 { color: #fff; }
.section--paper { background: var(--paper-alt); }

/* field-boundary motif: thin polygon lines, like digitised field edges */
.section--lines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='680' height='420' fill='none' stroke='%2336B54A' stroke-width='1.1' opacity='.5'%3E%3Cpath d='M-20 96 L188 44 L342 118 L300 250 L96 288 Z'/%3E%3Cpath d='M342 118 L556 70 L700 150 L640 268 L300 250'/%3E%3Cpath d='M96 288 L140 420'/%3E%3Cpath d='M300 250 L336 420'/%3E%3Cpath d='M640 268 L676 420'/%3E%3Cpath d='M188 44 L214 -20'/%3E%3Cpath d='M556 70 L536 -20'/%3E%3C/svg%3E");
  background-size: 680px 420px;
  opacity: .16;
}
.section--dark.section--lines::before,
.section--darker.section--lines::before { opacity: .22; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px;
  background: var(--ndvi); flex: none;
}
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--brand-300); }

.display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.032em;
  line-height: 1.02;
}
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.015em; }
.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.3rem);
  line-height: 1.6; color: var(--ink-70); max-width: 62ch;
}
.section--dark .lead, .section--darker .lead { color: #B9CCC1; }
.muted { color: var(--ink-50); }
.section--dark .muted, .section--darker .muted { color: #93A79B; }
.accent { color: var(--brand); }
.section--dark .accent, .section--darker .accent { color: var(--brand-300); }
.small { font-size: .875rem; line-height: 1.55; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .975rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--dark { background: var(--veld-800); color: #fff; }
.btn--dark:hover { background: var(--veld-700); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn--light { background: #fff; color: var(--veld-800); }
.btn--light:hover { background: var(--brand-100); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

.txt-link {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--brand-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
}
.txt-link:hover { border-bottom-color: currentColor; }
.txt-link svg { transition: transform .2s ease; }
.txt-link:hover svg { transform: translateX(3px); }
.section--dark .txt-link, .section--darker .txt-link { color: var(--brand-300); }

/* ---------- announcement bar ---------- */
.topbar {
  background: var(--veld-900); color: #C9DCD0;
  font-size: .84rem; text-align: center;
  padding: .6rem var(--gutter);
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: var(--brand-300); text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display); font-size: 1.14rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
.brand-text span {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-50); margin-top: 3px; font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a, .nav button.navlink {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--ink); text-decoration: none;
  padding: .55rem .8rem; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav a:hover, .nav button.navlink:hover { color: var(--brand-600); background: var(--brand-100); }
.nav a[aria-current="page"] { color: var(--brand-600); font-weight: 600; }

/* the nav CTA is a button first — don't let .nav a flatten it */
.nav a.btn { padding: .72rem 1.35rem; border-radius: 100px; font-weight: 600; }
.nav a.btn--primary { background: var(--brand); color: #fff; }
.nav a.btn--primary:hover { background: var(--brand-600); color: #fff; }

.has-menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 290px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .55rem; opacity: 0; visibility: hidden; transition: all .18s ease;
}
.has-menu.open .menu-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu-panel a {
  display: block; padding: .7rem .8rem; border-radius: 9px; width: 100%;
}
.menu-panel a b { display: block; font-weight: 600; font-size: .95rem; }
.menu-panel a small { display: block; color: var(--ink-50); font-size: .8rem; font-family: var(--font-body); font-weight: 400; line-height: 1.4; margin-top: 2px; }
.menu-panel a:hover small { color: var(--ink-70); }

.nav-cta { margin-left: .5rem; }
.nav-close { display: none; }
.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  /* backdrop-filter establishes a containing block for fixed-position
     descendants, which would trap the off-canvas drawer inside the header.
     Drop the frosted effect at the breakpoint where the drawer is used. */
  .site-header { backdrop-filter: none; background: var(--paper); }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1.25rem;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    cursor: pointer;
  }
  .nav-close:hover { border-color: var(--brand); color: var(--brand-600); }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(102%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a, .nav button.navlink { padding: .85rem .6rem; font-size: 1.02rem; width: 100%; justify-content: space-between; }
  .has-menu { position: static; }
  .menu-panel {
    position: static; transform: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--brand-100); border-radius: 0;
    min-width: 0; padding: 0 0 .4rem .5rem; margin: 0 0 .4rem .6rem;
    display: none; opacity: 1; visibility: visible;
  }
  .has-menu.open .menu-panel { display: block; transform: none; }
  .nav-cta { margin: 1rem 0 0; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(7,27,18,.45); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--veld-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,27,18,.94) 0%, rgba(7,27,18,.78) 42%, rgba(7,27,18,.34) 78%, rgba(7,27,18,.2) 100%),
    linear-gradient(180deg, rgba(7,27,18,.5) 0%, rgba(7,27,18,0) 30%, rgba(7,27,18,.55) 100%);
}
/* digitised field boundaries drawn over the hero photograph — the same
   thing the platform does to a farm on day one */
.hero-boundaries {
  position: absolute; top: 0; bottom: 0; right: 0; left: auto;
  width: min(52%, 720px); height: 100%;
  z-index: 1; pointer-events: none;
  /* dissolve toward the copy rather than cutting across it */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}
.hero-boundaries polygon, .hero-boundaries path {
  fill: rgba(54, 181, 74, .07);
  stroke: rgba(126, 208, 139, .85);
  stroke-width: 1.6;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s cubic-bezier(.3,.7,.3,1) forwards;
}
.hero-boundaries polygon:nth-child(2) { animation-delay: .35s; }
.hero-boundaries polygon:nth-child(3) { animation-delay: .7s; }
.hero-boundaries circle {
  fill: #fff; stroke: var(--brand); stroke-width: 2;
  opacity: 0; animation: pop .5s ease forwards 2.2s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .hero-boundaries polygon, .hero-boundaries path { stroke-dashoffset: 0; animation: none; }
  .hero-boundaries circle { opacity: .9; animation: none; }
}
@media (max-width: 980px) { .hero-boundaries { display: none; } }

.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(4.5rem, 12vw, 9rem);
  max-width: 900px;
}
.hero .display { color: #fff; }
.hero .lead { color: #C7D8CD; max-width: 60ch; }
.hero-rule { height: 4px; border-radius: 3px; background: var(--ndvi); width: 190px; margin-bottom: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 2rem; margin-top: 3.5rem;
  padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats .stat-n { color: #fff; }

/* page hero (interior pages) */
.pagehero { background: var(--veld-800); color: #fff; position: relative; overflow: hidden; }
.pagehero .wrap { position: relative; z-index: 1; }
.pagehero-media { position: absolute; inset: 0; z-index: 0; }
.pagehero-media img { width: 100%; height: 100%; object-fit: cover; }
/* shift the crop when a texture is reused on another page, so the same file
   does not read as the same banner twice */
.pagehero-media--right img { object-position: 78% center; }
.pagehero-media--left img { object-position: 22% center; }
/* banners with people in them: bias the visible band upward so a centred crop
   does not take the heads off. The source is also pre-cropped to sit close to
   the banner's own aspect, which keeps the figures whole. */
.pagehero-media--figures img { object-position: center 35%; }
/* narrow viewports crop horizontally instead of vertically, and the subject
   sits hard right — pan to them or the banner shows empty field */
@media (max-width: 880px) {
  .pagehero-media--figures img { object-position: 78% center; }
}
.pagehero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,42,28,.95) 0%, rgba(12,42,28,.86) 38%, rgba(12,42,28,.5) 72%, rgba(12,42,28,.34) 100%),
    linear-gradient(180deg, rgba(12,42,28,.4), rgba(12,42,28,.2) 40%, rgba(12,42,28,.6));
}
@media (max-width: 880px) {
  .pagehero-media::after {
    background: linear-gradient(180deg, rgba(12,42,28,.88), rgba(12,42,28,.8));
  }
  /* a face sitting directly behind the headline competes in a way an abstract
     texture does not — hold it further back on small screens */
  .pagehero-media--figures::after {
    background: linear-gradient(180deg, rgba(12,42,28,.94), rgba(12,42,28,.86));
  }
}
.pagehero-inner { padding-block: clamp(3.5rem, 8vw, 6rem); max-width: 820px; }
.pagehero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.03em; }
.pagehero .lead { color: #BDD0C4; }

/* ---------- stats ---------- */
.stat-n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1;
  letter-spacing: -.035em; color: var(--ink); display: block;
  white-space: nowrap;
}
.stat-l {
  font-size: .875rem; line-height: 1.45; color: var(--ink-50);
  margin-top: .6rem; display: block; max-width: 26ch;
}
.section--dark .stat-n, .section--darker .stat-n, .hero .stat-n { color: #fff; }
.section--dark .stat-l, .section--darker .stat-l, .hero .stat-l { color: #9FB4A7; }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.stat-row--bordered .stat { padding-left: 1.4rem; border-left: 3px solid var(--brand); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* strict two-up — never reflows to an orphaned third column */
.cols-2x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) { .cols-2x { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card h3 { margin-bottom: .55rem; font-size: 1.22rem; }
.card p { color: var(--ink-70); font-size: .97rem; }
.card p:last-of-type { margin-bottom: 0; }

/* capability card — NDVI stripe reads as the shared data spine */
.card--cap { padding-top: 2.1rem; }
.card--cap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ndvi);
}
.cap-num {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; color: var(--brand-600); display: block; margin-bottom: .8rem;
}
.cap-card-icon { margin-bottom: 1.1rem; }
.card--dark {
  background: var(--veld-700); border-color: rgba(255,255,255,.1); color: #CFE0D5;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: #AFC5B7; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--brand-100); color: var(--brand-600);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card--dark .icon-badge { background: rgba(54,181,74,.16); color: var(--brand-300); }
.icon-badge svg { width: 22px; height: 22px; }

/* tick list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: .98rem; color: var(--ink-70); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 9px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.ticks li b { color: var(--ink); font-weight: 600; }
.section--dark .ticks li, .section--darker .ticks li { color: #B9CCC1; }
.section--dark .ticks li b, .section--darker .ticks li b { color: #fff; }
.card--dark .ticks li { color: #AFC5B7; }
.card--dark .ticks li b { color: #fff; }

/* ---------- capability icons ----------
   Illustrated set, generated as one sheet so the six share a single style pass,
   then sliced and normalised onto a common tile. The tile is baked into the
   asset (rounded corners are alpha), which is what lets the same file sit on
   both the paper and veld sections without a second colourway. */
.fsicon {
  width: 56px; height: 56px; flex: none; display: block;
}
.fsicon--lg { width: 64px; height: 64px; }

/* icon + eyebrow, used at the head of each capability section */
.cap-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.cap-head .eyebrow { margin: 0; }
.cap-head .eyebrow::before { display: none; }

/* ---------- platform overview diagram ----------
   Five capabilities → one spine → what comes out of it. Built in HTML rather
   than as a single SVG so the labels stay real text and it reflows on a phone. */
.spine-map { margin-top: clamp(2rem, 4vw, 3rem); }

.spine-caps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
}
.spine-caps li {
  position: relative; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.spine-caps a { text-decoration: none; color: inherit; display: block; }
.spine-caps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.spine-caps .fsicon { width: 64px; height: 64px; margin: 0 auto .9rem; }
.spine-caps b {
  display: block; font-family: var(--font-display); font-size: 1.02rem;
  letter-spacing: -.01em; margin-bottom: .3rem;
}
.spine-caps span { display: block; font-size: .84rem; line-height: 1.45; color: var(--ink-50); }
/* the drop into the spine */
.spine-caps li::after {
  content: ""; position: absolute; left: 50%; bottom: -1.55rem;
  width: 2px; height: 1.55rem; background: var(--line); transform: translateX(-1px);
}

.spine-bar {
  margin-top: 1.55rem; position: relative;
  background: var(--veld-800); color: #fff;
  border-radius: var(--radius); overflow: hidden;
  padding: 1.35rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  text-align: left;
}
.spine-bar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--ndvi);
}
.spine-bar .fsicon { color: var(--brand-300); }
.spine-bar p {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.95rem, 1.5vw, 1.1rem); letter-spacing: -.01em;
}
.spine-bar p small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .87rem; color: #9FB4A7; margin-top: .2rem; letter-spacing: 0;
}

.spine-out {
  list-style: none; margin: 1.55rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  position: relative;
}
.spine-out::before {
  content: ""; position: absolute; left: 50%; top: -1.55rem;
  width: 2px; height: 1.55rem; background: var(--line); transform: translateX(-1px);
}
.spine-out li {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: .95rem 1.1rem; font-size: .92rem; color: var(--ink-70); text-align: center;
  background: rgba(255,255,255,.5);
}
.spine-out li b { display: block; color: var(--ink); font-family: var(--font-display); font-size: .96rem; }

@media (max-width: 900px) {
  .spine-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spine-caps li::after { display: none; }
  .spine-caps li:last-child { grid-column: 1 / -1; }
  .spine-bar { margin-top: 1rem; flex-direction: column; text-align: center; gap: .6rem; }
  .spine-out { grid-template-columns: 1fr; margin-top: 1rem; }
  .spine-out::before { display: none; }
}
@media (max-width: 460px) {
  .spine-caps { grid-template-columns: 1fr; }
  .spine-caps li:last-child { grid-column: auto; }
}

/* ---------- split (media + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

/* product screenshot frame */
.device {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg); background: #0b1a13;
}
.device-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .9rem; background: #14251c; border-bottom: 1px solid rgba(255,255,255,.08);
}
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.device-bar span {
  margin-left: .6rem; font-size: .72rem; color: #7F9488; letter-spacing: .04em;
  font-family: var(--font-display); font-weight: 500;
}
.device img { width: 100%; display: block; }

/* ---------- feature rows (numbered) ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 78px 1fr; gap: 1.6rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.section--dark .step, .section--darker .step { border-color: rgba(255,255,255,.14); }
.step-n {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem;
  line-height: .9; color: var(--brand); letter-spacing: -.04em;
  opacity: .95;
}
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
/* keep the reading measure sane even when the section runs full width */
.step p { color: var(--ink-70); margin: 0; max-width: 74ch; }
.section--dark .step p, .section--darker .step p { color: #B9CCC1; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: .6rem; }
  .step-n { font-size: 1.8rem; }
}

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%; min-width: 620px; border-collapse: collapse;
  font-size: .97rem; text-align: left;
}
.compare th, .compare td { padding: 1.05rem 1.2rem; vertical-align: top; }
.compare thead th {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-50); font-weight: 700;
  border-bottom: 2px solid var(--line);
}
.compare tbody tr { border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare td:first-child { color: var(--ink-50); }
.compare td:last-child { color: var(--ink); font-weight: 500; background: rgba(54,181,74,.05); }
.compare thead th:last-child { color: var(--brand-600); }

/* ---------- quote ---------- */
.quote {
  border-left: 4px solid var(--brand); padding-left: clamp(1.2rem, 3vw, 2.2rem);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.32;
  letter-spacing: -.02em; color: var(--ink); max-width: 24ch;
}
.section--dark .quote, .section--darker .quote { color: #fff; }
.quote-attr {
  display: block; margin-top: 1.4rem; font-family: var(--font-body);
  font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-50);
  line-height: 1.5;
}
.section--dark .quote-attr, .section--darker .quote-attr { color: #93A79B; }

/* ---------- programme / proof cards ---------- */
.proof {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; display: flex; flex-direction: column; gap: 1rem;
}
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.proof h3 { margin: 0; font-size: 1.18rem; }
.tag {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 100px;
  background: var(--brand-100); color: var(--brand-600); white-space: nowrap;
}
.tag--soil { background: #F7E7DC; color: #9A4A1E; }
.tag--sun { background: var(--sun-100); color: #8A6318; }
.proof dl { margin: 0; display: grid; gap: .9rem; }
.proof dt {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); margin-bottom: .2rem;
}
.proof dd { margin: 0; font-size: .95rem; color: var(--ink-70); }

.proof-contact { margin: 0; display: grid; gap: 1.3rem; }
.proof-contact dt {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); margin-bottom: .35rem;
}
.proof-contact dd { margin: 0; font-size: .96rem; color: var(--ink-70); line-height: 1.6; }
.proof-contact dd b { color: var(--ink); }
.proof-contact a { color: var(--brand-600); text-decoration: none; border-bottom: 1px solid transparent; }
.proof-contact a:hover { border-bottom-color: currentColor; }

/* ---------- statement band (soil texture, warm) ---------- */
.band { position: relative; overflow: hidden; background: #46200E; }
.band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(52,22,9,.82), rgba(52,22,9,.62) 50%, rgba(52,22,9,.86));
}
.band-inner {
  position: relative; z-index: 2; text-align: center;
  padding-block: clamp(3.2rem, 7vw, 5rem);
}
.band-inner p.kicker {
  font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1.1rem;
}
.band-inner h2 {
  color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  max-width: 24ch; margin-inline: auto; margin-bottom: 0;
  letter-spacing: -.025em;
}
.band-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .5rem;
}
.band-list li {
  font-family: var(--font-display); font-size: .84rem; font-weight: 600;
  color: #F6E3D2; border: 1px solid rgba(246,227,210,.32);
  padding: .42rem 1rem; border-radius: 100px;
  white-space: nowrap; max-width: 100%;
}
/* long chips must wrap rather than run off the edge on a phone */
@media (max-width: 640px) {
  .band-list li { white-space: normal; text-align: center; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--veld-900); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ndvi);
}
.cta-inner { padding-block: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-inner .lead { color: #BDD0C4; margin-inline: auto; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field span {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .86rem; margin-bottom: .4rem; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; font-size: .97rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--ink-50); }

/* Submission feedback. The endpoint fails closed, so an error here is a real
   failure the visitor needs to act on — it gets weight and a rule, not the
   same grey as the fine print. */
.form-note--pending { color: var(--ink-70); }
.form-note--ok,
.form-note--error {
  font-weight: 500; padding-left: .75rem; border-left: 3px solid currentColor;
}
.form-note--ok { color: var(--brand-600); }
.form-note--error { color: var(--alert); }
.form-note a { color: inherit; text-decoration: underline; }

/* ---------- long-form legal prose ---------- */
/* The one place on the site with sustained body copy under numbered headings.
   Kept to a narrow measure and a tighter type scale than the marketing pages —
   this is meant to be read carefully, not skimmed. */
.legal { font-size: .97rem; color: var(--ink-70); }
.legal h2 {
  margin: 2.6rem 0 .8rem; font-size: 1.22rem; color: var(--ink);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  margin: 1.7rem 0 .6rem; font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.legal p { margin: 0 0 .9rem; line-height: 1.72; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand-600); text-decoration: none; border-bottom: 1px solid rgba(44,155,62,.35); }
.legal a:hover { border-bottom-color: currentColor; }
.legal .ticks { margin: 0 0 1.1rem; }
.legal dl { margin: 0 0 1.1rem; display: grid; gap: .7rem; }
.legal dt { font-weight: 600; color: var(--ink); font-size: .9rem; }
.legal dd { margin: .15rem 0 0; line-height: 1.6; }

/* Unconfirmed facts. Deliberately loud: a placeholder that ships unnoticed in
   a privacy notice is worse than no notice at all. */
.legal mark {
  background: var(--sun-100); color: #6A4A0C;
  padding: .12rem .4rem; border-radius: 4px;
  font-size: .88em; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(229,169,58,.55);
}

/* ---------- footer ---------- */
.site-footer { background: var(--veld-900); color: #A8BEB1; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-links a { text-decoration: none; font-size: .93rem; color: #A8BEB1; }
.footer-links a:hover { color: var(--brand-300); }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: #7F9488; }
.footer-blurb { font-size: .92rem; margin-top: 1.2rem; max-width: 34ch; color: #93A79B; }
.footer-bottom {
  padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: .82rem; color: #7F9488;
}
.footer-bottom a { color: #7F9488; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-300); }

/* ---------- reveal on scroll ----------
   Gated on .js so that content is never hidden when scripting is off or
   the observer fails — the animation is a bonus, never a precondition. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 640px) { .hide-sm { display: none; } }
/* hard line breaks in display headings are a desktop typesetting choice;
   on a phone they only create orphans */
@media (max-width: 700px) {
  .display br, .pagehero h1 br, .h2 br { display: none; }
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw-60 { max-width: 60ch; }
.divider { height: 4px; border-radius: 3px; background: var(--ndvi); width: 150px; }
.note {
  font-size: .82rem; color: var(--ink-50); border-top: 1px solid var(--line);
  padding-top: 1.2rem; margin-top: 2.5rem;
}
.section--dark .note, .section--darker .note { color: #7F9488; border-color: rgba(255,255,255,.14); }
