/* 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.
   18 Aug 2026 — full visual refresh: glass surfaces, gradient accents,
   phone-frame hero video, store badges, social icons. Class names kept
   compatible with all existing pages. */

:root {
  --bg-dark: #0B1B0C;
  --bg-secondary: #122413;
  --card-dark: rgba(26, 46, 26, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --green-dark: #1B4D2E;
  --green: #2D6A3E;
  --green-light: #4A8B5C;
  --lime: #A8E063;
  --gold: #E8C158;
  --gold-dark: #D4A53A;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.74);
  --text-faint: rgba(255, 255, 255, 0.5);
  --danger: #CC3232;
  --max-width: 1120px;
  --radius: 20px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Wheat-field photo behind everything with a deep green wash. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(11, 27, 12, 0.88), rgba(11, 27, 12, 0.95)),
    url('bg.jpg') center center / cover no-repeat;
}

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

img { max-width: 100%; }

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

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 27, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.3px; }
.brand-mark { height: 40px; 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; transition: color .15s ease; }
.nav-links a:hover { color: var(--lime); 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: 14px 28px; border-radius: 14px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .25s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--lime), #8BC94F);
  color: #0F2410;
  box-shadow: 0 6px 20px rgba(168, 224, 99, 0.22);
}
.btn-primary:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(168, 224, 99, .32); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1.5px solid rgba(255,255,255,.22); }
.btn-ghost:hover { text-decoration: none; border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

/* ---------- Store badges (Apple + Google) ---------- */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px; padding: 10px 20px 10px 16px;
  color: var(--text); line-height: 1.25;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--lime); background: rgba(0,0,0,.7); }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .sb-small { display: block; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.store-badge .sb-big { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }

/* ---------- Hero (two-column with phone video) ---------- */
.hero {
  padding: 64px 0 84px;
  background:
    radial-gradient(1100px 520px at 20% -10%, rgba(45, 106, 62, .5), transparent 70%),
    radial-gradient(900px 420px at 95% 10%, rgba(232, 193, 88, .12), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}
.hero-copy { text-align: left; }
.hero-logo { height: 120px; width: auto; display: block; margin: 0 0 26px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(168,224,99,.1); color: var(--lime);
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid rgba(168,224,99,.3); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--lime), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--text-muted);
  max-width: 560px; margin: 22px 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }

/* Centered hero variant (subpages keep their old markup) */
.hero > .container > .hero-logo { margin-left: auto; margin-right: auto; }
.hero > .container:not(.hero-grid) { text-align: center; }
.hero > .container:not(.hero-grid) .hero-cta { justify-content: center; }

/* ---------- Phone frame with looping video ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  position: relative;
  width: min(300px, 72vw);
  border-radius: 44px;
  background: #0A120A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 10px #050A05,
    var(--shadow-lg),
    0 0 80px rgba(168, 224, 99, 0.08);
  overflow: hidden;
  transform: rotate(2.5deg);
}
.phone::after { /* notch */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #050A05; border-radius: 999px; z-index: 3;
}
.phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 34px; }
.phone-sound {
  position: absolute; right: 18px; bottom: 18px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11, 27, 12, 0.75); color: var(--text); font-size: 18px;
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.phone-sound:hover { background: rgba(45, 106, 62, 0.9); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt {
  background: linear-gradient(rgba(18, 36, 19, 0.6), rgba(18, 36, 19, 0.6));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-align: center; letter-spacing: -1px; }
.section .sub { text-align: center; color: var(--text-muted); max-width: 640px; margin: 14px auto 0; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid; gap: 18px; margin-top: 50px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 224, 99, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.card .ic {
  font-size: 24px; margin-bottom: 14px;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,106,62,.55), rgba(168,224,99,.14));
  border: 1px solid rgba(168,224,99,.22);
  display: grid; place-items: center;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.2px; }
.card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.price-box {
  max-width: 440px; margin: 50px auto 0; text-align: center;
  background: var(--card-dark);
  border: 1px solid rgba(168,224,99,.32);
  border-radius: 24px; padding: 42px 32px;
  box-shadow: 0 0 60px rgba(168, 224, 99, 0.07), var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.price-box .amount { font-size: 52px; font-weight: 800; letter-spacing: -2px; color: var(--text); }
.price-box .amount span { font-size: 18px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.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: 8px 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; letter-spacing: -.8px; }
.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 var(--card-border); border-radius: var(--radius); padding:26px; text-align:center; backdrop-filter: blur(8px); }
.contact-card .ic { font-size: 30px; display:block; margin-bottom: 10px; }
.contact-card a { font-weight: 700; }

/* ---------- Social icons ---------- */
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  transition: transform .12s ease, border-color .15s ease, color .15s ease;
}
.social-icons a:hover { transform: translateY(-2px); border-color: var(--lime); color: var(--lime); text-decoration: none; }
.social-icons svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
footer { background: rgba(18, 36, 19, 0.7); border-top: 1px solid var(--card-border); padding: 46px 0 30px; backdrop-filter: blur(8px); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.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; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .store-badge, .social-icons a { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-cta, .hero-copy .store-badges { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .phone { transform: none; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-secondary);
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; border-top: 1px solid rgba(255,255,255,.05); }
  .nav-toggle { display: block; }
  .hero-logo { height: 96px; }
}

/* 14 Jul 2026 — nav sign-in button (launch update) */
.btn-nav { padding: 9px 18px; font-size: 14px; border-radius: 11px; }
@media (max-width: 760px) {
  .btn-nav { margin: 12px 20px; display: inline-block; width: auto; }
}
