/* ===================================
   Section Layouts — 7 Acts + Footer
   =================================== */

/* ---- Shared Act Styles ---- */
.act {
    position: relative;
    overflow: hidden;
}

.text-teal {
    color: var(--color-teal);
}

/* ---- ACT 1: Hero ---- */
.act-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF8F2 0%, #f0ede3 40%, #e8f4f6 100%);
    padding-top: 72px;
    position: relative;
    overflow: visible;
}

/* Hero centered layout */
.hero-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-centered__text {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-teal-bg);
    color: var(--color-teal);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.act-hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-top: var(--space-6);
    line-height: var(--leading-relaxed);
}

.act-hero__ctas {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-8);
    justify-content: center;
}

/* Dashboard reveal (overlay on hero, initially hidden by GSAP) */
.dashboard-reveal {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: 80px 0 40px;
    opacity: 0;
    pointer-events: none;
}

.dashboard-reveal__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-charcoal);
    text-align: center;
    letter-spacing: var(--tracking-tight);
}

/* ---- ACT 2: Problems (Dark) ---- */
.act-problems {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.06) 0%, transparent 60%),
        var(--color-charcoal);
    color: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-problems h2 {
    color: var(--color-cream);
}

.act-problems__headline {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-problems__headline h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

.act-problems__scene {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    position: relative;
}

.act-problems__wa {
    flex-shrink: 0;
}

/* Real-time timeline */
.realtime-timeline {
    max-width: 280px;
    width: 100%;
    padding-top: var(--space-4);
}

.realtime-timeline__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    margin-bottom: var(--space-6);
    padding-left: 28px;
}

.realtime-timeline__header svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Timeline items with vertical line */
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 24px;
}

/* Vertical line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Hide line on last item */
.timeline-item:last-child::before {
    display: none;
}

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

/* Dot */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.timeline-item__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cream);
    display: block;
    line-height: 1.3;
}

.timeline-item__detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 3px;
    display: block;
    line-height: 1.4;
}

/* Warning */
.timeline-item--warning .timeline-dot {
    background: rgba(217, 119, 6, 0.4);
    border-color: #fbbf24;
}
.timeline-item--warning .timeline-item__label {
    color: #fbbf24;
}

/* Danger */
.timeline-item--danger .timeline-dot {
    background: rgba(239, 68, 68, 0.4);
    border-color: #f87171;
}
.timeline-item--danger .timeline-item__label {
    color: #f87171;
}

/* Teal (optimization) */
.timeline-item--teal .timeline-dot {
    background: rgba(8, 145, 178, 0.4);
    border-color: var(--color-teal-light);
}
.timeline-item--teal .timeline-item__label {
    color: var(--color-teal-light);
}

/* ---- ACT 3: How It Works ---- */
.act-how {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-how__title {
    text-align: center;
    margin-bottom: var(--space-12);
    font-size: var(--text-4xl);
}

.act-how__track {
    position: relative;
}

.act-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.act-how__step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    position: relative;
}

.act-how__step-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.act-how__step h3 {
    margin-bottom: var(--space-3);
}

.act-how__step p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ---- ACT 4: Features (Bento Grid) ---- */
.act-features {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-features__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-features__header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.act-features__header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.act-features__bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    height: 420px;
    align-items: end;
}

/* ---- ACT 5: Trust + Pricing ---- */
.act-trust {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

/* Stats section */
.act-trust__stats-section {
    margin-bottom: var(--space-20);
}

.act-trust__stats-heading {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-10);
}

.act-trust__stats-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

/* Stats row */
.act-trust__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.act-trust__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-teal);
    line-height: 1;
    display: block;
}

.act-trust__stat-unit {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-top: var(--space-1);
}

.act-trust__stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: block;
    margin-top: var(--space-2);
}

/* Pricing header */
.act-trust__pricing-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-trust__pricing-header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.act-trust__pricing-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.act-trust__no-card {
    display: inline-flex;
    gap: 6px;
    margin-top: var(--space-4);
    padding: 6px 16px;
    font-size: var(--text-sm);
}

/* Pricing grid */
.act-trust__pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

/* Coming soon teaser */
.act-trust__coming-soon {
    text-align: center;
    margin-top: var(--space-12);
    padding: var(--space-6);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.act-trust__coming-soon p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ---- ACT 6: FAQ ---- */
.act-faq {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-faq__title {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-12);
}

.act-faq__list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* ---- ACT 7: Final CTA (Dark) ---- */
.act-cta {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        var(--color-charcoal);
    padding: var(--section-padding) 0;
    text-align: center;
}

.act-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.act-cta h2 {
    font-size: var(--text-4xl);
    color: var(--color-cream);
    margin-bottom: var(--space-4);
}

.act-cta p {
    font-size: var(--text-xl);
    color: var(--neutral-400);
    margin-bottom: var(--space-8);
}

/* Footer styles moved to css/footer.css */

/* ---- Avatars ---- */
.avatar {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.avatar--elephant {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    top: 8%;
    left: 5%;
    opacity: 0.85;
    transform: scaleX(-1);
}


.avatar--bird {
    position: static;
    width: clamp(80px, 10vw, 160px);
    height: auto;
    margin: 0 auto var(--space-4);
    display: block;
    animation: bounce-subtle 2s ease-out infinite;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    /* Hero → stacked on tablets */
    .hero-centered {
        min-height: auto;
        flex-direction: column;
        padding: var(--space-10) 0;
    }

    .hero-float {
        display: none;
    }

    .hero-centered__text {
        order: -1;
        margin-bottom: var(--space-8);
    }

    /* Dashboard → static preview on tablets/mobile (no pin animation) */
    .dashboard-reveal {
        position: static;
        opacity: 1 !important;
        pointer-events: auto;
        padding: 0 var(--space-4) var(--space-10);
    }

    .dashboard-reveal__title {
        opacity: 1 !important;
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }

    /* Force all dashboard elements visible (JS won't set initial states) */
    .dashboard-window,
    [data-dash-el],
    .dashboard-insight,
    .dashboard-charts-row,
    .dashboard-chart {
        opacity: 1 !important;
        transform: none !important;
    }

    .dashboard-window {
        width: 100%;
        max-width: 100%;
    }

    /* Hide sidebar on mobile — too narrow */
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-body {
        min-height: auto;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-kpi-slot[data-slot="sentimento"] {
        grid-column: 1 / -1;
    }

    /* How It Works → vertical */
    .act-how__steps {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* Features → stacked */
    .act-features__bento {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        height: auto;
    }

    /* On mobile: auto height, descriptions always visible */
    .feature-card {
        height: auto;
    }

    .feature-card__description {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }

    /* Stats → 2 cols */
    .act-trust__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pricing → horizontal scroll with snap */
    .act-trust__pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding-top: 20px;
        padding-bottom: var(--space-4);
        -webkit-overflow-scrolling: touch;
        max-width: none;
        margin: -20px calc(-1 * var(--space-4)) 0;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Hide scrollbar but keep scrollable */
    .act-trust__pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .act-trust__pricing-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .act-trust__pricing-grid .pricing-card {
        flex-shrink: 0;
        width: 80%;
        min-width: 280px;
        scroll-snap-align: center;
    }

    .pricing-card--featured {
        transform: none;
        order: 0;
    }

}

@media (max-width: 768px) {
    /* Hero — extra 36px to compensate for beta top banner */
    .act-hero {
        min-height: auto;
        padding: 156px 0 0;
    }

    /* Dashboard simplified on mobile */
    .dashboard-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard-main {
        padding: 16px;
    }

    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }

    /* Problems scene → stack */
    .act-problems__scene {
        flex-direction: column;
        align-items: center;
    }

    .act-problems__wa {
        max-width: 100%;
    }

    .realtime-timeline {
        max-width: 100%;
    }

    /* Stats → stacked */
    .act-trust__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* FAQ */
    .accordion-trigger {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-5);
    }

    .accordion-inner {
        padding: 0 var(--space-5) var(--space-4);
        font-size: var(--text-sm);
    }

    /* Avatars */
    .avatar--elephant {
        display: none;
    }

    .avatar--bird {
        width: clamp(60px, 8vw, 100px);
    }
}

@media (max-width: 480px) {
    .act-hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .act-hero__ctas .btn {
        width: 100%;
    }

    .act-trust__stats {
        grid-template-columns: 1fr;
    }

    .act-trust__pricing-grid .pricing-card {
        width: 88%;
        min-width: 260px;
        padding: var(--space-8) var(--space-6);
    }

    /* Dashboard: single column KPIs on small phones */
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-slot[data-slot="sentimento"] {
        grid-column: auto;
    }
}

/* ===================================
   Use Case Page — Extra Sections
   =================================== */

/* ---- Provocative Questions ---- */
.uc-provocative {
    padding: var(--space-16) 0;
    background: var(--color-charcoal);
}

.uc-provocative__title {
    color: #fff;
    text-align: center;
    margin-bottom: var(--space-10);
}

.uc-provocative__list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.provoc-scenario {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.provoc-scenario:last-child {
    border-bottom: none;
}

.provoc-scenario__emoji {
    flex-shrink: 0;
    font-size: 1.6rem;
    line-height: 1;
}

.provoc-scenario__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-lg);
    line-height: 1.65;
    font-weight: 400;
    margin: 0;
}

.uc-provocative__cta {
    text-align: center;
    color: var(--color-teal-light, #06B6D4);
    font-weight: 500;
    margin-top: var(--space-10);
    font-size: var(--text-base);
}

/* ---- Metrics Grid ---- */
.uc-metrics {
    padding: var(--space-16) 0;
}

.uc-metrics__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.uc-metrics__header p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    max-width: 560px;
    margin-inline: auto;
}

.uc-metrics__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.uc-metric-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-6) var(--space-6) var(--space-5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
}

.uc-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.uc-metric-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-cream, #F5F1E4);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.uc-metric-card__label {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.uc-metric-card__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.uc-metric-card__example {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-teal);
    font-weight: 500;
    font-style: italic;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .uc-metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .uc-metrics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Platform Screens ---- */
.uc-platform {
    padding: var(--space-16) 0;
    background: var(--color-charcoal);
}

.uc-platform__header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.uc-platform__header h2 {
    color: #fff;
}

.uc-platform__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-base);
    margin-bottom: var(--space-10);
}

.uc-platform__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.uc-screen {
    position: relative;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: transform var(--duration-fast) ease;
}

.uc-screen:hover {
    transform: translateY(-4px);
}

.uc-screen__topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-cream, #F5F1E4);
    border-bottom: 1px solid var(--color-border);
}

.uc-screen__topbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
}

.uc-screen__topbar-dot:first-child { background: #FF5F57; }
.uc-screen__topbar-dot:nth-child(2) { background: #FFBD2E; }
.uc-screen__topbar-dot:nth-child(3) { background: #28CA41; }

.uc-screen__body {
    padding: var(--space-6);
}

.uc-screen__number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.uc-screen h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-charcoal);
}

.uc-screen p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

.uc-screen__placeholder {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--color-cream, #F5F1E4);
    border-radius: 8px;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

@media (min-width: 640px) {
    .uc-platform__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Related Section ---- */
.uc-related {
    padding: var(--space-12) 0;
}

.uc-related__block {
    margin-bottom: var(--space-8);
}

.uc-related__block h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.uc-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.uc-related__links .seo-related__link {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: var(--color-cream-light, #FAF8F2);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: border-color var(--duration-fast) ease,
                color var(--duration-fast) ease;
}

.uc-related__links .seo-related__link:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}
