/* AgriWild site styles */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/roboto-condensed-latin-800-normal.woff2") format("woff2"); }
:root {
  --navy: #1B365D;
  --navy-deep: #12284A;
  --red: #DA1A1E;
  --red-deep: #B3141A;
  --ink: #16243B;
  --ink-soft: #4A5870;
  --line: #D6DDE7;
  --mist: #EEF2F7;
  --white: #FFFFFF;
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Roboto", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--navy); }
h3 { font-size: 1.45rem; color: var(--navy); }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 500 1rem/1 var(--body); text-decoration: none;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: currentColor; color: var(--white); background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { flex: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-light { display: none; }
.nav { flex: 1; display: flex; align-items: center; gap: 16px; }
.nav-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-links > li > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; border-radius: 3px; background: none; cursor: pointer;
  font: 500 1rem var(--body); color: var(--ink); text-decoration: none;
}
.nav-links > li > a:hover, .menu-btn:hover { background: var(--mist); }
.nav-links > li > a[aria-current="page"], .menu-btn[aria-current="page"] { color: var(--red); }
.chev { transition: transform .15s; }
.has-menu.open .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang a { padding: 6px 10px; font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.nav-actions .btn { min-height: 42px; padding: 0 16px; }
.btn-login { gap: 8px; border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-login:hover { background: var(--navy); color: var(--white); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 3px; min-height: 42px; padding: 0 14px; font: 500 1rem var(--body); color: var(--ink); cursor: pointer; }

/* AgriWild One dropdown */
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 580px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 48px rgba(18, 40, 74, .22); padding: 12px;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-overview { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 4px; background: var(--mist); color: var(--ink); text-decoration: none; }
.mega-overview:hover { background: #E2E8F1; }
.mega-overview img { width: 40px; height: auto; flex: none; }
.mega-overview strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--navy); }
.mega-overview span span { display: block; font-size: .92rem; color: var(--ink-soft); }
.mega-apps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-apps a { display: block; padding: 12px 14px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.mega-apps a:hover { background: var(--mist); }
.mega-apps strong { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--navy); }
.mega-apps a > span { display: block; margin-top: 2px; font-size: .88rem; color: var(--ink-soft); }
.mega-foot { margin: 8px 0 0; max-width: none; padding: 12px 14px 4px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 72px); overflow-y: auto; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-links > li > a, .menu-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 8px 0; transition: none; }
  .has-menu.open .mega { display: block; transform: none; }
  .mega-apps { grid-template-columns: 1fr; }
  .nav-actions { flex-wrap: wrap; margin-top: 16px; }
  .nav-actions .btn { flex: 1 1 140px; }
  .lang { flex-basis: 100%; max-width: max-content; margin-bottom: 4px; }
}

/* Header over the hero: see-through on the crop rows, solid where the photos are */
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color .25s, border-color .25s; }
.over-hero:not(.scrolled):not(.menu-open) .brand .logo-dark { display: none; }
.over-hero:not(.scrolled):not(.menu-open) .brand .logo-light { display: block; }
.over-hero:not(.scrolled):not(.menu-open) .menu-toggle { color: var(--white); border-color: rgba(255,255,255,.4); }
.site-header.over-hero.scrolled, .site-header.over-hero.menu-open { background: var(--white); border-bottom-color: var(--line); }
@media (min-width: 1025px) {
  .over-hero:not(.scrolled) .nav-links > li > a, .over-hero:not(.scrolled) .menu-btn { color: var(--white); }
  .over-hero:not(.scrolled) .nav-links > li > a:hover, .over-hero:not(.scrolled) .menu-btn:hover,
  .over-hero:not(.scrolled) .has-menu.open .menu-btn { background: rgba(255,255,255,.12); }
  .over-hero:not(.scrolled) .lang { border-color: rgba(255,255,255,.35); }
  .over-hero:not(.scrolled) .lang a { color: #C9D4E5; }
  .over-hero:not(.scrolled) .lang a[aria-current="true"] { background: var(--white); color: var(--navy); }
  .over-hero:not(.scrolled) .btn-login { border-color: rgba(255,255,255,.8); color: var(--white); }
  .over-hero:not(.scrolled) .btn-login:hover { background: var(--white); color: var(--navy); }
}
@media (min-width: 1200px) {
  .over-hero:not(.scrolled) { background: linear-gradient(90deg, rgba(27,54,93,0) 0%, rgba(27,54,93,0) 34%, var(--navy) 58%); }
}

/* Hero: crop rows behind the text, photos split off along one crop row */
.rows { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero {
  --hero-pb: clamp(72px, 9vw, 120px);
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  padding: calc(72px + clamp(56px, 8vw, 112px)) 0 var(--hero-pb);
}
.hero-content { position: relative; z-index: 2; pointer-events: none; }
.hero-content > * { max-width: 620px; }
.hero-content a { pointer-events: auto; }
.hero h1 { color: var(--white); }
.hero .lead { color: #C9D4E5; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .hero-photos { position: relative; z-index: 1; height: clamp(240px, 52vw, 420px); margin: 48px 0 calc(-1 * var(--hero-pb)); }
.hero-photos-frame { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%); }
.hero-edge { display: none; }
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-controls {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 16px;
  display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 20px; background: rgba(18, 40, 74, .62);
}
.hero-pause, .ticker-pause {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
}
.hero-pause:hover, .ticker-pause:hover { background: rgba(255,255,255,.16); }
.hero-pause .i-play, .ticker-pause .i-play { display: none; }
.is-paused .hero-pause .i-pause, .is-paused .ticker-pause .i-pause { display: none; }
.is-paused .hero-pause .i-play, .is-paused .ticker-pause .i-play { display: inline; }
.hero-dots { display: flex; }
.hero-dots button { width: 28px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); transition: width .2s, background-color .2s; }
.hero-dots button[aria-current="true"]::before { width: 20px; background: var(--white); }
@media (min-width: 1200px) {
  .hero { min-height: min(840px, 100vh); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-content > * { max-width: 540px; }
  .hero h1 { font-size: clamp(2.8rem, 4.3vw, 4.1rem); }
  .hero .hero-photos { position: absolute; top: 72px; right: 0; bottom: 0; left: 0; height: auto; margin: 0; pointer-events: none; }
  .hero-photos-frame { clip-path: polygon(var(--x-top, 78%) 0, 100% 0, 100% 100%, var(--x-bot, 58%) 100%); pointer-events: auto; }
  .hero-edge { display: block; position: absolute; inset: 0; background: var(--red);
    clip-path: polygon(calc(var(--x-top, 78%) - 8px) 0, var(--x-top, 78%) 0, var(--x-bot, 58%) 100%, calc(var(--x-bot, 58%) - 8px) 100%); }
  /* Photos start at the diagonal, so each one is sized to the visible area, not the whole hero */
  .hero-photos .hero-slides { left: var(--x-bot, 58%); }
  .hero-controls { pointer-events: auto; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Red band: market ticker (static centred text until the data loads) */
.ticker { position: relative; z-index: 2; background: var(--red); color: var(--white); font-weight: 500; }
.ticker-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 48px; padding-top: 18px; padding-bottom: 18px; letter-spacing: .02em; text-align: center; }
.ticker-bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.ticker-label { font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.45); white-space: nowrap; }
.ticker-window { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.ticker-window:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.ticker-move { display: flex; width: max-content; }
.ticker:not(.is-moving) .ticker-move { margin: 0 auto; }
.is-moving .ticker-move { animation: tick 40s linear infinite; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move, .ticker.is-paused .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-track { display: flex; list-style: none; margin: 0; padding: 0 40px 0 0; gap: 40px; }
.tick { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tick-name { font-size: .9rem; color: #FFDADA; }
.tick-val { font-weight: 700; font-size: 1.05rem; }
.tick-chg { font-size: .9rem; }
.tick-src { font-size: .82rem; color: #FFDADA; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .ticker-window { overflow-x: auto; } }
@media (max-width: 600px) { .ticker-label { display: none; } }

/* Inner page header */
.page-hero { background: var(--navy); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 22ch; }
.page-hero .lead { color: #C9D4E5; }
.stub-note { font-size: 1.1rem; }
.stub-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stub-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; font-weight: 500; }
.stub-links a:hover { background: var(--mist); }

/* Photo placeholders */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 220px;
  background: repeating-linear-gradient(135deg, #E3E9F1 0 14px, #EDF1F6 14px 28px);
  display: flex; align-items: flex-end; color: var(--ink-soft); font-size: .9rem;
}
.ph span { background: rgba(255,255,255,.88); padding: 6px 10px; margin: 16px; border-left: 3px solid var(--red); }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead, .section-navy p { color: #C9D4E5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-wide { grid-template-columns: 5fr 7fr; }
.split-market { grid-template-columns: 3fr 2fr; }
@media (max-width: 860px) { .split, .split-wide, .split-market { grid-template-columns: 1fr; } }

/* Proof */
.proof { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.proof-figure { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 8.5rem); line-height: .9; color: var(--red); letter-spacing: -0.02em; }
.proof-figure small { display: block; font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-top: 14px; }
.quote { border-left: 4px solid var(--navy); padding: 4px 0 4px 22px; margin: 24px 0; font-size: 1.15rem; color: var(--ink); }
.quote cite { display: block; font-style: normal; font-size: .95rem; color: var(--ink-soft); margin-top: 10px; }
.placeholder-note { display: inline-block; font-size: .8rem; background: #FFF3C4; color: #6B5200; padding: 2px 8px; border-radius: 2px; }
@media (max-width: 700px) { .proof { grid-template-columns: 1fr; } }

/* Feature list */
.features { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.features li { padding-top: 14px; border-top: 2px solid var(--navy); }
.features strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.features span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); margin-top: 36px; }
.calc-inputs { padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem var(--body); color: var(--ink);
  border: 1px solid #B9C4D3; border-radius: 3px; background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--mist); border: 1px solid #B9C4D3; border-right: 0; border-radius: 3px 0 0 3px; font-weight: 500; }
.input-prefix input { border-radius: 0 3px 3px 0 !important; }
.calc-result { background: var(--navy); color: var(--white); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-result::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--red); }
.calc-result .label { color: #C9D4E5; font-size: 1rem; margin-bottom: 8px; }
.calc-result output { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; }
.calc-result p { color: #C9D4E5; margin-top: 18px; font-size: .98rem; }
.calc-result > :not(.rows) { position: relative; z-index: 1; }
.calc-result .calc-key { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: .9rem; }
.key-dot { width: 4px; height: 12px; border-radius: 2px; background: #E4373A; transform: rotate(24.4deg); flex: none; }
.error { color: var(--red); font-size: .9rem; margin-top: 6px; min-height: 1.2em; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* Module explorer */
.explorer { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); margin-top: 36px; background: var(--white); }
.explorer-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.explorer-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 20px; font: 500 1rem var(--body); color: var(--ink); cursor: pointer;
}
.explorer-list button:hover { background: var(--mist); }
.explorer-list button[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: inset 5px 0 0 var(--red); }
.status { font-size: .78rem; font-weight: 500; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.status-live { background: #DFF3E4; color: #1D6B33; }
.status-next { background: #FDE2E2; color: var(--red-deep); }
.status-planned { background: var(--mist); color: var(--ink-soft); }
[aria-selected="true"] .status-planned { background: rgba(255,255,255,.16); color: var(--white); }
.explorer-panel { padding: clamp(24px, 4vw, 44px); }
.explorer-panel h3 { font-size: 1.9rem; margin-bottom: .3em; }
.connects { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.connects li { border: 1px solid var(--line); padding: 4px 10px; font-size: .9rem; border-radius: 2px; }
.explorer-panel .small { font-size: .92rem; color: var(--ink-soft); margin-top: 24px; }
.panel-more { display: inline-block; margin-top: 24px; font-weight: 500; }
@media (max-width: 760px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-list { border-right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer-list button { border-right: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
}

/* Marketplace */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 36px 0; background: rgba(255,255,255,.18); }
.cat { background: var(--navy); padding: 28px 24px 30px; }
.cat h3 { font-size: 1.6rem; margin-bottom: .4em; }
.cat p { font-size: .98rem; margin: 0; }
.verified { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.verified li { padding-left: 30px; position: relative; color: #DCE4F0; }
.verified li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; } }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--red); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: .98rem; }
.steps-3 { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Report groups (PAWS page) */
.report-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.report-groups > div { background: var(--white); border-top: 4px solid var(--red); padding: 24px; }
.report-groups h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.report-groups p { margin: 0 0 14px; color: var(--ink-soft); font-size: .95rem; }
.report-groups ul { list-style: none; margin: 0; padding: 0; }
.report-groups li { padding: 10px 0; border-top: 1px solid var(--line); }
.report-groups li strong { display: block; color: var(--ink); font-weight: 600; }
.report-groups li span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 960px) { .report-groups { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--white); margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { margin: 6px 0 0; color: #FFE3E3; }
.cta-band .btn { background: var(--white); color: var(--red); }
.cta-band .btn:hover { background: var(--mist); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B8C5D9; padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; font-family: var(--body); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #DCE4F0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masked parallax: the picture inside a tile drifts slower than the page */
.plx { position: relative; overflow: hidden; isolation: isolate; }
.plx-layer { position: absolute; left: 0; right: 0; top: 0; bottom: 0; will-change: transform; }
.ph-field {
  background-color: #C6D2E2;
  background-image: repeating-linear-gradient(-24.4deg, rgba(27,54,93,.22) 0 3px, transparent 3px 22px),
                    linear-gradient(180deg, #D3DDEA, #B7C6DA);
}
.ph-dark {
  background-color: #23426C;
  background-image: repeating-linear-gradient(-24.4deg, rgba(255,255,255,.14) 0 3px, transparent 3px 22px),
                    linear-gradient(180deg, #2A4B78, #1E3A62);
}
.ph-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(255,255,255,.9); color: var(--ink-soft); font-size: .85rem; padding: 5px 10px; border-left: 3px solid var(--red); }

/* The card takes the screenshots' own shape (about 1903 x 857), and screens are fitted, never cropped */
.stage-card { position: relative; aspect-ratio: 1903 / 857; background: var(--white); box-shadow: 0 18px 40px rgba(18,40,74,.28); border-radius: 4px; overflow: hidden; }
.stage .hero-slide img { object-fit: contain; }
.stage .hero-controls { position: static; width: fit-content; margin: 16px 0 0 auto; }

.market-intro { align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.market-intro .verified { margin-bottom: 24px; }
.market-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.mtile-img { aspect-ratio: 4 / 5; border-radius: 4px; margin-bottom: 18px; }
/* A photo inside a parallax layer fills it; the layer is taller than the tile, so the photo can drift */
.plx-layer > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mtile h3 { font-size: 1.6rem; margin-bottom: .3em; }
.mtile p { font-size: .98rem; margin: 0; }
@media (max-width: 860px) {
  .market-tiles { grid-template-columns: 1fr; }
  .mtile-img { aspect-ratio: 16 / 10; }
}

/* Cards: a short grid of boxed items (AgriWild One apps, contact options, marketplace sign-up) */
.cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards > li { background: var(--mist); border-top: 4px solid var(--red); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.section-mist .cards > li { background: var(--white); }
.cards > li.is-planned { border-top-color: var(--navy); }
.cards h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: .5em; }
.cards p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 .8em; }
.cards p.card-big { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.cards .btn, .cards .card-link { margin-top: auto; }
.card-link { font-weight: 500; }
:target { scroll-margin-top: 96px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

/* Marketplace page tiles without parallax */
.mtile-img.is-static { overflow: hidden; }
.mtile-img.is-static > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Company details and legal text */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 28px 0 0; }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }
.small { font-size: .92rem; color: var(--ink-soft); }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose .updated { color: var(--ink-soft); font-size: .95rem; }
