/* Perks page — 1:1 with Figma node 426:11012.
   Hero, How KeenPerks works (dark), No-hassle cashback, cashback explainer, FAQ. */

.perks-page {
  background: var(--cream);
}
.perks-page main {
  overflow: hidden;
}
.perks-page main > section {
  width: 100%;
}

/* ------------------------------------------------------------------ HERO */
.perks-hero {
  overflow: hidden;
}
.perks-hero-inner {
  display: grid;
  width: min(calc(100% - 96px), 1632px);
  margin: 0 auto;
  padding: 132px 0 96px;
  grid-template-columns: 720px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.perks-hero-copy {
  position: relative;
  z-index: 2;
  width: 720px;
}
.perks-hero h1 {
  font-size: 72px;
  line-height: 90px;
  font-weight: 600;
  letter-spacing: -1.44px;
  color: var(--ink);
}
.perks-hero-copy > p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 30px;
}
.perks-hero-actions {
  margin-top: 48px;
}
.perks-inclusions {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.perks-inclusions span {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.perks-inclusions img {
  width: 24px;
  height: 24px;
}
.perks-mockups {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 512px;
  margin: 0 auto;
  overflow: visible;
}
.perks-hero-art {
  display: block;
  width: 100%;
  max-width: 532px;
  height: auto;
}

/* -------------------------------------------- HOW KEENPERKS WORKS (dark) */
.how-perks {
  --line: #373a41;
}
.how-perks-heading {
  display: flex;
  width: min(calc(100% - 96px), 1632px);
  margin: 0 auto;
  padding: 94px 32px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.how-perks-heading .badge {
  font-weight: 700;
}
.how-perks-heading h2 {
  max-width: 1024px;
  font-size: 60px;
  line-height: 72px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #fff;
  text-align: center;
}
.how-perks-grid {
  display: grid;
  width: min(calc(100% - 96px), 1632px);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.how-perks-grid article {
  display: flex;
  min-height: 330px;
  padding: 32px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.how-perks-num {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 0.5px solid #22262f;
  border-radius: 999px;
  background: #0069ec;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.how-perks-grid h3 {
  margin-top: 12px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.72px;
  color: #fff;
}
/* Number + heading stay at the top; description is pushed to the bottom. */
.how-perks-grid p {
  margin-top: auto;
  padding-top: 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #fff;
}

/* ------------------------------------------------ NO-HASSLE CASHBACK */
.no-hassle-inner {
  display: flex;
  width: min(calc(100% - 96px), 1632px);
  min-height: 500px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-right: 1px solid #e9eaeb;
  border-left: 1px solid #e9eaeb;
}
.no-hassle-copy {
  flex: 0 1 639px;
}
.no-hassle-copy h2 {
  font-size: 60px;
  line-height: 72px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--ink);
}
.no-hassle-checks {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.no-hassle-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}
.no-hassle-checks img {
  width: 24px;
  height: 24px;
}
/* Animated cashback marquee: three columns of brand cards scrolling vertically.
   Each track holds two identical sets of 8 cards; one card pitch is 118px
   (106px card + 12px gap), so one set is 944px — the exact scroll distance. */
.no-hassle-grid {
  position: relative;
  display: flex;
  gap: 6px;
  flex: 0 0 400px;
  width: 400px;
  height: 500px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.cb-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.cb-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.cb-up {
  animation: cb-scroll-up 26s linear infinite;
}
.cb-down {
  animation: cb-scroll-down 32s linear infinite;
}
.cb-col-1 .cb-track {
  animation-duration: 26s;
}
.cb-col-2 .cb-track {
  animation-duration: 34s;
}
.cb-col-3 .cb-track {
  animation-duration: 29s;
}
@keyframes cb-scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-944px);
  }
}
@keyframes cb-scroll-down {
  from {
    transform: translateY(-944px);
  }
  to {
    transform: translateY(0);
  }
}
.cb-card {
  box-sizing: border-box;
  display: flex;
  height: 106px;
  margin-bottom: 12px;
  padding: 13px;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e9eaeb;
  background: var(--cream);
}
.cb-logo {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 4px;
}
.cb-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-earn {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--ink);
}
.cb-amt {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #e85c04;
}
@media (prefers-reduced-motion: reduce) {
  .cb-track {
    animation: none !important;
  }
}

/* ------------------------------------------- CASHBACK EXPLAINER (light) */
.cashback-explainer {
  background: #fcfaf4;
  border-top: 1px solid #e9eaeb;
  border-bottom: 1px solid #e9eaeb;
}
.cashback-explainer-inner {
  display: flex;
  width: min(calc(100% - 96px), 1632px);
  margin: 0 auto;
  padding: 120px 32px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-right: 1px solid #e9eaeb;
  border-left: 1px solid #e9eaeb;
  text-align: center;
}
.cashback-explainer-inner h2 {
  max-width: 1024px;
  font-size: 60px;
  line-height: 72px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--ink);
}
.cashback-explainer-body {
  display: flex;
  max-width: 1024px;
  flex-direction: column;
  gap: 24px;
}
.cashback-explainer-body p {
  font-size: 20px;
  line-height: 30px;
  color: #414651;
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1100px) {
  .perks-hero-inner {
    grid-template-columns: 1fr;
    padding: 72px 0 64px;
    gap: 48px;
  }
  .perks-hero-copy {
    width: 100%;
  }
  .how-perks-grid {
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 1px solid var(--line);
  }
  .how-perks-grid article {
    min-height: 0;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .no-hassle-inner {
    flex-direction: column;
    padding: 64px 32px;
    align-items: flex-start;
    gap: 40px;
  }
  .no-hassle-copy {
    flex-basis: auto;
  }
  .no-hassle-grid {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .perks-hero-inner,
  .how-perks-heading,
  .how-perks-grid,
  .no-hassle-inner,
  .cashback-explainer-inner {
    width: calc(100% - 40px);
  }
  .perks-hero-inner {
    padding: 48px 0;
    gap: 32px;
  }
  .perks-hero h1 {
    font-size: 44px;
    line-height: 54px;
    letter-spacing: -0.88px;
  }
  .perks-hero-copy > p {
    font-size: 18px;
    line-height: 28px;
  }
  .perks-inclusions {
    flex-direction: column;
    gap: 12px;
  }
  .perks-hero-actions {
    margin-top: 32px;
  }
  .how-perks-heading {
    padding: 40px 20px;
  }
  .how-perks-heading h2,
  .no-hassle-copy h2,
  .cashback-explainer-inner h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.72px;
  }
  .how-perks-grid h3 {
    font-size: 28px;
    line-height: 36px;
  }
  .how-perks-grid article {
    padding: 24px;
  }
  .no-hassle-inner {
    padding: 48px 20px;
    gap: 32px;
  }
  .no-hassle-grid {
    width: 100%;
    max-width: 400px;
  }
  .cashback-explainer-inner {
    padding: 48px 20px;
    gap: 20px;
  }
  .cashback-explainer-body p {
    font-size: 18px;
    line-height: 28px;
  }
  .perks-page .perks-faq > .faq-layout {
    padding: 48px 20px;
    gap: 40px;
  }
  .perks-page footer {
    padding: 48px 20px 40px;
  }
}
