/* ============================================
   SplitBill Landing Page — Styles
   ============================================ */

:root {
  --green-950: #0F1A0F;
  --green-900: #1A2A1A;
  --green-800: #243824;
  --green-700: #2D4A2D;
  --green-600: #3D6B3D;
  --gold: #D4A837;
  --gold-light: #E8C84A;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-900: #111827;
  --font: 'Plus Jakarta Sans', sans-serif;
  --max-w: 1140px;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.gold { color: var(--gold); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(26, 42, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.25rem; color: var(--white);
}
.nav-logo img { height: 32px; width: auto; display: block; }
.footer-brand .nav-logo img { height: 28px; }
.nav-links {
  display: none; gap: 2rem;
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.8);
}
.nav-links a:hover { color: var(--white); }
.nav-cta-btn {
  background: var(--gold); color: var(--green-950);
  font-weight: 700; font-size: 0.875rem;
  padding: 0.6rem 1.4rem; border-radius: 8px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,168,55,0.35); }
.nav-mobile-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.nav-mobile-toggle span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(160deg, #0F1A0F 0%, #1A2A1A 40%, #162016 100%);
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,55,0.08) 0%, transparent 70%);
  top: 50%; right: 10%; transform: translate(0, -50%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.hero-grid--single {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: 2rem; padding-bottom: 2rem;
}
.hero-grid--single .hero-content { max-width: 720px; margin: 0 auto; }
.hero-grid--single .hero-badge { margin-left: auto; margin-right: auto; }
.hero-grid--single .hero-sub { margin-left: auto; margin-right: auto; }
.hero-grid--single .hero-ctas { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,168,55,0.12); border: 1px solid rgba(212,168,55,0.25);
  border-radius: 100px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1; color: var(--white);
  letter-spacing: -0.02em; text-wrap: balance;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65); line-height: 1.7;
  max-width: 520px; margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--green-950);
  font-weight: 700; font-size: 1rem;
  padding: 0.9rem 2rem; border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,168,55,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.25); color: var(--white);
  font-weight: 600; font-size: 1rem;
  padding: 0.9rem 2rem; border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.store-badges { display: flex; gap: 0.75rem; align-items: center; }
.store-badges a { display: block; height: 44px; transition: opacity .2s; }
.store-badges a:hover { opacity: 0.8; }
.store-badges img { height: 100%; width: auto; }
.hero-visual {
  display: flex; justify-content: center;
  position: relative;
}
.hero-phone {
  width: 100%; max-width: 340px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--cream); border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 2rem 0;
}
.stats-grid {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2rem 3rem;
}
.stat {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; font-weight: 600; color: var(--gray-600);
}
.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-icon.gold-bg { background: rgba(212,168,55,0.12); }
.stat-icon.green-bg { background: rgba(45,74,45,0.1); }

/* ---- FEATURE SECTION (big) ---- */
.feature {
  padding: 5rem 0;
  overflow: hidden;
}
.feature.bg-cream { background: var(--cream); }
.feature.bg-dark {
  background: var(--green-900); color: var(--white);
}
.feature.bg-dark .feature-text { color: rgba(255,255,255,0.65); }
.feature.bg-dark .feature-label { background: rgba(212,168,55,0.15); color: var(--gold); }
.feature-grid {
  display: grid; gap: 3rem; align-items: center;
}
.feature-label {
  display: inline-block;
  background: rgba(45,74,45,0.08); color: var(--green-700);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem; border-radius: 6px;
  margin-bottom: 1rem;
}
.feature-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; text-wrap: balance;
  margin-bottom: 1rem;
}
.feature-text {
  font-size: 1.05rem; color: var(--gray-500);
  line-height: 1.7; max-width: 480px;
  margin-bottom: 1.5rem;
}
.feature-bullets {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.feature-bullets li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.95rem; color: var(--gray-600);
}
.feature.bg-dark .feature-bullets li { color: rgba(255,255,255,0.6); }
.feature-bullets li::before {
  content: '✓'; flex-shrink: 0;
  color: var(--gold); font-weight: 700;
}
.feature-visual {
  display: flex; justify-content: center;
}
.feature-visual img {
  width: 100%; max-width: 360px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.feature.bg-dark .feature-visual img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ---- SMALL FEATURE GRID ---- */
.features-grid-section {
  padding: 5rem 0;
  background: var(--white);
}
.features-grid-section .section-heading {
  text-align: center; margin-bottom: 3rem;
}
.features-grid-section .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.features-grid-section .section-sub {
  font-size: 1.05rem; color: var(--gray-500);
  margin-top: 0.75rem; max-width: 540px; margin-left: auto; margin-right: auto;
}
.small-features-grid {
  display: grid; gap: 1.5rem;
}
.small-feature-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.small-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.small-feature-card img {
  width: 100%; height: 280px;
  object-fit: cover; object-position: center 40%;
}
.small-feature-card-body {
  padding: 1.5rem;
}
.small-feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.small-feature-card p {
  font-size: 0.9rem; color: var(--gray-500); line-height: 1.6;
}

/* ---- MINI CARDS (Star 2 — Cero fricción) ---- */
.mini-cards-section {
  padding: 5rem 0;
  background: var(--white);
}
.mini-cards-section .section-heading {
  text-align: center; margin-bottom: 3rem;
}
.mini-cards-section .section-heading .feature-label {
  margin-bottom: 1rem;
}
.mini-cards-section .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  text-wrap: balance;
}
.mini-cards-section .section-sub {
  font-size: 1.05rem; color: var(--gray-500);
  margin-top: 0.75rem; max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.mini-cards-grid {
  display: grid; gap: 1.5rem;
}
.mini-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .3s, box-shadow .3s;
}
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.mini-card-icon {
  width: 64px; height: 64px;
  display: block;
  margin-bottom: 1rem;
}
.mini-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.7rem;
}
.mini-card-quote {
  display: block;
  background: rgba(212,168,55,0.14);
  border-left: 3px solid var(--gold);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--green-900);
  margin-bottom: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}
.mini-card p {
  font-size: 0.92rem; color: var(--gray-500); line-height: 1.65;
}
.mini-cards-closing {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 5rem 0;
  background: var(--green-900); color: var(--white);
}
.how-section .section-heading { text-align: center; margin-bottom: 3.5rem; }
.how-section .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
}
.how-section .section-sub {
  color: rgba(255,255,255,0.55); font-size: 1.05rem; margin-top: 0.75rem;
}
.steps-grid {
  display: grid; gap: 2rem;
}
.step {
  text-align: center; padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.step-num {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--green-950);
  font-weight: 800; font-size: 1.2rem; border-radius: 50%;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 5rem 0; background: var(--cream);
}
.testimonials .section-heading { text-align: center; margin-bottom: 3rem; }
.testimonials .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
}
.testimonials .section-sub {
  color: var(--gray-500); font-size: 1.05rem; margin-top: 0.75rem;
}
.testimonials-grid { display: grid; gap: 1.5rem; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid rgba(0,0,0,0.05);
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.95rem; line-height: 1.7; color: var(--gray-600);
  margin-bottom: 1.25rem; font-style: normal;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-location { font-size: 0.8rem; color: var(--gray-400); }

/* ---- FAQ ---- */
.faq-section { padding: 5rem 0; background: var(--white); }
.faq-section .section-heading { text-align: center; margin-bottom: 3rem; }
.faq-section .section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; text-align: left;
  color: var(--gray-900);
  transition: color .2s;
}
.faq-question:hover { color: var(--green-700); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gray-400);
  transition: transform .3s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px; padding-bottom: 1.25rem;
}
.faq-answer p {
  font-size: 0.95rem; color: var(--gray-500); line-height: 1.7;
}

/* ---- FINAL CTA ---- */
.final-cta {
  padding: 5rem 0;
  background: linear-gradient(160deg, #0F1A0F 0%, #1A2A1A 100%);
  text-align: center; color: var(--white);
}
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin-bottom: 1rem;
}
.final-cta p {
  color: rgba(255,255,255,0.55); font-size: 1.05rem;
  margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.final-cta-buttons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--green-950); color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.85rem;
  padding: 0.25rem 0; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; font-size: 0.8rem;
}

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (min-width: 640px) {
  .small-features-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-mobile-toggle { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid--single { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid.reverse .feature-visual { order: -1; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero { padding: 0; }
  .hero h1 { font-size: 3.8rem; }
  .feature { padding: 6rem 0; }
  .feature-content h2 { font-size: 2.6rem; }
  .hero-phone { max-width: 380px; }
  .small-feature-card img { height: 340px; }
}
