/* ==========================================================================
   HABITAPEX — APPLE-TIER MASTER SECTIONS STYLESHEET
   Inspired directly by Apple.com (iPhone 16 Pro, Apple Intelligence, iOS 18)
   Zero tacky neon glows, zero rainbow text gradients, zero emojis.
   Pure white canvas (#ffffff) with Apple Bento Gray (#f5f5f7) surfaces.
   ========================================================================== */

/* ── Apple Design System Tokens ─────────────────────────────────────────── */
:root {
  --apple-bg: #ffffff;
  --apple-surface: #f5f5f7;
  --apple-surface-hover: #ececee;
  --apple-surface-card: #ffffff;
  --apple-border: rgba(0, 0, 0, 0.06);
  --apple-border-subtle: rgba(0, 0, 0, 0.04);
  --apple-border-hover: rgba(0, 0, 0, 0.14);
  
  --apple-text-primary: #1d1d1f;
  --apple-text-secondary: #86868b;
  --apple-text-tertiary: #a1a1a6;
  --apple-accent: #0071e3;
  --apple-accent-hover: #0077ed;
  
  --apple-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", -apple-system-subheadline, "Helvetica Neue", sans-serif;
  --apple-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", -apple-system-body, "Helvetica Neue", sans-serif;
  --apple-font-mono: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  
  --apple-radius-sm: 12px;
  --apple-radius-md: 18px;
  --apple-radius-lg: 24px;
  --apple-radius-xl: 30px;
  --apple-radius-pill: 9999px;
  
  --apple-shadow-ambient: 0 4px 24px rgba(0, 0, 0, 0.03);
  --apple-shadow-lifted: 0 16px 40px -10px rgba(0, 0, 0, 0.07);
  --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Universal Section Baseline (All Post-Hero Sections) ────────────────── */
.section--dark-obsidian {
  background: var(--apple-bg) !important;
  color: var(--apple-text-primary);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--apple-border-subtle);
}

/* Hide all obsolete neon glows completely */
.spatial-glow {
  display: none !important;
}

/* ── Apple Stacked Dual-Tone Headline Typography ────────────────────────── */
.apple-headline {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin-inline: auto;
}

.apple-headline--left {
  text-align: left;
  margin-inline: 0;
}

.apple-headline__eyebrow {
  display: inline-block;
  font-family: var(--apple-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-accent);
  margin-bottom: 0.75rem;
}

.apple-headline__eyebrow--neutral {
  color: var(--apple-text-secondary);
}

.apple-headline__primary {
  display: block;
  font-family: var(--apple-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

.apple-headline__secondary {
  display: block;
  font-family: var(--apple-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  font-weight: 500;
  color: var(--apple-text-secondary);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 0.25rem;
}

.apple-headline__sub {
  font-family: var(--apple-font-text);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--apple-text-secondary);
  line-height: 1.52;
  letter-spacing: -0.01em;
  max-width: 64ch;
  margin: 1.25rem auto 0;
}

.apple-headline--left .apple-headline__sub {
  margin-inline: 0;
}

/* Backwards compatibility for existing markup */
.section-title--light,
.section-title--dark {
  font-family: var(--apple-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--apple-text-primary) !important;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-sub--light,
.section-sub--dark {
  font-family: var(--apple-font-text);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--apple-text-secondary) !important;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.eyebrow--light,
.eyebrow--dark {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-accent) !important;
}

/* Apple Tagline gradient removal: pure charcoal/slate */
.gradient-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  color: var(--apple-text-secondary) !important;
  font-weight: 500;
}

/* ── Apple Bento Card Base ──────────────────────────────────────────────── */
.glass-card,
.apple-card {
  position: relative;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--apple-shadow-ambient);
  transition: transform 0.35s var(--apple-ease), border-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}

.glass-card:hover,
.apple-card:hover {
  border-color: var(--apple-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--apple-shadow-lifted);
}

/* ── Apple SVG Icon Helper ──────────────────────────────────────────────── */
.apple-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.apple-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SECTION 2: THE CONTRAST (#contrast)
   ========================================================================== */
.contrast-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.contrast-card--old {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contrast-card--old .contrast-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.contrast-card--old h3 {
  font-family: var(--apple-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contrast-card--old p {
  font-size: 0.9375rem;
  color: var(--apple-text-secondary);
  line-height: 1.5;
}

.old-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 1.5rem;
}

.old-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--apple-radius-sm);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
}

.old-check-item.item--missed {
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

.old-check-item .miss-flag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.broken-streak-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--apple-radius-md);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.broken-streak-alert .alert-text {
  font-size: 0.84375rem;
  color: #64748b;
  line-height: 1.45;
}

.broken-streak-alert .alert-text strong {
  color: var(--apple-text-primary);
}

/* HabitApex Way Card */
.contrast-card--apex {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--apple-radius-lg);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  position: relative;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.contrast-card--apex .contrast-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--apple-radius-pill);
  background: #f0fdf4;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.contrast-card--apex h3 {
  font-family: var(--apple-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contrast-card--apex p {
  font-size: 0.9375rem;
  color: var(--apple-text-secondary);
  line-height: 1.5;
}

.focus-card-preview {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-md);
  padding: 1.5rem;
  margin-block: 1.25rem;
}

.focus-card-preview__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.focus-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.focus-card-score {
  font-family: var(--apple-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  padding: 3px 9px;
  border-radius: var(--apple-radius-pill);
}

.focus-card-title {
  font-family: var(--apple-font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  margin-bottom: 6px;
}

.focus-card-desc {
  font-size: 0.875rem;
  color: var(--apple-text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.courage-recovery-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--apple-radius-md);
  background: #f0fdf4;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #15803d;
  font-size: 0.84375rem;
  line-height: 1.45;
  margin-top: auto;
}

.courage-recovery-banner strong {
  color: #0f172a;
}

/* ==========================================================================
   SECTION 3: THE 3 CORE ENGINES (#engines)
   ========================================================================== */
.engines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.engine-card--wide {
  grid-column: span 2;
}

.engine-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.engine-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--apple-text-secondary);
}

.engine-card__pill--cyan {
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
  background: #f0f9ff;
}

.engine-card__pill--emerald {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.2);
  background: #f0fdf4;
}

.engine-card__pill--purple {
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.2);
  background: #f5f3ff;
}

.engine-card__header h3 {
  font-family: var(--apple-font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.engine-card__header p {
  font-size: 0.9375rem;
  color: var(--apple-text-secondary);
  line-height: 1.52;
  margin-top: 6px;
}

/* Priority Waterfall Scorer Widget */
.waterfall-scrubber-wrap {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--apple-radius-md);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.clock-timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.clock-timeline-bar span:first-child {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--apple-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clock-display-badge {
  font-family: var(--apple-font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  background: var(--apple-surface);
  padding: 4px 12px;
  border-radius: var(--apple-radius-pill);
  border: 1px solid var(--apple-border);
}

.clock-slider-control {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--apple-radius-pill);
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  margin-block: 1rem;
}

.clock-slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transition: transform 0.2s ease;
}

.clock-slider-control::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.waterfall-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
  min-height: 200px;
}

.wf-habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--apple-radius-sm);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  transition: all 0.35s var(--apple-ease);
}

.wf-habit-item.wf--focus {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 8px 24px -6px rgba(0, 113, 227, 0.12);
  transform: scale(1.01);
}

.wf-habit-item__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-habit-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-text-primary);
}

.wf-habit-urgency {
  font-size: 0.78125rem;
  color: var(--apple-text-secondary);
}

.wf-habit-score {
  font-family: var(--apple-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  border: 1px solid var(--apple-border);
  color: var(--apple-text-secondary);
}

.wf-habit-item.wf--focus .wf-habit-score {
  background: var(--apple-text-primary);
  color: #ffffff;
  border-color: var(--apple-text-primary);
}

/* Courage Engine Interactive Box */
.courage-interactive-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--apple-radius-md);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.courage-state-switcher {
  display: flex;
  gap: 6px;
  background: var(--apple-surface);
  padding: 4px;
  border-radius: var(--apple-radius-sm);
  margin-bottom: 1.25rem;
}

.courage-state-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--apple-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.courage-state-btn.active {
  background: #ffffff;
  color: var(--apple-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.courage-card-display {
  padding: 1.25rem;
  border-radius: var(--apple-radius-sm);
  transition: all 0.35s var(--apple-ease);
}

.courage-card-display.state--stress {
  background: #fef2f2;
  border: 1px solid #fee2e2;
}

.courage-card-display.state--calm {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.courage-card-title {
  font-family: var(--apple-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.state--stress .courage-card-title {
  color: #b91c1c;
}

.state--calm .courage-card-title {
  color: #15803d;
}

.courage-card-msg {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 1rem;
}

.micro-win-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--apple-radius-pill);
  background: var(--apple-text-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.micro-win-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Auri Voice Coach Box */
.auri-voice-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--apple-radius-md);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.auri-wave-container {
  height: 72px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apple-surface);
  border-radius: var(--apple-radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

#auri-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.auri-modes-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 1.25rem;
}

.auri-mode-btn {
  padding: 8px 4px;
  text-align: center;
  border-radius: 8px;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  color: var(--apple-text-secondary);
  font-size: 0.78125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auri-mode-btn:hover,
.auri-mode-btn.active {
  background: var(--apple-text-primary);
  border-color: var(--apple-text-primary);
  color: #ffffff;
}

.auri-quote-bubble {
  padding: 14px 18px;
  border-radius: var(--apple-radius-sm);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}

.voice-pill-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 6px 16px;
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--apple-text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.voice-pill-demo:hover {
  border-color: var(--apple-text-primary);
}

.voice-pill-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-accent);
}

/* ==========================================================================
   SECTION 5: 20-TIER MASTERY ARCHITECTURE (#gamification)
   ========================================================================== */
.rpg-stage {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.rpg-badge-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border-radius: var(--apple-radius-lg);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  text-align: center;
}

.rpg-badge-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-text-primary);
  margin-bottom: 1.25rem;
}

.rpg-badge-name {
  font-family: var(--apple-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.rpg-badge-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-text-secondary);
  margin-bottom: 1rem;
}

.rpg-badge-multiplier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  border: 1px solid var(--apple-border);
  color: var(--apple-text-primary);
  font-family: var(--apple-font-mono);
  font-weight: 600;
  font-size: 0.875rem;
}

.rpg-controls-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.rpg-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rpg-slider-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--apple-text-secondary);
}

.rpg-level-indicator {
  font-family: var(--apple-font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apple-text-primary);
}

.rpg-range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--apple-radius-pill);
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.rpg-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transition: transform 0.2s ease;
}

.rpg-range-input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.rpg-unlocks-box {
  padding: 1.25rem;
  border-radius: var(--apple-radius-sm);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rpg-unlocks-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-text-secondary);
  margin-bottom: 6px;
}

.rpg-unlock-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.45;
}

/* 3D Habit Completion Sandbox Card */
.gamification-demo-wrapper {
  margin-top: 4rem;
  text-align: center;
}

.card-perspective {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

#habit3dCard {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1.75rem;
  border-radius: var(--apple-radius-lg);
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08) !important;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s var(--apple-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

#habit3dCard:hover {
  border-color: rgba(0, 0, 0, 0.16) !important;
}

#habit3dCard #habitTitle {
  font-family: var(--apple-font-display);
  color: var(--apple-text-primary) !important;
  font-size: 1.125rem;
  font-weight: 700;
}

#habit3dCard p {
  color: var(--apple-text-secondary) !important;
}

#habit3dCard .text-zinc-400 {
  color: var(--apple-text-secondary) !important;
}

#habit3dCard .text-zinc-500 {
  color: var(--apple-text-tertiary) !important;
}

#habit3dCard .bg-zinc-800\/80 {
  background-color: var(--apple-surface) !important;
  border-color: var(--apple-border) !important;
}

#habit3dCard .border-zinc-800\/60,
#habit3dCard .border-zinc-700\/60 {
  border-color: var(--apple-border) !important;
}

#habit3dCard .text-amber-400 {
  color: var(--apple-text-primary) !important;
}

#habit3dCard .text-emerald-400 {
  color: #059669 !important;
}

#habit3dCard #habitCheckBtn {
  border-color: rgba(0, 0, 0, 0.2) !important;
  background: #ffffff;
}

#habit3dCard.card-completed-glow {
  box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

#habit3dCard.card-completed-glow #habitCheckBtn {
  background: #10b981;
  border-color: #10b981 !important;
}

#habit3dCard.card-completed-glow #checkSvg {
  color: #ffffff;
}

/* ==========================================================================
   SECTION 6: SPEED & DATA SOVEREIGNTY (#speed-privacy)
   ========================================================================== */
.speed-race-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.benchmark-card {
  padding: 2.25rem 2rem;
  border-radius: var(--apple-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.benchmark-card--cloud {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
}

.benchmark-card--sqlite {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.06);
}

.benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.benchmark-title {
  font-family: var(--apple-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apple-text-primary);
}

.benchmark-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--apple-radius-pill);
}

.benchmark-badge--cloud {
  background: #e2e8f0;
  color: #475569;
}

.benchmark-badge--sqlite {
  background: #d1fae5;
  color: #047857;
}

.benchmark-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  text-align: center;
}

.benchmark-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #64748b;
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: spin 1s infinite linear;
}

.benchmark-check-instant {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benchmark-timer {
  font-family: var(--apple-font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.03em;
}

.benchmark-card--sqlite .benchmark-timer {
  color: #059669;
}

.benchmark-test-trigger {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-speed-test {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--apple-radius-pill);
  background: var(--apple-text-primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-speed-test:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.privacy-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 3.5rem;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--apple-radius-pill);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  color: var(--apple-text-primary);
  font-size: 0.84375rem;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 7: TITAN PRO PRICING (#pricing)
   ========================================================================== */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.currency-toggle {
  display: flex;
  background: var(--apple-surface);
  padding: 3px;
  border-radius: var(--apple-radius-pill);
  border: 1px solid var(--apple-border);
}

.currency-btn {
  padding: 6px 16px;
  border-radius: var(--apple-radius-pill);
  border: none;
  background: transparent;
  color: var(--apple-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn.active {
  background: #ffffff;
  color: var(--apple-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--apple-radius-lg);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.35s var(--apple-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--apple-border-hover);
  box-shadow: var(--apple-shadow-lifted);
}

.pricing-card--popular {
  background: #ffffff;
  border: 2px solid var(--apple-text-primary);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--apple-radius-pill);
  background: var(--apple-text-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-tier-name {
  font-family: var(--apple-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pricing-tier-desc {
  font-size: 0.875rem;
  color: var(--apple-text-secondary);
  line-height: 1.45;
  margin-bottom: 1.5rem;
  min-height: 38px;
}

.pricing-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.pricing-currency {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--apple-text-primary);
}

.pricing-value {
  font-family: var(--apple-font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--apple-text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--apple-text-secondary);
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #334155;
}

.pricing-feature-item .check {
  color: var(--apple-text-primary);
  font-weight: 700;
}

.btn-pricing {
  width: 100%;
  padding: 13px;
  border-radius: var(--apple-radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--apple-text-primary);
  font-size: 0.90625rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
  display: block;
}

.btn-pricing:hover {
  background: var(--apple-surface);
  border-color: rgba(0, 0, 0, 0.2);
}

.pricing-card--popular .btn-pricing {
  background: var(--apple-text-primary);
  border-color: var(--apple-text-primary);
  color: #ffffff;
}

.pricing-card--popular .btn-pricing:hover {
  opacity: 0.88;
}

/* ==========================================================================
   SECTION 8: FAQ & SOCIAL PROOF (#faq)
   ========================================================================== */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

.testimonial-bubble {
  padding: 2rem;
  border-radius: var(--apple-radius-lg);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: #334155;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--apple-text-primary);
  font-size: 0.875rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--apple-text-primary);
}

.author-role {
  font-size: 0.78125rem;
  color: var(--apple-text-secondary);
}

/* Apple Support Accordion */
.faq-list-dark {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-card {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  background: transparent;
  border: none;
  color: var(--apple-text-primary);
  font-family: var(--apple-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.faq-icon-cross {
  font-size: 1.25rem;
  color: var(--apple-text-secondary);
  transition: transform 0.3s var(--apple-ease);
}

.faq-card.open .faq-icon-cross {
  transform: rotate(45deg);
  color: var(--apple-text-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--apple-ease);
}

.faq-body-inner {
  padding: 0 4px 22px 4px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--apple-text-secondary);
}

.faq-body-inner strong {
  color: var(--apple-text-primary);
}

/* ==========================================================================
   SECTION 10: APPLE-STYLE CTA FINAL (#download)
   ========================================================================== */
.cta-final {
  background: #ffffff !important;
  padding-block: clamp(5rem, 8vw, 8rem);
  text-align: center;
  position: relative;
  border-top: 1px solid var(--apple-border-subtle);
  scroll-margin-top: 100px;
}

.cta-final__h2 {
  font-family: var(--apple-font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--apple-text-primary) !important;
  margin-bottom: 0.75rem;
}

.cta-final__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--apple-text-secondary) !important;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.cta-final__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--apple-font-text);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--apple-radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apple--solid {
  background: var(--apple-text-primary);
  color: #ffffff;
  border: 1px solid var(--apple-text-primary);
}

.btn-apple--solid:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-apple--outline-white {
  background: #ffffff;
  color: var(--apple-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.btn-apple--outline-white:hover {
  background: var(--apple-surface);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-apple--glass-dark {
  background: var(--apple-surface);
  color: var(--apple-text-primary);
  border: 1px solid var(--apple-border);
}

.btn-apple--glass-dark:hover {
  background: #e5e5ea;
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .contrast-stage,
  .engines-grid,
  .rpg-stage,
  .speed-race-stage,
  .pricing-cards-grid,
  .testimonials-row {
    grid-template-columns: 1fr;
  }

  .engine-card--wide {
    grid-column: span 1;
  }

  .benchmark-test-trigger {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .glass-card,
  .contrast-card--old,
  .contrast-card--apex,
  .pricing-card {
    padding: 1.5rem;
  }

  .auri-modes-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-amount-wrap .pricing-value {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   APPLE KEYNOTE SECTIONS: STATEMENT, SHOWCASE & STATS
   ========================================================================== */

/* ── #statement: Apple Word Reveal Keynote Statement ───────────────────── */
.statement {
  background: #ffffff !important;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.statement__sticky {
  position: sticky;
  top: 0;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.statement__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-text-secondary);
  margin-bottom: 1.5rem;
}

.statement__text {
  font-family: var(--apple-font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: var(--apple-text-primary);
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 960px;
  margin: 0 auto;
}

.statement__text .scrub-word {
  opacity: 0.18;
  display: inline-block;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1d1d1f;
}

/* ── #showcase: Purpose-Built Device Screen Pinned Gallery ─────────────── */
.showcase {
  background: #ffffff !important;
  position: relative;
  padding-top: clamp(2rem, 4vw, 4rem);
}

/* ══════════════════════════════════════════════════════════════════
   3D JOURNEY & 4-STAGE WALKTHROUGH (From Habit Creation to Tracking)
══════════════════════════════════════════════════════════════════ */
.journey-3d {
  position: relative;
  background: #ffffff;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: visible;
  isolation: isolate;
}

.journey-3d__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  position: relative;
  z-index: 10;
}

/* Fixed Traveling 3D iPhone GLB model — Matches exact 276px x 578px chassis */
#journey-3d-model {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 276px;
  height: 578px;
  z-index: 20; /* In front of content (z-index 10), but behind predefined phone (z-index 30) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
  --poster-color: transparent;
}

.journey-3d__track {
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 18vh, 14rem);
  position: relative;
}

.journey-stage {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-block: 2.5rem;
}

.journey-stage__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  position: relative;
}

.journey-stage__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.journey-stage__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand, #3b82f6);
}

.journey-stage__title {
  font-family: var(--apple-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--apple-text-primary, #000000);
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.journey-stage__desc {
  font-size: 1.0625rem;
  color: var(--apple-text-secondary, #6b7280);
  line-height: 1.6;
}

.journey-stage__pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.journey-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.journey-pill svg {
  color: var(--color-brand, #3b82f6);
  flex-shrink: 0;
}

.journey-stage__device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 30; /* Predefined iPhone sits strictly in front of the 3D GLB model */
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  will-change: opacity, transform;
}

.journey-stage__phone {
  position: relative;
  width: 276px;
  height: 578px;
  background: #000000;
  border-radius: 44px;
  box-shadow:
    0 0 0 3px #444547,
    0 0 0 5px #1c1d1f,
    0 24px 50px -10px rgba(0, 0, 0, 0.35);
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 30;
  transition: opacity 0.18s ease-out;
}

.journey-stage__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.journey-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  .journey-stage__container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    text-align: center;
  }
  .journey-stage--right-text .journey-stage__container .journey-stage__device-wrap {
    order: 2;
  }
  .journey-stage__content {
    align-items: center;
    max-width: 100%;
  }
  .journey-stage__pills {
    align-items: center;
  }
  #journey-3d-model {
    width: 320px;
    height: 480px;
  }
}

/* ── #stats: By The Numbers Quantitative Spec Grid ─────────────────────── */
.stats {
  background: #ffffff !important;
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.stats__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.stat-card {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: all var(--apple-transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--apple-border-hover);
  box-shadow: var(--apple-shadow-lifted);
}

.stat-card__icon {
  margin-bottom: 1rem;
  color: var(--apple-text-primary);
  display: flex;
  align-items: center;
}

.stat-card__num {
  font-family: var(--apple-font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--apple-text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-text-primary);
  margin-top: 10px;
  margin-bottom: 6px;
}

.stat-card__sub {
  font-size: 0.84375rem;
  color: var(--apple-text-secondary);
  line-height: 1.5;
  margin: 0;
}

@keyframes appleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .showcase__pinned {
    flex-direction: column;
    position: relative;
    top: 0;
    height: auto;
    padding-top: 2rem;
    gap: 2rem;
  }
  .showcase__device {
    transform: none;
  }
  .showcase__panels {
    min-height: auto;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Official Store Badges (Equalized Height & Aspect Ratio) ────────────── */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badges--vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  border-radius: 8px;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.store-badge-btn {
  font: inherit;
  color: inherit;
}

/* Equalized Height: Locked at 44px with width: auto ensures exact baseline alignment and zero distortion */
.store-badge-img {
  height: 44px !important;
  width: auto !important;
  display: block;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}

.store-badge-link:hover .store-badge-img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-badge-badge-label {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0071e3;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.4);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .store-badges:not(.store-badges--vertical) {
    flex-direction: column;
    gap: 12px;
  }
  .store-badge-img {
    height: 40px !important;
  }
}
