/* ============================================================
   MeFarm — marketing site styles
   Plain CSS, no build step. Brand tokens from docs/design-system.md.
   ============================================================ */

:root {
  /* Brand greens + signature gradient */
  --green: #3F7D3A;          /* primary accent (crop) */
  --green-deep: #2F5E2C;     /* hover / pressed */
  --green-bright: #6CD236;   /* gradient top, louder marketing green */
  --blue: #0664B3;           /* gradient bottom */
  --accent: #FFD23F;         /* warm yellow CTA label (echoes the logo's bright accent) */
  --grad: linear-gradient(155deg, #6CD236 0%, #2E9E62 42%, #0664B3 100%);

  /* Domain accents (feature cards) */
  --animal: #A65A28;         /* terracotta */
  --ai: #7355B5;             /* restrained purple */
  --weather: #3A6B8F;        /* blue */
  --alert: #B0392B;
  --warn: #C58A1C;

  /* Neutrals */
  --ink: #1A1814;            /* fg primary */
  --ink-2: #5B574C;          /* fg secondary */
  --ink-3: #8A8478;          /* fg muted */
  --canvas: #F7F6F1;         /* warm off-white background */
  --surface: #FFFFFF;        /* cards / sheets */
  --surface-2: #EFEDE5;      /* zebra / inset */
  --border: #E3DFD3;

  --max: 1180px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: opacity .25s ease, color .25s ease; }
a:hover { opacity: .82; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green);
  background: rgba(63, 125, 58, .1);
  padding: 6px 12px; border-radius: 980px; margin-bottom: 18px;
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(247, 246, 241, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
header.site nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.logo img { height: 34px; width: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 26px; border-radius: 980px;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--green); color: var(--accent); }
.btn-primary:hover { background: var(--green-deep); opacity: 1; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); opacity: 1; }
.btn-on-grad { background: #fff; color: var(--blue); }
.btn-on-grad:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--green);
}
.hero p.lead { font-size: 21px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Coming-soon store chips (app not yet published) */
.store-chips { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.store-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
}
.store-chip svg { width: 22px; height: 22px; flex: none; }
.store-chip .sc-small { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.store-chip .sc-big { font-size: 15px; font-weight: 700; }

/* Phone mockup (brand device shot — gradient + icon stand-in for screenshots) */
.device { justify-self: center; }
.phone {
  width: 290px; height: 590px; border-radius: 44px;
  background: #15140F; padding: 12px;
  box-shadow: 0 40px 80px rgba(6, 100, 179, .22), 0 8px 24px rgba(0,0,0,.18);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #15140F; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  background: var(--grad); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px;
}
.phone-screen img { width: 108px; height: 108px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.phone-screen .ps-name { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.phone-screen .ps-tag { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 8px; max-width: 180px; }
.phone-screen .ps-cards { position: absolute; left: 18px; right: 18px; bottom: 20px; display: grid; gap: 8px; }
.phone-screen .ps-card { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; height: 34px; backdrop-filter: blur(4px); }
.phone-screen .ps-card:nth-child(2) { width: 80%; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 96px 0; }
.block.tint { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.section-head p { font-size: 19px; color: var(--ink-2); margin-top: 16px; }

@media (max-width: 768px) { .section-head h2 { font-size: 30px; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 980px; margin-top: 14px;
}

/* domain accent helpers */
.a-crop   { color: var(--green);   background: rgba(63,125,58,.12); }
.a-animal { color: var(--animal);  background: rgba(166,90,40,.12); }
.a-ai     { color: var(--ai);      background: rgba(115,85,181,.12); }
.a-weather{ color: var(--weather); background: rgba(58,107,143,.12); }
.a-alert  { color: var(--alert);   background: rgba(176,57,43,.12); }
.a-warn   { color: var(--warn);    background: rgba(197,138,28,.14); }

/* ---------- Split highlight bands ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 18px; }
.split p { font-size: 18px; color: var(--ink-2); margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.panel {
  border-radius: 28px; padding: 40px; color: #fff; background: var(--grad);
  box-shadow: 0 30px 60px rgba(6,100,179,.18);
}
.panel.ai { background: linear-gradient(155deg, #8B6FD0 0%, #5B3FA0 100%); box-shadow: 0 30px 60px rgba(115,85,181,.22); }
.panel h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; }
.insight-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.16); font-size: 16px;
}
.insight-row:last-child { border-bottom: 0; }
.insight-row .ir-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.insight-row svg { width: 18px; height: 18px; }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--grad); color: #fff; text-align: center; padding: 88px 0; }
.cta-band h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.cta-band p { font-size: 19px; opacity: .9; max-width: 560px; margin: 16px auto 32px; }

/* ---------- Footer ---------- */
footer.site { padding: 64px 0 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-2); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--ink-2); margin-bottom: 10px; font-weight: 500; }
.footer-cols a:hover { color: var(--green); text-decoration: underline; }
.copyright { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 13px; }

/* ---------- Legal / support pages ---------- */
.legal { max-width: 820px; margin: 40px auto 72px; padding: 0 20px; }
.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.top-nav .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px; box-shadow: 0 20px 40px rgba(0,0,0,.04);
}
.card > header { text-align: center; margin-bottom: 36px; }
.card h1 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.card .updated { color: var(--ink-3); font-size: 14px; }
.card h2 {
  font-size: 23px; font-weight: 700; margin: 36px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.card p { font-size: 16px; margin-bottom: 16px; color: var(--ink); }
.card ul { margin: 0 0 16px 22px; }
.card li { margin-bottom: 8px; font-size: 16px; }
.card a { font-weight: 600; }
.summary-box {
  background: rgba(63,125,58,.07); border-left: 4px solid var(--green);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 32px;
}
.summary-box ul { list-style: none; margin: 0; }
.summary-box li { position: relative; padding-left: 26px; font-weight: 500; margin-bottom: 8px; }
.summary-box li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.contact-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-align: center; margin: 16px 0;
}
.faq strong { display: block; margin-top: 18px; }
.faq span { color: var(--ink-2); }
.tip { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.muted-note { color: var(--ink-3); font-size: 14px; font-style: italic; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; gap: 40px; }
  .split .device, .hero .device { order: -1; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 18px; }
  section.block { padding: 64px 0; }
  .nav-links a:not(.btn) { display: none; }
  .card { padding: 30px 22px; }
  .card h1 { font-size: 30px; }
  .cta-band h2, .section-head h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
