/* ==========================================================================
   Farmtheory — farmtheory.in
   Static site. No framework, no build step.

   Brand tokens taken from the supplied logo kit:
     #0C604A  deep pine green  (logo colour)
     #DBEAB7  pale sage        (light-green background variant)
   The sage highlight behind key words is the brand's signature device,
   carried over from the deck.
   ========================================================================== */

:root{
  --green:      #0C604A;
  --green-deep: #07422F;
  --green-mid:  #0F7358;
  --sage:       #DBEAB7;
  --sage-soft:  #F0F6E4;
  --sage-line:  #C9DDA0;

  --ink:        #14231D;
  --ink-2:      #46574F;
  --muted:      #71827A;
  --rule:       #E3EADD;
  --bg:         #FFFFFF;

  --wrap:       1180px;
  --gutter:     clamp(1.15rem, 4.5vw, 2.75rem);
  --radius:     18px;
  --radius-sm:  12px;

  --f: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(12,45,32,.05), 0 12px 32px rgba(12,45,32,.07);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body,h1,h2,h3,h4,p,ul,ol,li,figure,dl,dd,dt{ margin:0; padding:0; }
ul,ol{ list-style:none; }
/* height:auto is load-bearing — without it the HTML height attributes are
   taken literally, images stretch, and aspect-ratio below is ignored. */
img,svg{ max-width:100%; height:auto; display:block; }

body{
  font-family:var(--f);
  font-size:clamp(1rem,.97rem + .2vw,1.075rem);
  line-height:1.65;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color:inherit; }

.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.skip{ position:absolute; left:-9999px; }
.skip:focus{ left:1rem; top:1rem; z-index:200; background:var(--green); color:#fff; padding:.7rem 1rem; border-radius:8px; }

/* signature: sage highlight behind a word */
.hl{
  background:var(--sage); color:var(--green-deep);
  padding:.04em .3em; border-radius:5px;
  box-decoration-break:clone; -webkit-box-decoration-break:clone;
}
.on-dark .hl{ color:var(--green-deep); }

/* ---------------------------------------------------------------- header */
.site-head{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(1.5) blur(12px);
  -webkit-backdrop-filter:saturate(1.5) blur(12px);
  border-bottom:1px solid var(--rule);
}
.head-in{ display:flex; align-items:center; justify-content:space-between; gap:1.25rem; min-height:4.4rem; }
.brand img{ height:42px; width:auto; }
.nav{ display:flex; align-items:center; gap:2rem; }
.nav a{
  text-decoration:none; font-size:.95rem; font-weight:500; color:var(--ink-2);
  padding:.35rem 0; border-bottom:2px solid transparent; transition:color .15s, border-color .15s;
}
.nav a:hover{ color:var(--green); }
.nav a[aria-current="page"]{ color:var(--green); border-bottom-color:var(--sage-line); }

.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--green); color:#fff; text-decoration:none;
  font-weight:600; font-size:.95rem;
  padding:.72rem 1.35rem; border-radius:100px;
  transition:background .18s ease, transform .18s ease;
  white-space:nowrap;
}
.btn:hover{ background:var(--green-deep); transform:translateY(-1px); }
.btn.ghost{ background:transparent; color:var(--green); border:1.5px solid var(--sage-line); }
.btn.ghost:hover{ background:var(--sage-soft); }
.btn.light{ background:var(--sage); color:var(--green-deep); }
.btn.light:hover{ background:#fff; }

/* ---------------------------------------------------------------- hero */
.hero{
  background:var(--green);
  color:#fff;
  position:relative;
  overflow:hidden;
  padding:clamp(3.2rem,8vw,6rem) 0 clamp(3.5rem,9vw,6.5rem);
}
.hero::after{
  content:""; position:absolute; right:-14%; top:-30%;
  width:52%; aspect-ratio:1; border-radius:50%;
  background:rgba(219,234,183,.10);
}
.hero-in{ position:relative; z-index:2; display:grid; grid-template-columns:1.08fr .92fr; gap:clamp(2rem,5vw,4rem); align-items:center; }

/* interior page hero: single column, shorter */
.hero.compact{ padding:clamp(2.6rem,6vw,4.4rem) 0 clamp(2.8rem,6.5vw,4.8rem); }
.hero.compact h1{ font-size:clamp(1.95rem,1.1rem + 3.4vw,3.1rem); }
/* cap the text, not the container — capping the container lets .wrap's
   margin-inline:auto centre it, knocking it out of line with the gutter */
.hero-in.solo{ grid-template-columns:1fr; }
.hero-in.solo h1{ max-width:19ch; }
.hero-in.solo .sub{ max-width:54ch; margin-bottom:0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:.55rem;
  font-size:.82rem; font-weight:600; letter-spacing:.04em;
  background:rgba(255,255,255,.12); color:#fff;
  border:1px solid rgba(219,234,183,.28);
  padding:.4rem .9rem; border-radius:100px; margin-bottom:1.5rem;
}

.yc-line{ display:inline-flex; align-items:center; gap:.4rem; }

/* official YC lockup (232.6×47 viewBox). The lockup's own type occupies
   only part of that height, so it needs to run taller than cap-height for
   "Combinator" to read at the same size as the text beside it. */
.yc-wordmark{ height:1.55em; width:auto; vertical-align:middle; transform:translateY(-.04em); }
.yc-wordmark-sm{ height:1.4em; }
h1{
  font-size:clamp(2.15rem,1.1rem + 4.4vw,3.7rem);
  line-height:1.08; letter-spacing:-.032em; font-weight:800;
  margin-bottom:1.15rem;
}
.hero p.sub{ font-size:clamp(1.05rem,1rem + .45vw,1.24rem); color:rgba(255,255,255,.86); max-width:46ch; margin-bottom:1.9rem; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:.8rem; }

.hero-art{ position:relative; }
.hero-art img.shot{
  border-radius:var(--radius); box-shadow:0 20px 50px rgba(0,0,0,.22);
  width:100%; aspect-ratio:4/3.1; object-fit:cover;
}
/* ---------------------------------------------------------------- trust strip */
.trust{ background:var(--green-deep); color:#fff; padding:1.6rem 0; }
.trust-in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.2rem 2.4rem; }
.trust .t-item{ display:flex; align-items:baseline; gap:.55rem; font-size:.95rem; color:rgba(255,255,255,.82); }
.trust b{ font-size:1.22rem; font-weight:700; color:var(--sage); letter-spacing:-.02em; }

/* ---------------------------------------------------------------- sections */
.sec{ padding:clamp(3.4rem,8vw,6.5rem) 0; }
.sec.tint{ background:var(--sage-soft); }
.sec.dark{ background:var(--green); color:#fff; }
.sec.dark .lead, .sec.dark p{ color:rgba(255,255,255,.85); }

.kicker{
  font-size:.78rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--green); margin-bottom:.85rem;
}
.sec.dark .kicker{ color:var(--sage); }
h2{
  font-size:clamp(1.72rem,1.2rem + 1.9vw,2.6rem);
  line-height:1.14; letter-spacing:-.028em; font-weight:700;
  max-width:20ch; margin-bottom:1rem;
}
.lead{ font-size:clamp(1.02rem,1rem + .3vw,1.14rem); color:var(--ink-2); max-width:60ch; }
.sec-head{ margin-bottom:clamp(2rem,4.5vw,3.2rem); }

h3{ font-size:1.15rem; font-weight:700; letter-spacing:-.014em; margin-bottom:.5rem; }

/* ---------------------------------------------------------------- freeform grid */
.ff-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap:clamp(1rem,2.4vw,1.6rem);
}
.ff{ background:#fff; border:1px solid var(--rule); border-radius:var(--radius); overflow:hidden; }
.sec.tint .ff{ border-color:var(--sage-line); }
.ff img{ width:100%; aspect-ratio:4/3.4; object-fit:cover; }
.ff .cap{ padding:1rem 1.15rem 1.2rem; }
.ff .tag{ font-size:.76rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--green); margin-bottom:.3rem; }
.ff p{ font-size:.94rem; color:var(--ink-2); }

/* ---------------------------------------------------------------- value cards */
/* 14rem min keeps four cards on one row inside the 1092px content box */
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:clamp(1rem,2.4vw,1.7rem); }
.card{
  background:#fff; border:1px solid var(--rule); border-radius:var(--radius);
  padding:clamp(1.4rem,2.6vw,2rem);
}
.sec.tint .card{ border-color:var(--sage-line); }
.card .num{
  font-size:clamp(1.85rem,1.3rem + 1.6vw,2.5rem); font-weight:800; letter-spacing:-.03em;
  color:var(--green); line-height:1.05; margin-bottom:.45rem;
}
.card p{ color:var(--ink-2); font-size:.98rem; }
.sec.dark .card{ background:rgba(255,255,255,.07); border-color:rgba(219,234,183,.2); }
.sec.dark .card .num{ color:var(--sage); }
.sec.dark .card h3{ color:#fff; }

/* ---------------------------------------------------------------- steps */
.steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:clamp(1.2rem,3vw,2.2rem); counter-reset:s; }
.step{ counter-increment:s; }
.step::before{
  content:counter(s,decimal-leading-zero);
  display:block; font-size:.8rem; font-weight:700; letter-spacing:.1em; color:var(--green);
  padding-bottom:.85rem; margin-bottom:1rem; border-bottom:2px solid var(--sage-line);
}
.sec.dark .step::before{ color:var(--sage); border-color:rgba(219,234,183,.3); }
.step p{ color:var(--ink-2); font-size:.97rem; }

/* ---------------------------------------------------------------- product / app */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.app-shot{
  position:relative; display:flex; justify-content:center;
  padding:1rem 0;
}
.app-shot::before{
  content:""; position:absolute; inset:0; margin:auto;
  width:96%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, rgba(219,234,183,.18), rgba(219,234,183,0) 70%);
}
.app-shot img{
  position:relative; width:min(100%,26rem);
  filter:drop-shadow(0 26px 50px rgba(0,0,0,.38));
}
.phones img:nth-child(1){ transform:translateY(18px) rotate(-5deg); z-index:1; }
.phones img:nth-child(2){ margin-inline:-9%; z-index:3; }
.phones img:nth-child(3){ transform:translateY(18px) rotate(5deg); z-index:2; }

.feature-list li{ display:flex; gap:.9rem; padding:.85rem 0; border-bottom:1px solid var(--rule); }
.sec.dark .feature-list li{ border-color:rgba(219,234,183,.18); }
.feature-list li:last-child{ border-bottom:0; }
.feature-list .fi{ flex:none; width:1.4rem; height:1.4rem; margin-top:.2rem; border-radius:50%; background:var(--sage); display:grid; place-items:center; }
.feature-list .fi svg{ width:.8rem; height:.8rem; }
.feature-list b{ display:block; font-weight:700; }
.feature-list span.d{ color:var(--ink-2); font-size:.95rem; }
.sec.dark .feature-list span.d{ color:rgba(255,255,255,.78); }

/* ---------------------------------------------------------------- produce strip */
.strip{ background:var(--sage); padding:1.6rem 0; overflow:hidden; }
.strip-in{ display:flex; align-items:center; justify-content:center; gap:clamp(1.2rem,4vw,3rem); flex-wrap:wrap; }
.strip img{ height:clamp(48px,7vw,76px); width:auto; }

/* ---------------------------------------------------------------- cta band */
.cta{ background:var(--green); color:#fff; padding:clamp(2.8rem,6vw,4.5rem) 0; text-align:center; }
.cta h2{ margin-inline:auto; max-width:22ch; }
.cta p{ color:rgba(255,255,255,.85); max-width:50ch; margin:0 auto 1.8rem; }

/* ---------------------------------------------------------------- contact */
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:clamp(1.2rem,3vw,2rem); }
.c-card{ border:1px solid var(--rule); border-radius:var(--radius); padding:clamp(1.4rem,2.6vw,1.9rem); }
.c-card a{ color:var(--green); font-weight:600; text-decoration:none; border-bottom:1.5px solid var(--sage-line); }
.c-card a:hover{ border-color:var(--green); }
.c-card p{ color:var(--ink-2); font-size:.97rem; margin-bottom:.7rem; }

/* ---------------------------------------------------------------- footer */
.site-foot{ background:var(--green-deep); color:rgba(255,255,255,.72); padding:clamp(2.6rem,6vw,4rem) 0 2rem; font-size:.94rem; }
.foot-top{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:2rem; padding-bottom:2rem; border-bottom:1px solid rgba(219,234,183,.18); }
.foot-top img{ height:40px; margin-bottom:1.1rem; }
.foot-top h4{ color:#fff; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.9rem; font-weight:700; }
.foot-top li{ padding:.28rem 0; }
.foot-top a{ text-decoration:none; }
.foot-top a:hover{ color:var(--sage); }
.foot-bot{ padding-top:1.5rem; display:flex; flex-wrap:wrap; gap:.6rem 1.5rem; justify-content:space-between; font-size:.86rem; color:rgba(255,255,255,.55); }

/* ---------------------------------------------------------------- responsive */
@media (max-width:60rem){
  .hero-in{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:26rem; }
  .split{ grid-template-columns:1fr; }
  .foot-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:44rem){
  .nav{ display:none; }
  h2{ max-width:none; }
  .foot-top{ grid-template-columns:1fr; gap:1.6rem; }
  .trust-in{ gap:.9rem 1.6rem; }
  .trust b{ font-size:1.08rem; }
  .phones{ min-height:0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
