/* ============================================
   EasyVisit Marketing – Clean Design System
   Inspired by easyvisit.app
   ============================================ */

/* --- Design Tokens --- */
:root {
    --color-primary: #4F7DF3;
    --color-primary-dark: #3b63d4;
    --color-primary-light: #EBF0FE;
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-purple: #8b5cf6;
    --color-purple-light: #ede9fe;

    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --container-max: 1440px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* --- Navbar --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-nav.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i { font-size: 1.4rem; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; display: block; margin-bottom: 0.5rem; }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.btn-login:hover { color: var(--color-primary); }

.btn-primary-nav {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary-nav:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-text);
    cursor: pointer;
}

.nav-mobile-drawer { display: none; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
    background: linear-gradient(180deg, #eef3ff 0%, #f8faff 60%, #ffffff 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--color-primary); }

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-hero-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79,125,243,0.35);
}

.btn-hero-secondary {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-hero-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   Hero Multi-Device Mockup — v6
   Wide cinematic layout matching Freepik PSD:
   Spacious, breathing room, proper scale hierarchy
   ============================================ */

.hero-devices-wrap {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 420px;
    margin: 0 auto;
}

/* --- Shared: image viewport --- */
.hd-viewport {
    overflow: hidden;
    background: #f4f4f8;
    border-radius: 4px;
}
.hd-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ========================================
   DESKTOP MONITOR — iMac style (back center)
   The hero device — largest, centered, dominant
   ======================================== */
.hd-monitor {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 440px;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.12));
}
.hd-monitor-screen {
    background: #1a1a1e;
    border-radius: 12px 12px 2px 2px;
    padding: 8px 8px 24px;
}
.hd-monitor-vp {
    height: 248px;
    border-radius: 4px;
}
.hd-monitor-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hd-monitor-neck {
    width: 50px;
    height: 36px;
    background: linear-gradient(90deg, #c0c0c4 0%, #d8d8dc 25%, #eaeaee 50%, #d8d8dc 75%, #c0c0c4 100%);
    clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
}
.hd-monitor-foot {
    width: 140px;
    height: 6px;
    background: linear-gradient(180deg, #d4d4d8 0%, #bbb 100%);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================
   TABLET — iPad portrait (left, slightly
   overlapping monitor, in front)
   ======================================== */
.hd-tablet {
    position: absolute;
    bottom: 24px;
    left: 20px;
    z-index: 2;
    width: 150px;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.14));
}
.hd-tablet-frame {
    background: #1a1a1e;
    border-radius: 12px;
    padding: 5px 4px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.hd-tablet-camera {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}
.hd-tablet-vp {
    width: 100%;
    height: 200px;
    border-radius: 3px;
}
.hd-tablet-homebar {
    width: 30px; height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========================================
   LAPTOP — MacBook (right, slightly
   overlapping monitor, in front)
   Base wider than screen lid
   ======================================== */
.hd-laptop {
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 2;
    width: 300px;
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.14));
}
.hd-laptop-lid {
    width: 278px;
    margin: 0 auto;
    background: #1a1a1e;
    border-radius: 8px 8px 0 0;
    padding: 6px 6px 0;
}
.hd-laptop-vp {
    height: 162px;
    border-radius: 4px 4px 0 0;
}
.hd-laptop-base {
    background: linear-gradient(180deg, #d8d8dc 0%, #c4c4c8 50%, #b6b6ba 100%);
    height: 10px;
    border-radius: 0 0 4px 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.hd-laptop-base::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background: rgba(0,0,0,0.06);
    border-radius: 0 0 2px 2px;
}
.hd-laptop-hinge {
    display: none;
}

/* ========================================
   PHONE — iPhone (front-right of center)
   Smallest device, highest z-index
   ======================================== */
.hd-phone {
    position: absolute;
    bottom: -10px;
    left: 155px;
    z-index: 3;
    width: 88px;
    transform: scale(1.08);
    transform-origin: bottom center;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.32));
}
.hd-phone-frame {
    position: relative;
    background: #1a1a1e;
    border-radius: 18px;
    padding: 6px 4px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hd-phone-frame::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 24%;
    width: 2px;
    height: 18px;
    background: #252528;
    border-radius: 0 2px 2px 0;
}
.hd-phone-frame::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 18%;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #252528 0%, #252528 42%, transparent 42%, transparent 58%, #252528 58%);
    border-radius: 2px 0 0 2px;
}
.hd-phone-notch {
    width: 22px; height: 4px;
    background: #000;
    border-radius: 3px;
    margin-bottom: 3px;
    flex-shrink: 0;
}
.hd-phone-vp {
    width: 100%;
    height: 148px;
    border-radius: 3px;
}
.hd-phone-homebar {
    width: 24px; height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.trust-items {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.trust-item i { color: var(--color-success); font-size: 1rem; }

/* --- Sections --- */
.section {
    padding: 7rem 0;
}
.section-light { background: var(--color-bg-light); }

.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 640px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 4rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* --- Visit Journey Strip --- */
.visit-journey {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
}
.journey-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0 0.5rem;
}
.journey-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.journey-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.journey-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.journey-arrow {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 0 0.5rem;
    margin-top: 1.1rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .visit-journey {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    .journey-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 0.875rem;
        padding: 0;
    }
    .journey-icon { flex-shrink: 0; }
    .journey-step > div:not(.journey-icon) { flex: 1; }
    .journey-arrow {
        display: none;
    }
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.feature-icon.blue { background: var(--color-primary-light); color: var(--color-primary); }
.feature-icon.green { background: var(--color-success-light); color: var(--color-success); }
.feature-icon.purple { background: var(--color-purple-light); color: var(--color-purple); }
.feature-icon.amber { background: var(--color-warning-light); color: var(--color-warning); }
.feature-icon.red { background: var(--color-danger-light); color: var(--color-danger); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* ============================================
   Dashboard Showcase — Carousel (mirrors App Gallery)
   ============================================ */
.dashboard-showcase {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    overflow: hidden;
}

/* Outer wrapper positions nav arrows */
.showcase-carousel-outer {
    position: relative;
    padding: 0 60px;
}

/* Swiper — overflow visible lets adjacent slides peek */
.showcase-carousel {
    overflow: visible;
    padding: 40px 0 20px;
}

/* Each slide mirrors gallery slide exactly */
.showcase-carousel .swiper-slide {
    width: 580px;
    max-width: 80vw;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.showcase-carousel .swiper-slide-active {
    box-shadow: 0 24px 56px rgba(79, 125, 243, 0.20), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

/* Card label below image */
.showcase-card-label {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.showcase-card-label h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.showcase-card-label p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* Navigation arrows — identical to gallery */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.showcase-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 125, 243, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.showcase-nav-prev { left: 0; }
.showcase-nav-next { right: 0; }

/* Controls bar — mirrors gallery-controls */
.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Pagination bullets */
.showcase-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.showcase-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    opacity: 1;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* Autoplay progress ring */
.showcase-progress-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.showcase-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.showcase-progress-ring circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-dasharray: 125.6;
    stroke-dashoffset: calc(125.6 * (1 - var(--sc-progress, 0)));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-carousel-outer { padding: 0 50px; }
    .showcase-carousel .swiper-slide { width: 480px; }
    .showcase-nav { width: 44px; height: 44px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .showcase-carousel-outer { padding: 0 40px; }
    .showcase-carousel .swiper-slide { width: 380px; max-width: 80vw; }
    .showcase-nav { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
    .showcase-carousel-outer { padding: 0 10px; }
    .showcase-carousel .swiper-slide { width: 300px; max-width: 88vw; }
    .showcase-nav { display: none; }
    .showcase-controls { margin-top: 1.5rem; }
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}
.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
}
.pricing-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    margin-bottom: 1.5rem;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    padding: 0.35rem 0;
    color: var(--color-text);
}
.pricing-features li i {
    color: var(--color-success);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pricing-features li.disabled {
    color: var(--color-text-light);
}
.pricing-features li.disabled i {
    color: var(--color-text-light);
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-pricing-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-pricing-primary:hover {
    background: var(--color-primary-dark);
}
.btn-pricing-outline {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-pricing-outline:hover {
    background: var(--color-primary-light);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #4F7DF3 0%, #3b63d4 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-section p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* --- Demo Request Modal --- */
.demo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.demo-modal-overlay.open {
    display: flex;
}
.demo-modal {
    background: #fff;
    border-radius: 18px;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    animation: modalIn 0.22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s;
}
.demo-modal-close:hover { background: var(--color-bg-alt, #f1f5f9); }
.demo-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.demo-modal-header i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}
.demo-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.demo-modal-header p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.demo-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.demo-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}
.demo-form-group label span {
    color: #ef4444;
}
.demo-form-group input {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.65rem 0.875rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.demo-form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,125,243,0.15);
}
.demo-form-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    transition: background 0.2s, transform 0.2s;
}
.demo-form-submit:hover {
    background: var(--color-primary-dark, #3b63d4);
    transform: translateY(-1px);
}
.demo-form-note {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}
.demo-form-note i { margin-right: 0.25rem; }
.demo-success {
    text-align: center;
    padding: 1.5rem 0;
}
.demo-success i {
    font-size: 3rem;
    color: #22c55e;
    display: block;
    margin-bottom: 0.75rem;
}
.demo-success h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.demo-success p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* --- Footer --- */
.site-footer {
    background: #111827;
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-logo i { color: var(--color-primary); }

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-devices-wrap { transform: scale(0.72); transform-origin: center top; height: 302px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    /* showcase grid replaced by carousel */
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; padding: 0.25rem; }

    /* Mobile nav drawer */
    .nav-mobile-drawer {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
        pointer-events: none;
    }
    .nav-mobile-drawer.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-mobile-drawer .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1.5rem 0;
    }
    .nav-mobile-drawer .nav-links li { border-bottom: 1px solid var(--color-border); }
    .nav-mobile-drawer .nav-links li:last-child { border-bottom: none; }
    .nav-mobile-drawer .nav-links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        color: var(--color-text);
    }
    .nav-mobile-drawer .nav-cta {
        display: flex;
        padding: 1rem 1.5rem;
    }
    .nav-mobile-drawer .nav-cta .btn-primary-nav {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero { padding: 7rem 0 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-devices-wrap { transform: scale(0.56); transform-origin: center top; height: 235px; }

    .features-grid,
    .pricing-grid { grid-template-columns: 1fr; }

    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.75rem; }

    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .phone-frame { width: 110px; }
    .phone-frame.phone-center { width: 130px; }
    .phone-screen { min-height: 200px; }
    .trust-items { gap: 1.5rem; }
    /* showcase carousel responsive handled in carousel block above */
}

/* (old hero mockup styles removed — replaced by .hero-devices-wrap multi-device mockup) */

/* ============================================
   Preview / Staging Banner
   ============================================ */
.preview-banner {
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    padding: 0.55rem 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1001;
}
.preview-banner a { color: #92400e; text-decoration: underline; }
.preview-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #92400e;
    font-size: 1rem;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}
.preview-banner-close:hover { opacity: 1; }

/* ============================================
   Hero — trial note
   ============================================ */
.hero-trial-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.hero-trial-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.hero-trial-note i { color: var(--color-success); font-size: 0.78rem; }

/* ============================================
   Feature Icon — Indigo variant
   ============================================ */
:root {
    --color-indigo: #6366f1;
    --color-indigo-light: #e0e7ff;
}
.feature-icon.indigo { background: var(--color-indigo-light); color: var(--color-indigo); }

/* ============================================
   Use Cases — "Who Is It For?"
   ============================================ */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.use-case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--color-primary));
    border-radius: 2px 2px 0 0;
}
.use-case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--color-primary));
}
.use-case-card:nth-child(1) { --card-accent: var(--color-primary); }
.use-case-card:nth-child(2) { --card-accent: var(--color-purple); }
.use-case-card:nth-child(3) { --card-accent: var(--color-warning); }

.use-case-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.use-case-card:nth-child(1) .use-case-icon-wrap { background: var(--color-primary-light); color: var(--color-primary); }
.use-case-card:nth-child(2) .use-case-icon-wrap { background: var(--color-purple-light); color: var(--color-purple); }
.use-case-card:nth-child(3) .use-case-icon-wrap { background: var(--color-warning-light); color: var(--color-warning); }

.use-case-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.use-case-card > p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }

.use-case-bullets { display: flex; flex-direction: column; gap: 0.45rem; }
.use-case-bullets li {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.use-case-bullets li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

@media (max-width: 768px) { .use-cases-grid { grid-template-columns: 1fr; } }

/* ============================================
   FAQ Section — Accordion
   ============================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item.open {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
}
.faq-question:hover { color: var(--color-primary); }
.faq-item.open .faq-question { color: var(--color-primary); }

.faq-chevron {
    font-size: 0.72rem;
    color: var(--color-text-light);
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-primary); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    padding-top: 0.6rem;
    font-size: 0.87rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   Pricing — trial note + feature separator
   ============================================ */
.pricing-trial-note {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}
.pricing-trial-note i { color: var(--color-success); margin-right: 0.2rem; }
.pricing-features-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.75rem 0;
}

/* ============================================
   CTA Section — sub-note
   ============================================ */
.cta-section-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1.25rem;
}
.cta-section-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.cta-section-secondary {
    display: block;
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 1rem;
}
.cta-section-secondary a { color: #fff; text-decoration: underline; opacity: 0.8; }
.cta-section-secondary a:hover { opacity: 1; }

/* ============================================
   Footer — social links + POPIA badge + support
   ============================================ */
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--color-primary); color: #fff; }

.footer-popia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 0.28rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    margin-top: 0.75rem;
}
.footer-popia-badge i { color: var(--color-success); font-size: 0.7rem; }

.footer-support-line {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    margin-top: 0.4rem;
}
.footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #25d366 !important;
    font-size: 0.83rem;
    font-weight: 600;
    margin-top: 0.4rem;
    transition: opacity 0.2s;
}
.footer-whatsapp-link:hover { opacity: 0.8; }

/* ============================================
   App Gallery — Modern Coverflow Carousel
   ============================================ */
.gallery-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
    overflow: hidden;
}

.gallery-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

/* Swiper container */
.gallery-carousel {
    overflow: visible;
    padding: 40px 0 20px;
}

/* --- Slide card (the swiper-slide IS the card) --- */
.gallery-carousel .swiper-slide {
    width: 580px;
    max-width: 80vw;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}

.gallery-carousel .swiper-slide-active {
    box-shadow: 0 24px 56px rgba(79, 125, 243, 0.20), 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

/* --- Browser chrome bar --- */
.slide-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8f9fb;
    border-bottom: 1px solid var(--color-border);
}

.chrome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #febc2e; }
.chrome-dot:nth-child(3) { background: #28c840; }

.chrome-url {
    margin-left: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 3px 14px;
    flex: 1;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

/* --- Fixed-height viewport with cover crop --- */
.slide-viewport {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.slide-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

/* Subtle zoom on hover for active slide */
.gallery-carousel .swiper-slide-active .slide-viewport img {
    transform: scale(1);
}

.gallery-carousel .swiper-slide-active:hover .slide-viewport img {
    transform: scale(1.03);
}

/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gallery-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 125, 243, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav-prev { left: 0; }
.gallery-nav-next { right: 0; }

/* Controls bar: pagination + autoplay progress */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Pagination bullets */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.gallery-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    opacity: 1;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* Autoplay progress ring */
.gallery-autoplay-progress {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.gallery-autoplay-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gallery-autoplay-progress circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-dasharray: 125.6;
    stroke-dashoffset: calc(125.6 * (1 - var(--progress, 0)));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.gallery-pause-btn {
    position: absolute;
    inset: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
    border-radius: 50%;
}

.gallery-pause-btn:hover {
    color: var(--color-primary);
}

/* Gallery responsive */
@media (max-width: 1024px) {
    .gallery-carousel-wrapper { padding: 0 50px; }
    .gallery-carousel .swiper-slide { width: 480px; }
    .slide-viewport { height: 270px; }
    .gallery-nav { width: 44px; height: 44px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .gallery-carousel-wrapper { padding: 0 40px; }
    .gallery-carousel .swiper-slide { width: 380px; max-width: 80vw; }
    .slide-viewport { height: 220px; }
    .gallery-nav { width: 40px; height: 40px; }
    .chrome-url { max-width: 180px; }
}

@media (max-width: 640px) {
    .gallery-carousel-wrapper { padding: 0 10px; }
    .gallery-carousel .swiper-slide { width: 300px; max-width: 88vw; }
    .slide-viewport { height: 180px; }
    .gallery-nav { display: none; }
    .gallery-controls { margin-top: 1.5rem; }
    .slide-browser-chrome { padding: 8px 10px; gap: 4px; }
    .chrome-dot { width: 8px; height: 8px; }
    .chrome-url { font-size: 0.65rem; padding: 2px 10px; max-width: 150px; }
    .hero-devices-wrap { transform: scale(0.42); transform-origin: center top; height: 176px; }
}

/* ============================================
   Portal Showcase Section
   Distinct from Dashboard (teal/emerald theme)
   ============================================ */

/* Portal design tokens */
:root {
    --color-portal: #0d9488;
    --color-portal-dark: #0f766e;
    --color-portal-mid: #14b8a6;
    --color-portal-light: #ccfbf1;
    --color-portal-bg: #f0fdfa;
}

.portal-showcase {
    background: var(--color-portal-bg);
    position: relative;
}

/* Portal label pill — teal instead of blue */
.portal-label {
    background: var(--color-portal-light) !important;
    color: var(--color-portal-dark) !important;
}

/* ---- Product split banner ---- */
.product-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto;
    max-width: 700px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.product-split-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.product-split-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-split-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.product-split-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-split-dashboard .product-split-icon {
    background: var(--color-purple-light);
    color: var(--color-purple);
}

.product-split-portal .product-split-icon {
    background: var(--color-portal-light);
    color: var(--color-portal);
}

.product-split-divider {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

/* ---- Portal Layout: features + phones ---- */
.portal-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0 2.5rem;
}

/* ---- Portal Feature List ---- */
.portal-features-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.75rem;
}

.portal-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.portal-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-portal-light);
    color: var(--color-portal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.portal-feature-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.portal-feature-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

.btn-portal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-portal);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-portal-cta:hover {
    background: var(--color-portal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,148,136,0.3);
}

.btn-dashboard-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    margin-top: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-dashboard-cta:hover {
    background: var(--color-primary-dark, #3b63d4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,125,243,0.3);
}

/* ---- Portal Phone Mockups ---- */
.portal-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 520px;
}

.portal-phone {
    position: absolute;
    transition: transform 0.3s ease;
}

.portal-phone img {
    display: block;
    border-radius: 24px;
    height: auto;
}

.portal-phone-back {
    width: 230px;
    right: 0;
    bottom: 0;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.10));
    z-index: 1;
}

.portal-phone-front {
    width: 200px;
    left: 0;
    bottom: 30px;
    filter: drop-shadow(0 16px 32px rgba(13,148,136,0.22));
    z-index: 2;
    transform: rotate(-3deg);
}

.portal-phone-back:hover { transform: translateY(-6px); }
.portal-phone-front:hover { transform: rotate(-3deg) translateY(-6px); }

/* ---- Portal Screen Cards (bottom row) ---- */
.portal-screens {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.portal-screen-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.portal-screen-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.portal-screen-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-portal-light);
    -webkit-text-stroke: 1.5px var(--color-portal);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.portal-screen-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.portal-screen-card p {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ---- Portal Responsive ---- */
@media (max-width: 1024px) {
    .portal-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .portal-phones {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }
    .portal-phone-back { width: 200px; }
    .portal-phone-front { width: 170px; }
    .portal-screens { grid-template-columns: repeat(2, 1fr); }
    .product-split { flex-direction: column; gap: 0.75rem; text-align: center; }
    .product-split-item { justify-content: center; }
    .product-split-divider { transform: rotate(90deg); }
}

@media (max-width: 640px) {
    .portal-phones { height: 320px; }
    .portal-phone-back { width: 160px; }
    .portal-phone-front { width: 140px; }
    .portal-screens { grid-template-columns: 1fr; }
}


/* ============================================
   Scroll-Triggered Animations
   ============================================ */

/* --- Base hidden states --- */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.scale-in {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up   { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right{ transform: translateX(40px); }
.scale-in     { transform: scale(0.92); }

/* --- Visible (revealed) state --- */
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.scale-in.visible {
    opacity: 1;
    transform: none;
}

/* --- Stagger delays for grid children --- */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.5s; }
.stagger-7 { transition-delay: 0.6s; }

/* --- Hero entrance animation --- */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroDevicesFloat {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .hero-badge {
    animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero h1 {
    animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.hero .hero-sub {
    animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.hero .hero-buttons {
    animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.hero .hero-devices-wrap {
    animation: heroDevicesFloat 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* --- Floating animation for hero particles --- */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(8px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(3px); }
}

/* --- Navbar scroll effect --- */
.site-nav {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.site-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
}

/* --- Card hover lift --- */
.feature-card,
.pricing-card,
.use-case-card,
.portal-screen-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Journey step pulse on reveal --- */
@keyframes journeyPulse {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.journey-step.visible .journey-icon {
    animation: journeyPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Trust bar slide-in --- */
@keyframes trustSlide {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.trust-bar .trust-item {
    opacity: 0;
    animation: trustSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.trust-bar .trust-item:nth-child(1) { animation-delay: 0.6s; }
.trust-bar .trust-item:nth-child(2) { animation-delay: 0.7s; }
.trust-bar .trust-item:nth-child(3) { animation-delay: 0.8s; }
.trust-bar .trust-item:nth-child(4) { animation-delay: 0.9s; }
.trust-bar .trust-item:nth-child(5) { animation-delay: 1.0s; }

/* --- Button hover animations --- */
.btn-hero,
.btn-pricing,
.btn-primary-nav,
.btn-dashboard-cta,
.btn-portal-cta,
.btn-cta {
    position: relative;
    overflow: hidden;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero .hero-badge,
    .hero h1,
    .hero .hero-sub,
    .hero .hero-buttons,
    .hero .hero-devices-wrap,
    .trust-bar .trust-item,
    .journey-step.visible .journey-icon {
        animation: none;
        opacity: 1;
    }
}

/* ===========================
   WhatsApp Floating Chat Widget
   =========================== */

.wa-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* FAB button */
.wa-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.wa-fab-icon-close { display: none; }
.wa-widget.open .wa-fab-icon-open { display: none; }
.wa-widget.open .wa-fab-icon-close { display: block; font-size: 1.5rem; }

/* Pulse ring */
.wa-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: waPulse 2s ease-out infinite;
    pointer-events: none;
}
.wa-widget.open .wa-fab-pulse { display: none; }
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.7; }
    70%  { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* Chat box */
.wa-chat-box {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.wa-widget.open .wa-chat-box {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Chat header */
.wa-chat-header {
    background: #075e54;
    color: #fff;
    padding: 1rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.wa-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.wa-chat-name { font-weight: 700; font-size: 0.95rem; }
.wa-chat-status { font-size: 0.75rem; opacity: 0.85; display: flex; align-items: center; gap: 0.3rem; margin-top: 0.1rem; }
.wa-status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #25d366; display: inline-block;
}
.wa-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0.25rem;
    line-height: 1;
    transition: opacity 0.15s;
}
.wa-chat-close:hover { opacity: 1; }

/* Chat body */
.wa-chat-body {
    background: #ece5dd;
    padding: 1rem;
}
.wa-message {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    max-width: 90%;
}
.wa-message p { margin: 0 0 0.4rem; }
.wa-message p:last-child { margin-bottom: 0; }

/* CTA button */
.wa-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    text-align: center;
    transition: background 0.2s;
}
.wa-chat-btn:hover { background: #1ebe5d; color: #fff; }
.wa-chat-btn i { font-size: 1.2rem; }

/* ============================================
   LARGE-SCREEN ENHANCEMENTS
   Makes the site fill wide monitors (1440px+)
   like easyvisit.co.za does
   ============================================ */

/* 1280px — grow devices wrap & type */
@media (min-width: 1280px) {
    .hero h1 { font-size: 3.75rem; }
    .hero-devices-wrap {
        max-width: 1040px;
        height: 460px;
    }
    .hd-monitor { width: 480px; }
    .hd-monitor-vp { height: 270px; }
    .hd-laptop { width: 326px; }
    .hd-laptop-lid { width: 304px; }
    .hd-laptop-vp { height: 178px; }
    .hd-tablet { width: 165px; }
    .hd-tablet-vp { height: 220px; }
    .hd-phone { width: 96px; left: 170px; }
    .hd-phone-vp { height: 162px; }
    .features-grid { gap: 2rem; }
    .section { padding: 8rem 0; }
}

/* 1440px — full cinematic fill */
@media (min-width: 1440px) {
    .hero h1 { font-size: 4.25rem; }
    .hero-sub { font-size: 1.3rem; }
    .hero-devices-wrap {
        max-width: 1120px;
        height: 500px;
    }
    .hd-monitor { width: 530px; }
    .hd-monitor-vp { height: 300px; }
    .hd-laptop { width: 360px; }
    .hd-laptop-lid { width: 336px; }
    .hd-laptop-vp { height: 196px; }
    .hd-tablet { width: 182px; }
    .hd-tablet-vp { height: 242px; }
    .hd-phone { width: 106px; left: 190px; }
    .hd-phone-vp { height: 178px; }
    .section-title { font-size: 3rem; }
    .features-grid { gap: 2.25rem; }
    .pricing-grid { gap: 2rem; }
}

/* 1920px — ultra-wide / 1080p monitors */
@media (min-width: 1920px) {
    .hero h1 { font-size: 5rem; }
    .hero-sub { font-size: 1.4rem; max-width: 600px; }
    .hero-devices-wrap {
        max-width: 1300px;
        height: 580px;
    }
    .hd-monitor { width: 620px; }
    .hd-monitor-vp { height: 350px; }
    .hd-laptop { width: 420px; }
    .hd-laptop-lid { width: 394px; }
    .hd-laptop-vp { height: 230px; }
    .hd-tablet { width: 212px; }
    .hd-tablet-vp { height: 284px; }
    .hd-phone { width: 124px; left: 220px; }
    .hd-phone-vp { height: 208px; }
    .section-title { font-size: 3.5rem; }
    .section { padding: 9rem 0; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
