/* ==========================================================================
   Ecocollects Landing Page — Styles
   Brand colors mirrored from lib/app/theme.dart
   ========================================================================== */

:root {
  --primary: #1B7A4A;
  --primary-light: #4CAF50;
  --primary-dark: #0D5C35;
  --secondary: #FF9800;
  --secondary-light: #FFB74D;
  --secondary-dark: #E65100;

  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-500: #9E9E9E;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 100px;

  --shadow-sm: 0 2px 8px rgba(13, 92, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 92, 53, 0.10);
  --shadow-lg: 0 20px 48px rgba(13, 92, 53, 0.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--neutral-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-round);
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230,81,0,0.18);
}
.btn--secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--neutral-300);
}
.btn--ghost:hover { border-color: var(--primary); background: rgba(27,122,74,0.06); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled,
.nav.is-open {
  background-color: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--neutral-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--primary-dark);
}
.nav__brand img { border-radius: 8px; }
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--neutral-700);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--primary); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--neutral-900); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(76,175,80,0.16), transparent 70%),
    radial-gradient(50% 40% at 10% 20%, rgba(255,152,0,0.10), transparent 70%),
    linear-gradient(180deg, #FAFDF9 0%, #FFFFFF 60%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: rgba(27,122,74,0.08);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-round);
  margin-bottom: 20px;
}
.hero__copy h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--neutral-900);
}
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 18px;
  color: var(--neutral-700);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 800;
}
.stat span {
  font-size: 13px;
  color: var(--neutral-600);
  max-width: 140px;
  display: inline-block;
}

/* ---------- Hero visual (phone mock) ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  min-height: 560px;
  background: var(--neutral-900);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: var(--neutral-900);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  background: var(--neutral-50);
  border-radius: 28px;
  height: 100%;
  padding: 36px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.mock-card--brand {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-row--between { justify-content: space-between; }
.mock-logo { border-radius: 6px; background: #fff; padding: 2px; }
.mock-title { font-weight: 700; font-size: 14px; }
.mock-sub { font-size: 12px; opacity: 0.85; }
.mock-label { font-size: 12px; color: var(--neutral-600); font-weight: 600; }
.mock-badge {
  background: rgba(255,152,0,0.14);
  color: var(--secondary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-round);
}
.mock-map {
  position: relative;
  height: 96px;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, #E7F6EC 25%, transparent 25%) 0 0/16px 16px,
    linear-gradient(#F0F7F2, #F0F7F2);
  overflow: hidden;
}
.mock-map__pin { position: absolute; font-size: 20px; }
.mock-map__pin--driver { top: 14px; left: 20px; }
.mock-map__pin--home { bottom: 10px; right: 24px; }
.mock-map__route {
  position: absolute;
  top: 30px; left: 34px;
  width: 60%; height: 40px;
  border: 2px dashed var(--primary-light);
  border-radius: 0 0 0 30px;
  border-top: none;
  border-right: none;
}
.mock-eta { font-size: 12px; color: var(--neutral-600); }
.mock-amount { font-weight: 800; color: var(--primary-dark); font-size: 15px; }
.mock-sub-row { font-size: 12px; color: var(--neutral-600); margin-top: 6px; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 1;
}
.blob--1 {
  width: 140px; height: 140px;
  background: rgba(255,152,0,0.16);
  top: -20px; right: 0;
}
.blob--2 {
  width: 180px; height: 180px;
  background: rgba(76,175,80,0.14);
  bottom: -30px; left: -20px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  padding: 20px 0;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-strip__inner > span:first-child {
  font-size: 13px;
  color: var(--neutral-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-strip__logos { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-strip__logos span {
  font-weight: 700;
  color: var(--neutral-600);
  font-size: 15px;
}

/* ---------- Sections (generic) ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--neutral-50); }
.section__head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section__head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
  color: var(--neutral-900);
}
.section__head p { color: var(--neutral-600); font-size: 16px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--icon-bg, #E7F6EC);
  color: var(--icon-color, var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--neutral-600); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--neutral-200);
  position: relative;
}
.step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--neutral-600); font-size: 14px; }

/* ---------- Drivers ---------- */
.drivers__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.drivers__copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 10px 0 18px; }
.drivers__copy p { color: var(--neutral-600); font-size: 16px; margin-bottom: 22px; }
.drivers__copy strong { color: var(--neutral-900); }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--neutral-800);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: rgba(27,122,74,0.12);
  color: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.earnings-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.earnings-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.earnings-card__head span:first-child { font-size: 13px; opacity: 0.85; }
.earnings-card__amount { font-size: 26px; font-weight: 800; }
.earnings-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-round);
  margin-bottom: 20px;
  overflow: hidden;
}
.earnings-bar span {
  display: block; height: 100%;
  background: var(--secondary);
  border-radius: var(--radius-round);
}
.earnings-card__row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}
.price-card__badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--neutral-800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-round);
}
.price-card__badge--popular { background: var(--secondary); }
.price-card h3 { font-size: 16px; margin: 8px 0 10px; }
.price-card__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.price-card__price span { font-size: 13px; font-weight: 500; color: var(--neutral-500); }
.price-card__desc { font-size: 13px; color: var(--neutral-600); margin-bottom: 16px; min-height: 40px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; flex: 1; }
.price-card ul li {
  font-size: 13px;
  color: var(--neutral-800);
  padding-left: 20px;
  position: relative;
}
.price-card ul li::before {
  content: '•';
  color: var(--primary);
  position: absolute; left: 4px;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--neutral-600); font-size: 14.5px; }

/* ---------- CTA / Waitlist ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.88); font-size: 16px; margin-bottom: 32px; }
.cta__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}
.cta__form input,
.cta__form select {
  font-family: var(--font);
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: var(--radius-round);
  border: none;
  outline: none;
}
.cta__form input { flex: 1 1 240px; min-width: 220px; }
.cta__form select { background: #fff; color: var(--neutral-800); cursor: pointer; }
.cta__form .btn { flex: 0 0 auto; }
.cta__hint { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 36px; }
.cta__hint--success { color: #C8F5D8; font-weight: 600; }

.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
a.store-badge:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--neutral-900); color: var(--neutral-300); padding: 64px 0 24px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.footer__brand span { font-weight: 800; font-size: 17px; color: #fff; }
.footer__brand img { border-radius: 6px; }
.footer__brand p { width: 100%; font-size: 13px; color: var(--neutral-500); margin-top: 8px; }
.footer__col h4 { color: #fff; font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer__col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--neutral-400); transition: color 0.15s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: 24px;
  font-size: 13px;
  color: var(--neutral-500);
  text-align: center;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 24px; }
  .drivers__inner { grid-template-columns: 1fr; }
  .drivers__visual { order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
  }
  .hero { padding: 128px 0 64px; }
  .grid--3, .grid--5 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-card--popular { transform: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .phone { width: 260px; min-height: 500px; }
}

/* ==========================================================================
   Legal pages (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin: 0 0 8px;
}
.legal__meta {
  color: var(--neutral-600);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 10px;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--neutral-800);
}
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--primary-dark); }
.legal__notice {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14px;
}
