/* farmulator.cloud: the public website. Brand: Deep field, Fresh leaf, Soil ink, Cream;
   Space Grotesk for headings (the wordmark's face), Plus Jakarta Sans for reading. */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --field: #1e5b3a;
  --field-deep: #123d26;
  --leaf: #6dbe45;
  --leaf-soft: #e3f1d9;
  --ink: #17231c;
  --ink-2: #46544b;
  --cream: #f6f4ec;
  --paper: #ffffff;
  --line: #dcd8ca;
  --focus: #2f7dd1;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--field); text-underline-offset: 3px; }
a:hover { color: var(--field-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--leaf { background: var(--leaf); color: var(--ink); }
.btn--leaf:hover { background: #82cc5e; color: var(--ink); }
.btn--field { background: var(--field); color: var(--cream); }
.btn--field:hover { background: var(--field-deep); color: var(--cream); }
.btn--line { border-color: currentColor; color: inherit; background: none; }
.btn--line:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--field); color: var(--cream); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 500 24px/1 var(--head); letter-spacing: -0.02em; }
.brand b { font-weight: 700; color: var(--leaf); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--cream); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--leaf); border-radius: 0; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; color: var(--cream); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.top__signin { color: var(--cream); font-weight: 500; text-decoration: none; padding: 8px 4px; }
.top__signin:hover { color: var(--leaf); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav, .top__signin { display: none; }
  .top.is-open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--field); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .top.is-open .nav a { padding: 14px 4px; font-size: 18px; }
  .top .btn--leaf { display: none; }
  .top.is-open .nav .nav__cta { display: inline-flex; margin-top: 12px; }
}
.nav__cta { display: none; }

/* Hero: the deep-field band with ploughed rows, the real app breaking out of it. */
.hero { position: relative; background: linear-gradient(to bottom, var(--field) 0, var(--field) calc(100% - clamp(80px, 12vw, 170px)), var(--cream) calc(100% - clamp(80px, 12vw, 170px))); color: var(--cream); overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 0; }
.hero__rows { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - clamp(80px, 12vw, 170px)); pointer-events: none; }
.hero__rows path { fill: none; stroke: var(--leaf); stroke-width: 1.2; opacity: 0.22; }
.hero__in { position: relative; display: grid; gap: 28px; max-width: 900px; }
.hero h1 { color: var(--cream); max-width: 13em; }
.hero .lede { color: #d6e4d9; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__acts .btn--line { color: var(--cream); }
.hero__shot { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.screen {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 18, 0.55), 0 0 0 1px rgba(23, 35, 28, 0.08);
}
.screen img { width: 100%; }
.hero__phone {
  position: absolute; z-index: 2; right: clamp(8px, 4vw, 48px); bottom: -24px; width: clamp(120px, 19vw, 230px);
  border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink);
  box-shadow: 0 24px 40px -18px rgba(10, 30, 18, 0.6);
}

/* Who it's for: the farm's own business units, as a plain run of words. */
.kinds { padding: 88px 0 24px; }
.kinds p { font: 500 clamp(22px, 2.6vw, 30px)/1.35 var(--head); letter-spacing: -0.01em; max-width: 34em; }
.kinds strong { font-weight: 700; color: var(--field); }

/* Feature rows */
.rows { padding-top: 40px; padding-bottom: 24px; display: grid; gap: clamp(64px, 9vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row--flip .row__text { order: 2; }
.row__text { display: grid; gap: 16px; align-content: start; }
.row__text ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row__text li { padding-left: 26px; position: relative; color: var(--ink-2); }
.row__text li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 2px; background: var(--leaf); }
.row .screen { border-radius: 12px; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row--flip .row__text { order: 0; }
}

/* Ask Farmulator: a short exchange, set like a conversation. */
.talk { background: var(--paper); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; box-shadow: 0 0 0 1px var(--line); }
.talk__said { justify-self: end; max-width: 80%; background: var(--field); color: var(--cream); padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.talk__said small { display: block; color: #b9d3c0; font-size: 13px; margin-top: 2px; }
.talk__card { max-width: 92%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--cream); }
.talk__card b { font-family: var(--head); font-size: 18px; display: block; margin-bottom: 4px; }
.talk__card p { color: var(--ink-2); font-size: 15px; }
.talk__btns { display: flex; gap: 8px; margin-top: 12px; }
.talk__btns span { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.talk__btns span:first-child { background: var(--field); color: var(--cream); border-color: var(--field); }

/* The plain list of everything else */
.also { padding: clamp(64px, 9vw, 112px) 0; }
.also__head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 40em; }
.also__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.also__list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.also__list b { display: block; font-family: var(--head); font-size: 18px; margin-bottom: 4px; }
.also__list span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .also__list { grid-template-columns: 1fr; } }

/* How a demo goes: a real sequence, so numbered. */
.steps { background: var(--field-deep); color: var(--cream); padding: clamp(64px, 9vw, 104px) 0; }
.steps h2 { margin-bottom: 36px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 700 44px/1 var(--head); color: var(--leaf); }
.steps b { font-family: var(--head); font-size: 20px; }
.steps span { color: #c9dccd; font-size: 16px; }
@media (max-width: 900px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps ol { grid-template-columns: 1fr; } }

/* Book a demo */
.book { padding: clamp(64px, 9vw, 112px) 0; }
.book__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.book__text { display: grid; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 860px) { .book__in { grid-template-columns: 1fr; } .book__text { position: static; } }
.form { background: var(--paper); border-radius: 18px; padding: clamp(20px, 3.4vw, 36px); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__two { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > span, .fld legend { font-weight: 600; font-size: 15px; }
.fld small { color: var(--ink-2); font-size: 13.5px; }
.fld input, .fld textarea, .fld select {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid #c9c5b6; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--field); outline: 3px solid color-mix(in srgb, var(--field) 22%, transparent); outline-offset: 0; }
fieldset.fld { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #c9c5b6; font-size: 15px; cursor: pointer; user-select: none; }
.chips input:checked + span { background: var(--leaf-soft); border-color: var(--field); color: var(--field-deep); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__note { font-size: 13.5px; color: var(--ink-2); }
.form__msg { border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.form__msg--ok { background: var(--leaf-soft); color: var(--field-deep); }
.form__msg--bad { background: #fbe4e1; color: #8a1f12; }
.form__done { display: grid; gap: 10px; padding: 8px 0; }
.form__done h3 { font-size: 26px; }

/* Inner pages */
.page-hero { background: var(--field); color: var(--cream); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); max-width: 15em; color: var(--cream); }
.page-hero .lede { color: #d6e4d9; margin-top: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(246, 244, 236, 0.28); font-size: 15px; }
.toc a:hover { border-color: var(--leaf); color: var(--cream); }
.section { padding: clamp(56px, 8vw, 96px) 0 0; scroll-margin-top: 80px; }
.section > .wrap > h2 { margin-bottom: 14px; }
.section > .wrap > .lede { margin-bottom: 32px; }
.prose { max-width: 42em; display: grid; gap: 16px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 24px; }
.prose h3 { margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.legal { padding: 56px 0 96px; }
.legal .meta { color: var(--ink-2); font-size: 15px; }

/* Plans: who each is for, side by side (no prices on the site). */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.plan { padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan--mid { background: var(--leaf-soft); }
.plan h3 { font-size: 26px; }
.plan .for { color: var(--ink-2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--field); border-bottom: 2px solid var(--field); transform: rotate(-45deg); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.pairs h3 { margin-bottom: 8px; }
.pairs p { color: var(--ink-2); }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; } }
.note-band { margin-top: clamp(56px, 8vw, 96px); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.note-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.note-band p { font: 500 clamp(20px, 2.2vw, 26px)/1.3 var(--head); max-width: 28em; }

/* Footer */
.foot { background: var(--ink); color: #c7cfc9; padding: 56px 0 40px; margin-top: 0; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--cream); letter-spacing: 0; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: #c7cfc9; text-decoration: none; }
.foot a:hover { color: var(--leaf); }
.foot .brand span { font-size: 22px; }
.foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8f9a92; font-size: 14px; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__in > :first-child { grid-column: 1 / -1; } }
