/* FarmLuma — landing page.
   Brand from the app's own marks: deep field green, leaf green, the sun's orange.
   Display: Bricolage Grotesque. Body: Figtree. Figures always tabular. */

:root {
  --forest: #0a3a24;
  --forest-2: #0f5132;
  --field: #11603b;
  --leaf: #2fae47;
  --leaf-soft: #e3f3e6;
  --sun: #f5a524;
  --sun-deep: #ef7d16;
  --sun-soft: #fdf1d8;
  --paper: #f5f6f1;
  --sheet: #ffffff;
  --ink: #0f1f17;
  --ink-2: #3c4b43;
  --ink-3: #6a776f;
  --rule: #dfe5dc;
  --gain: #16a34a;
  --loss: #d4302a;
  --radius: 18px;
  --maxw: 1200px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 750; line-height: 1.0; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--field); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); border-radius: 2px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* ── Buttons ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--body); text-decoration: none; border-radius: 999px; padding: 15px 24px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest-2); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--field); }
.btn-play { background: var(--ink); color: #fff; padding: 11px 22px 11px 18px; border-radius: 14px; gap: 12px; }
.btn-play:hover { background: #000; }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play span { display: grid; gap: 3px; text-align: left; }
.btn-play small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .78; font-weight: 500; }
.btn-play b { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
.on-dark .btn-play { background: #fff; color: var(--ink); }
.on-dark .btn-play:hover { background: var(--sun-soft); }

/* ── Nav ───────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: .94rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 26px; padding-bottom: clamp(40px, 6vw, 90px); }
.hero h1 em { font-style: normal; color: var(--field); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }

.hero-stage { position: relative; height: clamp(560px, 54vw, 700px); margin-bottom: clamp(30px, 5vw, 70px); }
/* The FarmLuma mark, opened up: a sun rising over striped fields, inside one rounded panel the phones rise out of. */
.stage-panel { position: absolute; left: 2%; right: 0; top: 0; bottom: 0; border-radius: 32px; overflow: hidden;
  background: linear-gradient(165deg, #134f33 0%, var(--forest) 70%); box-shadow: 0 30px 60px -30px rgba(10,30,20,.5); }
.stage-panel .sun { position: absolute; left: 50%; top: 7%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffd66b 0%, var(--sun) 45%, var(--sun-deep) 75%); box-shadow: 0 0 120px 30px rgba(245,165,36,.35); }
.stage-panel .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; }
.phone { position: absolute; width: clamp(200px, 19vw, 250px); aspect-ratio: 720 / 1560; border-radius: 38px; padding: 9px; background: #0d1512;
  box-shadow: 0 40px 80px -24px rgba(10, 30, 20, .45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: #f3f4f6; }
.phone.back { left: 9%; top: 150px; transform: rotate(-5deg); }
.phone.front { right: 9%; top: 105px; transform: rotate(3deg); }
.chip { position: absolute; z-index: 3; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px -18px rgba(10,30,20,.35); display: grid; gap: 2px; min-width: 190px; }
.chip span { font-size: .8rem; color: var(--ink-3); }
.chip b { font: 700 1.2rem/1.1 var(--display); letter-spacing: -0.02em; }
.chip.gain b { color: var(--gain); }
.chip.loss b { color: var(--loss); }
.chip.c1 { right: -3%; top: 62%; }
.chip.c2 { left: -5%; top: 34%; }

/* ── Everything you farm ───────────────────────────── */
.kinds { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); padding: 26px 0; }
.kinds .wrap { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.kinds p { font: 600 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.kinds ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.kinds li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--leaf-soft); color: var(--forest-2); font-weight: 600; font-size: .93rem; }
.kinds svg { width: 18px; height: 18px; flex: none; }

/* ── The season ledger ─────────────────────────────── */
.ledger { background: var(--forest); color: #e8efe9; position: relative; overflow: hidden; }
.ledger::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.22), transparent 62%); pointer-events: none; }
.ledger h2, .ledger h3 { color: #fff; }
.ledger .eyebrow, .cta .eyebrow { color: #9fd8ad; }
.ledger .section-head p { color: #b9cbbf; }
.book { position: relative; z-index: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.book-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.6fr; gap: 20px; align-items: center; padding: 20px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.book-row:first-child { border-top: 0; }
.book-head { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa699; padding-top: 18px; padding-bottom: 14px; }
.book-row .crop { font: 650 1.12rem/1.2 var(--display); color: #fff; }
.book-row .crop small { display: block; font: 400 .85rem/1.3 var(--body); color: #8fa699; margin-top: 3px; }
.book-row .amt { font-variant-numeric: tabular-nums; color: #cfdcd3; }
.book-row .left { font: 700 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.book-row .left.gain { color: #5ee08a; }
.book-row .left.loss { color: #ff7a6e; }
.book-row .left.none { color: #8fa699; }
.bars { display: grid; gap: 6px; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar.in i { background: #5ee08a; }
.bar.out i { background: #f5a524; }
.book.shown .bar i { width: var(--w); }
.book-total { background: rgba(255,255,255,.05); }
.book-total .crop { color: #9fd8ad; }
.legend { display: flex; gap: 20px; font-size: .85rem; color: #8fa699; margin-top: 18px; position: relative; z-index: 1; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 8px; border-radius: 8px; display: inline-block; }
.ledger-note { margin-top: 26px; color: #b9cbbf; max-width: 46em; position: relative; z-index: 1; }

/* ── Features ──────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: #c4d3c6; transform: translateY(-2px); }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--leaf-soft); color: var(--field); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-2); font-size: .98rem; }

/* ── Steps ─────────────────────────────────────────── */
.steps-sec { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: 12px; padding-top: 26px; border-top: 2px solid var(--rule); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 .9rem/1 var(--display); color: var(--sun-deep); letter-spacing: .04em; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--sun); }
.steps p { color: var(--ink-2); }

/* ── Screens ───────────────────────────────────────── */
.screens-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.screens-top .section-head { margin-bottom: 0; }
.strip-nav { display: flex; gap: 10px; flex: none; }
.strip-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--sheet); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: border-color .15s ease; }
.strip-nav button:hover:not(:disabled) { border-color: var(--field); }
.strip-nav button:disabled { opacity: .35; cursor: default; }
.strip-nav svg { width: 20px; height: 20px; }
/* The strip stays inside the content width: it starts and ends with the heading, four screens at a time on a desktop. */
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip { counter-reset: shot; }
.shot { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; margin: 0; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 26px; padding: 22px 22px 24px; counter-increment: shot; transition: border-color .2s ease, box-shadow .2s ease; }
.shot:hover { border-color: #c4d3c6; box-shadow: 0 24px 50px -32px rgba(10,30,20,.4); }
.shot .frame { width: 100%; aspect-ratio: 720 / 1560; border-radius: 30px; padding: 5px; background: #121a16; box-shadow: 0 18px 36px -22px rgba(10,30,20,.55); }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 25px; }
.shot figcaption { display: grid; gap: 4px; }
.shot figcaption::before { content: counter(shot, decimal-leading-zero); font: 700 .78rem/1 var(--display); color: var(--sun-deep); letter-spacing: .06em; margin-bottom: 4px; }
.shot h3 { font-size: 1.05rem; }
.shot p { color: var(--ink-3); font-size: .93rem; line-height: 1.45; }

/* ── Honest numbers / co-operative ─────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-copy { display: grid; gap: 22px; }
.split-copy > p { color: var(--ink-2); font-size: 1.08rem; }
.tags { display: grid; gap: 14px; }
.tag { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.tag i { width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.tag b { display: block; font-weight: 650; }
.tag span { color: var(--ink-2); font-size: .95rem; }
.split-visual { display: grid; place-items: center; position: relative; }
.split-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sun-soft) 0 55%, transparent 70%); }
.split-visual .phone { position: relative; transform: none; }

/* ── Privacy ───────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust .card { background: transparent; }

/* ── FAQ ───────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font: 600 1.08rem/1.35 var(--body); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--body); color: var(--field); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }
.faq a { color: var(--field); }

/* ── Final call ────────────────────────────────────── */
.cta { background: var(--forest); color: #fff; position: relative; overflow: hidden; text-align: center; }
.cta { padding-bottom: clamp(200px, 22vw, 280px); }
.cta .sun { position: absolute; left: 50%; bottom: -210px; width: 440px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffd66b 0%, var(--sun) 45%, var(--sun-deep) 75%); box-shadow: 0 0 140px 40px rgba(245,165,36,.25); }
.cta .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.cta .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.cta h2 { color: #fff; max-width: 14em; }
.cta p { color: #c7d6cc; max-width: 32em; font-size: 1.12rem; }
.cta small { color: #9bb3a4; }

/* ── Footer ────────────────────────────────────────── */
.foot { background: #07291a; color: #9bb3a4; padding: 48px 0; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.foot-brand { display: grid; gap: 10px; max-width: 28em; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem/1 var(--display); color: #fff; letter-spacing: -0.02em; text-decoration: none; }
.foot-logo img { height: 34px; width: 34px; }
.foot-logo b { color: #5ee08a; font-weight: inherit; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot a { color: #d4e0d8; text-decoration: none; }
.foot a:hover { color: #fff; }

/* ── Reveal on scroll ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .bar i { width: var(--w); } }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1020px) {
  .shot { flex-basis: calc((100% - 40px) / 3); }
  .grid, .trust { grid-template-columns: repeat(2, 1fr); }
  .book-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .book-row .bars, .book-head .bars-h, .legend .sw { display: none; }
}
@media (max-width: 880px) {
  .shot { flex-basis: calc((100% - 20px) / 2); }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); padding: 16px 24px 24px; gap: 16px; border-bottom: 1px solid var(--rule); }
  .hero .wrap, .split, .faq-wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { height: 640px; max-width: 560px; width: 100%; margin: 0 auto 40px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .split-visual { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid, .trust { grid-template-columns: 1fr; }
  .hero-stage { height: 500px; }
  .phone { width: 190px; border-radius: 30px; padding: 7px; }
  .phone.back { top: 90px; }
  .phone.front { top: 60px; }
  .phone img { border-radius: 24px; }
  .phone.back { left: 0; }
  .phone.front { right: 0; }
  .chip { min-width: 0; padding: 10px 12px; }
  .chip b { font-size: 1.02rem; }
  .chip.c1 { right: 0; top: 62%; }
  .chip.c2 { left: 0; top: 6%; }
  .book-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px 18px; }
  .book-head { display: none; }
  .book-row .amt { grid-column: 1; font-size: .9rem; }
  .book-row .amt::before { content: attr(data-l) " "; color: #8fa699; }
  .book-row .left { grid-column: 2; grid-row: 1; text-align: right; }
  .screens-top { flex-direction: column; align-items: start; }
  .shot { flex-basis: 78%; padding: 16px 16px 20px; }
}
