/* ============================================================
   getflash.io — Rewards / Merchant Page Styles
   Lori / Flash Design System / 2026-03-03
   Light mode — matches global light theme default
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
body.rewards-page {
  --bg:             #FFFFFF;
  --surface-1:      #F7F8FA;
  --surface-2:      #F0F2F5;
  --border:         #E5E7EB;
  --text-1:         #111218;
  --text-2:         #4B5563;
  --text-3:         #9CA3AF;
  --green:          #41AD49;
  --green-dim:      rgba(65, 173, 73, 0.1);
  --green-glow:     rgba(65, 173, 73, 0.2);
  --orange:         #F59E0B;
  --font-display:   "Sora", sans-serif;
  --font-body:      "Inter", sans-serif;
  --radius-md:      16px;
  --radius-lg:      24px;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:   0 4px 20px rgba(0,0,0,0.10);
  --max-w:          1140px;
  --section-gap:    96px;
}

/* ── Base ───────────────────────────────────────────────────── */
body.rewards-page {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.rewards-page * {
  box-sizing: border-box;
}

body.rewards-page a {
  text-decoration: none;
  color: inherit;
}

/* ── Layout ─────────────────────────────────────────────────── */
.rewards-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────────── */
body.rewards-page h1,
body.rewards-page h2,
body.rewards-page h3,
body.rewards-page h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-1);
}

/* ── Shared Section Styles ──────────────────────────────────── */
.rewards-section {
  padding: var(--section-gap) 0;
}

/* ── Section eyebrow — warm amber, Jamaican gradient underline ── */
.section-eyebrow,
.section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C47A00;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 9px;
  background: none;
  border: none;
}

.section-eyebrow::after,
.section-badge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #41AD49 0%, #F5A623 100%);
  border-radius: 2px;
}

.section-header-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header-centered h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-1);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary,
.cta-button.primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green) !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-primary:hover,
.cta-button.primary:hover {
  background: #37A344 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(65, 173, 73, 0.35);
  color: #fff !important;
  text-decoration: none !important;
}

.btn-primary svg,
.cta-button.primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg,
.cta-button.primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary,
.cta-button.secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  color: var(--text-1) !important;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--border) !important;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-secondary:hover,
.cta-button.secondary:hover {
  border-color: var(--text-2) !important;
  background: var(--surface-1) !important;
  text-decoration: none !important;
}

.cta-button.large,
.btn-primary.large {
  padding: 16px 36px;
  font-size: 16px;
}

/* ── Hero Section ───────────────────────────────────────────── */
.rewards-hero {
  padding: 120px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.rewards-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(65, 173, 73, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.rewards-hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-1);
}

.highlight-text {
  color: var(--green);
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-note {
  font-size: 14px;
  color: var(--text-3);
  font-family: var(--font-body);
}

.rewards-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rewards-hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  position: relative;
  z-index: 2;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(65, 173, 73, 0.12) 0%, transparent 70%);
  z-index: 1;
}

/* ── Benefits Section ───────────────────────────────────────── */
.rewards-benefits {
  padding: var(--section-gap) 0;
  background: var(--surface-1);
}

.divider {
  /* Legacy wrapper — transparent */
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--green-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.benefit-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ── How It Works ───────────────────────────────────────────── */
.how-it-works {
  padding: var(--section-gap) 0;
  background: var(--bg);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(65, 173, 73, 0.35);
}

.step-content {
  padding-top: 8px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--green-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.step-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.step-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--green) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.step-link:hover {
  gap: 10px;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section {
  padding: var(--section-gap) 0;
  background: var(--surface-1);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.quote-icon {
  color: var(--green);
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-1);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info .author-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 2px;
}

.author-info .author-role {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

/* ── Final CTA Section ──────────────────────────────────────── */
.final-cta {
  padding: var(--section-gap) 0;
  background: var(--bg);
}

.cta-box {
  background: linear-gradient(135deg, #09090E 0%, #111218 100%);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(65, 173, 73, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #F0F0F6;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 17px;
  color: #9497B4;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.green-divider {
  display: none; /* Replaced by design rhythm */
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: #5C5F7A;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rewards-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rewards-hero-image {
    order: -1;
  }

  .rewards-hero-image img {
    max-width: 320px;
  }

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

  .cta-box {
    padding: 48px 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button.primary,
  .cta-button.secondary {
    justify-content: center;
  }
}
