/* ── Design tokens ── */
:root {
  --white:      #ffffff;
  --bg:         #f6fbf7;

  --green-50:   #f0fdf4;
  --green-100:  #dcfce7;
  --green-200:  #bbf7d0;
  --green-400:  #4ade80;
  --green-500:  #22c55e;
  --green-600:  #16a34a;
  --green-700:  #15803d;

  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;

  --red-50:     #fef2f2;
  --red-100:    #fee2e2;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  opacity: 0;
  animation: fadein 0.5s ease forwards;
  overflow-x: hidden;
  max-width: 100%;
}

@keyframes fadein { to { opacity: 1; } }

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Typography helpers ── */
.h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--gray-900);
  margin-top: 8px;
}
.h1--accent { color: var(--green-600); }

.h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}
.h2 .accent { color: var(--green-600); }

.section-sub {
  font-size: 15px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  padding: 12px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo    { width: 36px; height: 36px; border-radius: 12px; }
.logo-sm { width: 32px; height: 32px; border-radius: 10px; }
.brand-name { font-weight: 900; font-size: 18px; color: var(--gray-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--gray-900); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-500);
  transition: background 0.15s, color 0.15s;
}
.lang-btn--on {
  background: var(--white);
  color: var(--green-700);
}

.download-btn {
  background: var(--green-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}
.download-btn:hover { background: var(--green-700); }

/* ── HERO ── */
.hero-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--green-100) 100%);
  min-height: 100vh;
}

.hero-section {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
}

.hero-left { flex: 1; }

.hero-sub {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 24px;
}

.badge-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 16px;
  transition: opacity 0.15s;
}
.app-store-badge:hover { opacity: 0.85; }

.apple-icon {
  font-size: 30px;
  line-height: 1;
}
.apple-icon::before { content: ""; }

.app-store-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.how-it-works-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 12px;
  transition: border-color 0.15s;
}
.how-it-works-btn:hover { border-color: var(--gray-500); }

.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatars { display: flex; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--green-100);
  margin-left: -8px;
  object-fit: cover;
}
.avatars .avatar:first-child { margin-left: 0; }

.review-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.hero-right {
  flex: 0 0 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-image {
  width: 100%;
  max-width: 480px;
  height: 580px;
  object-fit: contain;
}

/* ── SECTIONS ── */
.section {
  padding: 48px 20px;
}
.section--white { background: var(--white); }
.section--bg    { background: var(--bg); }
.section--cta   { padding-top: 32px; padding-bottom: 32px; }

/* ── PAIN ── */
.pain-inner {
  max-width: 840px;
  margin: 0 auto;
}

.pain-cards-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.pain-card {
  flex: 1;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: 28px;
  padding: 28px;
}

.card-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.card-title { font-size: 17px; font-weight: 900; color: var(--gray-900); margin-bottom: 6px; }
.card-desc  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

.quote-card {
  position: relative;
  background: linear-gradient(90deg, var(--green-600) 0%, var(--green-500) 100%);
  border-radius: 28px;
  padding: 32px;
  overflow: hidden;
}
.quote-bg-image {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 220px;
  height: 220px;
  opacity: 0.18;
  pointer-events: none;
}
.quote-headline {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
  position: relative;
}
.quote-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-200);
  line-height: 1.5;
  position: relative;
}

/* ── BENEFITS ── */
.benefits-inner {
  max-width: 840px;
  margin: 0 auto;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.benefit-card {
  flex: 1 1 30%;
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: 28px;
  padding: 24px;
}

.stat-strip {
  display: flex;
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: 28px;
  overflow: hidden;
}
.stat-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 8px;
}
.stat-cell--divider { border-left: 1px solid var(--green-100); }
.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--green-600);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
}

/* ── HOW IT WORKS ── */
.product-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gray-100);
  transition: background 0.15s;
}
.tab--on { background: var(--green-600); }
.tab-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
}
.tab--on .tab-step { color: rgba(255, 255, 255, 0.7); }
.tab-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
}
.tab--on .tab-title { color: var(--white); }

.product-columns {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 8px;
}

.mockup-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 264px;
  height: 540px;
  flex-shrink: 0;
  border-radius: 40px;
  border: 6px solid var(--gray-800);
  background: var(--gray-900);
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.25);
}
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: var(--gray-900);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
.phone-screen-inner {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 34px;
  overflow: hidden;
  z-index: 1;
}
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content { flex: 1; }

.big-step {
  font-size: 56px;
  font-weight: 900;
  color: var(--green-100);
  line-height: 1;
}
.feature-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--gray-900);
  margin: 8px 0;
}
.feature-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.dots-row {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--gray-200);
  transition: width 0.2s, background 0.2s;
}
.dot--on {
  width: 32px;
  background: var(--green-600);
}

/* ── CTA ── */
.cta-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 100%);
  border-radius: 32px;
  padding: 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-main {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
}

.cta-content { flex: 1; }

.cta-headline {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
}
.cta-headline--accent { color: var(--green-200); }

.cta-sub {
  font-size: 15px;
  color: var(--green-100);
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: 24px;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.cta-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.cta-btn {
  display: flex;
  align-self: flex-start;
}

.cta-image {
  width: 260px;
  height: 300px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-end;
}

/* ── FOOTER ── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--green-100);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--gray-600); }

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
  text-align: right;
  white-space: nowrap;
}

/* ── Arrow buttons (mobile feature nav, hidden on desktop) ── */
.arrow-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 28px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.arrow-btn:hover { background: var(--gray-200); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }

  /* Hero */
  .hero-gradient {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .hero-section {
    flex: 1;
    flex-direction: column;
    padding: 36px 20px 0;
    gap: 12px;
    min-width: 0;
  }
  .hero-left { min-width: 0; width: 100%; flex-shrink: 0; }
  .hero-right { flex: 1; width: 100%; min-height: 200px; }
  .hero-image { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
  .h1 { font-size: 30px; line-height: 1.2; }
  .hero-sub { font-size: 15px; }
  .badge-row { flex-direction: column; align-items: stretch; }
  .app-store-badge, .how-it-works-btn { justify-content: center; }

  /* Sections */
  .section { padding: 32px 20px; }

  /* Typography */
  .h2 { font-size: 24px; }
  .quote-headline { font-size: 22px; }
  .cta-headline { font-size: 28px; }

  /* Pain */
  .pain-inner { min-width: 0; }
  .pain-cards-row { flex-direction: column; }

  /* Benefits */
  .benefits-inner { min-width: 0; }
  .benefits-grid .benefit-card { flex: 1 1 47%; }
  .stat-number { font-size: 24px; }

  /* How it works */
  .product-inner { min-width: 0; }
  .tabs-row { display: none; }
  .arrow-btn { display: inline-flex; }
  .mockup-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .phone-mockup {
    width: 180px;
    height: 368px;
    border-radius: 28px;
    flex-shrink: 0;
  }
  .phone-mockup::after {
    width: 65px;
    height: 16px;
    top: 8px;
  }
  .phone-screen-inner { border-radius: 22px; }
  .product-columns {
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }
  .feature-content { width: 100%; min-width: 0; }
  .big-step { font-size: 40px; }
  .feature-title { font-size: 22px; }

  /* CTA */
  .cta-wrap { min-width: 0; }
  .cta-card {
    padding: 28px 28px 0 28px;
    gap: 16px;
    overflow: visible;
  }
  .cta-main {
    align-items: flex-end;
    gap: 12px;
  }
  .cta-content { min-width: 0; }
  .cta-headline { font-size: 24px; }
  .cta-sub { font-size: 14px; margin-top: 10px; margin-bottom: 16px; }
  .cta-features { gap: 6px; }
  .cta-features li { font-size: 13px; }
  .cta-image {
    display: block;
    width: 120px;
    height: 150px;
    flex-shrink: 0;
    align-self: flex-end;
  }
  .cta-btn {
    display: flex;
    align-self: stretch;
    justify-content: center;
    margin-bottom: 28px;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 16px;
  }
  .footer-links { justify-content: flex-start; }
  .footer-copy  { text-align: left; white-space: normal; }
}
