/*
 * Copyright (c) 2026 vativeApps. All rights reserved.
 *
 * Cravo landing page — component & utility CSS that complements the Tailwind build.
 * Loaded after assets/css/cravo.css. Cached separately from the HTML so changes
 * here don't bust the page cache and vice versa.
 */

/* Sentinel — read by the inline boot script in templates/cravo.php to detect
   when this stylesheet has actually applied. Tells the FOUC-prevention layer
   to unhide the body. Do not remove. */
:root { --vapp-loaded: 1; color-scheme: light; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: #0F172A;
  background: #FAFAF9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
.font-display { letter-spacing: -0.025em; }
h1, h2, h3 { text-wrap: balance; }

/* Hero grid background — subtle dot/line weave */
.hero-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 28px 28px;
}
.hero-halo {
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(250,65,156,.22), transparent 60%),
    radial-gradient(40% 40% at 10% 80%, rgba(250,65,156,.10), transparent 60%);
}

/* Striped placeholder for imagery */
.stripe-ph {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(15,23,42,.04) 0 8px,
    rgba(15,23,42,.00) 8px 16px
  );
  background-color: #F3F2EC;
}
.stripe-ph-dark {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.05) 0 8px,
    rgba(255,255,255,.00) 8px 16px
  );
  background-color: rgba(255,255,255,.02);
}

/* Phone frame */
.phone {
  border-radius: 38px;
  background: #0B1220;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 30px 60px -20px rgba(2,6,23,.7),
    inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px; background: #05080F;
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #FAFAF9;
  position: relative;
}
.phone-chrome-time { font-feature-settings: "tnum" 1; }

/* CTA button */
.btn-primary {
  background: linear-gradient(180deg, #FA419C 0%, #E52F87 100%);
  color: white;
  box-shadow:
    0 10px 24px -12px rgba(250,65,156,.65),
    inset 0 1px 0 rgba(255,255,255,.25),
    0 1px 2px rgba(2,6,23,.2);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px -12px rgba(250,65,156,.75),
    inset 0 1px 0 rgba(255,255,255,.25),
    0 1px 2px rgba(2,6,23,.2);
  filter: saturate(1.05);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost-light {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #E2E8F0;
  transition: background .15s ease, border-color .15s ease;
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

/* Client app showcase — circular icon + wordmark. No card chrome.
   Greyscale by default, lifts to full color on hover. */
.client-card {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: default;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .35s ease, opacity .25s ease;
}
.client-card:hover {
  filter: grayscale(0);
  opacity: 1;
}
.client-card img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.client-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;            /* circular logo crop */
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1E293B;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 14px -6px rgba(0,0,0,.55);
  color: #FAFAF9;
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.client-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* center-crop fill — no circle background visible behind logo */
  object-position: center;
  display: block;
}
.client-name {
  color: #E2E8F0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  line-height: 1;
}
/* Per-client wordmark styles (.wm-grad, .wm-demoda, .wm-gupi, ...) were removed for perf;
   replaced by uniform Inter labels next to each circular logo. See CLIENT_WORDMARK_REFERENCE.md
   for the original font/color spec — to be reproduced as per-client SVG wordmarks. */

/* Diagonal ticker — seamless: zero parent gap so the seam between Set 1 and Set 2
   equals the trailing pr-10 (40px), matching the internal gap-10 (40px) between items. */
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Comparison table */
.cmp-col-highlight {
  background: linear-gradient(180deg, #FFF5FA 0%, #FFF0F8 100%);
  box-shadow: inset 0 0 0 1px rgba(250,65,156,.35);
}

/* Feature card hover */
.feat-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250,65,156,.35);
  box-shadow: 0 10px 24px -16px rgba(15,23,42,.2);
}

/* Review card — clickable, deep-links to the source review on Clutch */
.review-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250,65,156,.35);
  box-shadow:
    0 14px 30px -16px rgba(15,23,42,.18),
    0 2px 6px rgba(15,23,42,.04);
}
.review-card:focus-visible {
  outline: 2px solid #FA419C;
  outline-offset: 3px;
}

/* Review rail scroll-snap (formerly a separate inline <style> block) */
#review-rail::-webkit-scrollbar { display: none; }
#review-rail .review-card {
  flex: 0 0 calc(100% - 0rem);
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  #review-rail .review-card { flex-basis: calc(50% - .625rem); }
}
@media (min-width: 1024px) {
  #review-rail .review-card { flex-basis: calc(33.333% - .833rem); }
}

/* FAQ */
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; }

/* Carousel dots */
.dot { transition: all .2s ease; }
.dot.active { background: #0F172A; width: 22px; border-radius: 999px; }

/* Skeleton shimmer (mockup carousel) */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #EEEBE3 0%, #F7F5EE 50%, #EEEBE3 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  transform: translateY(150%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.show { transform: translateY(0); }

/* WhatsApp floating button (left edge, vertical center on desktop, lower-left on mobile) */
.whatsapp-icon {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  z-index: 999;
  cursor: pointer;
  transition: all .3s ease;
  background-color: #25D366;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 4px;
}
.whatsapp-icon .icon {
  width: 34px;
  height: 34px;
  display: block;
}
@media (max-width: 767px) {
  .whatsapp-icon {
    top: auto;
    bottom: 50vh;
    transform: none;
  }
}

/* Subtle eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250,65,156,.08);
  color: #C01F6E;
  border: 1px solid rgba(250,65,156,.25);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow-dark {
  background: rgba(250,65,156,.14);
  color: #FCA5C7;
  border: 1px solid rgba(250,65,156,.35);
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #FA419C;
  box-shadow: 0 0 0 0 rgba(250,65,156,.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250,65,156,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(250,65,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,65,156,0); }
}

/* Modal */
.modal-backdrop {
  background: rgba(7,11,20,.7);
  backdrop-filter: blur(6px);
}

/* Device carousel slide transitions */
.slide {
  opacity: 0;
  transition: opacity .4s ease;
  position: absolute;
  inset: 0;
}
.slide.active {
  opacity: 1;
  position: relative;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .skeleton { animation: none; }
  html { scroll-behavior: auto; }
}
