/* Same palette as the main app (src/index.css) — bamboo-green brand */
:root {
  --background: hsl(89 18% 94%);
  --foreground: hsl(220 20% 10%);
  --card: hsl(0 0% 100%);
  --primary: hsl(89 30% 45%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(89 36% 87%);
  --secondary-foreground: hsl(220 20% 10%);
  --muted-foreground: hsl(100 12% 40%);
  --border: hsl(89 28% 78%);
  --credit: hsl(89 30% 45%);
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .btn, .step-label, .badge {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
}

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

.icon { width: 1em; height: 1em; }

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

.muted { color: var(--muted-foreground); }

/* Nav */
.nav-inner, .section-inner, .footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .nav-inner, .section-inner, .footer-inner { padding: 0 2rem; } }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-logo { height: 2rem; width: 2rem; border-radius: 0.5rem; background: var(--primary); padding: 0.375rem; }
.brand-logo.small { height: 1.25rem; width: 1.25rem; padding: 0.25rem; }
.brand-name { font-size: 1.125rem; letter-spacing: -0.01em; }

.nav-link { font-size: 0.875rem; font-weight: 700; }
.nav-link:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 1.25rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, hsl(89 30% 45% / 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 20%, hsl(43 80% 50% / 0.14), transparent 55%),
    var(--background);
}
@media (min-width: 640px) { .hero { padding: 4rem 2rem 6rem; } }
.hero-inner { position: relative; max-width: 56rem; margin: 0 auto; text-align: center; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--secondary); color: var(--secondary-foreground);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.badge .icon { color: var(--primary); }

h1 {
  font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
@media (min-width: 640px) { h1 { font-size: 3.75rem; } }
.accent { color: var(--primary); }

.lede {
  margin-top: 1.5rem; font-size: 1rem; color: var(--muted-foreground);
  max-width: 42rem; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .lede { font-size: 1.125rem; } }

.cta-row {
  margin-top: 2rem; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem;
}
@media (min-width: 640px) { .cta-row { flex-direction: row; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 999px; font-size: 0.875rem;
  border: 1px solid transparent; cursor: pointer; width: 100%;
}
@media (min-width: 640px) { .btn { width: auto; } }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 10px 25px -5px hsl(89 30% 45% / 0.25); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--card); border-color: var(--border); }
.btn-secondary:hover { background: var(--secondary); }
.btn-white { background: white; color: var(--primary); box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15); }
.btn-white:hover { opacity: 0.9; }

/* Sections */
.steps-section { padding: 4rem 1.25rem; background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .steps-section { padding: 4rem 2rem; } }

.section-title { text-align: center; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }

.steps-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card, .feature-card {
  border-radius: 1rem; border: 1px solid var(--border); background: var(--background); padding: 1.5rem;
}
.features-section .feature-card { background: var(--card); }
.step-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.icon-box {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: hsl(89 30% 45% / 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.icon-box.small { width: 2rem; height: 2rem; margin-bottom: 0.5rem; }
.icon-box.small .icon { width: 1rem; height: 1rem; }
.icon-box.gold { background: hsl(43 80% 50% / 0.16); }
.icon-box.gold .icon { color: hsl(43 70% 40%); }

/* Hero scan mockup — a small illustrated proof of the actual scan flow */
.scan-mock {
  position: relative; z-index: 1; margin: 3rem auto 0; max-width: 20rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.scan-card {
  position: relative; width: 11rem; height: 15.4rem; border-radius: 1rem;
  background: linear-gradient(160deg, hsl(89 30% 45%) 0%, hsl(89 40% 30%) 100%);
  box-shadow: 0 20px 40px -12px hsl(89 30% 30% / 0.35);
  overflow: hidden; border: 3px solid white;
}
.scan-card-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, hsl(0 0% 100% / 0.25), transparent 45%),
    repeating-linear-gradient(135deg, hsl(0 0% 100% / 0.06) 0 2px, transparent 2px 10px);
}
.scan-sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(to right, transparent, hsl(0 0% 100% / 0.9), transparent);
  animation: scan-sweep 2.2s ease-in-out infinite alternate;
}
@keyframes scan-sweep { 0% { top: 6%; } 100% { top: 92%; } }
.scan-chip {
  position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.375rem;
  background: white; color: var(--foreground); border-radius: 0.5rem;
  padding: 0.375rem 0.5rem; font-size: 0.625rem; font-weight: 800;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
}
.scan-chip .icon { width: 0.875rem; height: 0.875rem; color: var(--credit); flex-shrink: 0; }
.scan-price {
  display: flex; flex-direction: column; align-items: center; gap: 0.125rem;
}
.scan-price-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); font-weight: 700; }
.scan-price-value { font-size: 1.5rem; font-weight: 800; color: var(--foreground); }

.step-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 800; }

.step-card h3, .feature-card h3 { font-size: 1.125rem; margin: 0; }
.step-card p, .feature-card p { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

.features-section { padding: 5rem 1.25rem; }
@media (min-width: 640px) { .features-section { padding: 5rem 2rem; } }
.section-heading { text-align: center; max-width: 36rem; margin: 0 auto 3rem; }
.section-heading h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 640px) { .section-heading h2 { font-size: 1.875rem; } }
.section-heading p { margin-top: 0.75rem; color: var(--muted-foreground); }

.features-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.feature-card:hover { box-shadow: 0 8px 20px rgb(0 0 0 / 0.08); transform: translateY(-2px); border-color: hsl(89 30% 45% / 0.35); }
.feature-card .icon-box { margin-bottom: 0.75rem; }

.highlight-section:nth-of-type(odd) { background: hsl(89 36% 87% / 0.4); }
.highlight-section { padding: 4rem 1.25rem; }
@media (min-width: 640px) { .highlight-section { padding: 4rem 2rem; } }
.highlight-row { max-width: 56rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .highlight-row { flex-direction: row; } .highlight-row.reverse { flex-direction: row-reverse; } }
.highlight-copy, .highlight-visual { flex: 1; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.75rem;
}
.highlight-copy h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 640px) { .highlight-copy h2 { font-size: 1.875rem; } }
.highlight-copy p { margin-top: 0.75rem; color: var(--muted-foreground); }

.mini-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; box-shadow: 0 1px 3px rgb(0 0 0 / 0.06); }
.mini-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; padding: 0.25rem 0; }
.mini-strong { font-weight: 700; }
.mini-strong.up { color: var(--credit); font-weight: 800; }
.mini-bar { height: 0.375rem; border-radius: 999px; background: var(--secondary); overflow: hidden; margin: 0.5rem 0; }
.mini-bar-fill { height: 100%; width: 60%; border-radius: 999px; background: var(--primary); }

.binders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.binder-card { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--card); padding: 1rem; }
.binder-card p { margin: 0; font-size: 0.875rem; font-weight: 800; }

.final-cta-section { padding: 5rem 1.25rem; }
@media (min-width: 640px) { .final-cta-section { padding: 5rem 2rem; } }
.final-cta {
  position: relative; overflow: hidden;
  max-width: 48rem; margin: 0 auto; text-align: center; border-radius: 1.5rem;
  background: linear-gradient(155deg, hsl(89 32% 48%) 0%, hsl(89 38% 32%) 100%);
  color: var(--primary-foreground);
  padding: 3.5rem 1.5rem;
  box-shadow: 0 25px 50px -20px hsl(89 30% 25% / 0.45);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 15%, hsl(0 0% 100% / 0.16), transparent 45%);
}
.final-cta > * { position: relative; z-index: 1; }
@media (min-width: 640px) { .final-cta { padding: 4rem 1.5rem; } }
.final-cta h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
@media (min-width: 640px) { .final-cta h2 { font-size: 2.25rem; } }
.final-cta p { margin-top: 0.75rem; color: hsl(0 0% 100% / 0.85); max-width: 34rem; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: 1.75rem; }

.footer { padding: 2rem 1.25rem; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .footer { padding: 2rem 2rem; } }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
