/**
 * Pitch Slides - Fullscreen Presentation Style
 */

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #00a183, #099d58, #52992f, #099d58, #00a183);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Slideshow Container */
.slideshow {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
}

/* Slide 1: Hook */
.stat-big {
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.slide h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.8;
    font-weight: 300;
}

/* Slide 2: Problems */
.slide h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.problems-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.problem-item {
    text-align: center;
    max-width: 250px;
}

.problem-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.problem-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.problem-item p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Slide 3: Solution - Brand Reveal */
.slide[data-slide="3"] .slide-content {
    overflow: visible;
}

.logo-big {
    width: min(80vw, 500px);
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: none;
}

.slide[data-slide="3"].active .logo-big {
    animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tagline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.slide[data-slide="3"].active .tagline {
    animation: textReveal 0.8s ease-out 0.6s forwards;
}

.description {
    font-size: clamp(1rem, 2vw, 1.4rem);
    opacity: 0;
    line-height: 1.6;
    transform: translateY(20px);
}

.slide[data-slide="3"].active .description {
    animation: textReveal 0.8s ease-out 1s forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Slide 4: Channels */
.channels-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.channel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.channel-icon {
    width: 110px;
    height: 110px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}


.channel-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Slide 5: Integration Models - Sequential Reveal */
.models-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.model-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.model-item .btn-discover {
    margin-top: 0.5rem;
}

.model-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.model-item.completed {
    opacity: 0.5;
    transform: scale(0.85);
}

.model-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.model-item p {
    font-size: 1rem;
    opacity: 0.85;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    max-width: 250px;
}

.model-frame {
    width: 280px;
    height: 200px;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.model-item.visible .model-frame {
    border-color: rgba(255,255,255,0.4);
}

.model-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.click-hint {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.click-hint i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.model-frame .frame-header {
    height: 28px;
    background: #2d2d44;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.model-frame .frame-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.model-frame .frame-dot:first-child { background: #ff5f57; }
.model-frame .frame-dot:nth-child(2) { background: #ffbd2e; }
.model-frame .frame-dot:nth-child(3) { background: #28ca41; }

.frame-url {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    margin-left: auto;
    font-family: monospace;
}

.frame-body {
    height: calc(100% - 28px);
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

/* Scaled iframe preview — renders page at 1400px wide then scales to fit the 280px frame */
.frame-preview {
    width: 1400px;
    height: 860px;
    border: none;
    transform: scale(0.2);
    transform-origin: top left;
    pointer-events: none;
    display: block;
}

/* Model 1: Wrap - E-commerce with Chat */
.model-frame.wrap .frame-body {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.fake-topbar {
    height: 24px;
    background: #f0f2f5;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
    flex-shrink: 0;
}

.fake-logo {
    width: 40px;
    height: 12px;
    background: linear-gradient(90deg, #099d58, #07312d);
    border-radius: 2px;
}

.fake-menu {
    display: flex;
    gap: 6px;
    flex: 1;
}

.fake-menu span {
    width: 24px;
    height: 6px;
    background: #ddd;
    border-radius: 2px;
}

.fake-cart {
    font-size: 10px;
    color: #666;
}

/* Banner strip */
.fake-banner {
    height: 28px;
    background: linear-gradient(90deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
    flex-shrink: 0;
}

.fake-banner-text {
    flex: 1;
    height: 6px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

.fake-banner-cta {
    width: 28px;
    height: 12px;
    background: #17943a;
    border-radius: 3px;
}

/* Single-row product strip */
.fake-products-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 6px;
    overflow: hidden;
}

.fake-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

img.fake-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
    min-height: 0;
}

.fake-info {
    padding: 3px 4px;
    flex-shrink: 0;
}

.fake-title {
    height: 4px;
    background: #e0e0e0;
    border-radius: 1px;
    margin-bottom: 2px;
    width: 80%;
}

.fake-price {
    height: 5px;
    background: #17943a;
    border-radius: 1px;
    width: 40%;
}

/* Synemai Chat Window */
.synemai-chat-window {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 100px;
    height: 110px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-window-header {
    height: 22px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 6px;
}

img.chat-header-logo {
    height: 14px;
    width: auto;
    object-fit: contain;
}

.chat-window-body {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f5f5f5;
}

.mini-bubble {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 6px;
    max-width: 85%;
    line-height: 1.3;
}

.mini-bubble.bot {
    background: #fff;
    align-self: flex-start;
    color: #333;
}

.mini-bubble.user {
    background: #17943a;
    color: #fff;
    align-self: flex-end;
}

.mini-bubble.typing {
    display: flex;
    gap: 2px;
    padding: 5px 8px;
}

.mini-bubble.typing span {
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.mini-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.mini-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}

/* Model 2: Personalizza - CMS theme builder */
.model-frame.native-custom .frame-body {
    display: flex;
    flex-direction: column;
    background: #f4f4f8;
}

.custom-topbar {
    background: #f0f2f5;
}

.custom-topbar .fake-logo {
    background: linear-gradient(90deg, #099d58, #07312d);
}

.custom-topbar .fake-menu span {
    background: #ddd;
}

.custom-topbar .fake-cart {
    color: #fff !important;
}

/* CMS layout: sidebar + preview */
.cms-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.cms-sidebar {
    width: 72px;
    background: #fff;
    border-right: 1px solid #e8e8f0;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.cms-section-label {
    height: 5px;
    background: #d0d0e0;
    border-radius: 2px;
    width: 60%;
    margin-bottom: 2px;
}

.cms-swatches {
    display: flex;
    gap: 4px;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.swatch-accent { background: #f37313; }
.swatch-green  { background: #17943a; }
.swatch-dark-green   { background: #07312d; }

.cms-setting-line {
    height: 5px;
    background: #e4e4f0;
    border-radius: 2px;
    width: 100%;
}

.cms-setting-line.short {
    width: 55%;
}

.cms-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.cms-toggle-label {
    height: 4px;
    background: #d0d0e0;
    border-radius: 2px;
    flex: 1;
}

.cms-toggle {
    width: 16px;
    height: 8px;
    background: #d0d0e0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.cms-toggle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: 1px;
    left: 1px;
}

.cms-toggle.active {
    background: #f37313;
}

.cms-toggle.active::after {
    transform: translateX(8px);
}

/* Preview area */
.cms-preview {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.cms-preview-header {
    height: 20px;
    background: linear-gradient(90deg, #ffebd5, #ffd191);
    border-radius: 3px;
    flex-shrink: 0;
}

.cms-preview-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    overflow: hidden;
}

.cms-preview-card {
    background: #e8e8f4;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.cms-preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.8s infinite;
}

/* Model 3: Delega - nav + product sidebar + center chat */
.model-frame.managed .frame-body {
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

.managed-topbar {
    background-color: #f0f2f5;
    border-bottom: none !important;
}

.managed-topbar .fake-menu span {
    background: #ddd;
}

.managed-topbar .fake-cart {
    color: rgba(255,255,255,0.8) !important;
}

.managed-logo {
    background: linear-gradient(90deg, #333, #666);
}

.delega-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Left sidebar: 4 stacked product cards */
.delega-sidebar {
    width: 58px;
    background: #fff;
    border-right: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px;
    flex-shrink: 0;
    overflow: hidden;
}

.delega-sidebar-card {
    flex: 1;
    border-radius: 3px;
    overflow: hidden;
    background: #eee;
    min-height: 0;
}

.delega-sidebar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center: mock chat */
.delega-chat {
    flex: 1;
    background: #f5f5f5;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.btn-discover {
    background: #fff;
    padding: 8px 20px;
    color: #009e51;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 99px;
    transition: all 250ms ease-in-out;
    border: #fff solid 0.05px;
    cursor: pointer;
}

.btn-discover i {
    margin-right: 2px;
}

.btn-discover:hover {
    background: #d4ffe9;
    border: #fff solid 0.05px;
}

/* Personalizza: purple-tinted banner and price accent */
.custom-banner {
    background: linear-gradient(90deg, #ede9ff, #d8b4fe) !important;
}

.custom-cta {
    background: #f37313 !important;
}

.fake-price.custom-price {
    background: #f37313 !important;
}

/* Delega sidebar: 2-col structured card grid */
.delega-sidebar {
    width: 80px;
}

.delega-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    height: 100%;
}

.ds-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ds-card-img {
    flex: 1;
    background: #ebebeb;
    min-height: 0;
}

.ds-card-info {
    padding: 2px 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.ds-card-name {
    height: 4px;
    background: #555;
    border-radius: 1px;
    width: 85%;
}

.ds-card-desc {
    height: 3px;
    background: #ccc;
    border-radius: 1px;
    width: 65%;
}

/* Mini product card shown inline in chat */
.mini-product-card {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 5px;
    padding: 4px;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mini-product-img {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.mini-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.mini-product-name {
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    width: 80%;
}

.mini-product-price {
    height: 5px;
    background: #17943a;
    border-radius: 2px;
    width: 40%;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* delega chat bubbles use existing .mini-bubble styles */

/* Model 2 & 3: Chat native */
.frame-body.chat-native {
    background: linear-gradient(135deg, #17943a, #19a882);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-bubble {
    height: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
}

.chat-bubble.bot {
    width: 70%;
    align-self: flex-start;
}

.chat-bubble.user {
    width: 50%;
    align-self: flex-end;
    background: rgba(255,255,255,0.6);
}

.chat-bubble.wide {
    width: 85%;
}

.custom-badge, .managed-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.custom-badge {
    color: #9c27b0;
}

.managed-badge {
    color: #ff9800;
}

@media (max-width: 900px) {
    .models-grid {
        gap: 2rem;
    }

    .model-frame {
        width: 240px;
        height: 170px;
    }

    .fake-product {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .models-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }

    .model-item {
        width: 85%;
        max-width: 280px;
    }

    .model-frame {
        width: 100%;
        height: 120px;
    }

    .model-item h3 {
        font-size: 1rem;
        margin: 0.4rem 0 0.2rem;
    }

    .model-item p {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.3;
    }

    .click-hint {
        display: none;
    }

    /* Reduce fake elements */
    .fake-card {
        padding: 2px;
    }

    .fake-products {
        gap: 2px;
        padding: 3px;
    }

    .synemai-chat-window {
        width: 90px;
        right: 3px;
        bottom: 3px;
    }

    .chat-window-header {
        padding: 3px 5px;
    }

    .chat-header-logo {
        height: 10px;
    }

    .mini-bubble {
        font-size: 5px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {

    .slide[data-slide="5"] .slide-content {
        width: 60%;
    }


    .models-grid {
        gap: 0.5rem;
    }

    .model-item {
        width: 90%;
        max-width: 260px;
    }

    .model-frame {
        height: 100px;
    }

    .model-item h3 {
        font-size: 0.9rem;
    }

    .model-item p {
        font-size: 0.7rem;
    }

    /* Managed frame adjustments */
    .managed-sidebar {
        width: 18px;
    }

    .sidebar-logo {
        width: 12px;
        height: 12px;
    }

    .managed-hero {
        height: 30px;
    }

    .delega-sidebar {
        width: 46px;
    }
}

/* Slide 6: CTA */
.cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    color: #0d312d;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    padding: 1.5rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Navigation Dots */
.slide-dots {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    border-color: #fff;
}

.dot.active {
    background: #fff;
    border-color: #fff;
}

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.nav-arrow.prev {
    left: 2rem;
}

.nav-arrow.next {
    right: 2rem;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 481px – 768px (also base for phone overrides below) */
@media (max-width: 768px) {
    /* General */
    .slide[data-slide="5"] .slide-content {
        width: 70%;
    }



    .slide-content h1,
    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .slide-content {
        padding: 0.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .logo-big {
        max-width: 200px;
    }

    /* Nav arrows — side-positioned, slightly smaller */
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .nav-arrow.prev { left: 1rem; }
    .nav-arrow.next { right: 1rem; }

    /* Slide 1 */
    .stat-big {
        font-size: clamp(5.5rem, 18vw, 7rem);
    }

    /* Slide 2 */
    .slide[data-slide="2"] h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .problems-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .problem-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .slide[data-slide="2"] .problem-icon {
        margin-bottom: 0.75rem;
    }

    .slide[data-slide="2"] .problem-item h3 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .slide[data-slide="2"] .problem-item p {
        font-size: 0.8rem;
    }

    /* Slide 3 */
    .slide[data-slide="3"] .logo-big {
        max-width: 350px;
    }

    .slide[data-slide="3"] h2 {
        font-size: clamp(1.2rem, 5vw, 3rem);
        margin-bottom: 0.75rem;
    }

    /* Slide 4 */
    .slide[data-slide="4"] h2 {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .channels-grid {
        gap: 1.5rem;
        margin-top: 0.75rem;
    }

    .channel-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .channel-item span {
        font-size: 0.9rem;
    }

    /* Slide 5 */
    .slide[data-slide="5"] .slide-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    /* Slide 6 */
    .slide[data-slide="6"] h2 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .cta-subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Phone: 320px – 480px */
@media (max-width: 480px) {
    /* General */
    .slide-content h1,
    .slide-content h2 {
        font-size: 1.2rem;
    }

    .slide[data-slide="5"] .slide-content h2 {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .logo-big {
        max-width: 160px;
    }

    /* Dots */
    .slide-dots {
        bottom: 3rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Nav arrows — repositioned to bottom, flanking dots */
    .nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: auto;
        transform: none;
        bottom: calc(3rem - 12px);
    }

    .nav-arrow.prev {
        left: auto;
        right: calc(50% + 66px);
    }

    .nav-arrow.next {
        right: auto;
        left: calc(50% + 66px);
    }

    /* Slide 2 */
    .problem-icon {
        width: 50px;
        height: 50px;
    }

    /* Slide 3 */
    .slide[data-slide="3"] .logo-big {
        max-width: 300px;
    }

    /* Slide 4: 2×2 grid */
    .channels-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0.6rem;
        row-gap: 1.25rem;
        margin-top: 0.5rem;
    }

    .channel-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .channel-item span {
        font-size: 0.78rem;
    }

}

/* Slide 5: one model at a time, cross-fade (≤999px) */
@media (max-width: 999px) {
    /* Force slide-content to fill the slide (it's a flex item that otherwise shrinks to text width) */

    .slide[data-slide="5"] .models-grid {
        position: relative;
        width: 100%;
        min-height: 340px;
        align-items: flex-start;
    }

    .slide[data-slide="5"] .model-item {
        position: absolute;
        top: 0;
        left: 50%;
        width: 90%;
        max-width: 520px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(16px) scale(0.97);
        transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    }

    .slide[data-slide="5"] .model-item.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .slide[data-slide="5"] .model-item.completed {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(-16px) scale(0.97);
    }

    .slide[data-slide="5"] .model-body {
        width: 100%;
    }

    .slide[data-slide="5"] .model-frame {
        width: 100%;
        height: 220px;
    }

    .slide[data-slide="5"] .model-item h3 {
        font-size: 1.2rem;
    }

    .slide[data-slide="5"] .model-item p {
        font-size: 0.9rem;
    }
}
