/* ShamarrFarms site design system — hand-written, no frameworks, no third-party
   requests. Rules adapted from ShamarrConnect website-design: inline SVG icons
   only, no emoji, no AI iconography, plain-language copy, honest claims.
   Type is Figtree, self-hosted (20 KB variable woff2) — nothing calls out. */

@font-face {
  font-family: Figtree;
  src: url("fonts/figtree.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --brand: #14532d;
  --brand-mid: #1a5f3f;
  --brand-dark: #0a2c18;
  --brand-soft: #eaf3ec;
  --ink: #14201a;
  --muted: #4a5a51;
  --on-dark: #dcecdf;
  --line: #e2e8e2;
  --bg: #ffffff;
  --bg-soft: #f7f9f6;
  --accent: #b45309;
  --accent-soft: #fdf3e3;
  --ok: #15803d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 83, 45, .06), 0 4px 16px rgba(20, 83, 45, .07);
  --shadow-lg: 0 8px 32px rgba(20, 83, 45, .14);
  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-mid); }

/* Layout — fits 90%/100% desktop zoom and mobile: fluid type, capped container */
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
section { padding-block: clamp(48px, 7vw, 88px); }

h1, h2, h3 { letter-spacing: -.021em; text-wrap: balance; line-height: 1.14; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 46rem; }

/* Anything sitting on a dark band takes the light ink — the muted grey used on
   white backgrounds disappears against brand-dark. */
.band-dark .lead, .band-dark p, .band-dark li { color: var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brandmark { display: flex; align-items: center; text-decoration: none; }
.brandmark img { display: block; height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--on-dark); text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.active { color: #fff; font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.nav-mobile { display: none; background: #fff; box-shadow: var(--shadow-lg); }
.nav-mobile a { display: block; padding: 13px 20px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.nav-mobile a:first-child { border-top: 0; }
.nav-mobile a.cta { color: var(--brand-mid); font-weight: 700; }
.nav-mobile.open { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15.5px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #92400e; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-mid); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline {
  background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.band-dark { background: linear-gradient(135deg, #0a2c18, #14532d); color: #fff; }
.band-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; color: #fff;
}

/* Hero — copy left, product view right */
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-art { justify-self: center; width: 100%; max-width: 300px; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.3)); }
.fineprint { margin-top: 18px; font-size: 13px; color: #a9c4b1; }
.band-dark .fineprint { color: #a9c4b1; }

/* System-chain diagram */
.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2.5vw, 24px); box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; display: block; }

/* Proof strip */
.proof { background: #fff; border-bottom: 1px solid var(--line); }
.proof .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.proof .num { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--brand-mid); letter-spacing: -.02em; }
.proof .lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Cards + grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 14px; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
/* Cards in a row share a height, so a trailing link floats wherever its own
   paragraph happens to end. Pin it to the bottom and the row reads as a row. */
.card > p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 16px; font-size: 14.5px; }
.card .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--brand-mid); }

.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--brand-mid); flex: none;
}
.icon svg { width: 24px; height: 24px; }

/* Steps list */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.steps .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; margin-top: 2px;
}

/* Ladder (honesty) */
.ladder { display: grid; gap: 12px; }
.ladder .rung {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.ladder .tag {
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em;
  white-space: nowrap; margin-top: 2px;
}
.ladder .tag.now { background: var(--brand); color: #fff; }
.ladder .tag.next { background: #d6d3cd; color: #44403c; }
.ladder .tag.later { background: #e7e5e0; color: #57534e; }
.ladder p { font-size: 14.5px; color: var(--muted); }

/* Pricing */
.price { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; color: var(--brand-mid); letter-spacing: -.02em; margin-top: 8px; }
.price-sub { font-size: 13px; color: var(--muted); }
.card ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 7px; }
.card.featured { border: 2px solid var(--brand); position: relative; }
.card .flag {
  position: absolute; top: -13px; left: 22px; background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
}
.note {
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; font-size: 14.5px; color: var(--ink);
}

/* Shop */
.shop-h2 { margin: 0 0 20px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.shop-kit { margin-bottom: 8px; }
.shop-actions { margin-top: auto; padding-top: 20px; }
.product-card .kicker { margin-top: 14px; }
.product-card h3 { margin-top: 6px; }
.product-photo {
  height: 120px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin: -6px -6px 0;
}
.product-photo .icon { width: 56px; height: 56px; }
.product-photo .icon svg { width: 28px; height: 28px; }

/* Figures */
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.figure figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.frame-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.frame-head span:last-child { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.liveframe { width: 100%; height: min(72vh, 720px); border: 0; display: block; background: #0a2c18; }

/* Dashboard captures carry small print. Scaled to fit a phone they become
   unreadable, so hold them at a legible width and let the reader swipe. */
.figure .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure .scroll img { width: 100%; min-width: 720px; max-width: none; }
@media (min-width: 780px) { .figure .scroll img { min-width: 0; } }

/* A phone screenshot should stay phone-sized rather than stretch to the page. */
.figure .device { max-width: min(360px, 100%); margin: 24px auto; }

/* Three short rows do not want the full page width, but the page still has to
   start where the header and footer start. Hold the measure, keep the edge. */
.contact-list { gap: 14px; max-width: 46rem; }

/* Sourced statistics — every figure carries its citation in the card, because
   an unattributed number is worth less than no number. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stat .figure-n { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--brand-mid); letter-spacing: -.03em; line-height: 1; }
.stat .say { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.stat .body { margin-top: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.cite { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: #6b7c72; }
.cite a { color: #6b7c72; }
.band-dark .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); box-shadow: none; }
.band-dark .stat .figure-n { color: #9fd3ae; }
.band-dark .stat .say { color: #fff; }
.band-dark .stat .body { color: var(--on-dark); }
.band-dark .cite, .band-dark .cite a { color: #9db3a4; border-color: rgba(255,255,255,.16); }

/* Payback panel */
.payback { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.calc td { padding: 12px 20px; border-top: 1px solid var(--line); }
.calc tr:first-child td { border-top: 0; }
.calc td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.calc tr.total td { background: var(--brand-soft); font-weight: 700; color: var(--brand); }
.calc caption { text-align: left; padding: 14px 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand-mid); border-bottom: 1px solid var(--line); }

/* Status callout — used when a live surface is degraded, so the page says so
   instead of quietly showing a broken panel. */
.status {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid #f0dcbb; border-radius: var(--radius);
  padding: 18px 22px;
}
/* Pinned to the first line rather than centred, so it still reads as a marker
   next to a paragraph and not as a stray dot beside a tall block. */
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.status > div { flex: 1 1 320px; }
.status .t { font-weight: 700; font-size: 15px; }
.status p { font-size: 14px; color: #6b4a1c; margin-top: 4px; }

/* Contact rows */
.contact-row {
  display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-row .t { font-weight: 700; }
.contact-row .s { font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band p { margin-top: 12px; }
/* Centring the text is not the same as centring the block. .lead is capped at
   46rem, so without this it sits flush left with its words centred inside —
   160px off the heading above it and the buttons below. */
.cta-band .lead, .center .lead { margin-inline: auto; }

/* Section heads */
.shead { margin-bottom: clamp(28px, 4vw, 44px); }
.shead h1, .shead h2 { margin-bottom: 14px; }
.center { text-align: center; }
.mt-6 { margin-top: 24px; } .mt-10 { margin-top: 40px; } .mb-10 { margin-bottom: 40px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: var(--on-dark); margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.site-footer p, .site-footer a { font-size: 14px; color: var(--on-dark); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fine { font-size: 12.5px; color: #a9c4b1; margin-top: 10px; }
.site-footer .brandline { display: block; height: 32px; width: auto; margin-bottom: 14px; }

/* Focus + motion */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive — mobile fit */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; margin-top: 8px; }
  .grid-2, .grid-3, .stats, .payback { grid-template-columns: 1fr; }
  .proof .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .liveframe { height: 70vh; }
  .card { padding: 20px; }
}
