/*
File purpose: Custom CSS for LumiTube landing page.
Caregiver brand: sandy backgrounds (#FFE4BE), sky blue (#9CD2FF),
dark teal text (#093740), Sora headings, MuseoModerno logo wordmark, LexendDeca body.
Built on ThemeForest MegaOne template (app-landing variant).
*/

:root {
    --color-primary: #9CD2FF;
    --color-primary-hover: #7BBFEE;
    --color-secondary: #285FE7;
    --color-background: #FFF2DF;
    --color-surface: #FFFFFF;
    --color-text: #093740;
    --color-text-muted: rgba(9, 55, 64, 0.6);
    --color-border: rgba(9, 55, 64, 0.1);
    --color-accent-warm: #FBCEB1;
    --color-accent-fresh: #AFD462;
    --color-accent-rose: #F8B4C8;
    --color-accent-purple: #9B59B6;
    --color-accent-coral: #FF7A70;
    --font-heading: 'Sora', sans-serif;
    --font-logo: 'MuseoModerno', cursive;
    --font-body: 'Lexend Deca', sans-serif;
    --star-mask: url('../../avatar-parts/star-mask.svg');
}

/* Primary Button Styles */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-surface) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: var(--color-surface) !important;
}

/* Get App Buttons */
.get-btn {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-surface) !important;
    font-family: var(--font-body);
}

.get-btn:hover,
.get-btn:focus {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: var(--color-surface) !important;
}

/* Global font overrides */
.main-heading {
    font-family: var(--font-heading);
}

.sub-heading,
.black-color,
.card-title,
.media-body p,
.mission-content,
.footer-content {
    font-family: var(--font-body);
}

/* Text Colors */
.grey-color {
    color: var(--color-text) !important;
}

.black-color {
    color: var(--color-text-muted) !important;
}

/* ========================================
   CAREGIVER NAV BAR
   ======================================== */

.caregiver-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-mascot {
    width: 36px;
    height: 36px;
}

.nav-brand-text {
    font-family: var(--font-logo);
    font-size: 1.3rem;
    color: var(--color-text);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links .nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-links .nav-link:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav-help-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-help-link:hover {
    color: var(--color-text);
}

.nav-cta-primary {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-surface);
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-cta-primary:hover {
    opacity: 0.85;
    color: var(--color-surface);
    text-decoration: none;
}

.nav-cta-outline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 8px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-cta-outline:hover {
    background: rgba(9, 55, 64, 0.05);
    color: var(--color-text);
    text-decoration: none;
}

/* Mobile nav toggle (hamburger) */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.nav-mobile-toggle span {
    width: 100%;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-mobile-toggle:hover span {
    background: var(--color-primary);
}

/* Mobile nav menu */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    z-index: 9999;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.nav-mobile-menu .nav-link {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-mobile-menu .nav-link:hover {
    background: rgba(9, 55, 64, 0.05);
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .nav-links { display: none; }
    .nav-help-link { display: none; }
    .nav-actions { display: none; }   /* hamburger menu handles CTAs on mobile */
    .nav-mobile-toggle { display: flex; }
}

/* Mobile menu CTA button */
.nav-mobile-cta {
    display: block;
    background: var(--color-primary);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none !important;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(156, 210, 255, 0.4);
}

/* Mobile menu login link */
.nav-mobile-login {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted) !important;
    text-align: center;
    padding: 10px 24px;
    text-decoration: none !important;
    margin-top: 4px;
}

.nav-mobile-login:hover {
    color: var(--color-text) !important;
}

/* ========================================
   STAR SHAPE — SVG mask from /avatar-parts/star-mask.svg
   Same 7-pointed path as the Flutter app mascot avatar.
   background-color on the element shows through the mask.
   ======================================== */

.hero-star {
    position: absolute;
    mask-image: var(--star-mask);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: var(--star-mask);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    pointer-events: none;
    animation: starburst-glow 5s ease-in-out infinite;
    transform: translateZ(0);
}

/* Stagger hero starburst pulse timing */
.hero-star-blue    { animation-delay: 0.5s; }
.hero-star-gold    { animation-delay: 1.6s; }
.hero-star-overlap { animation-delay: 2.8s; }
.hero-star-small   { animation-delay: 0.2s; }

/* Starburst glow animation - saturates color + slight scale.
   5s cycle: ~3.5s slow pulse up/down, then ~1.5s idle wait.
   Reduced intensity to prevent GPU overload. */
@keyframes starburst-glow {
    0%   { opacity: 0.3; transform: scale3d(1, 1, 1); }
    35%  { opacity: 0.5; transform: scale3d(1.05, 1.05, 1); }
    70%  { opacity: 0.3; transform: scale3d(1, 1, 1); }
    100% { opacity: 0.3; transform: scale3d(1, 1, 1); }
}

/* Shared star mask for ALL section decorative pseudo-elements (DRY) */
section.services::before, section.services::after,
section.design::before, section.design::after,
.how-it-works-section::before, .how-it-works-section::after,
.screenshots::before, .screenshots::after,
.store::before, .store::after,
.filter-demo-section::before, .filter-demo-section::after,
.faq-section::before, .faq-section::after {
    mask-image: var(--star-mask);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: var(--star-mask);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    /* Animation disabled on services section to prevent browser crashes */
    transform: translateZ(0);
}

/* Re-enable animation ONLY for non-service sections */
.screenshots::before, .screenshots::after,
.store::before, .store::after,
.filter-demo-section::before, .filter-demo-section::after,
.faq-section::before, .faq-section::after {
    animation: starburst-glow 5s ease-in-out infinite;
}

/* Stagger pulse timing so starbursts breathe at different times */
section.services::before  { animation-delay: 0s; }
section.services::after   { animation-delay: 1.3s; }
section.design::before    { animation-delay: 0.7s; }
section.design::after     { animation-delay: 2.1s; }
.how-it-works-section::before { animation-delay: 0.3s; }
.how-it-works-section::after  { animation-delay: 1.7s; }
.screenshots::before      { animation-delay: 0.4s; }
.screenshots::after       { animation-delay: 1.8s; }
.store::before            { animation-delay: 1.1s; }
.store::after             { animation-delay: 2.6s; }
.filter-demo-section::before { animation-delay: 0.9s; }
.filter-demo-section::after  { animation-delay: 2.3s; }
.faq-section::before         { animation-delay: 1.5s; }
.faq-section::after          { animation-delay: 0.3s; }

/* ========================================
   CAREGIVER HERO SECTION
   ======================================== */

.caregiver-hero {
    background: var(--color-background);
    min-height: 90vh;
    padding-top: 70px;
    position: relative;
    overflow: visible; /* allow overlap starburst to extend into next section */
}

/* Video wrapper — occupies right 4/5, video centered within */
.hero-video-wrap {
    position: absolute;
    left: 20%; /* start after the text area (1/5) */
    top: 70px;
    width: 80%; /* occupy the remaining 4/5 */
    height: calc(100% - 190px); /* full height minus nav and wave */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-video {
    width: 85%; /* centered within the 4/5 section */
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Text pinned to bottom-left in the left 1/5 area */
.hero-text {
    position: absolute;
    bottom: 140px; /* above the wave */
    left: 3%;
    z-index: 5;
    max-width: 23%; /* constrained to the left 1/5 area */
}

.hero-headline {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 2px;
}

.hero-word-light {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    opacity: 0.55;
}

.hero-word-bold {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Decorative starbursts */
.hero-star-blue {
    width: 140px;
    height: 140px;
    top: 90px;
    right: 6%;
    background: var(--color-primary);
    opacity: 0.2;
    z-index: 1;
}

.hero-star-gold {
    width: 240px;
    height: 240px;
    bottom: 18%;
    left: 25%;
    background: var(--color-accent-rose);
    opacity: 0.35;
    z-index: 3; /* overlaps onto the video */
    transform: rotate(15deg);
}

.hero-star-small {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 20%;
    background: var(--color-primary);
    opacity: 0.12;
    z-index: 1;
}

/* Large starburst overlapping video + next section */
.hero-star-overlap {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: 5%;
    background: var(--color-accent-warm);
    opacity: 0.4;
    z-index: 1; /* behind video (z-index: 2) but visible around edges */
    transform: rotate(22deg);
}


/* ========================================
   MOBILE HERO: PHONE + TEXT LAYOUT
   ======================================== */

/* Hidden on desktop */
.hero-mobile-layout {
    display: none;
}

/* Phone frame — CSS-only device mockup */
.hero-phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 8px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.hero-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.hero-phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    display: block;
}

.hero-phone-wrap {
    flex-shrink: 0;
}

/* Hero responsive */
@media (max-width: 991px) {
    /* Hide desktop layout */
    .hero-video-wrap { display: none; }
    .hero-text { display: none; }

    .caregiver-hero {
        height: 100vh;       /* full screen */
        padding-bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Two-column section: fills top 75% of screen.
       margin-top: -70px pulls it under the nav so the 75vh lands at exactly 75% screen height. */
    .hero-mobile-layout {
        position: relative;
        display: flex;
        align-items: flex-end;
        padding: 16px 0 0 20px;
        z-index: 2;
        height: calc(75vh - 70px);
        flex-shrink: 0;
        overflow: visible;
    }

    /* Phone: bleeds off the right edge so it lives in the right column only.
       hero overflow:hidden clips the right bleed just like it clips the top. */
    .hero-phone-wrap {
        position: absolute;
        right: -95px;
        bottom: 40px;
        width: auto;
    }

    /* Phone frame: height drives size, aspect-ratio keeps real phone proportions. */
    .caregiver-hero .hero-phone-frame {
        aspect-ratio: 9 / 19.5;
        height: 68vh;
        width: auto;
        transform: rotate(-20deg);
        transform-origin: bottom center;
    }

    /* Text: flex-end aligns its bottom to layout bottom — matches phone bottom naturally */
    .hero-mobile-text {
        flex: 1;
        max-width: 52%;
        padding-right: 8px;
        padding-bottom: 0;
    }

    .hero-mobile-text .hero-headline {
        align-items: flex-start;
    }

    .hero-mobile-text .hero-word-light { font-size: 2.1rem; }
    .hero-mobile-text .hero-word-bold { font-size: 3rem; }

    /* Staircase indent — follows the phone's diagonal tilt */
    .hero-mobile-text .hero-headline span:nth-child(1) { margin-left: 0; }
    .hero-mobile-text .hero-headline span:nth-child(2) { margin-left: 0.55rem; }
    .hero-mobile-text .hero-headline span:nth-child(3) { margin-left: 1.1rem; }
    .hero-mobile-text .hero-headline span:nth-child(4) { margin-left: 1.65rem; }
    .hero-mobile-text .hero-headline span:nth-child(5) { margin-left: 2.2rem; }

    /* CTA: fills the bottom 25% of the screen, button centered within it */
    .hero-inline-cta {
        flex: 1;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-top: 0;
    }

    .hero-star-gold { width: 140px; height: 140px; left: 5%; bottom: 5%; } /* shifted further down */
    .hero-star-overlap { width: 200px; height: 200px; bottom: -60px; }
}

@media (max-width: 575px) {
    .hero-mobile-layout {
        padding: 16px 0 0 16px;
    }

    .hero-mobile-text {
        max-width: 50%;
        padding-right: 0;
    }

    .hero-mobile-text .hero-word-light { font-size: 1.6rem; }
    .hero-mobile-text .hero-word-bold { font-size: 2.2rem; }

    .hero-star-blue { width: 80px; height: 80px; }
    .hero-star-gold { width: 100px; height: 100px; left: 2%; }
    .hero-star-overlap { width: 140px; height: 140px; bottom: -40px; }
    .hero-star-small { display: none; }
}

@media (max-width: 400px) {
    .hero-mobile-text .hero-word-light { font-size: 1.1rem; }
    .hero-mobile-text .hero-word-bold { font-size: 1.5rem; }
}

/* ========================================
   PERFORMANCE & ACCESSIBILITY
   Disable animations for users who prefer reduced motion
   or on devices that struggle with GPU-intensive effects
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable starburst animations entirely */
    .hero-star,
    section.services::before, section.services::after,
    section.design::before, section.design::after,
    .how-it-works-section::before, .how-it-works-section::after,
    .screenshots::before, .screenshots::after,
    .store::before, .store::after,
    .filter-demo-section::before, .filter-demo-section::after,
    .faq-section::before, .faq-section::after {
        animation: none !important;
    }
}



/* Old template header - hidden (replaced by caregiver-nav) */
header { display: none !important; }


/* ========================================
   BLUE WAVE SECTIONS (services, design)
   Shared: blue gradient, cream wave edges, white starbursts
   ======================================== */

section.services,
section.design,
.how-it-works-section {
    background:
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C360,120 720,0 1080,60 C1260,90 1380,80 1440,70 L1440,0 L0,0 Z" fill="%23FFF2DF"/></svg>') top center / 100% 120px no-repeat,
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C360,0 720,120 1080,50 C1260,30 1380,40 1440,50 L1440,120 L0,120 Z" fill="%23FFF2DF"/></svg>') bottom center / 100% 120px no-repeat,
        linear-gradient(135deg, #9CD2FF 0%, #285FE7 100%);
    padding-top: calc(4rem + 120px);
    padding-bottom: calc(4rem + 120px);
    position: relative;
    overflow: visible;
}

section.services::before,
section.design::before,
.how-it-works-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0.3;
    z-index: 0;
}

section.services::after,
section.design::after,
.how-it-works-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0.3;
    z-index: 0;
}

/* how-it-works star: right side, green, overlaps into section above */
.how-it-works-section::before {
    top: -10px;
    left: auto;
    right: -40px;
    width: 160px;
    height: 160px;
    background: var(--color-accent-fresh);
    opacity: 0.45;
}

section.services .container,
section.design .container,
.how-it-works-section .container {
    position: relative;
    z-index: 1;
}

section.services .main-heading,
section.design .main-heading,
.how-it-works-section .main-heading,
.how-it-works-section .how-it-works-heading,
.how-it-works-section .how-it-works-sub,
.how-it-works-section .hiw-step-title,
.how-it-works-section .hiw-step-desc,
.how-it-works-section .hiw-cta-note {
    color: #ffffff !important;
}

/* Mission section — text also white */
section.design .mission-content p {
    color: #ffffff !important;
}

/* Responsive Adjustments */
/* Shared Feature Card Styling - DRY principle (used by .media-element and .app-feature) */
.media-element,
.app-feature {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Contain property removed - was causing issues with animations */
    transform: translate3d(0, 0, 0);
    /* Add buffer to prevent edge-case hover loops */
    margin: 2px;
}

/* Removed - duplicate rule causing conflicts */

.media-element h4,
.app-feature h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.media-element p,
.app-feature p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 0;
    color: #666666;
}

.media-element .feature-icon,
.app-feature .feature-icon {
    color: var(--color-primary);
}

/* Features Section - Specific Overrides */
.media-element {
    position: relative;
    overflow: hidden;
    padding-bottom: 25px;
}

/* Loading bar at bottom of card - DISABLED to prevent layout thrashing */
.media-element::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    /* Transition disabled - was causing infinite hover loops */
    /* transition: width 0.3s ease; */
}

.media-element:hover,
.app-feature:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.15),
        0 0 12px rgba(156, 210, 255, 0.15);
}

/* DISABLED - width animation causes layout thrashing and infinite hover loops */
/* .media-element:hover::after {
    width: 100%;
} */

.media-element .feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-element .line {
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

/* Feature card header: icon + title + info button in a row */
.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-header .card-title {
    margin: 0;
    flex: 1;
}

/* Info (i) toggle button */
.feature-info-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.feature-info-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.feature-info-btn.active {
    background: var(--color-primary);
    color: #ffffff;
}

/* Expandable detail area */
.feature-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
}

.feature-detail.open {
    max-height: 200px;
    margin-top: 12px;
}

.feature-detail p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
    padding: 12px 14px;
    background: rgba(156, 210, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

/* App Design Section - Specific Overrides */
.app-feature .feature-icon {
    font-size: 24px;
}

/* Screenshots Section - Dark background matching header */
.screenshots {
    background: var(--color-background);
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: visible;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: -130px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: var(--color-accent-coral);
    opacity: 0.25;
    z-index: 0;
}

.screenshots::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: var(--color-accent-rose);
    opacity: 0.25;
    z-index: 0;
}

.screenshots .container {
    position: relative;
    z-index: 1;
}

.screenshots .main-heading {
    color: var(--color-text) !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.screenshots .sub-heading {
    color: var(--color-text) !important;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background:
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C360,120 720,0 1080,60 C1260,90 1380,80 1440,70 L1440,0 L0,0 Z" fill="%23FFF2DF"/></svg>') top center / 100% 120px no-repeat,
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C360,0 720,120 1080,50 C1260,30 1380,40 1440,50 L1440,120 L0,120 Z" fill="%23FFF2DF"/></svg>') bottom center / 100% 120px no-repeat,
        linear-gradient(135deg, #9CD2FF 0%, #285FE7 100%);
    padding-top: calc(4rem + 120px);
    padding-bottom: calc(4rem + 120px);
    position: relative;
    overflow: visible;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 0;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section .main-heading {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    user-select: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    padding-bottom: 20px;
    margin: 0;
}

@media (max-width: 575px) {
    .faq-section {
        padding: calc(3rem + 120px) 0 calc(2rem + 120px) 0 !important;
    }

    .faq-question {
        font-size: 1rem;
    }
}

/* Store Section - Cream background with wave from blue FAQ above */
.store {
    background: var(--color-background);
    padding-top: 4rem;
    padding-bottom: 40px;
    position: relative;
    overflow: visible;
}

.store::before {
    content: '';
    position: absolute;
    top: 60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: var(--color-accent-purple);
    opacity: 0.2;
    z-index: 0;
}

.store::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: var(--color-accent-fresh);
    opacity: 0.25;
    z-index: 0;
}

.store .container {
    position: relative;
    z-index: 1;
}

.store .main-heading {
    color: var(--color-text) !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.store .sub-heading {
    color: var(--color-text-muted) !important;
}

/* Footer info inside .store section */
.store .footer-content {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.store .footer_text {
    color: var(--color-text-muted) !important;
}

.store .footer-links {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.store .footer-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.store .footer-link--icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
}

.store .footer-dot {
    color: var(--color-border);
}

.store .get-btn {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.store .get-btn:hover,
.store .get-btn:focus {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: #ffffff !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-heading {
        font-size: 1.5rem !important;
        font-weight: 700;
    }

    .sub-heading {
        font-size: 0.95rem !important;
        line-height: 1.5;
        padding: 0 20px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding: 60px 0 !important;
    }

    /* Blue sections need extra padding for 120px waves at top + bottom */
    section.services,
    section.design,
    .faq-section {
        padding: calc(60px + 120px) 0 !important;
    }

    .testimonials-section {
        padding: calc(60px + 120px) 0 !important;
    }

    .media-element,
    .app-feature {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    .screenshots .owl-carousel .item img {
        max-width: 100%;
        height: auto;
    }

    .store img {
        max-width: 180px !important;
        margin: 10px auto;
    }

    .feature-icon {
        font-size: 2rem !important;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .main-heading {
        font-size: 1.25rem !important;
        font-weight: 700;
    }

    .sub-heading {
        font-size: 0.9rem !important;
        padding: 0 15px;
    }

    .store img {
        max-width: 160px !important;
    }

    .filter-demo-title,
    .screenshots .main-heading,
    .store .main-heading,
    .faq-section .main-heading,
    section.services .main-heading,
    section.design .main-heading {
        font-size: 2rem !important;
        padding: 0 1rem;
    }

    .filter-demo-subtitle {
        font-size: 0.95rem !important;
        padding: 0 1rem;
    }

    section.services {
        padding: calc(3rem + 120px) 0 !important;
    }

    section.services .media-element,
    section.services .app-feature {
        padding: 25px 20px !important;
        font-size: 15px !important;
    }

    section.services .media-element h4,
    section.services .app-feature h4 {
        font-size: 18px !important;
    }

    section.design {
        padding: calc(3rem + 120px) 0 !important;
    }

    section.design .mission-content {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }

    .screenshots {
        padding: 3rem 0 !important;
    }

    .store {
        padding: calc(3rem + 120px) 0 2rem 0 !important;
    }

    .store .sub-heading {
        font-size: 0.9rem !important;
        padding: 0 1rem;
        color: var(--color-text-muted) !important;
    }

    .store .footer-links {
        gap: 8px !important;
    }

    .filter-demo-section {
        padding: 2rem 1rem !important;
    }

    section.services::before,
    section.services::after,
    section.design::before,
    section.design::after,
    .screenshots::before,
    .screenshots::after,
    .store::before,
    .store::after,
    .filter-demo-section::before,
    .filter-demo-section::after,
    .faq-section::before,
    .faq-section::after {
        width: 150px !important;
        height: 150px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .filter-demo-title,
    .screenshots .main-heading,
    .store .main-heading,
    section.services .main-heading,
    section.design .main-heading {
        font-size: 2.75rem !important;
    }

    .filter-demo-subtitle {
        font-size: 1rem !important;
    }

    section.services::before,
    section.services::after,
    section.design::before,
    section.design::after,
    .screenshots::before,
    .screenshots::after,
    .store::before,
    .store::after,
    .filter-demo-section::before,
    .filter-demo-section::after,
    .faq-section::before,
    .faq-section::after {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Ensure images don't overflow on any device */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent starbursts from causing scroll overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   FILTER DEMO SECTION - PHONE MOCKUP
   ======================================== */

.filter-demo-section {
    background: var(--color-background);
    width: 100%;
    padding-top: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
    overflow: visible;
}


.filter-demo-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--color-accent-warm);
    opacity: 0.3;
    z-index: 0;
}

.filter-demo-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: var(--color-accent-fresh);
    opacity: 0.3;
    z-index: 0;
}

/* Two-column demo layout */
.demo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.demo-text-col {
    flex: 1;
    max-width: 400px;
}

.demo-heading {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.demo-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.demo-bullets li {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--color-text-muted);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.demo-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.demo-cta-btn {
    background: var(--color-text);
    color: var(--color-background);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-block;
    letter-spacing: 0.2px;
}

.demo-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.demo-phone-col {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .demo-inner {
        flex-direction: column;
        gap: 2.5rem;
    }
    .demo-text-col {
        max-width: 100%;
        text-align: center;
    }
    .demo-heading {
        font-size: 1.9rem;
    }
    .demo-bullets {
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   DEMO PREVIEW CONTAINER
   ======================================== */

/* ── Phone frame wrapper ── */
.demo-phone-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
    background: #1C1C1E;
    border-radius: 44px;
    padding: 18px 12px 20px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 24px 60px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
    /* Side buttons */
    --btn-color: #2e2e30;
}

/* Volume buttons (left) */
.demo-phone-frame::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 90px;
    width: 4px;
    height: 32px;
    background: var(--btn-color);
    border-radius: 2px 0 0 2px;
    box-shadow: 0 44px 0 var(--btn-color);
}

/* Power button (right) */
.demo-phone-frame::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 112px;
    width: 4px;
    height: 52px;
    background: var(--btn-color);
    border-radius: 0 2px 2px 0;
}

.demo-phone-notch {
    width: 80px;
    height: 24px;
    background: #1C1C1E;
    border-radius: 0 0 18px 18px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic island pill */
.demo-phone-notch::after {
    content: '';
    width: 52px;
    height: 14px;
    background: #000;
    border-radius: 999px;
    display: block;
}

.demo-phone-home-bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    margin: 12px auto 0;
}

.demo-preview-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 540 / 1108;
    cursor: pointer;
}

.demo-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 55, 64, 0.55);
    transition: background 0.2s ease;
}

.demo-preview-container:hover .demo-preview-overlay {
    background: rgba(9, 55, 64, 0.48);
}

.demo-launch-btn {
    background: #ffffff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 16px 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 24px rgba(156, 210, 255, 0.45);
    pointer-events: none; /* parent div handles click */
}

.demo-preview-container:hover .demo-launch-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 32px rgba(156, 210, 255, 0.6);
}

.demo-launch-arrow {
    font-size: 1.2rem;
}

/* Demo instructions */
.demo-instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.demo-instruction-icon {
    font-size: 1.2rem;
    animation: point-right 1.5s ease-in-out infinite;
}

@keyframes point-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .demo-phone-frame {
        max-width: 260px;
        border-radius: 40px;
        padding: 16px 10px 18px;
    }
    .demo-launch-btn {
        font-size: 0.95rem;
        padding: 12px 22px;
    }
}

@media (max-width: 480px) {
    .demo-phone-frame {
        max-width: 220px;
        border-radius: 36px;
        padding: 14px 9px 16px;
    }
    .demo-launch-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    .demo-instructions {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}

/* ========================================
   PROBLEM QUOTES SECTION - BLUE BACKGROUND
   ======================================== */

.testimonials-section {
    background:
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C360,120 720,0 1080,60 C1260,90 1380,80 1440,70 L1440,0 L0,0 Z" fill="%23FFF2DF"/></svg>') top center / 100% 120px no-repeat,
        url('data:image/svg+xml,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C360,0 720,120 1080,50 C1260,30 1380,40 1440,50 L1440,120 L0,120 Z" fill="%23FFF2DF"/></svg>') bottom center / 100% 120px no-repeat,
        linear-gradient(135deg, #9CD2FF 0%, #285FE7 100%);
    padding-top: calc(3rem + 120px);
    padding-bottom: calc(3rem + 120px);
    position: relative;
    overflow: hidden;
}

/* Problem Quotes Carousel */
.phone-testimonials-carousel {
    width: 100%;
    overflow: hidden;
}

.phone-testimonials-track {
    display: flex;
    gap: 5rem;
    animation: scroll-phone-testimonials 90s linear infinite;
    width: max-content;
}

.phone-testimonial {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    white-space: nowrap;
}

.phone-testimonial strong {
    font-style: normal;
    color: #ffffff;
}

@keyframes scroll-phone-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.phone-testimonials-carousel:hover .phone-testimonials-track {
    animation-play-state: paused;
}

.quotes-header {
    text-align: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.quotes-cta {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
}

@media (max-width: 575px) {
    .testimonials-section {
        padding: calc(2rem + 120px) 0 !important;
    }
    .phone-testimonial {
        font-size: 0.95rem;
    }
}

/* ─── By the Numbers / Stats Section ─────────────────────────────────────── */

.caregiver-stats-section {
    background: linear-gradient(135deg, #093740 0%, #0d4a57 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.caregiver-stats-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-background);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.caregiver-stats-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-background);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.caregiver-stats-grid {
    gap: 0;
}

.caregiver-stat-col {
    padding: 0.75rem;
}

.caregiver-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(156, 210, 255, 0.25);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.caregiver-stat-card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(156, 210, 255, 0.5);
}

.caregiver-stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.caregiver-stat-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.caregiver-stat-source {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

@media (max-width: 767px) {
    .caregiver-stat-number {
        font-size: 2.5rem;
    }
    .caregiver-stats-section {
        padding: 4rem 0;
    }
}

/* ========================================
   HERO SUBTITLE
   ======================================== */

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 1rem;
    max-width: 420px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-subtitle--mobile {
    font-size: 0.95rem;
    color: var(--color-text);
    text-shadow: none;
    margin-top: 0.75rem;
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */

.testimonial-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #FFD166;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.testimonial-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-join-count {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

/* ========================================
   PRICING SECTION
   ======================================== */

.pricing-section {
    background: var(--color-background);
    padding: 80px 0;
    position: relative;
    overflow: visible;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: var(--color-primary);
    mask-image: var(--star-mask);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: var(--star-mask);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    opacity: 0.18;
    animation: starburst-glow 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.pricing-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: var(--color-accent-fresh);
    mask-image: var(--star-mask);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: var(--star-mask);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    opacity: 0.25;
    animation: starburst-glow 5s ease-in-out infinite;
    animation-delay: 2s;
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card--featured {
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 6px 30px rgba(156, 210, 255, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-tier-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    margin: 0.5rem 0;
}

.pricing-period {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
}

.pricing-feature-muted {
    color: var(--color-text-muted) !important;
}

.pricing-cta {
    display: block;
    text-align: center;
    border-radius: 999px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: 1rem;
}

.pricing-cta--primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(156, 210, 255, 0.4);
}

.pricing-cta--primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(156, 210, 255, 0.55);
    color: #ffffff;
    text-decoration: none;
}

.pricing-cta--outline {
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.pricing-cta--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: scale(1.03);
    text-decoration: none;
}

.pricing-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .pricing-section {
        padding: 60px 0;
    }
    .pricing-price {
        font-size: 2.5rem;
    }
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   HERO INLINE CTA (mobile only)
   ======================================== */

.hero-inline-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    width: 100%;
    text-align: center;
}

.hero-cta-btn {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(156, 210, 255, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    min-width: 180px;
    text-align: center;
    letter-spacing: 0.3px;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(156, 210, 255, 0.6);
    color: #fff;
    text-decoration: none;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.hero-trust-stars {
    color: #FFD166;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.hero-trust-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Hidden on desktop — nav has the primary CTA */
@media (min-width: 992px) {
    .hero-inline-cta {
        display: none;
    }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works-section {
    /* background/position handled by shared blue-wave rule above */
    overflow: visible;
    padding-top: calc(4rem + 120px);
    padding-bottom: calc(8rem + 120px);
}

.how-it-works-heading {
    font-size: 3rem !important;
    margin-bottom: 0.5rem !important;
}

.how-it-works-sub {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ── Phone card row ── */
.hiw-phones-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding: 3.5rem 0 2rem;
    flex-wrap: wrap;
}

/* Individual phone card */
.hiw-phone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
    position: relative;

    /* Scroll-in animation — start hidden */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.55s ease calc(var(--delay, 0ms)),
                transform 0.55s cubic-bezier(0.34, 1.30, 0.64, 1) calc(var(--delay, 0ms));
}

.hiw-phone-card.hiw-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Centre card sits 24px higher */
.hiw-phone-card--center {
    margin-bottom: 24px;
}

/* Subtle continuous float on each card, staggered */
.hiw-phone-card:nth-child(1) { animation: hiw-float 4s ease-in-out infinite; }
.hiw-phone-card:nth-child(2) { animation: hiw-float 4s ease-in-out 0.8s infinite; }
.hiw-phone-card:nth-child(3) { animation: hiw-float 4s ease-in-out 1.6s infinite; }

/* Only float after they've appeared */
.hiw-phone-card:not(.hiw-visible) { animation: none; }

@keyframes hiw-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hiw-phone-card { animation: none !important; }
}

/* Step badge */
.hiw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(156, 210, 255, 0.45);
    flex-shrink: 0;
}

/* Lottie animation wrap — fixed box so all 3 occupy identical space */
.hiw-lottie-wrap {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hiw-lottie {
    width: 100%;
    height: 100%;
}

.hiw-phone-card:nth-child(1) .hiw-lottie-wrap {
    overflow: visible;
}
.hiw-phone-card:nth-child(1) .hiw-lottie {
    transform: scale(1.6);
    transform-origin: center center;
}

/* Step 3: ~10% larger than default */
.hiw-phone-card:nth-child(3) .hiw-lottie-wrap {
    overflow: visible;
}
.hiw-phone-card:nth-child(3) .hiw-lottie {
    transform: scale(1.1);
    transform-origin: center center;
}

.hiw-phone-card:hover .hiw-lottie-wrap {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* Step copy below the phone */
.hiw-step-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1rem 0 0.4rem;
    text-align: center;
}

.hiw-step-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: center;
    max-width: 210px;
    margin: 0 auto;
}

.hiw-cta {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 15px 44px;
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(156, 210, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.hiw-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(156, 210, 255, 0.55);
    color: #fff !important;
    text-decoration: none;
}

.hiw-cta-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.hiw-container { margin-top: 3rem; }
.hiw-cta-row { margin-bottom: 3rem; }
.demo-eyebrow { color: var(--color-primary); }

@media (max-width: 767px) {
    /* Mobile: stack phone cards vertically, full width */
    .hiw-phones-row {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem 1.5rem 1.5rem;
    }
    .hiw-phone-card {
        width: 100%;
        max-width: 280px;
        /* No stagger delay on mobile — cards appear one by one as scrolled */
        transition: opacity 0.45s ease, transform 0.45s ease;
    }
    .hiw-phone-card--center {
        margin-bottom: 0; /* reset the desktop raise */
    }
    /* No float animation on mobile */
    .hiw-phone-card:nth-child(1),
    .hiw-phone-card:nth-child(2),
    .hiw-phone-card:nth-child(3) {
        animation: none;
    }
    .hiw-step-desc {
        max-width: 100%;
    }
}

/* ========================================
   FEATURES SECTION — detail always visible
   ======================================== */

.feature-detail {
    max-height: none !important;
    overflow: visible !important;
    margin-top: 10px !important;
    opacity: 1 !important;
}

.feature-info-btn {
    display: none !important;
}

/* Ghost CTA on blue background (services + design sections) */
.blue-section-cta {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 40px;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.blue-section-cta:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
    text-decoration: none;
}

.blue-section-cta-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.6rem;
    margin-bottom: 0;
}

/* ========================================
   SCREENSHOT COVERFLOW CAROUSEL
   ======================================== */

.screenshots {
    padding: 5rem 0;
}

.screenshots-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Break out of Bootstrap container so coverflow side slides fill within 100vw.
   overflow: hidden (Swiper default) is intentional: no slide bleeds past the
   viewport edge, so html/body overflow-x:hidden never clips the right side. */
.screenshot-swiper.swiper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 50px 0 70px;
    overflow: hidden;
}

.screenshot-swiper .swiper-wrapper {
    align-items: center;
}

/* Slide width comes from Swiper (numeric slidesPerView); don’t set a fixed width here — it breaks loop + coverflow symmetry */
.screenshot-swiper .swiper-slide {
    background: transparent;
    height: auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone frame fills ~88% of each slide so side phones are clearly visible at the carousel edges */
.screenshot-phone-frame {
    background: transparent;
    width: 88%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-phone-frame img {
    width: 100%;
    display: block;
    mix-blend-mode: multiply;
    -webkit-user-drag: none;
    user-select: none;
}

.screenshot-swiper .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.4;
}

.screenshot-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 767px) {
    .screenshot-phone-frame {
        max-width: 210px;
    }
    .screenshot-swiper {
        padding: 30px 0 50px;
    }
}

.screenshots .container > .row > .col-12 {
    overflow: visible; /* allow Swiper to break out of Bootstrap column */
}

/* ========================================
   MASCOT ANIMATIONS
   ======================================== */

.mascot-bounce {
    animation: mascot-bounce 3s ease-in-out infinite;
    display: block;
}

.mascot-wave {
    animation: mascot-sway 2s ease-in-out infinite;
    display: block;
}

.mascot-pulse {
    animation: mascot-pulse 2.5s ease-in-out infinite;
    display: block;
}

@keyframes mascot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes mascot-sway {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-4px); }
}

@keyframes mascot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .mascot-bounce,
    .mascot-wave,
    .mascot-pulse {
        animation: none;
    }
}

/* ========================================
   MISSION SECTION CTA
   ======================================== */

.mission-cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   STATS SECTION (Why It Matters)
   ======================================== */

.stats-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.stats-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    flex-wrap: nowrap;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    display: block;
    flex: 1;
}

.stat-source {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    display: block;
    margin-top: 0.75rem;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    align-self: stretch;
    flex-shrink: 0;
    margin: 0.5rem 0;
}

@media (max-width: 767px) {
    .stats-row {
        flex-direction: column;
        gap: 2.5rem;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
        align-self: center;
        margin: 0;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .stat-item {
        padding: 0 1rem;
    }
}

/* ========================================
   STORE SECTION — mascot + rating badge
   ======================================== */

.store-mascot {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.store-rating-minimal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
}

.store-rating-stars-min {
    color: #FFD166;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.store-rating-text-min {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.store-download-btn {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 52px;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(156, 210, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.store-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(156, 210, 255, 0.65);
    color: #fff;
    text-decoration: none;
}

.store-login-note {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

.store-login-note a {
    color: var(--color-primary);
    text-decoration: none;
}

.store-login-note a:hover {
    text-decoration: underline;
}

/* ========================================
   STICKY MOBILE CTA BAR
   ======================================== */

.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.09);
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.sticky-mobile-cta.visible {
    display: flex;
}

.sticky-cta-mascot {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sticky-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sticky-cta-headline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.sticky-cta-btn {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.sticky-cta-btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
    text-decoration: none;
}

/* Only shown on mobile */
@media (min-width: 768px) {
    .sticky-mobile-cta {
        display: none !important;
    }
}