/*
 * ════════════════════════════════════════════════════════════════════
 * landing.css — Landing Page Styles ONLY
 * ════════════════════════════════════════════════════════════════════
 * Depends on: shared.css (must be loaded first in HTML)
 * Page: /starter-kit
 * ════════════════════════════════════════════════════════════════════
 */

/* ── HERO SECTION ───────────────────────────────────────────────────
 * Full-viewport height intro with gradient background.
 * Two-column layout on desktop, stacked on mobile.
 * ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: 90px; /* Clears fixed nav */
  background: linear-gradient(
    160deg,
    var(--white) 0%,
    var(--beige) 55%,
    #e6f0ea 100%
  );
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Decorative radial gradient — top right */
#hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(15, 81, 50, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Decorative radial gradient — bottom left */
#hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(200, 169, 107, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Inner grid container */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--space-md);
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr; /* Stacked on mobile */
  position: relative;
  z-index: 1; /* Above ::before and ::after */
}

/* Side-by-side on larger screens */
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ── Hero badge (animated pill) ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  border: 1px solid rgba(15, 81, 50, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

/* Pulsing gold dot inside badge */
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* ── Hero headline ── */
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-headline .accent {
  color: var(--green);
}

/* ── Hero subheading ── */
.hero-sub {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ── Hero opt-in form ── */
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-form input {
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.hero-form input:focus {
  border-color: var(--green);
}

.hero-form input::placeholder {
  color: #9ca3af;
}

/* ── Hero trust line ────────────────────────────────────────────────
 * Centered under the submit button.
 * max-width matches .hero-form (480px) so it stays within
 * the button's boundaries — not centered to the whole page.
 * Same pattern as .optin-privacy under the gold button below.
 * ──────────────────────────────────────────────────────────────── */
.hero-trust {
  max-width: 480px; /* Must match .hero-form max-width exactly */
  text-align: center; /* Centers text within the form/button width */
  margin-top: 8px; /* Tight gap below button — same as optin-privacy */
  font-size: 0.75rem; /* Same size as optin-privacy */
  color: var(--gray);
  animation: fadeUp 0.6s 0.4s ease both;
}

/* ── DASHBOARD MOCKUP (Hero visual) ────────────────────────────────
 * Animated card showing a fake budget dashboard.
 * Floats gently up and down to draw the eye.
 * ──────────────────────────────────────────────────────────────── */
.hero-visual {
  animation: fadeUp 0.8s 0.2s ease both;
  position: relative;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--space-md);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 28px;
  animation: floatY 5s ease-in-out infinite;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dash-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.dash-month {
  font-size: 0.75rem;
  color: var(--gray);
  background: var(--gray-light);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Green gradient balance card */
.dash-balance {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 16px;
  padding: 24px;
  color: var(--white);
  margin-bottom: 20px;
}

.dash-balance-label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}
.dash-balance-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}
.dash-balance-sub {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* Progress bars */
.dash-progress-section {
  margin-bottom: 20px;
}

.dash-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
  color: var(--black);
  font-weight: 500;
}

.dash-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

/* 2-column categories grid */
.dash-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-cat {
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.dash-cat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.dash-cat-name {
  font-size: 0.7rem;
  color: var(--gray);
}
.dash-cat-amount {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── FLOATING BADGES (on dashboard card) ────────────────────────── */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.float-badge.top-left {
  top: -16px;
  left: -20px;
  animation: floatY 4s 0.5s ease-in-out infinite;
}
.float-badge.bottom-right {
  bottom: -16px;
  right: -20px;
  animation: floatY 4s 1s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.badge-dot.green {
  background: #22c55e;
}
.badge-dot.gold {
  background: var(--gold);
}

/* ── PAIN POINTS SECTION ────────────────────────────────────────── */
#pain {
  background: var(--black);
}

#pain .section-label {
  color: var(--gold);
}
#pain .section-title {
  color: var(--white);
}
#pain .section-sub {
  color: #9ca3af;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pain-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
}

.pain-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.pain-card p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.65;
}

/* Green hopeful block below pain cards */
.pain-hopeful {
  margin-top: 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--green) 0%, #1a7a4a 100%);
  border-radius: var(--radius-md);
  padding: 40px;
  color: var(--white);
}

.pain-hopeful h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.pain-hopeful p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

/* ── WHAT'S INSIDE SECTION ──────────────────────────────────────── */
#kit {
  background: var(--beige);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.kit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.kit-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 81, 50, 0.15);
}

.kit-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.kit-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.kit-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── WHY FAIL SECTION ───────────────────────────────────────────── */
#why-fail {
  background: var(--white);
}

.fail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .fail-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.fail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff8f8;
  border-radius: 14px;
  border-left: 4px solid #ef4444;
}

.fail-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.fail-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.fail-item p {
  font-size: 0.825rem;
  color: var(--gray);
  line-height: 1.55;
}

/* Green solution box */
.solution-box {
  background: linear-gradient(135deg, var(--green) 0%, #1a7a4a 100%);
  border-radius: var(--space-md);
  padding: 40px;
  color: var(--white);
}

.solution-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.solution-box p {
  opacity: 0.85;
  line-height: 1.75;
  margin-bottom: 24px;
}

.solution-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ── WHY DIFFERENT SECTION ──────────────────────────────────────── */
#different {
  background: var(--beige);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.diff-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Green-to-gold top border accent */
.diff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Large number — decorative */
.diff-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 12px;
}

.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.diff-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── TESTIMONIALS SECTION ───────────────────────────────────────── */
#testimonials {
  background: var(--white);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.testi-card {
  background: var(--beige);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(200, 169, 107, 0.3);
  transition: all 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}

.testi-quote {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: 0.875rem;
}
.testi-handle {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ── ABOUT SECTION ──────────────────────────────────────────────── */
#about {
  background: var(--black);
}

#about .section-title {
  color: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: auto 1fr;
  }
}

.about-avatar-wrap {
  text-align: center;
}

.about-avatar-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto 16px;
}

.about-role {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-content p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}
.about-content strong {
  color: var(--white);
}

/* ── OPT-IN SECTION (second form) ───────────────────────────────── */
#optin {
  background: linear-gradient(135deg, var(--green) 0%, #0a3d24 100%);
}

#optin .section-label {
  color: var(--gold-light);
}
#optin .section-title {
  color: var(--white);
}
#optin .section-sub {
  color: rgba(255, 255, 255, 0.8);
}

.optin-form {
  max-width: 520px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.optin-form input {
  padding: 18px 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.optin-form input:focus {
  border-color: var(--gold);
}
.optin-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.optin-privacy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.optin-privacy span {
  margin: 0 4px;
}

/* ── FINAL CTA SECTION ──────────────────────────────────────────── */
#final {
  background: var(--beige);
}

.final-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.final-stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.final-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 6px;
}
.final-stat-label {
  font-size: 0.8rem;
  color: var(--gray);
}

.final-cta-box {
  text-align: center;
  background: var(--white);
  border-radius: var(--space-md);
  padding: 60px 40px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--green-pale);
}

.final-cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.final-cta-box h2 .accent {
  color: var(--green);
}
.final-cta-box p {
  color: var(--gray);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.final-cta-box .btn-primary {
  margin: 0 auto;
  max-width: 340px;
  font-size: 1.05rem;
  padding: 20px 36px;
}

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

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q:hover {
  color: var(--green);
}

.faq-arrow {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--green);
  font-size: 0.75rem;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 22px;
}

/* ── STICKY MOBILE CTA ──────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hidden on tablet and above */
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta .btn-primary {
  flex: 1;
  padding: 14px;
  font-size: 0.9rem;
}

/* ── FORM ERROR MESSAGES ────────────────────────────────────────── */
/* Injected dynamically by landing.js */
.__field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  text-align: left;
  padding-left: 4px;
}
