/* FruitGuard website - one static page in front of the platform (app.fruitguard.co.za).
   The same tokens as the app (frontend/src/App.css): the dark green the logo is drawn for, the
   brand orange for the one thing to do, green for the answer. System fonts only - no third-party
   requests from a page that a privacy policy hangs off. */
:root {
  --green-900: #1b3a2b;
  --green-800: #234a37;
  --green-700: #2f6b46;
  --green-100: #eaf5ee;
  --leaf: #8cc63f;
  --orange: #fa8c0a;
  --orange-ink: #b3610a;
  --ink-1: #131a16;
  --ink-2: #4a5852;
  --ink-3: #66706a;
  --surface-0: #ffffff;
  --surface-1: #f6f8f7;
  --rule: #e6ece9;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-1);
  background: var(--surface-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--green-700); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-900);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.wordmark { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.w-fruit { color: var(--leaf); }
.w-guard { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }

/* ── buttons: orange is the thing to do ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 0.97rem;
  text-decoration: none; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1d1206; box-shadow: 0 6px 18px rgba(250, 140, 10, 0.28); }
.btn-primary:hover { background: #ff9a1f; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; }
.site-nav .btn-login { color: #1d1206; background: var(--orange); padding: 8px 16px; }
.site-nav .btn-login:hover { color: #1d1206; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(140, 198, 63, 0.16), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(250, 140, 10, 0.10), transparent 60%),
    var(--green-900);
  color: #fff;
  padding: 80px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow-dark { color: var(--green-700); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
.lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 36em; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* An example brief - the product's own voice, not a screenshot of anyone's farm. */
.brief-card {
  margin: 0; background: var(--surface-0); color: var(--ink-1); border-radius: 18px;
  padding: 20px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(1.2deg);
}
.brief-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.brief-title { font-weight: 800; font-size: 1.05rem; }
.brief-date { color: var(--ink-3); font-size: 0.85rem; }
.brief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-1);
}
.brief-list li.brief-act { background: #fef1e2; }
.brief-list b { display: block; font-size: 0.95rem; }
.brief-list span:not(.dot) { display: block; color: var(--ink-3); font-size: 0.83rem; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--orange); }
.dot-calm { background: var(--green-700); }
.brief-card figcaption { margin-top: 12px; font-size: 0.78rem; color: var(--ink-3); }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-1); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 36px; max-width: 22em; }
.section h3 { margin: 0 0 8px; font-size: 1.1rem; }
.section p { margin: 0; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px;
  background: var(--surface-0); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 48px;
  background: var(--green-700); border-radius: 0 0 4px 0;
}

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--green-900); color: var(--leaf); font-weight: 800; margin-bottom: 14px;
}

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.who-item { border-top: 2px solid var(--green-700); padding-top: 18px; }
.crops { margin-top: 36px !important; font-weight: 600; color: var(--green-700) !important; }

.contact { background: var(--green-900); color: #fff; padding: 72px 0; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { margin-bottom: 10px; color: #fff; }
.contact p { color: rgba(255, 255, 255, 0.8); max-width: 34em; }

.site-footer { background: #13291f; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; padding: 22px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── the privacy page ─────────────────────────────────────────────────── */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: 2.1rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc-meta { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 28px !important; }
.draft-banner {
  background: #fef1e2; border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 0 10px 10px 0;
  color: var(--orange-ink); font-weight: 600; margin-bottom: 28px;
}
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; color: var(--ink-1); }

/* ── smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .brief-card { transform: none; max-width: 460px; }
  .cards, .principles, .who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav a:not(.btn-login) { display: none; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .cards, .principles, .who { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ── one orchard, the whole season (an example timeline) ──────────────── */
.section-lede { max-width: 46em; margin: -18px 0 32px !important; font-size: 1.05rem; }
.tl-card {
  margin: 0; background: var(--surface-0); border: 1px solid var(--rule); border-radius: 18px;
  padding: 20px 22px 16px; box-shadow: 0 18px 50px rgba(19, 26, 22, 0.08);
}
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-title { font-weight: 800; }
.tl-legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-3); }
.lg { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: -8px; vertical-align: middle; }
.lg-g { background: #9cc9a8; } .lg-a { background: #f0c46a; } .lg-r { background: #d9534f; }
.lg-s { background: var(--orange); width: 9px; height: 9px; border-radius: 1px; transform: rotate(45deg); }
.tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tl-svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: inherit; }
.tl-grid { stroke: var(--rule); stroke-width: 1; }
.tl-month { font-size: 11px; fill: var(--ink-3); font-weight: 600; }
.tl-lane { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; }
.tl-rain { fill: #7fb0d6; }
.tl-stage { fill: #e3f0e8; } .tl-stage-alt { fill: #d2e7d9; }
.tl-stage-text { font-size: 10.5px; fill: var(--green-900); font-weight: 600; }
.tl-z-g { fill: #9cc9a8; } .tl-z-a { fill: #f0c46a; } .tl-z-r { fill: #d9534f; }
.tl-spray { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }
.tl-spray-plan { fill: #fff; stroke: var(--orange); stroke-width: 2; }
.tl-spray-text { font-size: 10px; fill: var(--ink-2); }
.tl-irr { fill: #2c5c8a; opacity: 0.75; }
.tl-irr-plan { fill: none; stroke: #2c5c8a; stroke-width: 1.5; stroke-dasharray: 4 3; }
.tl-curve { fill: none; stroke: #9aa29e; stroke-width: 1.5; stroke-dasharray: 5 4; }
.tl-fruit { fill: none; stroke: var(--green-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tl-fruit-behind { stroke: #c47f12; }
.tl-fruit-dot { fill: #c47f12; stroke: #fff; stroke-width: 2; }
.tl-ahead { fill: #fff; opacity: 0.6; }
.tl-today { stroke: var(--ink-1); stroke-width: 1.5; }
.tl-today-text { font-size: 11px; font-weight: 700; fill: var(--ink-1); }
.tl-mark { fill: var(--green-900); stroke: #fff; stroke-width: 2; }
.tl-mark-text { font-size: 11px; font-weight: 800; fill: var(--leaf); }
.tl-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tl-finding { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-1); border-radius: 10px; padding: 12px 14px; }
.tl-finding p { margin: 0; font-size: 0.92rem; }
.tl-finding b { color: var(--ink-1); }
.tl-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-900); color: var(--leaf);
  font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tl-card figcaption { margin-top: 12px; font-size: 0.78rem; color: var(--ink-3); }

.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.mini {
  margin: 0; background: var(--surface-0); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column;
}
.mini-label { margin: 0 0 12px !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700) !important; }
.mini-body { display: grid; gap: 9px; font-size: 0.9rem; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--ink-1); font-weight: 600; }
.mini-row b { white-space: nowrap; }
.ok { color: var(--green-700); } .warn { color: #975f10; }
.mini-bars { display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.85rem; }
.mini-bars i { display: block; height: 10px; border-radius: 0 5px 5px 0; background: #d9534f; }
.mini-bars i.after { background: #9cc9a8; }
.mini-bars em { font-style: normal; font-weight: 700; color: var(--ink-1); text-align: right; }
.mini-cmp { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.mini-cmp b { text-align: right; }
.mini-warn { background: #fef1e2; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; padding: 9px 12px; color: var(--orange-ink); font-weight: 600; }
.mini-note { margin: 0 !important; font-size: 0.82rem; color: var(--ink-3) !important; }

@media (max-width: 900px) {
  .mini-cards { grid-template-columns: 1fr; }
  .tl-findings { grid-template-columns: 1fr; }
}

#season h2 { max-width: none; }
.tl-fert { fill: #8a6d3b; }
.tl-fert-fg { opacity: 0.75; }
.tl-fert-plan { fill: #fff; stroke: #8a6d3b; stroke-width: 1.5; }
.tl-leaf { fill: #f0c46a; stroke: #975f10; stroke-width: 1.5; }
.tl-leaf-text { font-size: 10px; fill: #975f10; font-weight: 600; }
.lg-f { background: #8a6d3b; }
