/* FarmCore public site. Colour tokens follow the app (farmcore.css): forest green, DM Sans.
   Shape rule: buttons are pills, frames and photos use --radius, small chips use --radius-sm. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-v17-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-v17-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --forest: #1f3a2b;        /* brand-900 */
  --green: #2e6d4f;         /* brand-700, the one accent */
  --green-hover: #255c42;
  --green-soft: #e3ede5;    /* brand-50 */
  --ground: #f1f3ec;
  --surface: #fbfcf7;
  --ink: #1c2420;
  --muted: #545c55;
  --line: #d3d9cc;
  --on-forest: #f3f5ef;
  --on-forest-muted: #bccbc0;
  --on-forest-line: rgb(243 245 239 / .18);
  --btn-primary-bg: var(--forest);
  --btn-primary-fg: var(--on-forest);
  --btn-primary-hover: var(--green);
  --shadow-sm: 0 1px 2px rgb(31 58 43 / .08);
  --shadow: 0 1px 2px rgb(31 58 43 / .06), 0 18px 40px -18px rgb(31 58 43 / .32);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .18s;
  --dur: .36s;
  --dur-settle: .6s;
  --dur-enter: .32s;
  --w-strong: 650;
  --wrap: 1180px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest: #142a1d;
    --green: #74c79a;
    --green-hover: #93d6b0;
    --green-soft: #1c3226;
    --ground: #0f1813;
    --surface: #15211a;
    --ink: #e6ece7;
    --muted: #a7b3aa;
    --line: #2b3d32;
    --on-forest: #edf2ee;
    --on-forest-muted: #b3c4b8;
    --btn-primary-bg: var(--green);
    --btn-primary-fg: #0d1a12;
    --btn-primary-hover: var(--green-hover);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 44px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
b, strong, dt { font-weight: var(--w-strong); }
svg use { pointer-events: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 15px; font-weight: var(--w-strong); color: var(--green); }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; color: var(--forest); text-wrap: balance; max-width: 22ch; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: var(--w-strong); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; margin-top: 18px; text-wrap: pretty; }
.small { font-size: 14px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .h2 { color: var(--ink); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: var(--w-strong); line-height: 1.2; white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: 0 8px 20px -10px rgb(31 58 43 / .6); }
.btn--primary:hover { background: var(--btn-primary-hover); box-shadow: 0 12px 26px -12px rgb(31 58 43 / .7); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: var(--on-forest); color: #1f3a2b; }
.btn--light:hover { background: #ffffff; box-shadow: 0 12px 26px -12px rgb(0 0 0 / .5); }
.btn--light:focus-visible { outline-color: var(--on-forest); }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn__icon--end { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__icon--end { transform: translate(2px, -2px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__mark { width: 26px; height: 26px; color: var(--green); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav__links a:hover { color: var(--ink); background: var(--green-soft); }

.menu { display: none; position: relative; margin-left: auto; }
.menu__toggle { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: var(--w-strong); font-size: 15px; cursor: pointer; transition: border-color var(--dur-fast); }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:hover { border-color: var(--green); }
.menu__toggle svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.menu[open] .menu__toggle svg { transform: rotate(180deg); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu__panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.menu__panel a:not(.btn):hover { background: var(--green-soft); }
.menu__panel .btn { margin-top: 8px; }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .menu { display: block; }
}

/* ---------- Hero ----------
   Full-bleed background reel under the header. The scrim is strongest on the text side (left on wide
   screens, bottom on narrow ones) so white type keeps AA contrast on every frame of the reel. */
.hero { position: relative; isolation: isolate; display: grid; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); color: var(--hero-ink); margin-bottom: var(--section);
  --hero-ink: #f4f7f2; --hero-ink-muted: rgb(244 247 242 / .86); --hero-accent: #a8e3c1; --hero-shade: 11 26 18; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: rgb(var(--hero-shade)) url(media/farmcore-atmosphere-reel-10.5s.jpg) center / cover no-repeat; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--hero-shade) / .88) 0%, rgb(var(--hero-shade) / .8) 40%, rgb(var(--hero-shade) / .52) 66%, rgb(var(--hero-shade) / .14) 100%),
    linear-gradient(0deg, rgb(var(--hero-shade) / .4) 0%, transparent 35%); }
.hero__inner { display: grid; align-content: center; padding-block: clamp(48px, 9vh, 104px); }
.hero__copy { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.hero .eyebrow { color: var(--hero-accent); }
.hero__title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: var(--hero-ink); text-wrap: balance; }
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--hero-ink-muted); max-width: 36ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__note { font-size: 15px; color: var(--hero-ink-muted); max-width: 46ch; padding-left: 14px; border-left: 3px solid var(--hero-accent); }
.hero :focus-visible { outline-color: var(--hero-ink); }
.hero a:not(.btn) { color: var(--hero-ink); }
.btn--outline-light { border-color: rgb(244 247 242 / .7); color: var(--hero-ink); background: rgb(244 247 242 / .06); }
.btn--outline-light:hover { border-color: var(--hero-ink); background: rgb(244 247 242 / .16); }
.media-toggle { position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid rgb(244 247 242 / .45); border-radius: 50%; background: rgb(var(--hero-shade) / .55); color: var(--hero-ink); cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.media-toggle[hidden], .media-toggle svg[hidden] { display: none; }
.media-toggle:hover { background: rgb(var(--hero-shade) / .8); border-color: var(--hero-ink); }
.media-toggle:active { transform: scale(.94); }
.media-toggle:focus-visible { outline: 3px solid var(--hero-ink); outline-offset: 3px; }
.media-toggle svg { width: 20px; height: 20px; }
.media-toggle [data-icon="play"] { fill: currentColor; }

@media (max-width: 820px) {
  /* Narrow screens: text sits low, the phone in the desk scene stays visible above it. */
  .hero__video { object-position: 68% center; }
  .hero__media { background-position: 68% center; }
  .hero__media::after { background: linear-gradient(0deg, rgb(var(--hero-shade) / .92) 0%, rgb(var(--hero-shade) / .86) 58%, rgb(var(--hero-shade) / .5) 84%, rgb(var(--hero-shade) / .55) 100%); }
  .hero__inner { align-content: end; padding-block: 72px 32px; }
  .media-toggle { top: 16px; right: 16px; bottom: auto; }
}
@media (max-width: 480px) {
  /* Text fills most of the hero here, so the scrim is near-uniform. */
  .hero__media::after { background: linear-gradient(0deg, rgb(var(--hero-shade) / .92) 0%, rgb(var(--hero-shade) / .86) 70%, rgb(var(--hero-shade) / .76) 100%); }
  .hero__inner { padding-block: 48px 24px; }
  .hero__copy { gap: 16px; }
  .eyebrow { font-size: 14px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 42px); }
  .hero__sub { font-size: 17px; }
}

/* ---------- Why ---------- */
.why { padding: 0 0 var(--section); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.context { display: grid; gap: 20px; }
.context figcaption { display: grid; gap: 8px; max-width: 44ch; }
.context__line { color: var(--ink); }
/* Restored from ed28d1e: 100 cells per grid, the first n filled row by row from the bottom. */
.waffles { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.waffle p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.waffle p b { display: block; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.waffle--hot p b { color: var(--green); }
.waffle__grid { --cell: 15px; display: grid; grid-template-columns: repeat(10, var(--cell)); grid-auto-rows: var(--cell); gap: 4px; }
.waffle__grid i { border-radius: 4px; background: var(--line); }
.waffle__grid i.on { background: var(--green); }
.waffle--hot .waffle__grid i.on { background: var(--forest); }
@media (prefers-color-scheme: dark) { .waffle--hot .waffle__grid i.on { background: #6fd39a; } }
html:not(.js) .waffles { display: none; }
@media (max-width: 800px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .waffles { gap: 20px; } .waffle__grid { --cell: 11px; gap: 3px; } .waffle__grid i { border-radius: 3px; } }

/* ---------- What you can try today ---------- */
.today { padding: var(--section) 0; background: var(--surface); border-block: 1px solid var(--line); }
.today__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.highlights { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.highlights li { padding-left: 18px; border-left: 3px solid var(--green); color: var(--muted); max-width: 44ch; }
.highlights b { display: block; color: var(--ink); font-size: 19px; line-height: 1.35; }
.highlights a { display: inline-block; padding: 11px 0; margin: -11px 0; color: var(--green); font-weight: var(--w-strong); white-space: nowrap; }
.ui-video video, .ui-video .media-fallback { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #edf0ea; }
.ui-video figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ui-video .media-fallback-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--green); font-weight: var(--w-strong); }
@media (max-width: 800px) { .today__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pilot ---------- */
.pilot { padding: var(--section) 0; background: var(--forest); color: var(--on-forest); }
.pilot .h2 { color: var(--on-forest); }
.pilot .lede { color: var(--on-forest-muted); }
.pilot a:not(.btn) { color: var(--on-forest); }
.pilot :focus-visible { outline-color: var(--on-forest); }
.pilot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.pilot__steps { align-self: start; background: rgb(255 255 255 / .05); border: 1px solid var(--on-forest-line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 32px; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 34px; padding-top: 4px; color: var(--on-forest-muted); }
.steps li b { color: var(--on-forest); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--w-strong); color: var(--forest); background: #9fdcb9; }
.steps li + li::after { content: ""; position: absolute; left: 16px; top: -22px; height: 22px; border-left: 2px dotted var(--on-forest-line); }
.pilot__fallback { margin-top: 16px; font-size: 15px; color: var(--on-forest-muted); max-width: 48ch; overflow-wrap: anywhere; }
@media (max-width: 860px) { .pilot__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .pilot .btn--lg { width: 100%; padding: 0 18px; } }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(40px, 7vw, 104px); border-top: 1px solid var(--line); padding-top: var(--section); }
.faq__list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 4px; font-size: 18px; font-weight: var(--w-strong); cursor: pointer; border-radius: var(--radius-sm); transition: color var(--dur-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 22px; font-weight: 400; line-height: 1; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 4px 20px; color: var(--muted); max-width: 62ch; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 56px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.footer .brand { font-size: 19px; margin-bottom: 8px; }
.footer__links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); overflow-wrap: anywhere; }
.footer__small { display: grid; gap: 12px; font-size: 14px; align-content: start; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ----------
   One staggered hero entrance, the product video settling once and the
   waffle grids filling once when they first scroll in. Content is visible without JS (the .js gate) and without motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise var(--dur-enter) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
  .js .settle { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-settle) var(--ease), transform var(--dur-settle) var(--ease); }
  .js .settle.is-in { opacity: 1; transform: none; }
  .waffle__grid i { transition: background-color .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--k) * 12ms); }
  .js .waffles:not(.is-in) .waffle__grid i.on { background: var(--line); transform: scale(.6); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
