/* ═══════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════ */
:root {
  --clr-bg:        #F0EFFA;
  --clr-accent:    #D4F542;       /* lime yellow */
  --clr-primary:   #4A3DE8;       /* deep indigo */
  --clr-text:      #32284f;
  --clr-muted:     #6B6B8A;
  --clr-footer:    #5A5E8A;
  --clr-white:     #FFFFFF;
  --clr-card-bg:   #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 4px 24px rgba(74,61,232,.10);
  --shadow-btn:  0 4px 14px rgba(74,61,232,.30);

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;

  --max-w: 1100px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ═══════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════ */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 13px 28px;
  font-size: .95rem;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: #3a2ec0;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74,61,232,.38);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
  padding: 11px 22px;
  font-size: .88rem;
}
.btn--outline:hover { background: rgba(74,61,232,.07); }

.btn--sm { padding: 9px 18px; font-size: .82rem; }

/* ═══════════════════════════════════════
   SECTION TITLE
═══════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 60px;
  color: var(--clr-text);
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  background: rgba(240,239,250,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74,61,232,.10);
  height: var(--nav-h);
}

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

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--clr-text);
  letter-spacing: -.01em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color .18s;
}
.navbar__links a:hover { color: var(--clr-primary); }

.navbar__icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.navbar__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding: 140px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__copy {
  animation: fadeUp .7s ease both;
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.625rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title--accent {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-style: italic;
}

.hero__title--plain {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--clr-text);
}

.hero__sub {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  color: var(--clr-muted);
  max-width: clamp(400px, 50vw, 500px);
  margin-bottom: 74px;
  line-height: 1.7;
}

/* ── Compare card ── */
.hero__visual {
  display: flex;
  justify-content: center;
  animation: fadeUp .7s .15s ease both;
}

.compare-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(74,61,232,.18);
  width: 400px;
  height: 425px;
  background: #e8e7f5;
}

.compare-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.compare-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
.stats {
  background: var(--clr-accent);
  padding: 120px 0;
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--clr-text);
  font-weight: 700;
  margin-bottom: 10px;
}

.stats__label {
  font-size: .88rem;
  color: rgba(50,40,79,.65);
  line-height: 1.5;
  max-width: 180px;
  margin-inline: auto;
}

.stats__divider {
  width: 1px;
  height: 60px;
  background: rgba(50,40,79,.2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how {
  padding: 120px 0;
  background: var(--clr-bg);
}

.steps {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.steps__layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: min(100%, 1040px);
  margin-inline: auto;
}

.steps__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
}

.step__card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,61,232,.14);
}

.how .step__info {
  text-align: left;
  width: 100%;
}

.step__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Square screenshots (1000×1000 assets → sharp on Retina at ~280px display) */
.how-step__img-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8f7fd;
}
.how-step__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrow — aligned to step card (square image + padding) */
.step__arrow {
  font-size: 1.6rem;
  color: #b0afc8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: flex-start;
  height: 320px;
  padding-top: 0;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
}
.step__desc {
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features {
  padding: 120px 0;
  background: var(--clr-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--clr-card-bg);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-3px); }

.feature-card__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-accent), #b8f000);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
}

.feature-card__icon img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  display: block;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--clr-text);
}
.feature-card__desc {
  font-size: .875rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--clr-footer);
  padding: 52px 0 44px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-white);
}

.footer__cols {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}

.footer__link {
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  transition: color .18s;
}
.footer__link:hover { color: var(--clr-white); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 979px) {
  .hero {
    padding: 90px 0;
  }

  .stats,
  .how,
  .features {
    padding-block: 90px;
  }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { justify-content: center; }
  .hero__sub { margin-inline: auto; }

  .features__grid { grid-template-columns: 1fr; }

  .steps {
    overflow-x: visible;
  }
  .steps__layout {
    flex-direction: column;
    align-items: center;
    gap: 36px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .step__arrow { display: none; }
  .steps__col {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .stats__grid { flex-direction: column; gap: 36px; }
  .stats__divider { width: 60px; height: 1px; }

  .footer__inner { flex-direction: column; }
  .footer__cols { flex-direction: column; gap: 28px; }

  .navbar__links { gap: 18px; }
}

/* ═══════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════ */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-popup--hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cookie-container {
  background-color: var(--clr-white);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(74, 61, 232, 0.15);
  max-width: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(74, 61, 232, 0.1);
}

.cookie-text {
  color: var(--clr-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-link {
  color: var(--clr-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.cookie-link:hover {
  opacity: 0.8;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: var(--font-body);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

.btn-cookie--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-cookie--outline {
  background-color: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn-cookie--outline:hover {
  background-color: rgba(74, 61, 232, 0.05);
}

@media (max-width: 600px) {
  .cookie-container {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn-cookie {
    flex: 1;
  }
}
