/* ═══════════════════════════════════════
   TOKENS — Purple / White / Black, 60-30-10
   60% White (dominant/canvas) · 30% Ink-black (text + the dark modal
   surface) · 10% Purple (the one accent color — CTA, selection, brand mark)
═══════════════════════════════════════ */
:root {
  --color-primary: #6D28D9;        /* core brand violet */
  --color-primary-bright: #A855F7; /* vivid violet — gradients, glow, hover */
  --color-primary-tint: #F1E9FF;   /* pale violet wash for subtle fills */
  --color-secondary: #A855F7;      /* alias, used by the focus-ring outline */

  --color-whatsapp: #0a8a0a;       /* kept distinct from brand purple on purpose —
                                       different color = different action (go vs. choose) */

  --color-ink: #14101F;            /* near-black, faint violet undertone */
  --color-muted: #756E82;          /* muted violet-gray for secondary text */

  --color-surface: rgba(255, 255, 255, 0.66);
  --color-surface-solid: #ffffff;
  --color-bg: #FAF8FC;
  --color-border: rgba(20, 15, 30, 0.10);
  --color-border-dark: rgba(255, 255, 255, 0.16); /* borders on the dark modal surface */

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-rest: 0 4px 16px rgba(20, 10, 40, 0.08);
  --shadow-hover: 0 12px 30px rgba(20, 10, 40, 0.14);
  --shadow-selected: 0 10px 26px rgba(109, 40, 217, 0.28); /* purple glow tied to "selected" */
  --glass-blur: blur(18px) saturate(180%);
}

* { box-sizing: border-box; }

html { background: var(--color-bg); }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-ink);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* White dominant, purple only emerges as a soft wash toward the edges —
     this is the 60% doing its job: canvas first, brand color second. */
  background: linear-gradient(160deg, #ffffff 0%, #faf8fc 42%, #f4ecff 76%, #ece0ff 100%);
  background-attachment: fixed;
}

/* Soft ambient glow, not a colored wash — kept low-opacity on purpose so it
   reads as depth/atmosphere rather than competing with the white canvas. */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
body::before { width: 320px; height: 320px; top: -90px; left: -100px; background: var(--color-primary-bright); opacity: 0.16; }
body::after { width: 360px; height: 360px; bottom: -110px; right: -90px; background: var(--color-primary); opacity: 0.14; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.view-container { padding: 0 16px 48px 16px; }

/* Reusable frosted-glass surface: translucent + blurred backdrop + shadow */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-rest);
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════
   LOADING OVERLAY
═══════════════════════════════════════ */
#loadingOverlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(250, 248, 252, 0.88);
  align-items: center; justify-content: center;
}
.loader {
  width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   HEADER — floats as a sticky, rounded glass card so it stays visible
   while the rest of the page scrolls underneath it.
═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 10px;
  z-index: 500;
  margin: 10px 16px 0 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
}
.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.title-thin {
  font-weight: 300;
  font-size: 22px;
  color: var(--color-muted);
  letter-spacing: 0.2px;
  margin-bottom: 7px;
}
.title-bold {
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -0.5px;
  /* The one gradient flourish in the whole system — reserved for the
     wordmark itself, ink fading into brand violet. */
  background: linear-gradient(135deg, var(--color-ink) 15%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(109, 34, 217, 0.22));
}

/* ═══════════════════════════════════════
   HERO BANNER CAROUSEL
   Full-width, single slide visible at a time, auto-scrolling + swipeable.
═══════════════════════════════════════ */
.hero-carousel-section { margin: 22px 0 4px 0; }

.hero-peek-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-peek-track::-webkit-scrollbar { display: none; }

.hero-peek-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-rest);
  border: 1px solid var(--color-border);
}
.hero-peek-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-peek-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.hero-peek-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-border);
  transition: all 0.25s ease;
}
.hero-peek-dot.active { width: 18px; border-radius: 4px; background: var(--color-primary); }

.hero-skeleton {
  flex: 0 0 64vw; max-width: 380px; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #F1ECFB 25%, #F8F5FC 37%, #F1ECFB 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ═══════════════════════════════════════
   BUSINESS HEADER / UNDERTEXT
═══════════════════════════════════════ */
.bus-desc-section {
  margin: 26px 0 6px 0;
  padding: 0 2px;
  text-align: left;
}
.bus-header-text {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--color-ink);
  white-space: pre-line; /* preserves line breaks typed into the sheet cell */
}
.bus-under-text {
  margin: 10px 30 0 0;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.2px;
  color: var(--color-ink);
  white-space: pre-line;
}

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
.cta-wrapper { display: flex; justify-content: center; margin: 22px 0 8px 0; }
.cta-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:active { transform: scale(0.97); }
.cta-btn .btn-icon { font-size: 20px; }

/* ═══════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════ */
.pricing-section { padding: 4px 18px 22px 18px; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,..) stops long words from blowing out the grid track */
  gap: 10px;
}
.price-card {
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-rest);
  padding: 14px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0; /* lets flex/grid children shrink instead of forcing letter-wrap */
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.price-card:active { transform: scale(0.98); }
.price-card.selected {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-selected);
}
.price-card-check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--shadow-rest);
  color: #fff; display: none;
  align-items: center; justify-content: center;
  font-size: 12px;
}
.price-card.selected .price-card-check { display: flex; }

.price-card-name {
  font-weight: 800; font-size: 11.5px; line-height: 1.3; padding-right: 18px;
  overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-card-prices { display: flex; flex-direction: column; gap: 1px; margin-top: 1px; }
.price-card-discounted { font-weight: 900; font-size: 13px; color: var(--color-primary); overflow-wrap: break-word; }
.price-card-initial { font-size: 10px; color: var(--color-muted); text-decoration: line-through; }
.price-card-desc {
  font-size: 9.5px; color: var(--color-muted); line-height: 1.4; margin-top: 3px;
  overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.price-card-skeleton {
  border-radius: var(--radius-md);
  min-height: 128px;
  background: linear-gradient(90deg, #F1ECFB 25%, #F8F5FC 37%, #F1ECFB 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* ═══════════════════════════════════════
   WHATSAPP CHECKOUT BUTTON
   Deliberately NOT purple — a different color for a different kind of
   action (leaving the site to go to WhatsApp) keeps the accent meaningful.
═══════════════════════════════════════ */
.whatsapp-checkout-btn {
  width: 100%;
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(10, 138, 10, 0.32);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.whatsapp-checkout-btn:active { transform: scale(0.98); }
.whatsapp-checkout-btn:disabled {
  opacity: 0.42;
  pointer-events: none;
  box-shadow: none;
}
.whatsapp-checkout-btn .btn-icon { font-size: 20px; }

/* ═══════════════════════════════════════
   MODAL SHEET (variant explorer, 90vh)
   The one deliberate bold move: this surface flips to dark ink-glass,
   giving black real visual weight instead of just body-text duty. Light
   glass pricing cards float on top of it further down for contrast.
═══════════════════════════════════════ */
.modal-sheet-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(20, 12, 35, 0.55);
  display: none;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-sheet-overlay.open { opacity: 1; }

.modal-sheet {
  width: 100%;
  height: 90vh;
  background: rgba(20, 16, 31, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border-dark);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -14px 38px rgba(10, 5, 20, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.modal-sheet-overlay.open .modal-sheet { transform: translateY(0); }

.modal-sheet-handle {
  width: 40px; height: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  margin: 10px auto 0 auto;
  flex-shrink: 0;
}
.modal-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 10px 18px;
  flex-shrink: 0;
}
.modal-sheet-title { font-weight: 800; font-size: 16px; color: #ffffff; }
.modal-sheet .close-modal {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.modal-sheet-scroll { flex: 1; overflow-y: auto; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }

/* Variant hero (reuses the gesture-carousel concept, simplified) */
.vm-hero-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06); /* placeholder tone while an image loads, on the dark surface */
}
.vm-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.vm-hero-slide { flex: 0 0 100%; height: 100%; }
.vm-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-hero-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.vm-hero-dots .pp-hero-dot,
.vm-hero-dots .pp-thumb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.vm-hero-dots .pp-hero-dot.active,
.vm-hero-dots .pp-thumb-dot.active { background: var(--color-primary-bright); width: 14px; border-radius: 3px; }

.vm-info { padding: 16px 18px 0 18px; }
.vm-name { font-weight: 800; font-size: 18px; margin-bottom: 4px; color: #ffffff; }
.vm-desc { font-size: 13px; color: rgba(255, 255, 255, 0.72); line-height: 1.5; white-space: pre-line; font-weight: 500; }

/* Single horizontal, scrollable line of very small thumbnails — each carries
   its own tiny caption (name + description) so per-variant copy is visible
   without needing to tap through every one. */
.vm-thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 14px 18px 20px 18px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.vm-thumbs::-webkit-scrollbar { display: none; }

.vm-thumb {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-snap-align: start;
  cursor: pointer;
}
.vm-thumb-media {
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border-dark);
  box-shadow: var(--shadow-rest);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vm-thumb.active .vm-thumb-media { border-color: var(--color-primary-bright); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28); }
.vm-thumb-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.vm-thumb-slide { flex: 0 0 100%; height: 100%; }
.vm-thumb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vm-thumb-dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.vm-thumb-dots .pp-thumb-dot { width: 3px; height: 3px; }
.vm-thumb-dots .pp-thumb-dot.active { width: 8px; }
.vm-thumb-tags { position: absolute; top: 3px; left: 3px; display: flex; gap: 2px; flex-wrap: wrap; }

.vm-thumb-caption { width: 72px; }
.vm-thumb-cap-name {
  font-weight: 800; font-size: 9.5px; line-height: 1.25; color: rgba(255, 255, 255, 0.92);
  overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.tag-badge {
  background: rgba(168, 85, 247, 0.38);
  color: #fff; font-size: 7px; font-weight: 700;
  padding: 2px 4px; border-radius: 4px;
}

/* ═══════════════════════════════════════
   LEAD CAPTURE MODAL (centered dialog) — stays light glass, sitting on the
   same dark scrim as the variant sheet behind it.
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(20, 12, 35, 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-box {
  width: 100%; max-width: 380px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-lg);
  padding: 22px;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--color-ink); }
.modal-icon { font-size: 20px; color: var(--color-primary); }
.modal-box .close-modal {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
}
.modal-subtitle { font-size: 12.5px; color: var(--color-muted); margin: 0 0 18px 0; line-height: 1.5; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--color-ink); }
.form-group .required { color: #d64545; }
.form-group input {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(20, 10, 40, 0.06);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus { border-color: var(--color-primary); box-shadow: var(--shadow-rest); }
.validation-msg { display: none; color: #d64545; font-size: 11px; }

.checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
  color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 14px; border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.32);
  transition: transform 0.15s ease;
}
.checkout-btn:active { transform: scale(0.98); }
.btn-icon { font-size: 18px; }

/* ═══════════════════════════════════════
   ACCESSIBILITY / MOTION
═══════════════════════════════════════ */
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 360px) {
  .title-bold { font-size: 32px; }
  .bus-header-text { font-size: 24px; }
}
