/* ============================================================
   mypoints.be — Design System
   Palette: White / Pastel Yellow / Gold
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --white:        #FFFFFF;
  --off-white:    #FDFBF4;
  --yellow-light: #FFF9E6;
  --yellow-soft:  #FFF0B2;
  --yellow-mid:   #FFE066;
  --yellow-main:  #FFD740;
  --yellow-deep:  #F5C518;
  --yellow-dark:  #D4A900;
  --gold:         #C8960C;
  --text-dark:    #1A1A2E;
  --text-mid:     #3D3D5C;
  --text-soft:    #7B7B9A;
  --gray-light:   #F4F4F8;
  --gray-border:  #E8E8F0;
  --success:      #2ECC71;
  --danger:       #E74C3C;

  --radius-xs:    0.5rem;
  --radius-sm:    1rem;
  --radius-md:    1.5rem;
  --radius-lg:    2rem;
  --radius-xl:    3rem;
  --radius-pill:  9999px;

  --shadow-sm:    0 2px 12px rgba(245, 197, 24, 0.10);
  --shadow-md:    0 8px 32px rgba(245, 197, 24, 0.18);
  --shadow-lg:    0 16px 64px rgba(245, 197, 24, 0.22);
  --shadow-card:  0 4px 24px rgba(26, 26, 46, 0.08);

  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height:   72px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  animation: pageIn 0.38s ease both;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); }
.text-small { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.font-500   { font-weight: 500; }
.font-600   { font-weight: 600; }
.font-700   { font-weight: 700; }

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 6rem 0;
}
.section-sm {
  padding: 3.5rem 0;
}
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }
.gap-6  { gap: 3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--yellow-main);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--yellow-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-yellow {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--yellow-main);
}
.btn-outline-yellow:hover {
  background: var(--yellow-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text-dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--text-mid);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: none;
  padding: 0.7rem 1.2rem;
}
.btn-ghost:hover { color: var(--text-dark); }

.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn-icon { padding: 0.85rem; border-radius: var(--radius-pill); }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-yellow { background: var(--yellow-soft); color: var(--gold); }
.badge-green  { background: #E8FBF0; color: #1A8A4A; }
.badge-dark   { background: var(--text-dark); color: var(--white); }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow-mid);
}
.card-yellow {
  background: var(--yellow-light);
  border-color: var(--yellow-soft);
}

/* ── Icon Box ───────────────────────────────────────────────── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.icon-box-lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  font-size: 2rem;
}
.icon-box-circle {
  border-radius: 50%;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header .label {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: var(--yellow-soft);
  color: var(--gold);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { font-size: 1.05rem; color: var(--text-soft); }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-border);
  margin: 0 auto;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-border);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
}
.nav-logo .logo-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow-main);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-dark); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
/* Icon-btn baseline (desktop: icon + text side by side) */
.nav-icon-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-btn-icon { width: 0.9rem; height: 0.9rem; stroke-width: 2; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
/* Burger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.35rem;
}
.lang-btn {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-soft);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  background: linear-gradient(160deg, var(--yellow-light) 0%, var(--white) 55%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--yellow-soft) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-soft);
  color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  color: var(--yellow-dark);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 6px;
  background: var(--yellow-main);
  border-radius: var(--radius-pill);
  opacity: 0.6;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 460px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}
.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.hero-stat .label-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ── iPhone 15 Pro Max Mockup ─────────────────────────────────── */
.phone-mockup {
  width: 260px;
  height: 520px;
  background: #1c1c1e;
  border-radius: 52px;
  padding: 0;
  box-shadow:
    0 0 0 1.5px #4a4a4c,
    0 0 0 3.5px #1c1c1e,
    0 40px 90px rgba(0,0,0,0.5),
    0 8px 32px rgba(245,197,24,0.15),
    inset 0 1px 0 rgba(255,255,255,0.09);
  position: relative;
  z-index: 2;
  overflow: visible;
}
/* Volume buttons (left) — positioned relative to 520px height */
.phone-mockup::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 118px;
  width: 4px;
  height: 32px;
  background: #4a4a4c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 48px 0 #4a4a4c;
}
/* Power button (right) */
.phone-mockup::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 148px;
  width: 4px;
  height: 74px;
  background: #4a4a4c;
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  background: #f2f2f7;
  border-radius: 46px;
  overflow: hidden;
  /* fill the full phone height minus top+bottom bezel margin */
  height: calc(520px - 24px);
  margin: 12px 11px;
  display: flex;
  flex-direction: column;
}
/* Dynamic Island */
.phone-dynamic-island {
  width: 85px;
  height: 25px;
  background: #000;
  border-radius: 24px;
  margin: 16px auto 0;
  flex-shrink: 0;
}
/* Status bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px 3px;
  flex-shrink: 0;
}
.status-time {
  font-size: 0.65rem;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: -0.03em;
  font-family: inherit;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Wallet app top nav */
.wallet-app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 18px 8px;
  flex-shrink: 0;
}
.wallet-app-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: -0.03em;
}
.wallet-app-add {
  width: 24px;
  height: 24px;
  background: rgba(0,122,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
}

/* ── Apple Wallet Pass Card ───────────────────────────────────── */
.wallet-pass {
  margin: 0 14px 10px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 2px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
/* Colored strip (top section of pass) */
.pass-strip {
  background: linear-gradient(145deg, #181836 0%, #2c2c66 55%, #181836 100%);
  padding: 13px 16px 11px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pass-strip::after {
  content: '';
  position: absolute;
  top: -28px; right: -18px;
  width: 88px; height: 88px;
  background: radial-gradient(circle, rgba(255,215,64,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.pass-logo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.pass-logo-text {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.pass-points-pill {
  background: rgba(255,215,64,0.15);
  border: 1px solid rgba(255,215,64,0.4);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.54rem;
  font-weight: 700;
  color: #ffd740;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.pass-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.97;
  position: relative;
  z-index: 1;
}
.pass-stamps-row {
  display: flex;
  gap: 4px;
  margin-bottom: 7px;
  position: relative;
  z-index: 1;
}
.pass-stamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.pass-stamp.filled {
  background: #ffd740;
  border-color: #ffd740;
  position: relative;
}
.pass-stamp.filled::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  background: #1a1a1a;
  border-radius: 50%;
}
.pass-progress-label {
  font-size: 0.5rem;
  opacity: 0.5;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
/* White lower body of pass */
.pass-body {
  background: #fff;
  padding: 10px 16px 9px;
}
.pass-fields-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.pass-field-item { display: flex; flex-direction: column; gap: 2px; }
.pass-field-item.align-right { text-align: right; }
.pass-field-label {
  font-size: 0.44rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8e8e93;
  font-weight: 600;
}
.pass-field-value {
  font-size: 0.62rem;
  font-weight: 600;
  color: #1c1c1e;
}
.pass-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.pass-qr-hint {
  font-size: 0.44rem;
  color: #8e8e93;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.wallet-pass .qr-placeholder {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  gap: 2px;
}
.wallet-pass .qr-cell { background: #1c1c1e; border-radius: 0.5px; opacity: 0; }
.wallet-pass .qr-cell.on { opacity: 1; }
/* Home indicator bar */
.phone-home-bar {
  height: 26px;
  padding-top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f2f2f7;
}
.phone-home-bar::after {
  content: '';
  width: 116px;
  height: 5px;
  background: #1c1c1e;
  border-radius: 3px;
  opacity: 0.18;
}

/* ── Legacy wallet/stamp classes (used in dashboard) ──────────── */
.wallet-card {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d50 100%);
  border-radius: 1.2rem;
  padding: 1rem;
  color: var(--white);
}
.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.wallet-brand { font-size: 0.65rem; font-weight: 700; opacity: 0.7; }
.wallet-name  { font-size: 0.8rem; font-weight: 700; }
.stamps-grid  {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  transition: var(--transition);
}
.stamp.filled {
  background: var(--yellow-main);
  border-color: var(--yellow-main);
  color: var(--text-dark);
}
.stamp.filled::after { content: '✓'; font-weight: 700; }
.wallet-progress { font-size: 0.6rem; opacity: 0.6; text-align: center; }
.wallet-qr {
  background: var(--white);
  border-radius: 0.8rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.qr-placeholder {
  width: 60px;
  height: 60px;
  background: var(--gray-light);
  border-radius: 0.4rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px;
}
.qr-cell { background: var(--text-dark); border-radius: 1px; opacity: 0; }
.qr-cell.on { opacity: 1; }
.wallet-qr-label { font-size: 0.55rem; color: var(--text-soft); font-weight: 600; }

/* Floating badges around phone */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: floatUp 3s ease-in-out infinite;
  z-index: 3;
}
.float-badge .badge-icon { font-size: 1.1rem; }
.float-badge-1 { top: 10%; left: -5%; animation-delay: 0s; }
.float-badge-2 { top: 45%; right: -8%; animation-delay: 1.5s; }
.float-badge-3 { bottom: 12%; left: -3%; animation-delay: 0.75s; }

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* QR pulse ring */
.qr-pulse {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 1.2rem;
  background: var(--yellow-main);
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
  z-index: 1;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Steps / How it works ───────────────────────────────────── */
.steps-section { background: var(--off-white); }

.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-flow::before {
  content: '';
  position: absolute;
  top: 40px; left: calc(16.67% + 28px); right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--yellow-mid), var(--yellow-deep));
  border-radius: 2px;
}
.step-item {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow-main);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.step-item h4 { margin-bottom: 0.5rem; }
.step-item p  { font-size: 0.9rem; }

/* ── Features Grid ──────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card:hover {
  border-color: var(--yellow-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-card h4 { font-size: 1.05rem; }
.feature-card p  { font-size: 0.9rem; color: var(--text-soft); }

/* ── Smart Features ─────────────────────────────────────────── */
.smart-section {
  background: linear-gradient(135deg, var(--yellow-light) 0%, var(--yellow-soft) 100%);
}
.smart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.smart-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.9);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}
.smart-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.smart-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--yellow-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(245,197,24,0.3);
}
.smart-card h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.smart-card p  { font-size: 0.875rem; color: var(--text-soft); }
.smart-tag {
  display: inline-block;
  background: var(--yellow-main);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ── For Merchants ──────────────────────────────────────────── */
.merchant-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.merchant-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.merchant-card-ui {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  border: 1px solid var(--gray-border);
}
.merchant-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.merchant-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-border);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label-text { font-size: 0.85rem; color: var(--text-soft); }
.stat-row .value { font-weight: 700; font-size: 1.05rem; }
.stat-row .value.green { color: var(--success); }
.merchant-qr-badge {
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--yellow-main);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
  animation: floatUp 3s ease-in-out infinite;
}
.checkmark-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--yellow-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-weight: 700;
}
.check-item p { font-size: 0.95rem; }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-section { background: var(--off-white); }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-border);
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 22px; height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--yellow-main);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}
.toggle-label { font-weight: 500; color: var(--text-soft); }
.toggle-label.active { color: var(--text-dark); font-weight: 600; }
.save-badge {
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 2px solid var(--gray-border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--yellow-main);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card:hover {
  border-color: var(--yellow-mid);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-2px); }
.recommended-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow-main);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name  { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.plan-price { margin: 1rem 0; }
.plan-price .amount { font-size: 3rem; font-weight: 800; line-height: 1; }
.plan-price .period { font-size: 0.9rem; color: var(--text-soft); }
.plan-price .original { text-decoration: line-through; color: var(--text-soft); font-size: 1rem; margin-right: 0.3rem; }
.plan-desc  { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.plan-divider { height: 1px; background: var(--gray-border); margin: 1.5rem 0; }
.plan-features { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }
.plan-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.plan-feature .tick { color: var(--success); font-weight: 700; }
.plan-feature .cross { color: var(--danger); }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--yellow-mid);
  transform: translateY(-3px);
}
.stars { color: var(--yellow-deep); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.author-name  { font-weight: 600; font-size: 0.9rem; }
.author-biz   { font-size: 0.8rem; color: var(--text-soft); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { background: var(--off-white); }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--yellow-main); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 1rem;
  transition: var(--transition);
}
.faq-question:hover { background: var(--yellow-light); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-dark);
}
.faq-item.open .faq-icon {
  background: var(--yellow-main);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.75; padding-bottom: 1.25rem; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--yellow-mid) 0%, var(--yellow-main) 60%, var(--yellow-deep) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: var(--white);
}
.cta-section::before {
  width: 400px; height: 400px;
  top: -150px; right: -100px;
}
.cta-section::after {
  width: 300px; height: 300px;
  bottom: -120px; left: -80px;
}
.cta-section h2 { color: var(--text-dark); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section p  { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-trust { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-mid); position: relative; z-index: 1; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 240px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.footer-col a  { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 0.6rem; transition: var(--transition); }
.footer-col a:hover { color: var(--yellow-main); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--yellow-main); color: var(--text-dark); }

/* ── App Pages — Shared ──────────────────────────────────────── */
.app-page {
  min-height: 100vh;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
}
.app-header {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-content { flex: 1; padding: 2rem 1.5rem; }
.app-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-border);
}

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-dark); }
.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--yellow-main); box-shadow: 0 0 0 4px rgba(255,215,64,0.15); }
.form-input::placeholder { color: var(--text-soft); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.5rem; }
.form-checkbox input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 20px; height: 20px; min-width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--yellow-main);
  cursor: pointer;
}
.form-checkbox label { font-size: 0.85rem; color: var(--text-soft); cursor: pointer; }
.form-checkbox a { color: var(--yellow-dark); font-weight: 600; }

/* Onboard steps */
.onboard-step { display: none; }
.onboard-step.active { display: block; }
.step-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-border);
  transition: var(--transition);
}
.step-dot.active { background: var(--yellow-main); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--success); }

/* Success animation */
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.stamp-preview {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d50 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: var(--white);
  margin: 1.5rem 0;
}

/* ── Vendor Scanner ──────────────────────────────────────────── */
.scanner-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--text-dark);
  box-shadow: var(--shadow-lg);
}
#reader { width: 100% !important; height: 100% !important; }
#reader video { border-radius: var(--radius-xl) !important; }
.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scan-frame {
  width: 200px; height: 200px;
  border: 3px solid var(--yellow-main);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 2000px rgba(0,0,0,0.5);
  animation: scanBlink 1.5s ease-in-out infinite;
}
@keyframes scanBlink {
  0%, 100% { border-color: var(--yellow-main); }
  50%       { border-color: var(--yellow-deep); box-shadow: 0 0 20px var(--yellow-main), 0 0 0 2000px rgba(0,0,0,0.5); }
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow-main), transparent);
  animation: scanLine 2s linear infinite;
}
@keyframes scanLine {
  0%   { top: 10%; }
  100% { top: 90%; }
}

/* Stamp confirmation toast */
.stamp-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(200%);
  background: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}
.stamp-toast.show { transform: translateX(-50%) translateY(0); }
.stamp-toast .stamp-emoji { font-size: 1.5rem; animation: stampBounce 0.4s ease; }
@keyframes stampBounce {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Recent scans */
.scan-list { display: flex; flex-direction: column; gap: 0.75rem; }
.scan-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-border);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scan-item .client-name { font-weight: 600; font-size: 0.9rem; }
.scan-item .scan-time   { font-size: 0.78rem; color: var(--text-soft); }
.scan-item .stamp-count {
  background: var(--yellow-main);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-card);
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.stat-card .stat-val { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.stat-card .stat-lbl { font-size: 0.82rem; color: var(--text-soft); }
.stat-card .stat-change { font-size: 0.78rem; color: var(--success); font-weight: 600; margin-top: 0.3rem; }

.clients-table {
  width: 100%;
  border-collapse: collapse;
}
.clients-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  border-bottom: 2px solid var(--gray-border);
}
.clients-table td {
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-border);
}
.clients-table tr:hover td { background: var(--yellow-light); }
.client-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.progress-bar-wrap {
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
  width: 80px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-mid), var(--yellow-deep));
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

/* QR display */
.qr-display {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-border);
}
.qr-code-box {
  width: 160px; height: 160px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 2px dashed var(--gray-border);
}

/* Upgrade banner */
.upgrade-banner {
  background: linear-gradient(135deg, var(--yellow-mid), var(--yellow-deep));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}
.upgrade-banner h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.upgrade-banner p  { font-size: 0.82rem; color: var(--text-mid); }

/* Sidebar nav */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--text-dark);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar-link.active { background: var(--yellow-main); color: var(--text-dark); font-weight: 600; }
.sidebar-spacer { flex: 1; }
.sidebar-plan-badge {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  text-align: center;
}
.sidebar-plan-badge .plan-name-sm { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-plan-badge .plan-val    { font-size: 1rem; font-weight: 700; color: var(--yellow-main); }
.dashboard-main { background: var(--off-white); padding: 2rem; overflow-y: auto; }
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* ── Scroll animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile Nav Drawer ───────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav.open { display: block; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
@keyframes mp-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-nav.open .mobile-nav-backdrop { animation: mp-backdrop-in 0.35s ease both; }
.mobile-nav-links a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-border);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  color: var(--text-dark);
}
/* Ambassador link at bottom of mobile nav */
.mob-ambassador-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--gray-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mob-ambassador-link:hover { color: var(--gold); }
.mob-ambassador-link svg { width: 0.85rem; height: 0.85rem; fill: var(--yellow-main); stroke: var(--gold); flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Pricing: 3 columns is too tight below 1024px */
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  /* Featured card: no scale at mid-sizes (avoids visual overflow) */
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-2px); }

  /* Merchant section: tighter gap */
  .merchant-section .container { gap: 2.5rem; }

  /* Feature grid: 2 cols at tablet */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .lang-switcher { display: none; }

  .nav-btn-icon { width: 1.05rem; height: 1.05rem; stroke-width: 2; }

  .hero .container  { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-subtitle    { margin: 0 auto 2rem; }
  .hero-actions     { justify-content: center; }
  .hero-stats       { justify-content: center; }
  .hero-visual      { order: -1; }

  /* Scale down phone mockup to fit mobile screen */
  .phone-mockup {
    width: 210px !important;
    height: 418px !important;
    border-radius: 42px !important;
  }
  .phone-screen         { border-radius: 36px !important; margin: 10px 9px !important; height: calc(418px - 20px) !important; }
  .phone-dynamic-island { width: 84px !important; height: 22px !important; margin: 10px auto 0 !important; }
  .wallet-pass          { margin: 0 10px 6px !important; }
  .pass-strip           { padding: 9px 12px 8px !important; }
  .pass-body            { padding: 7px 12px 6px !important; }
  .wallet-pass .qr-placeholder { width: 48px !important; height: 48px !important; }
  .phone-mockup::before { top: 94px !important; }
  .phone-mockup::after  { top: 118px !important; height: 52px !important; }
  .phone-home-bar       { height: 20px !important; }

  .steps-flow       { grid-template-columns: 1fr; }
  .steps-flow::before { display: none; }

  .grid-2, .grid-3  { grid-template-columns: 1fr; }
  .smart-grid        { grid-template-columns: 1fr; }
  .pricing-cards     { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  /* Space for the absolutely-positioned badge above the card */
  .carousel-outer:has(.recommended-badge) { padding-top: 18px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .merchant-section .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .merchant-visual { width: 100%; }
  .merchant-card-ui { max-width: 100%; padding: 1.25rem; }

  .dashboard-layout  { grid-template-columns: 1fr; }
  .sidebar           { display: none; }
  .dashboard-grid    { grid-template-columns: repeat(2, 1fr); }

  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }

  .float-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    gap: 0.3rem;
    border-radius: 20px;
  }
  .float-badge .badge-icon svg { width: 0.7rem; height: 0.7rem; }
  .float-badge-1 { top: 6%; left: 2%; }
  .float-badge-2 { top: 42%; right: 2%; }
  .float-badge-3 { bottom: 8%; left: 2%; }
}

@media (max-width: 640px) {
  section.section-sm:has(.trust-carousel-wrap) { padding: 1.25rem 0; }
  .trust-item { font-size: 0.85rem; }
  .trust-carousel { gap: 2rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════
   UNIFIED MOBILE BOTTOM NAV — single-row slide
══════════════════════════════════════════════════════════════ */
.unified-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 58px;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}
@media (max-width: 768px) {
  .unified-bottom-nav { display: block; }
}
.unified-nav-track {
  display: flex;
  width: 200vw;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.unified-nav-track.show-profil { transform: translateX(-100vw); }
.unified-panel {
  width: 100vw;
  display: flex;
  height: 100%;
  align-items: stretch;
}
.unified-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.13rem;
  padding: 0.4rem 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-border);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.unified-btn:last-child { border-right: none; }
.unified-btn svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; stroke-width: 1.75; flex-shrink: 0; }
.unified-btn.active { color: var(--text-dark); background: var(--yellow-light); }
.unified-btn.nav-arrow {
  flex: 0 0 52px;
  background: var(--gray-light);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.58rem;
}
.unified-btn.nav-arrow svg { stroke: var(--gold); }

/* ══════════════════════════════════════════════════════════
   TRUST BAR — Scrolling marquee carousel
══════════════════════════════════════════════════════════════ */
.trust-carousel-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.trust-carousel {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: trust-scroll 22s linear infinite;
  opacity: 0.55;
  filter: grayscale(1);
}
.trust-carousel:hover { animation-play-state: paused; }
.trust-item {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   STEPS — Icon + numbered badge (no double circle)
══════════════════════════════════════════════════════════════ */
.step-icon-wrap {
  position: relative;
  width: 72px;
  margin: 0 auto 1.25rem;
}
.step-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 2.5px solid var(--off-white, #fafafa);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* Connector line now aligns with icon-box center (72px box, ~32px top padding in step-item) */
.steps-flow::before { top: calc(2rem + 36px); }

/* ══════════════════════════════════════════════════════════
   NAV — Responsive button text helpers
══════════════════════════════════════════════════════════════ */
/* .btn-text-short hidden by default, shown on mobile */
.btn-text-short { display: none; }

@media (max-width: 768px) {
  /* "Commencer gratuitement" → "Démarrer" */
  .btn-text-full  { display: none; }
  .btn-text-short { display: inline; }

  /* "Devenir ambassadeur" icon */
  .nav-icon-btn .btn-text { display: none; }
  .nav-icon-btn {
    padding: 0.55rem !important;
    width: 36px; height: 36px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    border-radius: 50% !important;
  }
}

/* ══════════════════════════════════════════════════════════
   CAROUSEL — Touch-friendly swipe carousel
══════════════════════════════════════════════════════════════ */
.carousel-outer { position: relative; overflow-x: clip; overflow-y: visible; }
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-track > * {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--gray-border);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  border: none; padding: 0; flex-shrink: 0;
}
.carousel-dot.active {
  background: var(--yellow-main);
  width: 22px;
}
.carousel-progress-wrap {
  height: 3px;
  background: var(--gray-border);
  border-radius: 2px;
  margin-top: 0.65rem;
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow-main));
  border-radius: 2px;
  width: 0%;
}

/* ── Shared mobile topbar + bottom nav (dashboard / profil / settings / flyer) ── */
.mobile-topbar {
  display: none;
  background: var(--text-dark);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  box-sizing: border-box;
}
.mobile-topbar .logo       { font-weight: 800; font-size: 1rem; }
.mobile-topbar .logo-dot   { width: 7px; height: 7px; background: var(--yellow-main); border-radius: 50%; display: inline-block; }

.mobile-bottom-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 0.6rem 0.5rem;
  justify-content: space-around;
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.mobile-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.mobile-bottom-nav-btn svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; stroke-width: 1.75; }
.mobile-bottom-nav-btn.active { color: var(--text-dark); background: var(--yellow-light); }
.mobile-bottom-nav-btn:hover  { color: var(--text-dark); }

@media (max-width: 768px) {
  .mobile-topbar     { display: flex !important; }
  .mobile-bottom-nav { display: flex !important; }
  .merchant-card-header { display: none !important; }
  .merchant-visual      { display: none !important; }
}
