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

body {
  margin: 0;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #18224b;
}

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 120px);
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: 760px;
  gap: 40px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.hero-banner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 480px;
  flex-shrink: 0;
}

.rewards-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #fef7e7;
  color: #e0a212;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

.hero-headline {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-headline span {
  display: block;
}

.line-primary {
  color: #18224b;
}

.line-accent {
  color: #5856d6;
}

.hero-subheading {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: #4b5563;
}

.hero-visual {
  --hero-scale: 1;
  position: relative;
  width: calc(680px * var(--hero-scale));
  height: calc(640px * var(--hero-scale));
  flex-shrink: 0;
}

.phone-frame {
  position: absolute;
  width: calc(290px * var(--hero-scale));
  height: calc(590px * var(--hero-scale));
  border-radius: calc(40px * var(--hero-scale));
  border: calc(12px * var(--hero-scale)) solid #1a1f36;
  background: #ffffff;
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-dashboard {
  left: calc(100px * var(--hero-scale));
  top: 0;
}

.phone-kupons {
  left: calc(340px * var(--hero-scale));
  top: calc(50px * var(--hero-scale));
}

/* How it works */

.how-it-works {
  background: #ffffff;
  padding: 80px 0;
}

.section-title {
  margin: 0 0 56px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #18224b;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 195px;
  flex-shrink: 0;
  text-align: center;
  position: relative;
}

.step + .step::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 40px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url('assets/icons/arrow-right.svg') no-repeat center / contain;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper--blue {
  background: #ebf3ff;
}

.icon-wrapper--gray {
  background: #f2f4f7;
}

.icon-wrapper--purple {
  background: #f5f3ff;
}

.icon-wrapper--green {
  background: #e6f4ea;
}

.icon-wrapper--peach {
  background: #fef7e7;
}

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

.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #18224b;
}

.step-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #4b5563;
}


.step-label {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: #109657;
  background-color: #E8F7EE;
  border-radius: 12px;
  padding: 5px 10px;
}

/* Rewards value card */

.rewards-value {
  background: #ffffff;
  padding-bottom: 50px;
}

.rewards-value-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #f8f9fc;
  border-radius: 24px;
  padding: 48px;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 584px;
  flex-shrink: 0;
}

.banner-heading {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #18224b;
}

.banner-subheading {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #4b5563;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #18224b;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  background: #ffffff;
  text-align: center;
  padding-bottom: 20px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* Responsive: tablet */

@media (max-width: 1100px) {
  .hero-container {
    height: auto;
    padding: 48px 0;
  }

  .hero-banner {
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    max-width: 480px;
    align-items: center;
    text-align: center;
  }

  .rewards-badge {
    align-self: center;
  }

  .hero-visual {
    --hero-scale: 0.75;
  }

  .steps-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 40px;
  }

  .step + .step::before {
    display: none;
  }

  .rewards-value-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-text {
    width: 100%;
  }
}

/* Responsive: mobile */

@media (max-width: 640px) {
  .site-header {
    justify-content: center;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subheading {
    font-size: 16px;
  }

  .hero-visual {
    --hero-scale: 0.46;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step {
    width: 100%;
    max-width: 280px;
  }

  .rewards-value-banner {
    padding: 28px;
    border-radius: 20px;
  }

  .banner-heading {
    font-size: 22px;
  }

  .feature-grid {
    justify-content: center;
  }
}
