/* BrilliantPad — New Puppy Landing Page
   Look & feel adapted from the BrilliantPad reference landing page:
   Inter font, blue-600 primary, green/purple accents, rounded-full CTAs,
   soft gradients, card shadows, subtle motion. Conversion-first layout. */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== "Your puppy is already wired to do this right" — brain/circuitry vibe =====
   Deep navy-to-near-black base with a glowing blue radial bloom behind the
   center and a subtle circuit grid, echoing the brain + circuit board image. */
.instinct-block {
    background:
        radial-gradient(60% 80% at 50% 38%, rgba(56,128,255,0.38) 0%, rgba(30,58,138,0.20) 38%, rgba(0,0,0,0) 72%),
        linear-gradient(135deg, #0b1733 0%, #0a1022 55%, #060814 100%);
    box-shadow: inset 0 0 120px rgba(56,128,255,0.12);
}
/* Faint circuit-board grid overlay */
.instinct-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 0%, transparent 80%);
            mask-image: radial-gradient(70% 80% at 50% 40%, #000 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
/* Soft pulsing glow node behind the brain icon */
.instinct-block::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    width: 360px;
    height: 360px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(96,165,250,0.45) 0%, rgba(96,165,250,0) 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    animation: instinctPulse 4.5s ease-in-out infinite;
}
@keyframes instinctPulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.9;  transform: translateX(-50%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .instinct-block::after { animation: none; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    scroll-behavior: smooth;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

.font-inter { font-family: 'Inter', sans-serif; }
.bg-gray-25 { background-color: #fafafa; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideInRight { from { opacity: 0; transform: translateX(28px);} to { opacity: 1; transform: translateX(0);} }
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 4px 6px rgba(0,0,0,.1); }
    50% { box-shadow: 0 0 20px rgba(16,185,129,.55), 0 4px 6px rgba(0,0,0,.1); }
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hero-content { animation: fadeInUp .8s ease-out; }
.hero-image { animation: slideInRight .8s ease-out; }
.floating-testimonial { animation: float 3s ease-in-out infinite; }

.badge-glow { animation: badgeGlow 3s ease-in-out infinite; position: relative; overflow: hidden; }
.badge-glow::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: shine 4s ease-in-out infinite;
}
.pricing-badge { animation: badgePulse 2s ease-in-out infinite; }
.pricing-badge:hover { animation-play-state: paused; }

/* ===== Header scroll state ===== */
header { transition: box-shadow .3s ease, background .3s ease; }
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* ===== Video aspect ratio helper ===== */
.video-aspect-16-9 { position: relative; width: 100%; padding-top: 56.25%; }
.video-aspect-16-9 > * { position: absolute; inset: 0; }

/* ===== Side-by-side card: video column (desktop lg+) =====
   Locks the video column to 16:9 so card height = video height,
   preventing Vimeo from letterboxing with black bars. */
@media (min-width: 1024px) {
    .video-col { aspect-ratio: 16 / 9; position: relative; }
    .video-col .video-aspect-16-9 { padding-top: 0; position: absolute; inset: 0; }
}

/* ===== FAQ accordion ===== */
.faq-item { transition: all .3s ease; }
.faq-question { cursor: pointer; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .3s ease; }

/* ===== Toast notifications ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 16px 20px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.18); z-index: 9999;
    transition: opacity .3s ease; max-width: 90vw;
}

/* ===== Calculator slider ===== */
.calculator-slider { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 9999px; background: #dbeafe; outline: none; }
.calculator-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #2563eb; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.calculator-slider::-moz-range-thumb { width: 26px; height: 26px; border: none; border-radius: 50%; background: #2563eb; cursor: pointer; }

/* ===== Testimonials grid / mobile carousel ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.testimonial-card { aspect-ratio: 9 / 16; position: relative; }
.testimonial-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.star-overlay { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 10; }
.quote-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    padding: 22px; color: #fff;
}
.testimonial-arrow {
    display: none; position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; background: #2563eb; color: #fff;
    align-items: center; justify-content: center; z-index: 20; border: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.testimonial-arrow-left { left: 8px; }
.testimonial-arrow-right { right: 8px; }
.carousel-indicators .indicator-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer; transition: background .2s;
}
.carousel-indicators .indicator-dot.active { background: #2563eb; }

@media (max-width: 767px) {
    .testimonials-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: .75rem; padding: 0 1rem; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
    }
    .testimonials-grid .card-wrapper { flex: 0 0 85%; max-width: 85%; scroll-snap-align: center; }
    .testimonial-arrow { display: flex; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
