/* ===========================
   GREEN LIGHT CDL — style.css
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #16a34a;
  --green-dark: #14532d;
  --green-light: #dcfce7;
  --green-mid: #bbf7d0;
  --black: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
p { color: var(--gray-700); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(22,163,74,.3); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--black); transform: translateY(-1px); }

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.1rem; border-radius: 14px; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.2rem; border-radius: 16px; }

/* =============================
   NAVIGATION
   ============================= */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================
   HERO
   ============================= */
#hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(160deg, #0f172a 0%, #14532d 60%, #16a34a 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(22,163,74,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(20,83,45,.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-truck-wrap {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  aspect-ratio: 4/3;
}

.hero-truck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.92) saturate(1.1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(22,163,74,.2);
  border: 1px solid rgba(22,163,74,.4);
  color: #86efac;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

#hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

#hero h1 span { color: #4ade80; }

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #86efac;
  font-size: .9rem;
  font-weight: 600;
}
.trust-badge svg { flex-shrink: 0; }

.social-proof {
  color: #94a3b8;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.social-proof strong { color: #cbd5e1; }

/* =============================
   PAIN SECTION
   ============================= */
#pain { background: var(--white); }

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.pain-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 1rem;
}
.pain-item:last-child { margin-bottom: 0; }

.pain-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pain-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: var(--black); }
.pain-item p { font-size: .925rem; color: var(--gray-500); }

.pain-founder {
  background: linear-gradient(135deg, var(--green-dark) 0%, #15803d 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
}
.pain-founder .quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dcfce7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.pain-founder .founder-sig {
  font-weight: 700;
  color: white;
  font-size: .95rem;
}
.pain-founder .founder-sig span { display: block; color: #86efac; font-size: .85rem; font-weight: 500; }

/* =============================
   HOW IT WORKS
   ============================= */
#how-it-works { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -.04em;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 { margin-bottom: .75rem; color: var(--black); }
.feature-card p { font-size: .95rem; color: var(--gray-500); line-height: 1.7; }

.feature-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 100px;
  margin-top: 1rem;
  letter-spacing: .04em;
}

/* =============================
   MYTH BUSTER
   ============================= */
#myth-buster {
  background: var(--black);
  color: var(--white);
}

#myth-buster h2 { color: var(--white); }
#myth-buster .section-label { background: rgba(22,163,74,.2); color: #86efac; }

.myth-sub {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem 0 3rem;
  line-height: 1.7;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}
.comparison-table th:first-child { background: #1e293b; color: #94a3b8; width: 35%; }
.comparison-table th:nth-child(2) { background: #1e293b; color: #ef4444; text-align: center; }
.comparison-table th:nth-child(3) { background: var(--green); color: white; text-align: center; }

.comparison-table td {
  padding: 1rem 1.5rem;
  font-size: .95rem;
  border-bottom: 1px solid #1e293b;
}
.comparison-table td:first-child { background: #0f172a; color: #94a3b8; font-weight: 500; }
.comparison-table td:nth-child(2) { background: #160a0a; color: #fca5a5; text-align: center; }
.comparison-table td:nth-child(3) { background: #052e16; color: #86efac; text-align: center; font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }

.myth-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.myth-savings {
  font-size: 1.5rem;
  font-weight: 800;
  color: #4ade80;
}
.myth-savings span { display: block; font-size: .9rem; color: #94a3b8; font-weight: 500; }

/* =============================
   WHAT'S INCLUDED
   ============================= */
#included { background: var(--white); }

.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.included-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--gray-100);
}
.included-card.primary {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: var(--green);
}
.included-card.secondary {
  background: var(--bg);
  border-color: var(--gray-200, #e2e8f0);
}

.included-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.included-card .price-tag {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}
.included-card .price-tag span { font-size: 1rem; color: var(--gray-500); font-weight: 500; margin-left: .25rem; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--gray-700);
}
.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.included-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(22,163,74,.08);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--green-dark);
  font-style: italic;
}

/* =============================
   PRICING
   ============================= */
#pricing { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-100);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--green);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .05em;
}

.pricing-card h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--black); }

.price-display {
  margin-bottom: 1.5rem;
}
.price-original {
  font-size: 1.1rem;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-bottom: .25rem;
}
.price-current {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  letter-spacing: -.04em;
}
.price-current sup { font-size: 1.5rem; vertical-align: top; margin-top: .5rem; }

.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }

.guarantee-strip {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.guarantee-icon { font-size: 2.5rem; flex-shrink: 0; }
.guarantee-text h4 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .25rem; }
.guarantee-text p { font-size: .9rem; color: var(--gray-700); }

/* =============================
   FAQ
   ============================= */
#faq { background: var(--white); }

.faq-container {
  max-width: 780px;
  margin: 3rem auto 0;
}

.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question.open { background: var(--green-light); color: var(--green-dark); }

.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-question.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--green);
}
.faq-question.open .faq-chevron svg { stroke: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer.open { max-height: 300px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.75;
}

/* =============================
   FINAL CTA
   ============================= */
#final-cta {
  background: linear-gradient(135deg, var(--black) 0%, var(--green-dark) 100%);
  text-align: center;
  padding: 6rem 0;
}
#final-cta h2 { color: white; margin-bottom: 1rem; }
#final-cta p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--black);
  color: #64748b;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.footer-tagline { font-size: .9rem; color: #64748b; margin-top: .25rem; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a { font-size: .9rem; color: #64748b; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: .85rem; }

/* =============================
   THANK YOU PAGE
   ============================= */
.ty-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0f172a 0%, #14532d 60%, #16a34a 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

.ty-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.ty-emoji { font-size: 4rem; margin-bottom: 1rem; }
.ty-card h1 { font-size: 2.4rem; margin-bottom: .75rem; }
.ty-card > p { color: var(--gray-700); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }

.ty-steps {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ty-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.ty-step-num {
  width: 30px;
  height: 30px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.ty-steps strong { display: block; font-size: .95rem; color: var(--black); }
.ty-steps span { font-size: .875rem; color: var(--gray-500); }

.ty-share {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}
.ty-share p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1rem; }

/* =============================
   STATE PAGES
   ============================= */
.state-hero {
  background: linear-gradient(160deg, #0f172a 0%, #14532d 70%, #16a34a 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.state-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(22,163,74,.2) 0%, transparent 70%);
  pointer-events: none;
}
.state-hero .hero-content { position: relative; z-index: 1; max-width: 760px; }
.state-hero h1 { color: white; margin-bottom: 1rem; }
.state-hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 600px; line-height: 1.7; }
.state-breadcrumb {
  color: #86efac;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.state-breadcrumb a { color: #86efac; text-decoration: underline; text-underline-offset: 3px; }

/* =============================
   UTILITIES
   ============================= */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden-mobile { display: block; }
.show-mobile { display: none; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    gap: 1rem;
    z-index: 999;
  }

  .pain-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .comparison-table th:first-child,
  .comparison-table td:first-child { width: 40%; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  #hero { padding: 4rem 0 3rem; }
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-truck-wrap { aspect-ratio: 16/9; order: -1; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .trust-badges { gap: .875rem; }
  .guarantee-strip { flex-direction: column; text-align: center; }
  .ty-card { padding: 2rem 1.5rem; }
  .myth-cta-row { flex-direction: column; align-items: flex-start; }

  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: .75rem .875rem; }

  .hidden-mobile { display: none; }
  .show-mobile { display: block; }
}
