/* =======================
   FONT-FACE DEFINITIONS
   ======================= */

   @font-face {
    font-family: 'SP';
    src: url('/fonts/splight.woff2') format('woff2'),
         url('/fonts/splight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('/fonts/splightitalic.woff2') format('woff2'),
         url('/fonts/splightitalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('/fonts/spregular.woff2') format('woff2'),
         url('/fonts/spregular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('/fonts/spregularitalic.woff2') format('woff2'),
         url('/fonts/spregularitalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('/fonts/spbold.woff2') format('woff2'),
         url('/fonts/spbold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('/fonts/spbolditalic.woff2') format('woff2'),
         url('/fonts/spbolditalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* =======================
   STYLES
   ======================= */

* {
    font-family: 'SP', sans-serif;
}

.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: 0;
    left: 0;
    transform: translateY(-150%);
    background: white;
    color: #111827;
    padding: 12px 16px;
    border-radius: 0 0 12px 0;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 167, 168, 0.65);
    outline-offset: 3px;
}

.gradient-bg a:focus-visible,
.gradient-bg button:focus-visible,
.gradient-bg input:focus-visible,
.gradient-bg textarea:focus-visible {
    outline-color: rgba(255, 255, 255, 0.85);
}

/* WCAG 1.4.1, audit Lighthouse link-in-text-block: a link surrounded by running
   text cannot rely on colour alone. Brand teal reaches only 1.1:1 to 1.5:1
   against the body greys, well under the 3:1 that would let colour stand on its
   own, so links inside a paragraph carry a permanent underline. Scoped to <p>:
   nav, footer and breadcrumb links live in <li> and stay undecorated. Longhand
   keeps each link's own decoration-color and thickness utilities intact. */
p a[href] {
    text-decoration-line: underline;
    text-underline-offset: 2px;
}

section[id] {
    scroll-margin-top: 96px;
}

.logo {
    height: 23px;
    width: auto;
    display: block;
}

.logo-footer {
    height: 36px;
    margin-left: -6px;
    margin-bottom: -4px;
}

.gradient-bg {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

/* =======================
   OVERLAY NAV
   Transparent over the dark hero at the top, fades to the solid nav on scroll.
   Only active on pages that opt in via body.has-overlay-nav (see base.njk).
   The scrolled state is the untouched solid nav; body-class selectors win over
   the Tailwind chrome utilities on <nav> without redefining them.
   ======================= */
.has-overlay-nav .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.has-overlay-nav .site-nav.is-scrolled {
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Transparent state: white logo, links, login link and hamburger. */
.has-overlay-nav .site-nav:not(.is-scrolled) .logo {
    filter: brightness(0) invert(1);
}

.has-overlay-nav .site-nav:not(.is-scrolled) .desktop-nav > a,
.has-overlay-nav .site-nav:not(.is-scrolled) .desktop-nav > .nav-dropdown > a,
.has-overlay-nav .site-nav:not(.is-scrolled) .nav-login,
.has-overlay-nav .site-nav:not(.is-scrolled) .mobile-menu-btn {
    color: #fff;
}

.has-overlay-nav .site-nav:not(.is-scrolled) .desktop-nav > a:hover,
.has-overlay-nav .site-nav:not(.is-scrolled) .desktop-nav > .nav-dropdown > a:hover,
.has-overlay-nav .site-nav:not(.is-scrolled) .nav-login:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* White CTA on the hero (dark-navy label picked from the gradient's far end),
   back to the teal button once scrolled. */
.has-overlay-nav .site-nav:not(.is-scrolled) .nav-cta {
    background: #fff;
    color: #2a496f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.has-overlay-nav .site-nav:not(.is-scrolled) .nav-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1f3653;
}

/* Reserve the fixed nav's height on the hero so the layout doesn't jump: the
   transparent top border keeps the gradient painting behind the bar (border-box)
   while pushing the hero content back down to where the solid nav would put it. */
.has-overlay-nav .overlay-hero {
    border-top: 72px solid transparent;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #0d7e7f;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.15);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.05);
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.hero-speed-proof {
    margin-top: 1rem;
    margin-left: 100px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    animation: hero-speed-in 0.5s ease-out 3.333s both;
}

@media (max-width: 639px) {
    .hero-speed-proof {
        margin-left: 0;
        justify-content: center;
    }

    .hero-speed-arrow {
        display: none;
    }

    .hero-speed-proof span {
        transform: none;
    }
}

.hero-speed-proof span {
    transform: translateY(23px);
}

.hero-speed-arrow {
    flex-shrink: 0;
    width: 48px;
    height: auto;
    opacity: 0.5;
    transform: rotate(-120deg);
    transform-origin: center;
}

@keyframes hero-speed-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    background: rgba(0, 167, 168, 0.06);
    /* Carries digits on some pages, not just icons, so it needs text contrast. */
    color: var(--caresquad-primary-text, #007a7b);
}

/* Fix vertical text alignment for CTA buttons with custom font */
a.rounded-full[href]:not(.group):not(.logo-item),
button.rounded-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 1.125rem;
    padding-bottom: 0.875rem;
}

.cta-button {
    background: linear-gradient(135deg, #00A7A8 0%, #008889 100%);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, #00B8B9 0%, #009A9B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 167, 168, 0.4);
}

/* Navigation styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    min-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 8px;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.nav-dropdown-item i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    color: #00A7A8;
    line-height: 1.4;
    font-size: 1rem;
}

.nav-dropdown-item-featured {
    padding: 12px 14px;
}

.nav-dropdown-item-featured i {
    font-size: 1.1rem;
}

.nav-dropdown-item-featured .font-semibold {
    font-size: 0.95rem;
}

.nav-dropdown-item-secondary {
    padding: 8px 12px;
    opacity: 0.85;
}

.nav-dropdown-item-secondary i {
    font-size: 0.85rem;
    opacity: 0.6;
}

.nav-dropdown-item-secondary .font-semibold {
    font-size: 0.8rem;
}

.nav-dropdown-item-secondary .text-xs {
    font-size: 0.65rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

.nav-dropdown-mega {
    min-width: 420px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 12px;
}

.nav-dropdown:hover .nav-dropdown-mega {
    transform: translateX(-50%) translateY(0);
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.nav-mega-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-mega-item:hover {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.nav-mega-icon {
    width: 16px;
    min-width: 16px;
    text-align: center;
    color: #00A7A8;
    font-size: 0.8rem;
    opacity: 0.7;
}

.nav-mega-item:hover .nav-mega-icon {
    opacity: 1;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    border-radius: 8px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    color: #00A7A8;
}

.mobile-menu-item-featured {
    padding: 16px 18px;
    font-size: 1.05rem;
}

.mobile-menu-item-featured i {
    font-size: 1.15rem;
}

.mobile-menu-item-secondary {
    padding: 10px 14px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.mobile-menu-item-secondary i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.mobile-menu-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    margin-bottom: 8px;
}

.mobile-menu-specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 8px;
}

.mobile-menu-specialty-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.mobile-menu-specialty-item:hover,
.mobile-menu-specialty-item:active {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.mobile-menu-specialty-item i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    color: #00A7A8;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

.card-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 167, 168, 0.2);
    z-index: 0;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 167, 168, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 167, 168, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 167, 168, 0);
    }
}

.trust-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Infinite scroll logos */
.logos-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-scroll-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
    gap: 4rem;
}

.logos-scroll-track:hover {
    animation-play-state: paused;
}

.logos-scroll-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-shrink: 0;
}

.logo-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 2rem));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logos-scroll-track {
        gap: 2rem;
    }
    
    .logos-scroll-content {
        gap: 2rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 1rem));
        }
    }
}

/* =======================
   PRICING PAGE STYLES
   ======================= */

:root {
    --caresquad-primary: #00A7A8;
    /* Same hue, dark enough to clear 4.5:1 on white. The brand teal itself
       sits at 2.96:1, which is fine for fills and icons but not for text. */
    --caresquad-primary-text: #007a7b;
    --caresquad-secondary: #2a496f;
    --caresquad-dark: #1a1a2e;
    --caresquad-light: #f8fafc;
}

/* Brand color utilities */
.text-brand { color: var(--caresquad-primary-text); }
.bg-brand { background-color: var(--caresquad-primary); }
.border-brand { border-color: var(--caresquad-primary); }
.hover\:text-brand:hover { color: var(--caresquad-primary-text); }

/* Custom slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--caresquad-primary);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 167, 168, 0.3);
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-progress {
    background: var(--caresquad-primary);
    height: 8px;
    border-radius: 4px 0 0 4px;
}

input[type="range"]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--caresquad-primary);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 167, 168, 0.3);
    cursor: pointer;
}

.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 167, 168, 0.08);
}

.badge {
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.savings-badge {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.gradient-primary {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

.gradient-accent {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

.preset-btn {
    transition: all 0.2s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.15);
}

.preset-btn.active {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
    color: white;
    border-color: transparent;
}

.preset-btn.active .text-slate-500 {
    color: rgba(255, 255, 255, 0.8);
}

/* Simulator: stackable sections */
.sim-section {
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.sim-section:not(.active) {
    opacity: 0.6;
}

.sim-section:not(.active):hover {
    opacity: 0.8;
    border-color: #d0d7e0;
}

.sim-section.active {
    border-color: rgba(0, 167, 168, 0.35);
    box-shadow: 0 2px 12px rgba(0, 167, 168, 0.06);
}

.sim-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.sim-section-header:hover {
    background: rgba(0, 167, 168, 0.02);
}

.sim-section-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sim-section-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.sim-section.active .sim-section-body {
    max-height: 600px;
    padding: 0 20px 20px;
    opacity: 1;
}

/* Simulator: toggle switch */
.sim-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sim-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sim-toggle-track {
    width: 40px;
    height: 22px;
    background: #dce0e5;
    border-radius: 11px;
    position: relative;
    transition: background 0.2s ease;
}

.sim-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sim-toggle input:checked + .sim-toggle-track {
    background: var(--caresquad-primary);
}

.sim-toggle input:checked + .sim-toggle-track::after {
    transform: translateX(18px);
}

/* Simulator: sticky bottom bar */
.sim-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.04);
    padding: 16px 24px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sim-sticky-bar {
        padding: 12px 16px;
    }

    #stickyBreakdown {
        display: none !important;
    }

    #stickyComparison .flex-wrap {
        gap: 12px;
    }

    #stickyPackSide {
        width: 100%;
        justify-content: space-between;
    }

    .sim-section-body {
        padding: 0 16px;
    }

    .sim-section.active .sim-section-body {
        padding: 0 16px 16px;
    }

    .sim-section-header {
        padding: 14px 16px;
    }
}

/* Simulator: mini sliders (suivi mode) */
.sim-mini-slider input[type="range"] {
    height: 6px;
}

.sim-mini-slider input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
}

.sim-mini-slider input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
}

/* Simulator: comparison cards */
.sim-compare-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-compare-card.sim-card-highlighted {
    border-color: var(--caresquad-primary);
    box-shadow: 0 0 0 1px var(--caresquad-primary), 0 8px 24px -4px rgba(0, 167, 168, 0.18);
}

.sim-compare-card.sim-card-dimmed {
    opacity: 0.55;
    transform: scale(0.98);
}

.sim-compare-card.sim-card-dimmed:hover {
    opacity: 0.8;
}

@keyframes sim-card-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

#stickyComparison:not(.hidden),
#stickyContact:not(.hidden) {
    animation: sim-card-enter 0.4s ease-out;
}

.sim-slider-card {
    transition: box-shadow 0.3s ease;
}

.sim-slider-card:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 167, 168, 0.2), 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

.pack-item {
    transition: all 0.2s ease;
}

.pack-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.15);
}

.pack-item.selected {
    border-color: var(--caresquad-primary) !important;
    background-color: rgba(0, 167, 168, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.2);
}

.pack-item.pack-popular {
    border-color: var(--caresquad-primary);
    background-color: rgba(0, 167, 168, 0.05);
}

.pack-item.pack-popular:hover {
    box-shadow: 0 6px 16px rgba(0, 167, 168, 0.25);
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */

#cs-consent-banner {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#cs-consent-banner.cs-consent-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cs-consent-inner {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cs-consent-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cs-consent-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-top: 2px;
}

.cs-consent-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.cs-consent-text p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

/* ── Toggle switches ── */

.cs-consent-toggles {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 12px;
}

.cs-consent-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.cs-consent-toggle-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.cs-consent-toggle--locked {
    cursor: default;
}

/* Fade the switch only: the label next to it stays a readable grey, since
   dimming the whole row put "Essentiels" well below AA. */
.cs-consent-toggle--locked .cs-toggle {
    opacity: 0.45;
}

.cs-consent-toggle--locked .cs-consent-toggle-label {
    color: #6b7280;
}

.cs-toggle {
    position: relative;
    display: inline-flex;
}

.cs-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cs-toggle-track {
    width: 32px;
    height: 18px;
    background: #d1d5db;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s ease;
}

.cs-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cs-toggle input:focus-visible + .cs-toggle-track {
    outline: 2px solid #007a7b;
    outline-offset: 2px;
}

.cs-toggle input:checked + .cs-toggle-track {
    background: var(--caresquad-primary, #00A7A8);
}

.cs-toggle input:checked + .cs-toggle-track::after {
    transform: translateX(14px);
}

/* ── Actions ── */

.cs-consent-actions {
    display: flex;
    gap: 8px;
}

.cs-consent-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.cs-consent-btn--refuse {
    background: transparent;
    color: #6b7280;
}

.cs-consent-btn--refuse:hover {
    color: #374151;
    background: #f3f4f6;
}

.cs-consent-btn--save {
    background: #f3f4f6;
    color: #374151;
}

.cs-consent-btn--save:hover {
    background: #e5e7eb;
}

.cs-consent-btn--accept {
    background: linear-gradient(135deg, #007a7b 0%, #00696a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 167, 168, 0.18);
}

.cs-consent-btn--accept:hover {
    box-shadow: 0 4px 14px rgba(0, 167, 168, 0.25);
    transform: translateY(-1px);
}

/* ── Thanks state ── */

.cs-consent-inner.cs-consent-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cs-consent-inner.cs-consent-thanks span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}

@media (max-width: 480px) {
    .cs-consent-inner {
        padding: 16px;
    }

    .cs-consent-toggles {
        gap: 12px;
        padding: 10px 12px;
    }

    .cs-consent-actions {
        flex-wrap: wrap;
    }

    .cs-consent-btn--refuse {
        flex-basis: 100%;
        order: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .testimonial-card,
    .logos-scroll-track,
    .badge,
    .savings-badge,
    .pulse {
        animation: none !important;
        transition: none !important;
    }
}


/* =======================
   DEMO SCROLL PAGE
   ======================= */

.demo-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.demo-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: demo-bounce 2s ease-in-out infinite;
}

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

/* Stage: single pinned viewport */
.demo-stage {
    position: relative;
}

.demo-stage-viewport {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Step indicator (left rail) */
.demo-steps {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 10;
}

.demo-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.demo-step-dot.active {
    background: white;
    color: #00A7A8;
}

.demo-step-dot.done {
    background: rgba(255, 255, 255, 0.5);
    color: white;
}

.demo-step-line {
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Step label (bottom left) */
.demo-step-label {
    position: absolute;
    bottom: 28px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 10;
}

.demo-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: #00A7A8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Phone block (center, initial state) */
.demo-phone-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.demo-phone {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A7A8;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.demo-phone-rings {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.demo-phone-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
}

.demo-phone-ring:nth-child(1) { width: 100px; height: 100px; animation: demo-ring 2s ease-out infinite; }
.demo-phone-ring:nth-child(2) { width: 130px; height: 130px; animation: demo-ring 2s ease-out 0.4s infinite; }
.demo-phone-ring:nth-child(3) { width: 160px; height: 160px; animation: demo-ring 2s ease-out 0.8s infinite; }

@keyframes demo-ring {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.demo-caller-id {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    color: #374151;
}

.demo-caller-id-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-practice-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

/* Side panels */
.demo-side-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    opacity: 0;
    color: #374151;
}

.demo-side-right {
    right: 24px;
    max-width: 300px;
}

.demo-panel-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    color: #374151;
}

/* Integration grid */
.demo-int-cloud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.demo-int-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
}

.demo-int-cloud.animate .demo-int-node {
    animation: demo-grid-in 0.35s ease forwards;
}

.demo-int-node img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.demo-int-node span {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
}

.demo-int-node-1 { animation-delay: 0s; }
.demo-int-node-2 { animation-delay: 0.08s; }
.demo-int-node-3 { animation-delay: 0.16s; }
.demo-int-node-4 { animation-delay: 0.24s; }
.demo-int-node-5 { animation-delay: 0.32s; }
.demo-int-node-6 { animation-delay: 0.40s; }

.demo-int-more {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(4px);
}

.demo-int-cloud.animate + .demo-int-more {
    animation: demo-grid-in 0.35s ease 0.5s forwards;
}

@keyframes demo-grid-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.demo-int-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-int-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #374151;
    opacity: 0;
}

/* Call modal (center) */
.demo-call-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    width: 820px;
    max-width: calc(100vw - 200px);
    z-index: 5;
    opacity: 0;
    color: #374151;
}

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* Two-column body */
.demo-modal-body {
    display: flex;
    min-height: 0;
}

.demo-modal-left {
    width: 45%;
    border-right: 1px solid #e5e7eb;
    padding: 16px;
    overflow-y: auto;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-modal-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    max-height: 480px;
    overflow: hidden;
}

/* Info sections */
.demo-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.demo-info-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.demo-info-value {
    font-size: 0.8rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-info-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #fef3c7;
    color: #d97706;
}

.demo-info-divider {
    height: 1px;
    background: #f3f4f6;
}

.demo-info-cols {
    display: flex;
    gap: 16px;
}

.demo-info-cols > div {
    flex: 1;
}

.demo-info-summary-body {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.6;
}

.demo-info-summary-text {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Related items */
.demo-info-related-list {
    padding: 0;
    gap: 0;
}

.demo-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.demo-related-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.demo-related-icon-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.demo-related-icon-green {
    background: #f0fdf4;
    color: #22c55e;
}

.demo-related-icon-teal {
    background: #f0fdfa;
    color: #00A7A8;
}

.demo-related-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.demo-related-sub {
    font-size: 0.7rem;
    color: #9ca3af;
}

.demo-related-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0 12px;
}

/* Call badge */
.demo-call-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.demo-call-badge-active {
    background: #ecfdf5;
    color: #059669;
}

.demo-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: demo-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes demo-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Audio player */
.demo-player {
    border-bottom: 1px solid #f3f4f6;
}

.demo-player-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.demo-player-bar.visible {
    display: flex;
}

.demo-player-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00A7A8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.demo-player-play:hover {
    background: #008f90;
}

.demo-player-progress-track {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.demo-player-progress-fill {
    height: 100%;
    background: #00A7A8;
    border-radius: 4px;
    width: 0%;
    transition: none;
}

.demo-player-time {
    font-size: 0.7rem;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.demo-player-canvas-wrap {
    padding: 4px 16px 8px;
    overflow: hidden;
}

.demo-player-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 120px;
}

/* Conversation bubbles */
.demo-conversation {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.demo-bubble {
    max-width: 75%;
    opacity: 0;
    transform: translateY(8px);
    display: none;
}

.demo-bubble-agent {
    align-self: flex-end;
}

.demo-bubble-patient {
    align-self: flex-start;
}

.demo-bubble-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 4px;
    padding: 0 4px;
}

.demo-bubble-text {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-bubble-agent .demo-bubble-text {
    background: #f3f4f6;
    color: #374151;
    border-bottom-right-radius: 4px;
}

.demo-bubble-patient .demo-bubble-text {
    background: #00A7A8;
    color: white;
    border-bottom-left-radius: 4px;
}

.demo-bubble:hover .demo-bubble-text {
    filter: brightness(0.95);
}

.demo-player-canvas-wrap.interactive canvas {
    cursor: pointer;
}

/* History panel items */
.demo-history-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.demo-history-section {
    margin-bottom: 12px;
}

.demo-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #4b5563;
    font-size: 0.8rem;
    opacity: 0;
}

.demo-history-appointment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 167, 168, 0.06);
    border: 1px solid rgba(0, 167, 168, 0.15);
    border-radius: 10px;
    opacity: 0;
}

/* Slot list */
.demo-slot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    opacity: 0;
}

/* SMS toast */
.demo-sms-toast {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    color: #374151;
    overflow: hidden;
    opacity: 0;
}

.demo-sms-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-bottom: 1px solid #e5e7eb;
}

.demo-sms-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.demo-sms-toast-body {
    padding: 12px 14px;
}

.demo-sms-toast-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.demo-sms-toast-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-sms-toast-content {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.5;
    font-style: italic;
}
}

/* Caller name flash */
.demo-name-flash {
    animation: demo-flash 0.6s ease;
}

@keyframes demo-flash {
    0% { color: #00A7A8; background: rgba(0, 167, 168, 0.15); border-radius: 4px; }
    100% { color: inherit; background: transparent; }
}

/* Gauge */
.demo-gauge-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    opacity: 0;
}

.demo-gauge {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.demo-gauge-svg { width: 100%; height: 100%; }

.demo-gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: #00A7A8;
}

/* Summary */
.demo-summary-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    opacity: 0;
}

/* Task card */
.demo-task-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    color: #374151;
    overflow: hidden;
    opacity: 0;
}

.demo-task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-bottom: 1px solid #e5e7eb;
}

.demo-task-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #00A7A8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.demo-task-body {
    padding: 12px 14px;
}

.demo-task-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.demo-task-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.demo-task-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-task-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-steps { display: none; }
    .demo-step-label { left: 16px; bottom: 16px; }

    .demo-call-modal {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 140px);
        top: 53%;
    }

    .demo-modal-body {
        flex-direction: column;
    }

    .demo-modal-left {
        display: none;
    }

    .demo-modal-right {
        width: 100%;
        max-height: none;
    }

    .demo-player-canvas-wrap {
        display: none;
    }

    .demo-side-panel {
        position: absolute;
        right: 8px;
        max-width: 220px;
        top: 100px;
        bottom: auto;
        transform: none;
    }

    #panel-integrations {
        top: auto;
        bottom: 80px;
    }

    .demo-phone-block {
        transform: translate(-50%, -60%);
    }

    .demo-click-hint {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-phone-ring,
    .demo-scroll-arrow,
    .demo-badge-dot {
        animation: none !important;
    }

    .demo-bubble,
    .demo-int-result,
    .demo-history-item,
    .demo-history-appointment,
    .demo-slot,
    .demo-sms-toast,
    .demo-gauge-card,
    .demo-summary-card,
    .demo-task-card,
    .demo-side-panel,
    .demo-call-modal,
    .demo-phone-block,
    .demo-caller-id {
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
    }
}

/* =======================
   DETAIL MODALS (from left panel items)
   ======================= */

.demo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.demo-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.demo-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    width: 700px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #374151;
}

.demo-detail-modal.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.demo-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
    z-index: 2;
}

.demo-detail-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Timeline modal header */
.demo-detail-header {
    position: relative;
}

.demo-detail-header-banner {
    height: 80px;
    background: linear-gradient(135deg, #00A7A8, #2a496f);
    position: relative;
}

.demo-detail-header .demo-detail-close {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.demo-detail-header .demo-detail-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.demo-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A7A8, #2a496f);
    border: 3px solid white;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -32px;
    left: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demo-detail-header-info {
    padding: 40px 24px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-detail-patient-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.demo-detail-patient-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #eef2ff;
    color: #6366f1;
}

.demo-detail-patient-since {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Tabs */
.demo-detail-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.demo-detail-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    cursor: default;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}

.demo-detail-tab.active {
    color: #00A7A8;
    border-bottom-color: #00A7A8;
}

/* Body */
.demo-detail-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px 24px;
}

/* Timeline list */
.demo-timeline-list {
    position: relative;
    padding-left: 20px;
}

.demo-timeline-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.demo-timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}

.demo-timeline-item:last-child {
    margin-bottom: 0;
}

.demo-timeline-dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    position: relative;
    z-index: 1;
    margin-left: -20px;
}

.demo-timeline-dot-call { background: #00A7A8; }
.demo-timeline-dot-sms { background: #3b82f6; }
.demo-timeline-dot-task { background: #f59e0b; }
.demo-timeline-dot-create { background: #22c55e; }

.demo-timeline-content {
    flex: 1;
    min-width: 0;
}

.demo-timeline-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.demo-timeline-date {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.demo-timeline-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.5;
}

.demo-timeline-card p {
    margin: 6px 0 0;
}

.demo-timeline-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-right: 6px;
}

.demo-timeline-badge-green {
    background: #f0fdf4;
    color: #16a34a;
}

.demo-timeline-badge-orange {
    background: #fffbeb;
    color: #d97706;
}

.demo-timeline-agent {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
}

/* Simple header (appointment, sms, task) */
.demo-detail-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.demo-detail-header-simple .demo-detail-close {
    position: static;
}

.demo-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

/* 2-column body */
.demo-detail-body-2col {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.demo-detail-col-main {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.demo-detail-col-side {
    width: 240px;
    min-width: 240px;
    background: #f9fafb;
    padding: 20px;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
}

/* Section */
.demo-detail-section {
    margin-bottom: 20px;
}

.demo-detail-section:last-child {
    margin-bottom: 0;
}

.demo-detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.demo-detail-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}

.demo-detail-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.demo-detail-section-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #4b5563;
}

.demo-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Infobox (appointment) */
.demo-detail-infobox {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-detail-infobox-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.demo-detail-time-block {
    border: 2px solid #00A7A8;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.demo-detail-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A7A8;
}

.demo-detail-time-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.demo-detail-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-detail-info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.demo-detail-info-icon-teal {
    background: #f0fdfa;
    color: #00A7A8;
}

.demo-detail-info-icon-navy {
    background: #eef2ff;
    color: #2a496f;
}

.demo-detail-info-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
}

.demo-detail-info-sub {
    font-size: 0.7rem;
    color: #9ca3af;
}

.demo-detail-info-divider {
    height: 1px;
    background: #e5e7eb;
}

.demo-detail-info-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-detail-info-meta-label {
    font-size: 0.72rem;
    color: #9ca3af;
}

.demo-detail-info-meta-value {
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-detail-info-meta-value i {
    color: #9ca3af;
    font-size: 11px;
}

/* Info grid (SMS) */
.demo-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.demo-detail-info-pair {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.demo-detail-info-pair-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-detail-info-pair-value {
    font-size: 0.82rem;
    color: #374151;
}

.demo-detail-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #374151;
}

.demo-detail-source i {
    color: #00A7A8;
    font-size: 12px;
}

.demo-detail-linked-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
}

.demo-detail-chevron {
    margin-left: auto;
    color: #d1d5db;
    font-size: 10px;
}

/* SMS conversation column */
.demo-detail-col-sms-conversation {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.demo-detail-sms-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-detail-sms-bubble {
    max-width: 85%;
}

.demo-detail-sms-out {
    align-self: flex-end;
}

.demo-detail-sms-text {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    background: #00A7A8;
    color: white;
    border-bottom-right-radius: 4px;
}

.demo-detail-sms-time {
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
    padding-right: 4px;
}

/* Task modal */
.demo-detail-body-task {
    padding: 0;
}

.demo-detail-task-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.demo-detail-task-banner-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.demo-detail-task-banner-type {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.demo-detail-task-banner-date {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-left: auto;
}

.demo-detail-task-content {
    display: flex;
}

.demo-detail-task-main {
    flex: 1;
    padding: 20px 24px;
}

.demo-detail-task-desc-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #4b5563;
}

.demo-detail-task-sidebar {
    width: 220px;
    min-width: 220px;
    border-left: 1px solid #e5e7eb;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-detail-task-sidebar-card {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-detail-task-sidebar-phone {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.demo-detail-task-sidebar-phone i {
    color: #00A7A8;
    font-size: 11px;
}

.demo-detail-task-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.demo-detail-task-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
    transition: background 0.15s ease;
}

.demo-detail-task-btn-start {
    background: linear-gradient(135deg, #00A7A8, #008b8b);
    color: white;
}

.demo-detail-task-btn-done {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Clickable related items */
.demo-related-item.demo-related-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 8px;
}

.demo-related-item.demo-related-clickable:hover {
    background: #f9fafb;
}

/* Click hint */
.demo-click-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    transition: opacity 0.4s ease;
}

.demo-click-hint.visible {
    opacity: 1;
    animation: demo-hint-pulse 2s ease-in-out infinite;
}

.demo-click-hint i {
    font-size: 12px;
}

@keyframes demo-hint-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Manifeste banner (homepage) */
.manifeste-banner-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2a496f 0%, #244a68 60%, #1f5a6a 100%);
}

.manifeste-banner-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
}

.manifeste-banner-quote {
    font-size: 1.625rem;
    line-height: 1.6;
    color: #fff;
    font-style: italic;
    font-weight: 400;
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
    letter-spacing: -0.01em;
}

.manifeste-banner-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
}

.manifeste-banner-name {
    font-family: 'SP', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.manifeste-banner-role {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.manifeste-banner-link {
    font-family: 'SP', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.manifeste-banner-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .manifeste-banner-section {
        padding: 4rem 0;
    }

    .manifeste-banner-quote {
        font-size: 1.25rem;
    }
}

/* Manifeste */
.manifeste-article {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.85;
    color: #4b5563;
    text-align: justify;
}

.manifeste-article p {
    margin-bottom: 1.5rem;
}

.manifeste-article strong {
    color: #1f2937;
    font-weight: 600;
}

.manifeste-article h2 {
    font-family: 'SP', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.manifeste-article hr {
    border: none;
    margin: 3rem auto;
    width: 3rem;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(135deg, var(--caresquad-primary, #00A7A8), var(--caresquad-secondary, #2a496f));
}

.manifeste-signature {
    margin-top: 8rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 16rem;
}

.manifeste-signature-line {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.manifeste-signature img {
    display: block;
    height: 5rem;
    width: auto;
    margin-top: -3.5rem;
    margin-bottom: 0.5rem;
    transform: rotate(-2deg);
    transform-origin: left center;
}

.manifeste-signature-name {
    font-family: 'SP', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1f2937;
    margin-bottom: 0.125rem !important;
    letter-spacing: 0.01em;
}

.manifeste-signature-role {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.manifeste-signature-rpps {
    font-size: 0.75rem;
    color: #b0b4ba;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.rpps-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #6b7280;
    background-color: rgba(156, 163, 175, 0.08);
    border: 1px solid rgba(156, 163, 175, 0.25);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: help;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rpps-badge:hover {
    background-color: rgba(156, 163, 175, 0.14);
    border-color: rgba(156, 163, 175, 0.4);
}

.rpps-badge-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -0.5px;
}

.rpps-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 0.6rem 0.75rem;
    background-color: var(--caresquad-dark, #1a1a2e);
    color: #e5e7eb;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 10;
}

.rpps-badge::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--caresquad-dark, #1a1a2e);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.rpps-badge:hover::after,
.rpps-badge:hover::before {
    opacity: 1;
}

.rpps-badge:hover::after {
    transform: translateX(-50%) translateY(0);
}

.manifeste-signature-location {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.03em;
}

/* Responsive modals */
@media (max-width: 768px) {
    .demo-detail-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 40px);
    }

    .demo-detail-body-2col {
        flex-direction: column;
    }

    .demo-detail-col-side {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .demo-detail-task-content {
        flex-direction: column;
    }

    .demo-detail-task-sidebar {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* =======================
   FOOTER
   ======================= */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Deep brand navy with a soft teal glow bleeding from the top-left, so the
       footer reads as a crafted, branded surface rather than a flat grey slab. */
    background:
        radial-gradient(900px 420px at 12% -20%, rgba(0, 167, 168, 0.18), transparent 60%),
        radial-gradient(700px 500px at 100% 0%, rgba(42, 73, 111, 0.35), transparent 55%),
        linear-gradient(180deg, #102338 0%, #0a1626 100%);
    color: #cbd5e1;
}

/* Brand-gradient hairline along the very top edge */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
    z-index: 1;
}

.footer-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #4fd1d1;
}

/* Animated underline that grows from the left on hover */
.footer-link {
    position: relative;
    color: rgba(203, 213, 225, 0.72);
    transition: color 0.2s ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 1px;
    width: 0;
    background: #00A7A8;
    transition: width 0.28s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.footer-social:hover {
    background: #ffffff;
    color: #008889;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 15%, rgba(255, 255, 255, 0.16) 85%, transparent);
}
/* ── Hero plein écran (pages Tarifs et Logiciel gratuit) ──
   Le hero occupe exactement une hauteur d'écran et la capture produit déborde
   par le bas, où `.hero { overflow: hidden }` la coupe. Un écran de scroll
   tombe alors pile sur le fil d'Ariane.

   La bordure haute transparente de 72px réservée à la nav est comprise dans
   les 100vh (box-sizing: border-box), donc rien à retrancher ici.

   Garde-fou sur la hauteur : sous 700px de viewport, le bloc de texte remplit
   déjà l'écran à lui seul. On rend alors la hauteur au contenu, sinon ce sont
   les boutons d'appel à l'action qui se feraient couper. */
@media (min-width: 1024px) and (min-height: 700px) {
    .hero-fullscreen {
        height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-fullscreen > .container {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-top: 3.5rem;
    }

    .hero-fullscreen .hero-fullscreen-text {
        flex: 0 0 auto;
    }

    /* min-height:0 est indispensable : sans lui l'élément flex prend la hauteur
       naturelle de l'image et le hero dépasse l'écran au lieu de la rogner. */
    .hero-fullscreen .hero-fullscreen-shot {
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 2.5rem;
    }
}

/* Flèche courbe du simulateur : même tracé que celle du hero de l'accueil,
   orientée vers le premier module au lieu de la preuve de rapidité. */
.sim-arrow {
    flex-shrink: 0;
    /* Une rotation ne réserve aucune place dans le flux : la largeur et l'angle
       décident ensemble de la hauteur réellement peinte, donc de la marge à
       laisser avant la première carte. */
    width: 69px;
    height: auto;
    color: #94a3b8;
    opacity: 0.65;
    /* Le z-index garde la pointe visible : sans lui, la carte suivante, plus
       loin dans le document, la recouvrirait de son fond blanc. */
    transform: rotate(18deg);
    margin-left: 12px;
    position: relative;
    z-index: 1;
    transform-origin: center;
}

@media (max-width: 640px) {
    .sim-arrow {
        display: none;
    }
}
