*, *::before, *::after { box-sizing: border-box; }

:root {
  --pine: #2E3D30;
  --deep-pine: #172119;
  --sage: #8FA37E;
  --sage-pale: #EAEFE3;
  --sand: #DDD6B9;
  --cream: #FAF8F3;
  --linen: #F3EFE6;
  --clay: #A85C34;
  --clay-ink: #8F4A27; /* clay for small text: 5.7:1 on linen, where --clay is 4.3:1 */
  --ink: #23291F;
  --muted: #5A6E4C;
  --soft-ink: #46523F;
  --line: rgba(46, 61, 48, 0.16);
  --shadow: 0 18px 55px rgba(46, 61, 48, 0.16);
  --radius: 10px;
  --max: 1140px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; color: var(--deep-pine); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tint { background: var(--linen); }
.section.dark { background: var(--pine); color: #EEF1E8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: .6em; }
.lede { font-size: 1.15rem; color: var(--soft-ink); max-width: 40em; }

/* Draft banner — remove before going live */

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Lora", serif; font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--deep-pine); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: var(--soft-ink); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep-pine); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .button { margin-top: 10px; text-align: center; }
}

/* Buttons */
.button { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--pine); font-size: 1rem; cursor: pointer; font-family: inherit; }
.button-primary { background: var(--pine); color: #fff; }
.button-primary:hover { background: var(--deep-pine); }
.button-ghost { background: transparent; color: var(--pine); }
.nav .button { padding: 8px 16px; color: #fff; }
.nav .button:hover { color: #fff; text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 10px; }
.note { font-size: .9rem; color: var(--muted); }

/* Phone frame */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 540 / 1050; border-radius: 38px; background: #111; padding: 10px; box-shadow: var(--shadow), inset 0 0 0 2px #333; flex: none; }
/* A pine status-bar strip above the screenshot, so the notch never covers the app header. */
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; border-top: 26px solid #2E3D30; background: #2E3D30; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 72px; height: 18px; border-radius: 10px; background: #111; z-index: 2; }
.phone.small { width: min(230px, 60vw); border-radius: 30px; padding: 8px; }
.phone.small img { border-radius: 23px; border-top-width: 20px; }
.phone.small::before { top: 12px; width: 54px; height: 14px; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.phones .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 560px) { .phones .phone.small:nth-child(2) { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo { position: absolute; inset: 40px -20px 40px 30px; border-radius: 18px; background-size: cover; background-position: center; opacity: .95; }
.hero-visual .phone { position: relative; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { inset: 60px 0 60px 0; }
}

/* Proof strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip div { font-size: .95rem; color: var(--soft-ink); }
.strip strong { display: block; color: var(--deep-pine); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
/* A .wrap that is also a .feature keeps the page gutters that .feature's padding would wipe out. */
.wrap.feature { padding-left: 20px; padding-right: 20px; }
.feature.flip .feature-media { order: -1; }
.feature ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.feature li { margin-bottom: .4em; }
.more { font-weight: 600; color: var(--clay-ink); text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
}

/* Farm / about */
.farm-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; margin-top: 28px; }
.farm-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.farm-grid figure:first-child { grid-row: span 2; }
.farm-grid img { width: 100%; height: 100%; object-fit: cover; }
.farm-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
@media (max-width: 760px) {
  .farm-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .farm-grid figure:first-child { grid-column: span 2; grid-row: auto; }
}
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin-top: 36px; }
.founder img { border-radius: var(--radius); }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 220px; } }
.video-slot { margin-top: 28px; border: 2px dashed var(--sand); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 24px; }
.steps div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps div::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pine); color: #fff; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; max-width: 640px; box-shadow: var(--shadow); }
.price-big { font-family: "Lora", serif; font-size: 2.6rem; color: var(--deep-pine); line-height: 1; margin: 10px 0 4px; }
.price-big small { font-size: 1rem; font-family: "Inter", sans-serif; color: var(--muted); }
.price-card ul { padding-left: 1.1em; }
.price-card li { margin-bottom: .5em; }
.decision { background: #FFF3C4; border-radius: 6px; padding: 2px 6px; }

/* Cattle callout */
.cattle { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.cattle img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
@media (max-width: 700px) { .cattle { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--soft-ink); }

/* Email form */
.capture-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.capture-form input[type=email] { flex: 1 1 240px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; }
.form-note { flex-basis: 100%; font-size: .9rem; color: inherit; opacity: .85; margin: 4px 0 0; }

/* Subpage hero */
.page-hero { padding: 56px 0 24px; }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero .photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; justify-items: center; margin-top: 32px; }
.screens figure { margin: 0; text-align: center; }
.screens figcaption { margin-top: 14px; max-width: 260px; color: var(--soft-ink); font-size: .95rem; }
.screens figcaption strong { display: block; color: var(--deep-pine); }

/* Footer */
footer { background: var(--deep-pine); color: #C9D2C0; padding: 44px 0; font-size: .95rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer strong { color: #fff; }
footer nav { display: flex; flex-direction: column; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > div:first-child { grid-column: span 2; } }

/* Farmer quotes. A .quote-slot stays hidden until it holds a real quote and is marked
   data-filled; check-site.ts blocks a publish while any placeholder could show. */
.quote-slot:not([data-filled]), .quotes-section:not(:has(.quote-slot[data-filled])) { display: none !important; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.quote-slot { margin: 28px 0 0; border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 22px 24px; background: var(--cream); }
.quotes .quote-slot { margin: 0; }
.quote-slot blockquote { margin: 0; font-family: "Lora", Georgia, serif; font-size: 1.15rem; line-height: 1.45; color: var(--deep-pine); }
.quote-slot figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* Laptop with a phone in front: the same screen at both sizes. */
.devices { position: relative; padding: 0 13% 7% 0; }
.laptop-screen { background: #111; border-radius: 14px 14px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: var(--shadow), inset 0 0 0 2px #333; }
.laptop-screen img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; border-radius: 3px; }
.laptop-base { height: 14px; margin: 0 -5%; background: linear-gradient(#DCD8CC, #B8B3A4); border-radius: 0 0 16px 16px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #A29D8E; border-radius: 0 0 6px 6px; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 22px; padding: 5px; }
.devices .phone img { border-radius: 17px; border-top-width: 13px; }
.devices .phone::before { top: 8px; width: 34%; height: 9px; border-radius: 6px; }
.devices-band { padding: 8px 0 56px; }
.devices-band .devices { max-width: 880px; margin: 0 auto; }
.devices-band .note { text-align: center; margin-top: 18px; }

/* Paper receipt next to the phone that read it. */
.receipt-pair { display: flex; align-items: center; justify-content: center; gap: 18px; }
.receipt { width: min(220px, 44vw); background: #fff; color: #2b2b2b; font: 500 11.5px/1.5 "SFMono-Regular", Menlo, Consolas, monospace; padding: 18px 16px 26px; box-shadow: 0 14px 30px rgba(0,0,0,.14); transform: rotate(-3deg); position: relative;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; }
.receipt p { margin: 0; }
.receipt .c { text-align: center; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.receipt .b { font-weight: 700; }
.receipt-arrow { font-size: 28px; color: var(--clay); flex: none; }
@media (max-width: 560px) { .receipt-arrow { display: none; } .receipt-pair { gap: 8px; } .receipt { font-size: 10px; padding: 12px 10px 20px; } }
/* Grid children may shrink below their content, so a wide pair can't push the page sideways. */
.feature > *, .hero .wrap > *, .page-hero .wrap > * { min-width: 0; }
@media (max-width: 560px) {
  .receipt-pair { flex-direction: column; gap: 18px; }
  .receipt { width: min(250px, 80vw); transform: rotate(-2deg); }
}
/* Keyboard focus stays visible everywhere. */
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.section.dark :focus-visible { outline-color: #fff; }
/* On a phone the laptop is just context; the phone screen below it is the one to read. */
@media (max-width: 560px) {
  .devices { padding: 0; }
  .laptop-base { margin: 0 -2%; }
  .devices .phone { position: relative; right: auto; bottom: auto; width: min(250px, 66vw); margin: -24px auto 0; border-radius: 34px; padding: 8px; }
  .devices .phone img { border-radius: 27px; border-top-width: 22px; }
  .devices .phone::before { top: 13px; width: 60px; height: 15px; }
}
