/* ================================================================
   MyPass LMS Theme — Main Stylesheet
   Design System + All Component Styles
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --color-primary:        #4220C8;
    --color-primary-dark:   #2D1490;
    --color-primary-mid:    #7B5EEA;
    --color-primary-light:  #EEE9FF;
    --color-secondary:      #0D0D2B;
    --color-accent:         #00C2A8;
    --color-success:        #16A34A;

    /* Neutrals */
    --color-white:          #FFFFFF;
    --color-gray-50:        #F8F8FB;
    --color-gray-100:       #F5F2FF;
    --color-gray-200:       #E2DEF5;
    --color-gray-400:       #9B96B0;
    --color-gray-600:       #524D72;
    --color-gray-800:       #27224A;
    --color-gray-900:       #0F0C1F;

    /* Semantic */
    --color-text-primary:   var(--color-gray-900);
    --color-text-secondary: var(--color-gray-600);
    --color-text-muted:     var(--color-gray-400);
    --color-bg:             var(--color-white);
    --color-surface:        var(--color-gray-50);
    --color-border:         var(--color-gray-200);

    /* Typography */
    /* --font-display:   'Syne', system-ui, sans-serif;
    --font-body:      'DM Sans', system-ui, sans-serif; */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;

    --text-xs:    0.75rem;    /* 12px */
    --text-sm:    0.875rem;   /* 14px */
    --text-base:  1rem;       /* 16px */
    --text-lg:    1.125rem;   /* 18px */
    --text-xl:    1.25rem;    /* 20px */
    --text-2xl:   1.5rem;     /* 24px */
    --text-3xl:   1.875rem;   /* 30px */
    --text-4xl:   2.25rem;    /* 36px */
    --text-5xl:   3rem;       /* 48px */
    --text-6xl:   3.75rem;    /* 60px */

    --leading-tight:  1.2;
    --leading-snug:   1.35;
    --leading-normal: 1.6;
    --leading-relaxed:1.75;

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold:600;
    --weight-bold:   700;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(13,13,43,0.08), 0 1px 2px rgba(13,13,43,0.04);
    --shadow-md:  0 4px 16px rgba(13,13,43,0.10), 0 2px 6px rgba(13,13,43,0.06);
    --shadow-lg:  0 12px 40px rgba(89,50,234,0.12), 0 4px 12px rgba(13,13,43,0.06);
    --shadow-xl:  0 24px 64px rgba(89,50,234,0.16);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Layout */
    --container-max:     1560px;
    --container-pad:     1.5rem;
    --section-gap:       6rem;
    --section-gap-sm:    4rem;

    /* Header */
    --header-height:     72px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----------------------------------------------------------------
   3. UTILITIES
   ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: var(--weight-medium);
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.section-subtext {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 64ch;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
}

/* ----------------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem 1.375rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1;
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    transition: background var(--transition-base), color var(--transition-base),
                border-color var(--transition-base), transform var(--transition-fast),
                box-shadow var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary-light);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-weight: var(--weight-semibold);
}
.btn--white:hover {
    background: var(--color-gray-100);
    box-shadow: var(--shadow-md);
}

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn--lg { padding: 0.875rem 2rem; font-size: var(--text-lg); }

/* ----------------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: var(--header-height);
}

.header__logo img { height: 36px; width: auto; }

.header__nav { flex: 1; }

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav__link, .nav__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}
.nav__link:hover,
.nav__dropdown-trigger:hover { background: var(--color-gray-50); color: var(--color-primary); }
.nav__link--active { color: var(--color-primary); }

.nav__chevron {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
.nav__item--dropdown:hover .nav__chevron,
.nav__item--dropdown .nav__dropdown-trigger[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav__item--dropdown { position: relative; }

.nav__dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 200;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav__dropdown-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    margin-left: auto;
    border-radius: var(--radius-md);
}
.hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ----------------------------------------------------------------
   6. HERO
   ---------------------------------------------------------------- */
.hero {
    padding: var(--space-20) 0 var(--space-16);
    background: linear-gradient(135deg, #F8F6FF 0%, #FFFFFF 60%, #F0FDFA 100%);
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(89,50,234,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4) var(--space-1) var(--space-2);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}
.hero__badge-dot {
    width: 8px; height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-5);
}

.hero__subtext {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero__promo {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-primary);
}
.hero__promo strong { color: var(--color-gray-900); }
.hero__promo-note { color: var(--color-text-muted); }

.hero__video-wrap {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}
.hero__video-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}
.hero__video {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--color-gray-900);
}

/* ----------------------------------------------------------------
   7. FEATURE BLOCKS
   ---------------------------------------------------------------- */
.feature-block {
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.feature-block:nth-child(even) { background: var(--color-gray-50); }

.feature-block__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.feature-block--reversed .feature-block__inner { direction: rtl; }
.feature-block--reversed .feature-block__inner > * { direction: ltr; }

.feature-block__icon {
    width: 56px; height: 56px;
    margin-bottom: var(--space-5);
}
.feature-block__icon img { width: 100%; height: 100%; object-fit: contain; }

.feature-block__label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: var(--space-3);
}

.feature-block__heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-5);
}

.feature-block__sub-card {
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
}
.feature-block__subheading {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}
.feature-block__subheading-detail { font-size: var(--text-sm); color: var(--color-primary-dark); }

.feature-block__subtext {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

.feature-block__bullets { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-block__bullet {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}
.feature-block__bullet-icon { flex-shrink: 0; margin-top: 2px; }

.feature-block__stat {
    margin-top: var(--space-6);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.feature-block__media { position: relative; }
.feature-block__image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}
.feature-block__image--secondary {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 55%;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}

/* ----------------------------------------------------------------
   8. PLATFORM FEATURES GRID
   ---------------------------------------------------------------- */
.platform-features {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}
.platform-features .container { text-align: center; }
.platform-features .section-subtext { margin-inline: auto; }

.platform-features__grid {
    display: grid;
    grid-template-columns: repeat(var(--pf-cols, 3), 1fr);
    gap: var(--space-6);
    text-align: left;
}

.platform-feature-card {
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.platform-feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.platform-feature-card__icon {
    width: 40px; height: 40px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-4);
}
.platform-feature-card__icon--dot::before {
    content: '';
    width: 10px; height: 10px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.platform-feature-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}
.platform-feature-card__body {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ----------------------------------------------------------------
   9. AWARDS STRIP
   ---------------------------------------------------------------- */
.awards-strip {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-gray-50);
}
.awards-strip__heading {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    font-weight: var(--weight-medium);
}
.awards-strip__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4) var(--space-6);
}
.awards-strip__badge {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    opacity: 0.85;
    transition: filter var(--transition-base), opacity var(--transition-base);
}
.awards-strip__badge:hover { filter: grayscale(0); opacity: 1; }

/* ----------------------------------------------------------------
   10. COMPARISON TABLE
   ---------------------------------------------------------------- */
.comparison {
    padding: var(--section-gap) 0;
    background: var(--color-gray-50);
}
.comparison .section-heading { text-align: center; }
.comparison .section-subtext { text-align: center; margin-inline: auto; }

.comparison__table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.comparison__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    font-size: var(--text-sm);
}

.comparison__th {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-align: left;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.comparison__th--feature { color: var(--color-text-muted); width: 28%; }
.comparison__th--col-a { color: var(--color-text-secondary); background: var(--color-gray-50); }
.comparison__th--col-b { background: var(--color-primary-light); color: var(--color-primary); }

.comparison__th-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--weight-bold);
}

.comparison__row { border-bottom: 1px solid var(--color-gray-100); transition: background var(--transition-fast); }
.comparison__row:last-child { border-bottom: none; }
.comparison__row:hover { background: var(--color-gray-50); }

.comparison__td {
    padding: var(--space-4) var(--space-6);
    vertical-align: top;
    line-height: var(--leading-relaxed);
}
.comparison__td--feature { font-weight: var(--weight-medium); color: var(--color-gray-800); }
.comparison__td--col-a { color: var(--color-text-secondary); background: rgba(241,239,249,0.3); }
.comparison__td--col-b { background: rgba(89,50,234,0.03); }

.comparison__neg { color: var(--color-text-secondary); }
.comparison__pos {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--color-gray-900);
    font-weight: var(--weight-medium);
}
.comparison__check { flex-shrink: 0; margin-top: 2px; }

/* ----------------------------------------------------------------
   11. TESTIMONIALS
   ---------------------------------------------------------------- */
.testimonials {
    padding: var(--section-gap) 0;
    background: var(--color-white);
    overflow: hidden;
}
.testimonials .section-heading { text-align: center; }

.testimonials__slider {
    position: relative;
    margin-top: var(--space-10);
}
.testimonials__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.testimonial-card__rating { display: flex; gap: 2px; }
.testimonial-card__star { color: #F59E0B; }

.testimonial-card__quote {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    font-style: normal;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-100);
}
.testimonial-card__avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.testimonial-card__avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.testimonial-card__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-900);
    font-style: normal;
    display: block;
}
.testimonial-card__role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}
.testimonials__btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.testimonials__btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.testimonials__dots { display: flex; gap: var(--space-2); }
.testimonials__dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-gray-200);
    cursor: pointer;
    transition: background var(--transition-base), width var(--transition-base);
}
.testimonials__dot--active { background: var(--color-primary); width: 24px; }

/* ----------------------------------------------------------------
   12. LOGO STRIP
   ---------------------------------------------------------------- */
.logo-strip { padding: var(--section-gap-sm) 0; overflow: hidden; }
.logo-strip .section-heading { text-align: center; }
.logo-strip .section-subtext { text-align: center; margin-inline: auto; }

.logo-strip__track-wrap { overflow: hidden; }

/* Scrolling marquee */
.logo-strip__marquee { overflow: hidden; }
.logo-strip__track--scroll {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
.logo-strip__track--scroll:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Grid (non-scrolling) */
.logo-strip__grid {
    display: grid;
    grid-template-columns: repeat(var(--logo-cols, 5), 1fr);
    gap: var(--space-4);
    align-items: center;
    justify-items: center;
    margin-top: var(--space-8);
}

.logo-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-strip__item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.4);
    opacity: 0.75;
    transition: filter var(--transition-base), opacity var(--transition-base);
}
.logo-strip__item:hover img { filter: grayscale(0); opacity: 1; }

/* ----------------------------------------------------------------
   13. CTA BAND
   ---------------------------------------------------------------- */
.cta-band {
    padding: var(--space-16) 0 var(--space-6);
    text-align: center;
}
.cta-band--dark {
    background: var(--color-secondary);
    color: var(--color-white);
}
.cta-band--gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    color: var(--color-white);
}
.cta-band--light {
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.cta-band__heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    max-width: 28ch;
}
.cta-band--dark .cta-band__heading,
.cta-band--gradient .cta-band__heading { color: var(--color-white); }

.cta-band__subtext {
    font-size: var(--text-lg);
    opacity: 0.8;
    max-width: 48ch;
}

.cta-band__note {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    opacity: 0.6;
}
.cta-band--dark .cta-band__note,
.cta-band--gradient .cta-band__note { color: var(--color-white); }

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.footer-cta {
    background: var(--color-primary);
    padding: var(--space-12) 0 var(--space-4);
    text-align: center;
}
.footer-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}
.footer-cta__text { text-align: left; }
.footer-cta__heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}
.footer-cta__sub {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.75);
}
.footer-cta__note {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
}

.footer__main {    
    background-color: #f1f1f1;
    padding: var(--space-16) 0 var(--space-10);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer__brand img { margin-bottom: var(--space-5); }
.footer__address {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.55);
    line-height: var(--leading-relaxed);
    font-style: normal;
    margin-bottom: var(--space-3);
}
.footer__phone {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.55);
    display: block;
    margin-bottom: var(--space-5);
    transition: color var(--transition-fast);
}
.footer__phone:hover { color: var(--color-primary); }

.footer__social { display: flex; gap: var(--space-3); }
.footer__social-link {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    display: flex; align-items: center; justify-content: center;
    color: rgba(0, 0, 0, 0.6);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.footer__social-link:hover { background: var(--color-primary); color: var(--color-white); }

.footer__nav-heading {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    margin-top: var(--space-6);
}
.footer__nav-heading:first-child { margin-top: 0; }

.footer__nav-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__nav-link {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.7);
    transition: color var(--transition-fast);
}
.footer__nav-link:hover { color: var(--color-primary); }

.footer__bottom {
    background: #f1f1f1;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
}
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.footer__copyright {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.4);
}
.footer__legal-nav { display: flex; gap: var(--space-5); }
.footer__legal-link {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.4);
    transition: color var(--transition-fast);
}
.footer__legal-link:hover { color: var(--color-primary); }

/* ----------------------------------------------------------------
   15. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root { --section-gap: 4rem; --container-pad: 1.25rem; }

    .header__nav { display: none; }
    .header__actions { display: none; }
    .header__hamburger { display: flex; }

    .header__nav.nav--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: var(--color-white);
        padding: var(--space-6) var(--container-pad);
        overflow-y: auto;
        z-index: 90;
        border-top: 1px solid var(--color-border);
    }
    .header__nav.nav--open .header__actions {
        display: flex;
        flex-direction: column;
        margin-top: var(--space-6);
    }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item--dropdown { position: static; }
    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-primary-light);
        border-radius: 0;
        padding-left: var(--space-4);
        display: none;
        background: transparent;
    }
    .nav__dropdown.dropdown--open { display: block; }

    .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); }
    .hero__media { order: -1; }

    .feature-block__inner { grid-template-columns: 1fr; }
    .feature-block--reversed .feature-block__inner { direction: ltr; }
    .feature-block__image--secondary { display: none; }

    .testimonials__track { grid-template-columns: 1fr 1fr; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer-cta__inner { flex-direction: column; text-align: center; }
    .footer-cta__text { text-align: center; }
}

@media (max-width: 768px) {
    :root { --section-gap: 3rem; --container-pad: 1rem; --header-height: 64px; }

    .platform-features__grid { grid-template-columns: 1fr 1fr; }
    .testimonials__track { grid-template-columns: 1fr; }
    .logo-strip__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr; }
    .comparison__th, .comparison__td { padding: var(--space-3) var(--space-4); }
}

@media (max-width: 480px) {
    .platform-features__grid { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .logo-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .awards-strip__badge { height: 36px; }
}

/* ----------------------------------------------------------------
   16. PRINT
   ---------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .cta-band { display: none; }
    .feature-block__inner, .hero__inner {
        grid-template-columns: 1fr;
    }
}



/* ── RESET & TOKENS ──────────────────────────────── */
/* ── SCOPED RESET (widget elements only) ── */
#kp-widget, #kp-widget * { box-sizing: border-box; }

/* ── SCOPED CSS VARIABLES ── */
#kp-widget {
  --kp-navy:         #0f2156;
  --kp-navy-mid:     #1a3070;
  --kp-navy-light:   #243d8a;
  --kp-teal:         #00a99d;
  --kp-teal-light:   #00c4b7;
  --kp-teal-glow:    rgba(0,169,157,.22);
  --kp-bg:           #ffffff;
  --kp-surface:      #f4f6fb;
  --kp-surface2:     #edf0f8;
  --kp-border:       #dce1ef;
  --kp-border-soft:  #edf0f8;
  --kp-text:         #1a2340;
  --kp-text-mid:     #4a5578;
  --kp-text-muted:   #8a93b0;
  --kp-radius:       20px;
  --kp-shadow:       0 24px 64px rgba(15,33,86,.18), 0 4px 16px rgba(15,33,86,.10);
  --kp-shadow-btn:   0 4px 16px rgba(0,169,157,.35);
}

/* ── LAUNCHER BUTTON ── */
.kp-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kp-navy), var(--kp-navy-light));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(15,33,86,.40), 0 2px 8px rgba(15,33,86,.20);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  z-index: 9998;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
}
.kp-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(15,33,86,.50), 0 4px 12px rgba(15,33,86,.25);
}
.kp-chat-btn:active { transform: scale(.95); }
.kp-chat-btn svg { width: 24px; height: 24px; }

.kp-chat-btn .kp-badge {
  position: absolute;
  top: 3px; right: 3px;
  width: 11px; height: 11px;
  background: var(--kp-teal);
  border-radius: 50%;
  border: 2.5px solid white;
  animation: kpPulseBadge 2.4s infinite;
}
@keyframes kpPulseBadge {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,169,157,.55); }
  55%     { box-shadow: 0 0 0 6px rgba(0,169,157,0); }
}

/* ── CHAT WINDOW ── */
.kp-chat {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 384px;
  height: 600px;
  background: var(--kp-bg);
  border-radius: var(--kp-radius);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--kp-shadow);
  border: 1px solid var(--kp-border);
  z-index: 9999;
  animation: kpSlideUp .32s cubic-bezier(.34,1.56,.64,1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kp-text);
}
@keyframes kpSlideUp {
  from { opacity:0; transform: translateY(18px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── HEADER ── */
.kp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--kp-navy) 0%, var(--kp-navy-light) 100%);
  flex-shrink: 0;
}
.kp-header-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kp-header-logo svg { width: 22px; height: 22px; }
.kp-header-info { flex: 1; }
.kp-header-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #ffffff;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0;
}
.kp-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.kp-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--kp-teal-light);
  animation: kpPulseBadge 2.4s infinite;
  flex-shrink: 0;
}
.kp-status-text {
  font-size: 11px;
  color: var(--kp-teal-light);
  font-weight: 500;
}
.kp-header-close {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}
.kp-header-close:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ── MESSAGES AREA ── */
.kp-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--kp-bg);
  scroll-behavior: smooth;
}
.kp-body::-webkit-scrollbar { width: 4px; }
.kp-body::-webkit-scrollbar-track { background: transparent; }
.kp-body::-webkit-scrollbar-thumb { background: var(--kp-border); border-radius: 99px; }

/* ── MESSAGES ── */
.kp-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 86%;
  animation: kpMsgIn .22s ease;
}
@keyframes kpMsgIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}
.kp-msg.kp-user { margin-left: auto; flex-direction: row-reverse; }
.kp-msg.kp-bot  { margin-right: auto; }

.kp-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--kp-navy), var(--kp-navy-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.kp-msg-avatar svg { width: 14px; height: 14px; }
.kp-msg.kp-user .kp-msg-avatar { display: none; }

.kp-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--kp-text);
  word-break: break-word;
  letter-spacing: -.005em;
  margin: 0;
}
.kp-user .kp-bubble {
  background: linear-gradient(135deg, var(--kp-navy), var(--kp-navy-light));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.kp-bot .kp-bubble {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border-soft);
  border-bottom-left-radius: 4px;
  color: var(--kp-text);
}

/* Typing indicator */
.kp-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
}
.kp-typing-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--kp-text-muted);
  animation: kpDotBounce 1s infinite;
  display: inline-block;
}
.kp-typing-indicator span:nth-child(2) { animation-delay: .18s; }
.kp-typing-indicator span:nth-child(3) { animation-delay: .36s; }
@keyframes kpDotBounce {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* Suggestion chips */
.kp-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  max-width: 86%;
}
.kp-chip {
  display: inline-block;
  background: var(--kp-bg);
  border: 1.5px solid var(--kp-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--kp-navy);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  line-height: 1.4;
}
.kp-chip:hover {
  background: var(--kp-surface2);
  border-color: var(--kp-navy-light);
  color: var(--kp-navy);
}

/* ── LEAD FORM ── */
.kp-lead {
  background: var(--kp-bg);
  border-top: 1px solid var(--kp-border);
  padding: 20px 18px;
  flex-shrink: 0;
}
.kp-lead-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--kp-text);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.kp-lead-sub {
  font-size: 12.5px;
  color: var(--kp-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.kp-lead-input {
  width: 100%;
  background: var(--kp-surface);
  border: 1.5px solid var(--kp-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--kp-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  outline: none;
  margin: 0 0 9px;
  transition: border-color .2s, box-shadow .2s;
  display: block;
  line-height: 1.4;
}
.kp-lead-input::placeholder { color: var(--kp-text-muted); }
.kp-lead-input:focus {
  border-color: var(--kp-navy-light);
  box-shadow: 0 0 0 3px rgba(26,48,112,.10);
  background: #fff;
}
.kp-lead-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--kp-navy), var(--kp-navy-light));
  border: none;
  border-radius: 10px;
  padding: 11px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  margin: 2px 0 0;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(15,33,86,.28);
  letter-spacing: .01em;
  display: block;
}
.kp-lead-btn:hover { opacity: .9; box-shadow: 0 6px 20px rgba(15,33,86,.38); }
.kp-lead-btn:active { transform: scale(.98); }

/* ── FOOTER ── */
.kp-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--kp-bg);
  border-top: 1px solid var(--kp-border);
  flex-shrink: 0;
}
.kp-footer-input {
  flex: 1;
  background: var(--kp-surface);
  border: 1.5px solid var(--kp-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--kp-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin: 0;
  line-height: 1.4;
}
.kp-footer-input::placeholder { color: var(--kp-text-muted); }
.kp-footer-input:focus {
  border-color: var(--kp-navy-light);
  box-shadow: 0 0 0 3px rgba(26,48,112,.10);
  background: #fff;
}
.kp-footer-input:disabled { opacity: .45; cursor: not-allowed; }

.kp-footer-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--kp-teal), var(--kp-teal-light));
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--kp-shadow-btn);
  padding: 0;
  margin: 0;
}
.kp-footer-send:hover { opacity: .9; box-shadow: 0 6px 20px rgba(0,169,157,.45); }
.kp-footer-send:active { transform: scale(.92); }
.kp-footer-send:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.kp-footer-send svg { width: 17px; height: 17px; }

/* ── POWERED BY ── */
.kp-footer-brand {
  text-align: center;
  font-size: 11px;
  color: var(--kp-text-muted);
  padding: 6px 0 10px;
  background: var(--kp-bg);
  letter-spacing: .01em;
  flex-shrink: 0;
  margin: 0;
}
.kp-footer-brand span { font-weight: 600; color: var(--kp-navy); }

/* ── RESPONSIVE ── */
@media (max-width: 440px) {
  .kp-chat { width: calc(100vw - 16px); right: 8px; bottom: 84px; height: 76vh; border-radius: 16px; }
  .kp-chat-btn { bottom: 18px; right: 14px; }
}

@keyframes kpShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

    

