/* ========================================
   Earned Landing Page - Styles
   Mobile-first responsive design
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #4F46E5;
  --color-primary-dark: #4338CA;
  --color-primary-light: #818CF8;
  --color-earning: #D97706;
  --color-spending: #E11D48;
  --color-white: #FFFFFF;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-400: #94A3B8;
  --color-slate-500: #64748B;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-navbar: 0 1px 3px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-slate-700);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-align: center;
}

.section__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-slate-900);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-slate-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-navbar);
  padding: 12px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 32px;
  width: auto;
}

.navbar__links {
  display: none;
  gap: 32px;
}

.navbar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-slate-600);
  transition: color var(--transition);
}

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

.navbar.scrolled .navbar__links a {
  color: var(--color-slate-600);
}

.navbar__cta {
  display: none;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-slate-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: 100px 24px 40px;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 999;
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.navbar__mobile a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-slate-800);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero__text {
  text-align: center;
  max-width: 600px;
}

.hero__preheadline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero__headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-slate-900);
  margin-bottom: 20px;
}

.hero__subheadline {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-slate-500);
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero__image {
  position: relative;
  max-width: 300px;
}

.hero__image img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 24px 0;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.95);
}

.trust-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.trust-bar__divider {
  display: none;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 80px 0;
  background: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--color-slate-50);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step__icon img {
  width: 48px;
  height: 48px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 8px;
}

.step__description {
  font-size: 15px;
  color: var(--color-slate-500);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Features ---------- */
.features {
  padding: 80px 0;
  background: var(--color-slate-50);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature__image {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-slate-200);
}

.feature__image img {
  width: 100%;
  aspect-ratio: 540 / 380;
  object-fit: cover;
}

.feature__text {
  max-width: 480px;
  text-align: center;
}

.feature__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 12px;
}

.feature__description {
  font-size: 16px;
  color: var(--color-slate-500);
  line-height: 1.7;
}

/* ---------- Callout ---------- */
.callout {
  padding: 80px 0;
  background: var(--color-primary);
}

.callout__inner {
  text-align: center;
}

.callout__quote {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 32px;
}

.callout__quote em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- FAQ ---------- */
.faq {
  padding: 80px 0;
  background: var(--color-white);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-slate-200);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-slate-800);
  transition: color var(--transition);
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: '';
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  transition: transform var(--transition);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-slate-500);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-slate-900);
  color: var(--color-slate-300);
  padding: 64px 0 32px;
}

.footer__inner {
  text-align: center;
}

.footer__cta {
  margin-bottom: 48px;
}

.footer__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.3;
}

.footer__bottom {
  border-top: 1px solid var(--color-slate-700);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-slate-400);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-slate-500);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* ---------- 640px+ (Tablet) ---------- */
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .section__title {
    font-size: 32px;
  }

  .hero__headline {
    font-size: 40px;
  }

  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }

  .trust-bar__inner {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }

  .trust-bar__divider {
    display: block;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .callout__quote {
    font-size: 28px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- 1024px+ (Desktop) ---------- */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .navbar__links {
    display: flex;
  }

  .navbar__cta {
    display: inline-flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
  }

  .hero__text {
    text-align: left;
    max-width: 540px;
  }

  .hero__headline {
    font-size: 48px;
  }

  .hero__subheadline {
    font-size: 18px;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__image {
    max-width: 360px;
  }

  .how-it-works {
    padding: 100px 0;
  }

  .features {
    padding: 100px 0;
  }

  .feature {
    flex-direction: row;
    gap: 64px;
    margin-bottom: 80px;
  }

  .feature--reverse {
    flex-direction: row-reverse;
  }

  .feature__text {
    text-align: left;
    flex: 1;
  }

  .feature__image {
    flex: 1;
    max-width: 540px;
  }

  .section__title {
    font-size: 36px;
  }

  .callout__quote {
    font-size: 32px;
  }

  .faq__question {
    font-size: 17px;
  }

  .footer__title {
    font-size: 28px;
  }
}

/* ---------- 1280px+ (Wide) ---------- */
@media (min-width: 1280px) {
  .hero__headline {
    font-size: 52px;
  }

  .hero__image {
    max-width: 400px;
  }

  .section__title {
    font-size: 40px;
  }

  .feature {
    gap: 80px;
  }
}
