/* ====================================================================
   BillEasy Landing — Design System (DESIGN.md compliant)
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  /* Brand accent palette */
  --brand-coral:      #f04e37;
  --brand-magenta:    #e8006d;
  --brand-blue:       #0061d5;
  --brand-blue-deep:  #004aad;
  --brand-blue-200:   #bfdbfe;
  --brand-cyan:       #0891b2;
  --brand-purple:     #7c3aed;

  /* Surface */
  --primary:          #0a0a0a;
  --on-primary:       #ffffff;
  --canvas:           #ffffff;
  --surface:          #f5f5f5;
  --surface-soft:     #fafafa;
  --hairline:         #e5e5e5;
  --hairline-soft:    #ebebeb;

  /* Text scale */
  --ink:              #0a0a0a;
  --ink-strong:       #000000;
  --charcoal:         #262626;
  --slate:            #525252;
  --steel:            #737373;
  --stone:            #a3a3a3;
  --muted:            #d4d4d4;
  --on-dark:          #ffffff;

  /* Semantic */
  --success-bg:       #dcfce7;
  --success-text:     #166534;
  --footer-bg:        #0a0a0a;

  /* Font */
  --font: 'DM Sans', Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --sp-xxs:  4px;
  --sp-xs:   8px;
  --sp-sm:  12px;
  --sp-md:  16px;
  --sp-lg:  20px;
  --sp-xl:  24px;
  --sp-xxl: 32px;
  --sp-xxxl:40px;
  --sp-s48: 48px;
  --sp-s64: 64px;
  --sp-s80: 80px;
  --sp-s96: 96px;

  /* Border radius */
  --r-xs:    4px;
  --r-sm:    6px;
  --r-md:    8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-xxl:  20px;
  --r-xxxl: 24px;
  --r-hero: 32px;
  --r-full: 9999px;

  /* Elevation */
  --sh-1: rgba(0,0,0,0.04) 0px 1px 2px 0px;
  --sh-2: rgba(0,0,0,0.08) 0px 4px 6px 0px;
  --sh-3: rgba(0,0,0,0.08) 0px 0px 22px 0px;
  --sh-4: rgba(36,36,36,0.08) 0px 12px 16px -4px;

  --max-w: 1280px;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xxl); }

/* ── Buttons (pill-shaped, rounded-full always) ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 11px var(--sp-xl);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.40;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--charcoal); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--surface-soft); }

.btn-tertiary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-tertiary:hover { background: var(--surface); }

/* ── Badges (pill-shaped always) ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.50;
}
.badge-new     { background: var(--brand-coral); color: var(--on-dark); }
.badge-success { background: var(--success-bg); color: var(--success-text); }

/* ── Promo Banner (black strip above nav) ────────────────────────────── */
.promo-banner {
  background: var(--primary);
  color: var(--on-dark);
  text-align: center;
  padding: var(--sp-sm) var(--sp-lg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.50;
}
.promo-banner a {
  text-decoration: underline;
  color: inherit;
  opacity: 0.85;
}
.promo-banner a:hover { opacity: 1; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--sp-xxl);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: var(--sp-xxl); }
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; gap: var(--sp-sm); align-items: center; }

/* ── Section Label ────────────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--sp-sm);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-s96) 0 var(--sp-s80);
  text-align: center;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 400;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--sp-xl);
}
.hero__heading {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: var(--sp-xl);
}
.hero__subheading {
  font-size: 18px;
  font-weight: 500;
  color: var(--steel);
  max-width: 480px;
  margin: 0 auto var(--sp-xxl);
  line-height: 1.50;
}
.hero__coming-soon {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--sp-s64);
}
.hero__ctas {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-s64);
}
.hero__screenshot {
  margin: 0 auto;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.hero__screenshot img { width: 100%; }

/* ── Stats Strip ──────────────────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: var(--sp-xxxl) 0;
  background: var(--surface-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}
.stat-cell { text-align: center; }
.stat-cell__number {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.stat-cell__label {
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
}

/* ── Features — Vibrant Product Cards ────────────────────────────────── */
.features { padding: var(--sp-s80) 0; }
.features__header { text-align: center; margin-bottom: var(--sp-s48); }
.features__heading {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.features__sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--steel);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

/* Vibrant gradient product cards — 32px corner radius (DESIGN.md signature) */
.product-card {
  border-radius: var(--r-hero);
  padding: var(--sp-xxl);
  color: var(--on-dark);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-s64);
}
.product-card__icon { font-size: 2rem; line-height: 1; }
.product-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.40;
  margin-bottom: var(--sp-xs);
}
.product-card__desc {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.82;
  line-height: 1.50;
}

/* Per DESIGN.md: each product/feature has its own brand color identity */
.card-coral   { background: linear-gradient(140deg, #f04e37 0%, #ff7a5a 100%); }
.card-blue    { background: linear-gradient(140deg, #0061d5 0%, #3b8dff 100%); }
.card-magenta { background: linear-gradient(140deg, #e8006d 0%, #ff4a9e 100%); }
.card-purple  { background: linear-gradient(140deg, #7c3aed 0%, #a855f7 100%); }
.card-cyan    { background: linear-gradient(140deg, #0891b2 0%, #22d3ee 100%); }
.card-dark    { background: linear-gradient(140deg, #0a0a0a 0%, #1a1a2e 100%); }

/* ── How It Works ─────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--surface);
  padding: var(--sp-s80) 0;
  text-align: center;
}
.how-it-works__heading {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--sp-s48);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  flex-shrink: 0;
}
.step__label { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-xs); }
.step__desc { font-size: 14px; font-weight: 400; color: var(--steel); line-height: 1.50; }
.step__arrow {
  font-size: 24px;
  color: var(--stone);
  padding-top: 16px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Language Callout (promo-cta-card style from DESIGN.md) ──────────── */
.lang-section { padding: 0 0 var(--sp-s80); }
.lang-callout {
  background: var(--brand-coral);
  padding: var(--sp-s64) var(--sp-xxl);
  text-align: center;
  border-radius: var(--r-hero);
}
.lang-callout__heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-md);
}
.lang-callout__sub {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--sp-xxl);
  line-height: 1.50;
}
.lang-pills {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-xxl);
}
/* White-on-coral pill language tags */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-xs) var(--sp-lg);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.18);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  line-height: 1.40;
}

/* ── Testimonials ─────────────────────────────────────────────────────── */
.testimonials {
  padding: var(--sp-s80) 0;
  text-align: center;
}
.testimonials__heading {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--sp-s48);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  text-align: left;
}
/* card-base style from DESIGN.md: white, 16px radius, hairline border */
.testimonial-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  box-shadow: var(--sh-1);
}
.testimonial-card__quote {
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.50;
  margin-bottom: var(--sp-lg);
}
.testimonial-card__quote::before { content: '\201C'; color: var(--stone); }
.testimonial-card__quote::after  { content: '\201D'; color: var(--stone); }
.testimonial-card__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing {
  background: var(--surface);
  padding: var(--sp-s80) 0;
  text-align: center;
}
.pricing__heading {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.pricing__body {
  font-size: 18px;
  font-weight: 500;
  color: var(--steel);
  max-width: 480px;
  margin: 0 auto var(--sp-xxl);
  line-height: 1.50;
}

/* ── App Download ─────────────────────────────────────────────────────── */
.app-download {
  background: var(--primary);
  padding: var(--sp-s96) var(--sp-xxl);
  text-align: center;
}
.app-download__heading {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.10;
  letter-spacing: -1.5px;
  margin-bottom: var(--sp-md);
}
.app-download__sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: var(--sp-xxl);
  line-height: 1.50;
}
.app-download__badges { display: flex; justify-content: center; gap: var(--sp-md); flex-wrap: wrap; }
.badge-link { display: inline-block; }
.badge-link img { height: 48px; width: auto; border-radius: var(--r-md); }

/* ── Footer (dark multi-column, footer-region from DESIGN.md) ────────── */
.footer {
  background: var(--footer-bg);
  padding: var(--sp-s64) 0 var(--sp-xl);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--sp-xxl);
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: var(--sp-xxl);
  flex-wrap: wrap;
  gap: var(--sp-xxl);
}
.footer__logo-img {
  height: 24px;
  width: auto;
  margin-bottom: var(--sp-sm);
  filter: invert(1);
}
.footer__tagline { font-size: 14px; color: var(--stone); }
.footer__links-grid { display: flex; gap: var(--sp-s64); flex-wrap: wrap; }
.footer__col { min-width: 120px; }
.footer__col-heading {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: var(--sp-md);
}
.footer__col-links { display: flex; flex-direction: column; gap: var(--sp-xs); }
.footer__col-links a { font-size: 14px; color: var(--stone); transition: color 0.15s; }
.footer__col-links a:hover { color: var(--muted); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer__copy { font-size: 12px; color: var(--stone); }
.footer__legal { display: flex; gap: var(--sp-lg); }
.footer__legal a { font-size: 12px; color: var(--stone); transition: color 0.15s; }
.footer__legal a:hover { color: var(--muted); }

/* ── Responsive Breakpoints (DESIGN.md) ──────────────────────────────── */

/* Tablet: 768–1023px */
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__heading { letter-spacing: -1.5px; }
}

/* Mobile large: 480–767px */
@media (max-width: 767px) {
  .container { padding: 0 var(--sp-md); }
  .nav__inner { padding: 0 var(--sp-md); }
  .nav__links { display: none; }
  .hero__screenshot { display: none; }
  .hero__heading { letter-spacing: -1px; }
  .product-grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step__arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .lang-section { padding: 0 var(--sp-md) var(--sp-s80); }
  .footer__links-grid { gap: var(--sp-xxl); }
}

/* Mobile small: < 480px */
@media (max-width: 479px) {
  .hero__heading { letter-spacing: -0.5px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__ctas { flex-direction: column; align-items: center; }
  .lang-pills { flex-direction: column; align-items: center; }
  .nav__actions .btn-secondary { display: none; }
}
