/* Farm Data Solutions — public site. Palette matches the product (green-dark / sage / cream). */
:root {
  --green-dark: #3c5228;
  --green: #4f6b3a;
  --sage: #a6bb96;
  --tint: #eef1e3;
  --cream: #f7f6f0;
  --ink: #20261c;
  --ink-soft: #5c5e51;
  --border: #e3e2d6;
  --olive: #8a9a3b;
  --white: #ffffff;
  --radius: 12px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 90px; } /* keep linked headings clear of the sticky header */
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { font-size: 1.05rem; font-weight: 750; display: block; line-height: 1.1; }
.brand small { font-size: .66rem; letter-spacing: .14em; color: var(--ink-soft); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 560; font-size: .95rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green-dark); }
.btn { display: inline-block; text-decoration: none; font-weight: 650; font-size: .95rem; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--green-dark); }
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-dark); }
.btn-ghost:hover { background: var(--tint); }
.nav .btn { padding: 8px 14px; font-size: .88rem; }
.nav .btn-ghost { color: var(--green-dark); }

/* phone menu */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 40px; padding: 0; cursor: pointer; color: var(--green-dark); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .js .site-header .wrap { min-height: 0; padding-top: 11px; padding-bottom: 11px; }
  .js .nav-toggle { display: block; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 2px; border-top: 1px solid var(--border); font-size: 1rem; }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--green-dark); font-weight: 700; }
  .js .nav .btn { margin-top: 10px; text-align: center; border-top: 1px solid var(--green-dark); padding: 11px 14px; }
  /* screenshots stay readable on phones: swipe sideways instead of shrinking */
  .look a.zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .look a.zoom img { width: 860px; max-width: none; }
  .look a.zoom::after { content: none; }
  .look figcaption::after { content: "Swipe the table to see more \2192"; display: block; margin-top: 6px; font-size: .82rem; color: var(--green); font-weight: 600; }
}

/* sections */
section { padding: 72px 0; }
section.tint { background: var(--tint); }
section.white { background: var(--white); }
.hero { padding: 64px 0 56px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .stat-line { margin-top: 26px; font-size: .92rem; color: var(--ink-soft); }
.hero .stat-line b { color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: 1.9rem; font-weight: 760; color: var(--green-dark); line-height: 1.1; margin-bottom: 6px; }
.section-head { max-width: 720px; margin-bottom: 36px; }

.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.story .big { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; color: #a3442f; line-height: 1; }
.story .big small { display: block; font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-top: 8px; }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--ink-soft); margin: 0; }

/* screenshots */
.looks { display: grid; gap: 52px; }
.look { margin: 0; min-width: 0; }
.look figcaption { max-width: 680px; margin-bottom: 16px; }
.look figcaption h3 { font-size: 1.3rem; margin-bottom: .3em; }
.look figcaption p { color: var(--ink-soft); margin: 0; }
a.zoom { display: block; cursor: zoom-in; position: relative; }
a.zoom::after { content: "View full screen"; position: absolute; right: 12px; bottom: 12px; background: rgba(32, 38, 28, .78); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; opacity: 0; transition: opacity .15s; }
a.zoom:hover::after, a.zoom:focus-visible::after { opacity: 1; }
.lightbox { border: 0; padding: 52px 0 0; background: transparent; max-width: min(1400px, 96vw); width: 96vw; }
.lightbox::backdrop { background: rgba(20, 24, 16, .86); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; border-radius: 10px; }
.lightbox p { text-align: center; }
.lightbox p { color: #e9eedf; margin: 12px 4px 0; font-size: .95rem; }
.lightbox-close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(32, 38, 28, .85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--green-dark); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(32, 38, 28, .12); background: var(--white); }
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; padding: 44px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: 1.2fr .8fr; }
.feature.flip .feature-text { order: 2; }
.feature ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.feature li { margin-bottom: .4em; }

.cta { background: var(--green-dark); color: var(--white); border-radius: var(--radius); padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0 0 .3em; }
.cta p { margin: 0; color: #dfe7d3; }
.cta .btn-primary { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.cta .btn-primary:hover { background: var(--tint); }

/* prose pages (privacy, support) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.page-head { background: var(--white); border-bottom: 1px solid var(--border); padding: 52px 0 40px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { display: inline-block; min-width: 92px; color: var(--ink-soft); font-weight: 600; }
/* text-alert sign-up form */
.plain-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sage); border-color: var(--green); }
.form .consent { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-weight: 400; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.form .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-dark); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form-note { margin: 0; font-size: .88rem; color: var(--green-dark); }
details { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 650; }
details p { margin: .7em 0 0; color: var(--ink-soft); }

/* footer */
.site-footer { background: #1f2a17; color: #c9d1bd; padding: 44px 0 30px; font-size: .92rem; }
.site-footer a { color: #e4ead9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: var(--white); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.legal { border-top: 1px solid #344128; margin-top: 30px; padding-top: 18px; font-size: .84rem; color: #9fab8f; }

@media (max-width: 900px) {
  .hero-grid, .story, .feature, .feature.flip, .grid-2 { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 2px 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
}
