/* assets/css/landing.css
   The public front page.

   Deliberately dependency-free: no web font, no icon library, no stock
   photography. The people this is for are often on rural mobile data,
   and every one of those is a round trip that can fail or stall. The
   artwork is inline SVG and CSS, so the page is readable the moment the
   HTML lands. */

:root {
  --primary-green: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --accent-yellow: #f5a623;
  --bg-color: #f9fbf9;
  --bg-cream: #fdfbf7;
  --text-main: #1c211c;
  --text-muted: #5d665d;
  --border-soft: #e4ebe4;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 2px 10px rgba(27, 60, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 60, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 60, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.header-nav a.nav-link:hover {
  color: var(--primary-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-yellow);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.32);
}

.btn-primary:hover {
  background: #e8991a;
}

.btn-green {
  background: var(--primary-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.26);
}

.btn-green:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-green);
  border-color: #cfe0cf;
}

.btn-ghost:hover {
  background: #eef5ee;
}

.btn-white {
  background: #fff;
  color: var(--primary-green);
}

.btn-white:hover {
  background: #f2f7f2;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding: 70px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f3e9;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(33px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero h1 .accent {
  color: var(--primary-green);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-note svg {
  width: 17px;
  height: 17px;
  color: var(--primary-green);
  flex-shrink: 0;
}

/* --- the illustrated panel --- */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(145deg, var(--primary-light) 0%, var(--primary-green) 48%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art::after {
  /* soft rings, to stop the panel reading as a flat green block */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.hero-art-scene {
  width: 70%;
  color: rgba(255, 255, 255, 0.95);
}

/* Cards that float over the panel, naming the real benefit */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 11px;
  animation: floaty 5s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.float-card small {
  font-size: 12px;
  color: var(--text-muted);
}

.float-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon svg {
  width: 17px;
  height: 17px;
}

.float-a {
  top: 11%;
  left: -34px;
}

.float-b {
  bottom: 14%;
  right: -28px;
  animation-delay: 1.6s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Movement is decoration; anyone who asked for less of it gets none */
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   Who it is for
   ===================================================== */
.section {
  padding: 84px 0;
}

.section-cream {
  background: var(--bg-cream);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.badge-farmer {
  background: #e8f3e9;
  color: var(--primary-dark);
}

.badge-buyer {
  background: #fdf1dd;
  color: #9a6208;
}

.audience-card h3 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.audience-card > p {
  color: var(--text-muted);
  margin: 0 0 22px;
}

.step-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 15px;
}

.step-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.step-list .step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.audience-card.is-buyer .step-list .step-num {
  background: var(--accent-yellow);
}

.step-list strong {
  display: block;
  font-size: 15px;
}

.step-list span {
  font-size: 14px;
  color: var(--text-muted);
}

/* =====================================================
   Features
   ===================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e8f3e9;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   Closing call to action
   ===================================================== */
.cta {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.14), transparent 50%),
    linear-gradient(135deg, var(--primary-green), var(--primary-dark));
  border-radius: 26px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cta p {
  font-size: 17px;
  color: #dcecdd;
  margin: 0 0 30px;
  max-width: 520px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  padding: 46px 0 34px;
  border-top: 1px solid var(--border-soft);
  margin-top: 84px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-green);
}

/* =====================================================
   Narrower screens
   ===================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-art {
    max-width: 420px;
    margin: 0 auto;
  }

  .float-a { left: 0; }
  .float-b { right: 0; }

  .audience-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .header-nav .nav-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }

  .hero { padding: 44px 0 56px; }

  .section { padding: 58px 0; }

  .hero-cta .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .audience-card { padding: 26px 22px; }

  .cta { padding: 44px 24px; border-radius: 20px; }

  .brand-sub { display: none; }

  /* Sign in stays reachable; the sign-up prompt is repeated further
     down the page anyway, so it is dropped from the bar here. */
  .header-actions .btn-ghost { display: none; }

  .footer-inner { justify-content: center; text-align: center; }
}
