/* AgForge — marketing site stylesheet
   Brand source: Claude_Cowork/FarmMate/Brand/ (AgForge Brand Identity &
   Strategy.docx, AgForge Logo.pdf). Built 2026-08-11 as a real static site
   for the front-facing pages, separate from the Streamlit app (Spray Now
   stays there — it's an interactive tool, not marketing content).
*/

:root {
  --charcoal: #17201B;
  --field-green: #315C43;
  --copper: #C47A3A;
  --warm-stone: #E7E2D6;
  --white: #FAFAF7;

  --charcoal-80: rgba(23, 32, 27, 0.8);
  --charcoal-40: rgba(23, 32, 27, 0.4);
  --white-70: rgba(250, 250, 247, 0.7);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.lede {
  font-size: 1.15rem;
  color: var(--charcoal-80);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-1px); background: #b06d33; }

.btn-ghost {
  background: transparent;
  border-color: var(--charcoal-40);
  color: var(--charcoal);
}
.btn-ghost:hover { border-color: var(--charcoal); }

.btn-ghost-light {
  background: transparent;
  border-color: var(--white-70);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a { opacity: 0.75; transition: opacity 0.15s ease; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  height: 130%;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.hero h1 { max-width: 780px; margin-bottom: var(--space-sm); }

.hero .lede {
  color: var(--white-70);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-tagline {
  color: var(--copper);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: var(--space-sm);
}

.product-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: var(--space-xs);
  max-width: 640px;
}

/* ---------- Sections ---------- */

section { padding: var(--space-xl) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.section-head h2 { margin-top: var(--space-xs); }

.section-alt {
  background: var(--warm-stone);
}

.section-dark {
  background: var(--field-green);
  color: var(--white);
}
.section-dark .eyebrow { color: var(--warm-stone); }
.section-dark .lede { color: var(--white-70); }

/* ---------- Feature grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(23, 32, 27, 0.08);
  padding: var(--space-md);
  border-radius: 4px;
}

.feature-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--charcoal-80); font-size: 0.95rem; }

/* ---------- Trust / callout strip ---------- */

.callout {
  border-left: 3px solid var(--copper);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal-80);
}

/* ---------- Split layout (image/graphic + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-graphic {
  background: var(--charcoal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--space-lg);
}
.split-graphic img { width: 55%; }

/* ---------- Product screenshots ---------- */

.product-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.product-shots figure {
  background: var(--white);
  border: 1px solid rgba(23, 32, 27, 0.08);
  border-radius: 4px;
  padding: var(--space-xs);
  box-shadow: 0 12px 24px rgba(23, 32, 27, 0.08);
}

.product-shots img {
  border-radius: 2px;
  width: 100%;
}

.product-shots figcaption {
  padding: var(--space-sm) var(--space-xs) var(--space-xs);
  font-size: 0.9rem;
  color: var(--charcoal-80);
  text-align: center;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--copper);
  color: var(--white);
  text-align: center;
  padding: var(--space-lg) 0;
}
.cta-band h2 { margin-bottom: var(--space-sm); }
.cta-band .btn-ghost-light { border-color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--white-70);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.footer-brand img { height: 24px; }

.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(250, 250, 247, 0.12);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
  opacity: 0.6;
}

/* ---------- About page specifics ---------- */

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
}

.prose { max-width: 720px; }
.prose p { margin-bottom: var(--space-sm); color: var(--charcoal-80); font-size: 1.05rem; }

.pull-quote {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 640px;
  margin: var(--space-md) 0;
  color: var(--charcoal);
}

.info-box {
  background: var(--warm-stone);
  border-radius: 4px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  max-width: 720px;
}
.info-box p { color: var(--charcoal); margin-bottom: 0; }

/* ---------- Author profile card (About page) ---------- */
/* Update_002.png (Carlos's mockup, 2026-08-13): the card floats right of
   the intro paragraphs instead of sitting above them, so the body text
   wraps around it — a plain CSS float, the classic way to do this and
   the simplest thing that actually works for text reflowing around an
   image. .prose gets a clearfix so the section's own height isn't just
   whatever the float's height happens to be, in case a future edit
   shortens the intro text below the float's height. Reverts to a plain
   stacked block above the text on narrow screens (existing 860px
   breakpoint) — floating a right-hand column gets cramped once the
   paragraph column itself is only a few hundred pixels wide. */

.prose::after {
  content: "";
  display: table;
  clear: both;
}

.profile-card {
  float: right;
  width: 200px;
  margin: 0 0 var(--space-md) var(--space-lg);
}

.profile-photo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--warm-stone);
  margin-bottom: 0.6rem;
}

.profile-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.profile-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
}
.profile-linkedin img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
}
.profile-linkedin:hover { color: var(--copper); }

/* ---------- Roadmap timeline ---------- */
/* Pattern borrowed from Claude_Cowork/FarmMate/Visual/Timeline_Example.png
   (a generic horizontal-timeline template) — same alternating-circle idea,
   but the top row uses the roadmap's own step numbers ("01", "02"...)
   instead of years, per Carlos's instruction not to date these.

   .roadmap-desktop lays every slot out on one shared 5-column grid so the
   "node" row lines up across all five items regardless of how tall each
   card's text runs — the two content rows (roadmap-slot-top/-bottom) use a
   fixed height precisely so .roadmap-line can be positioned with simple
   math instead of guessing at content height. .roadmap-mobile is a plain
   stacked duplicate for narrow screens, swapped in via the same breakpoint
   used everywhere else on this site (860px) — a real vertical alternating
   timeline gets fiddly at narrow widths, and a simple stacked list reads
   fine there. */

.roadmap-desktop {
  position: relative;
  margin-top: var(--space-lg);
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 210px 64px 210px;
  column-gap: var(--space-sm);
  align-items: center;
}

.roadmap-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 242px; /* row 1 (210px) + half of row 2 (32px) */
  height: 2px;
  background: rgba(23, 32, 27, 0.15);
}

.roadmap-slot-top { align-self: end; }
.roadmap-slot-bottom { align-self: start; }

.roadmap-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.roadmap-card { text-align: center; max-width: 200px; margin: 0 auto; }
.roadmap-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.roadmap-card p { font-size: 0.85rem; color: var(--charcoal-80); }

.roadmap-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.status-available { background: var(--field-green); color: var(--white); }
.status-next { background: var(--copper); color: var(--white); }
.status-soon { background: var(--warm-stone); color: var(--charcoal); }
.status-vision { background: var(--charcoal); color: var(--white); }

.roadmap-mobile { display: none; }

.roadmap-mobile-item {
  position: relative;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding-bottom: var(--space-md);
}
.roadmap-mobile-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: rgba(23, 32, 27, 0.15);
}
.roadmap-mobile-item .roadmap-node { flex-shrink: 0; margin: 0; }
.roadmap-mobile-item .roadmap-card { text-align: left; max-width: none; margin: 0; padding-top: 0.35rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .product-shots { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
  .roadmap-desktop { display: none; }
  .roadmap-mobile { display: block; margin-top: var(--space-lg); }
  .profile-card { float: none; width: auto; margin: 0 0 var(--space-md) 0; }
}
