/* ═══ CSS Variables ═══ */
:root {
  --green-primary: #1AAB5C;
  --green-dark: #148A48;
  --green-deeper: #0D6B37;
  --green-light: #E6F7ED;
  --green-banner: #2DC26B;
  --green-mist: #D0F0DC;
  --white: #FFFFFF;
  --off-white: #F5FAF7;
  --text-dark: #1A1A1A;
  --text-body: #3D3D3D;
  --text-muted: #6B7280;
  --font-display: 'Ubuntu', Helvetica, Arial, sans-serif;
  --font-body: 'Ubuntu', Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
}

main { flex: 1; }

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

/* ═══ Utilities ═══ */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container--content { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══ Navbar ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230,247,237,0.6);
}

.navbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo { height: 2.25rem; width: auto; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 24px rgba(26,171,92,0.3), 0 1px 3px rgba(26,171,92,0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
  box-shadow: 0 8px 40px rgba(26,171,92,0.45), 0 2px 6px rgba(26,171,92,0.2);
  transform: translateY(-2px);
}

.btn-cta--large {
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  gap: 0.75rem;
}

.btn-cta--shimmer {
  background: linear-gradient(90deg, var(--green-primary) 0%, #3DD68C 50%, var(--green-primary) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.btn-cta--white {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: none;
  transition: all 0.3s ease;
}

.btn-cta--white:hover {
  background: var(--green-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.btn-cta svg { flex-shrink: 0; }

@media (max-width: 639px) {
  .btn-cta--nav { display: none; }
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--green-light), var(--white), rgba(208,240,220,0.4));
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.hero__blob--1 {
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(26,171,92,0.05);
}

.hero__blob--2 {
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: rgba(45,194,107,0.05);
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero__checkmark {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.6s ease-out forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.4s forwards;
}

.hero__title span { color: var(--green-primary); }

.hero__body {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--text-body);
  max-width: 36rem;
  margin: 0 auto 1rem;
  line-height: 1.625;
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.6s forwards;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.75s forwards;
}

.hero__cta-wrap {
  opacity: 0;
  animation: fadeUp 0.7s ease-out 0.9s forwards;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.2s forwards;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero__trust-divider {
  width: 1px;
  height: 1rem;
  background: var(--green-mist);
}

.hero__stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero__stars span { margin-left: 0.25rem; }

@media (max-width: 639px) {
  .hero__trust-hide-mobile { display: none; }
}

/* Noise overlay */
.noise-overlay { position: relative; }
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
}

/* ═══ How It Works ═══ */
.hiw { padding: 5rem 1.5rem; background: var(--white); }

.hiw__inner { max-width: 64rem; margin: 0 auto; }

.section-label {
  text-align: center;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 3.5rem;
}

.hiw__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hiw__grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--off-white);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(230,247,237,0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,171,92,0.12), 0 2px 8px rgba(0,0,0,0.04);
}

.step-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background: var(--green-light);
  margin-bottom: 1.25rem;
}

.step-card__step {
  display: block;
  color: rgba(26,171,92,0.4);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.step-card__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ═══ Benefits ═══ */
.benefits {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.benefits__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--off-white), rgba(230,247,237,0.3));
}

.benefits__inner {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .benefits__inner { grid-template-columns: repeat(2, 1fr); }
}

.benefits__label {
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.benefits__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.benefits__title span { color: var(--green-primary); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(230,247,237,0.6);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.benefit-list { display: flex; flex-direction: column; gap: 1.25rem; }

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-item__check {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(26,171,92,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item__title {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.benefit-item__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ═══ CTA Banner ═══ */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--green-dark), var(--green-primary), var(--green-banner));
}

.cta-banner__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner__body {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* ═══ Footer ═══ */
.footer {
  background: var(--white);
  border-top: 1px solid rgba(230,247,237,0.6);
  padding: 2.5rem 1.5rem;
}

.footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  height: 2rem;
  width: auto;
  margin: 0 auto 1.25rem;
}

.footer__disclaimer {
  background: rgba(45,194,107,0.1);
  border: 1px solid rgba(45,194,107,0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.footer__disclaimer p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-body);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__copy a {
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__copy a:hover { color: var(--green-primary); }

/* ═══ Legal Pages ═══ */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.legal-content .date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--text-body);
  margin-bottom: 0.375rem;
}

.legal-content .contact-box {
  background: rgba(230,247,237,0.4);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* ═══ Animations ═══ */
@keyframes checkDraw {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes checkCircle {
  0% { stroke-dashoffset: 314; }
  100% { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-check-circle {
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: checkCircle 0.8s ease-out 0.3s forwards;
}

.animate-check-mark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.5s ease-out 0.9s forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
