/* ======================================
   SHOPEEPAY SCAN & PAY — shopeepay.css
   Background: #FFFFFF (white)
   Accent:     #E8422A (orange)
   ====================================== */

:root {
  --sp-orange:  #E8422A;
  --sp-orange2: #FF7043;
  --sp-dark:    #2C2C2C;
  --sp-text:    #444444;
  --sp-muted:   #555555;
  --sp-border:  #EEEEEE;
}

/* ── Page base ── */
.sp-page {
  background: #ffffff;
  color: var(--sp-text);
  margin: 0;
  padding: 0;
}

/* ── Header: black by default, white over dark sections ── */
.sp-page .logo img {
  filter: invert(1);
  transition: filter 0.45s ease;
}
.sp-page .nav a {
  color: #1a1a1a;
}
.sp-page .nav a:hover { background-size: 100% 1px; }
.sp-page .nav a.active { font-weight: 700; }
/* Inverted: white text over dark hero */
.sp-page .header--inverted .logo img { filter: invert(0); }
.sp-page .header--inverted .nav a   { color: #ffffff; }
.sp-page .header--inverted .nav a:hover { background-size: 100% 1px; }

/* ══════════════════════════════════════
   ① HERO
   ══════════════════════════════════════ */
/* First screen wrapper: hero + overview = 100vh */
.sp-first-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 600px;
}

.sp-hero {
  background: linear-gradient(135deg, #E8422A 0%, #FF7043 100%);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 120px;
  gap: 40px;
  min-height: 0;
}

.sp-hero-left {
  flex: 0 0 50%;
  min-width: 0;
}

.sp-hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin: 0 0 24px;
}

.sp-hero-subtitle {
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.sp-hero-right {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sp-hero-right img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(50px);
}

/* ══════════════════════════════════════
   ② OVERVIEW (4 columns)
   ══════════════════════════════════════ */
.sp-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 120px;
  background: white;
  flex-shrink: 0;
  align-items: flex-start;
}

.sp-overview-col h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--sp-dark);
  margin: 0 0 16px;
}

.sp-overview-col p,
.sp-overview-col li {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--sp-muted);
  line-height: 1.7;
}

.sp-overview-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-overview-col ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.sp-overview-col ul li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--sp-dark);
  font-size: 20px;
  line-height: 1;
  top: 1px;
}

/* ══════════════════════════════════════
   GENERIC CONTENT SECTIONS
   ══════════════════════════════════════ */
.sp-section {
  padding: 80px 120px;
  background: white;
}

.sp-section-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.sp-section-left {
  flex: 0 0 40%;
  min-width: 0;
}

.sp-section-right {
  flex: 1;
  min-width: 0;
}

.sp-section-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.sp-section-heading {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--sp-dark);
  margin: 0 0 24px;
  line-height: 1.15;
}

.sp-subheading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--sp-dark);
  margin: 0 0 16px;
}

.sp-section-text {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--sp-text);
  line-height: 1.7;
  margin: 0 0 20px;
}

.sp-section-text:last-child {
  margin-bottom: 0;
}

/* Numbered list for challenges */
.sp-numbered-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.sp-numbered-list li {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--sp-text);
  line-height: 1.6;
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}

.sp-numbered-list li .sp-num {
  position: absolute;
  left: 0;
  color: var(--sp-dark);
  font-weight: 700;
  font-size: 15px;
}

/* Bullet list generic */
.sp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.sp-bullet-list li {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--sp-text);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.sp-bullet-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--sp-dark);
  font-size: 20px;
  line-height: 1;
  top: 1px;
}

/* White bullet variant for colored cards */
.sp-bullet-white li {
  color: rgba(255,255,255,0.9);
}
.sp-bullet-white li::before {
  color: #fff;
}

/* Sub-headings inside left column */
.sp-sub-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--sp-dark);
  margin: 28px 0 10px;
}

/* ══════════════════════════════════════
   REAL-WORLD CONSTRAINTS CARDS (right-side)
   ══════════════════════════════════════ */
.sp-constraint-card {
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 16px;
  color: white;
}

.sp-constraint-card:last-child {
  margin-bottom: 0;
}

.sp-constraint-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: white;
  margin: 0 0 12px;
  line-height: 1.4;
}

.sp-constraint-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-constraint-card ul li {
  font-family: var(--font-text);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}

.sp-constraint-card ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1;
  top: 2px;
}

.sp-constraint-card.orange {
  background: #E8522A;
}

.sp-constraint-card.teal {
  background: #1AB5B5;
}

.sp-constraint-card.purple {
  background: #7B5EA7;
}

/* Remove default body bottom gap */
.sp-page {
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════
   LAST SCREEN WRAPPER (impact + thank you)
   ══════════════════════════════════════ */
.sp-last-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 600px;
  margin-bottom: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════
   IMPACT + KEY LEARNINGS (white section)
   ══════════════════════════════════════ */
.sp-impact-section {
  background: white;
  padding: 48px 120px;
  flex: 0 0 40%;
  display: flex;
  align-items: center;
}

.sp-impact-inner {
  display: flex;
  gap: 60px;
  width: 100%;
}

.sp-impact-col {
  flex: 1;
}

.sp-impact-col h3 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--sp-dark);
  margin: 0 0 20px;
}

/* ══════════════════════════════════════
   THANK YOU / FOOTER
   ══════════════════════════════════════ */
.sp-thankyou {
  background: linear-gradient(135deg, #E8422A 0%, #FF7043 100%);
  padding: 60px 120px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex: 1;
  min-height: 0;
}

.sp-thankyou h2 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: white;
  flex: 0 0 40%;
  margin: 0 0 0 160px;
  line-height: 1.1;
}

.sp-thankyou-img {
  flex: 0 0 50%;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.sp-thankyou-img img {
  max-height: 80%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: scale(0.8) translateX(-160px);
  transform-origin: center right;
}

/* ══════════════════════════════════════
   SCROLL FADE-IN ANIMATION
   ══════════════════════════════════════ */
.sp-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sp-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .sp-hero {
    padding: 60px 40px;
    flex-direction: column;
  }

  .sp-hero-left,
  .sp-hero-right {
    flex: none;
    width: 100%;
  }

  .sp-hero-title {
    font-size: 48px;
  }

  .sp-overview {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px;
  }

  .sp-section {
    padding: 60px 40px;
  }

  .sp-section-inner {
    flex-direction: column;
  }

  .sp-section-left,
  .sp-section-right {
    flex: none;
    width: 100%;
  }

  .sp-section-heading {
    font-size: 44px;
  }

  .sp-impact-section {
    padding: 60px 40px;
  }

  .sp-impact-inner {
    flex-direction: column;
  }

  .sp-thankyou {
    padding: 60px 40px;
    flex-direction: column;
  }

  .sp-thankyou h2 {
    font-size: 60px;
    flex: none;
  }

  .sp-thankyou-img {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: 40px 24px;
  }

  .sp-hero-title {
    font-size: 36px;
  }

  .sp-hero-subtitle {
    font-size: 17px;
  }

  .sp-overview {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .sp-section {
    padding: 48px 24px;
  }

  .sp-section-heading {
    font-size: 36px;
  }

  .sp-impact-section {
    padding: 48px 24px;
  }

  .sp-thankyou {
    padding: 48px 24px;
  }

  .sp-thankyou h2 {
    font-size: 48px;
  }
}
