/* AgriPal website — shared styles. Brand colours mirror the app
   (lib/theme/agripal_theme.dart). Pure CSS, no external dependencies,
   so it hosts anywhere as static files. */

:root {
  --bg-dark: #0D1F0D;
  --bg-secondary: #152618;
  --card-dark: #1A2E1A;
  --green-dark: #1B4D2E;
  --green: #2D6A3E;
  --green-light: #4A8B5C;
  --lime: #A8E063;
  --gold: #E8C158;
  --gold-dark: #D4A53A;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --danger: #CC3232;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Wheat-field photo behind everything, mirroring the app, with a dark
   green wash so text stays readable. Fixed via a pseudo-element (rather
   than background-attachment:fixed, which is unreliable on mobile). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(13, 31, 13, 0.84), rgba(13, 31, 13, 0.93)),
    url('bg.jpg') center center / cover no-repeat;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 31, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand-mark { height: 38px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 30px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .08s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lime); color: #102810; }
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(168, 224, 99, .25); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost:hover { text-decoration: none; border-color: var(--lime); color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 80px;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(45,106,62,.45), transparent 70%);
  text-align: center;
}
.hero-logo {
  height: 150px; width: auto; display: block; margin: 0 auto 26px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(168,224,99,.12); color: var(--lime);
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid rgba(168,224,99,.25); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero h1 .accent { color: var(--lime); }
.hero p.lead {
  font-size: clamp(16px, 2.4vw, 20px); color: var(--text-muted);
  max-width: 620px; margin: 22px auto 30px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: rgba(21, 38, 24, 0.55); }
.section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; text-align: center; letter-spacing: -.5px; }
.section .sub { text-align: center; color: var(--text-muted); max-width: 600px; margin: 14px auto 0; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid; gap: 18px; margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card-dark); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 26px;
}
.card .ic { font-size: 28px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.price-box {
  max-width: 420px; margin: 46px auto 0; text-align: center;
  background: var(--card-dark); border: 1px solid rgba(168,224,99,.3);
  border-radius: 20px; padding: 38px 30px;
}
.price-box .amount { font-size: 48px; font-weight: 800; color: var(--text); }
.price-box .amount span { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.price-box .trial { color: var(--lime); font-weight: 700; margin: 6px 0 20px; }
.price-box ul { list-style: none; text-align: left; margin: 22px 0; }
.price-box li { padding: 7px 0; color: var(--text-muted); }
.price-box li::before { content: "✓"; color: var(--lime); font-weight: 800; margin-right: 10px; }

/* ---------- Legal / text pages ---------- */
.doc { padding: 56px 0 72px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.doc .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; color: var(--lime); }
.doc p, .doc li { color: var(--text-muted); margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 22px; }
.doc .note {
  background: rgba(232,193,88,.08); border: 1px solid rgba(232,193,88,.3);
  border-radius: 12px; padding: 16px 18px; color: var(--text-muted); font-size: 14px;
}

/* ---------- Confirmation page ---------- */
.confirm-wrap { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.confirm-card { max-width: 480px; }
.confirm-check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 26px;
  background: rgba(168,224,99,.15); border: 2px solid var(--lime);
  display: grid; place-items: center; font-size: 46px; color: var(--lime);
}
.confirm-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.confirm-card p { color: var(--text-muted); font-size: 16px; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.contact-card { background: var(--card-dark); border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:26px; text-align:center; }
.contact-card .ic { font-size: 30px; display:block; margin-bottom: 10px; }
.contact-card a { font-weight: 700; }

/* ---------- Footer ---------- */
footer { background: rgba(21, 38, 24, 0.65); border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0 30px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 18px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--text-muted); font-size: 14px; }
.copyright { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 26px; }

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