/* Landing premium: carrossel, recursos, botões carbono */

/* —— Hero: banner largo (fora do limite do texto) —— */
.sl-hero {
    width: 100%;
    max-width: none !important;
    min-height: clamp(400px, 52vh, 580px);
    padding: clamp(2.5rem, 6vw, 4rem) 1rem clamp(2rem, 4vw, 2.75rem);
    margin: 0;
}

#inicio,
#painel,
#como,
#recursos,
#contato,
#cta {
    scroll-margin-top: 88px;
}

.sl-hero::before {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: min(98vw, 1520px);
    height: clamp(220px, 40vh, 620px);
    max-height: 58vh;
    opacity: 0.28;
    background-size: contain;
    background-position: center center;
    animation: sfHeroDrift 32s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes sfHeroDrift {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .sl-hero::before {
        animation: none;
    }
}
@media (min-width: 1200px) {
    .sl-hero::before {
        width: min(94vw, 1600px);
        height: min(580px, 48vh);
        opacity: 0.32;
    }
}
@media (max-width: 576px) {
    .sl-hero {
        min-height: 380px;
    }
    .sl-hero::before {
        width: 100vw;
        height: clamp(160px, 44vw, 220px);
        opacity: 0.18;
        top: 36%;
    }
}

.sl-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* —— Botões carbono / metal —— */
.sl-btn,
.btn-hero.btn-primary-hero {
    position: relative;
    isolation: isolate;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sl-btn-primary,
.btn-primary-hero {
    color: #f0f4fc !important;
    border: 1px solid rgba(200, 210, 230, 0.28);
    background: linear-gradient(165deg, #4a5568 0%, #1e2430 35%, #12151c 70%, #0a0c10 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 6px 22px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.sl-btn-primary::before,
.btn-primary-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(125deg,
        rgba(107, 156, 255, 0.55) 0%,
        rgba(124, 108, 240, 0.35) 40%,
        rgba(56, 189, 248, 0.2) 70%,
        transparent 100%);
    opacity: 0.75;
    transition: opacity 0.3s;
}
.sl-btn-primary:hover,
.btn-primary-hero:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(158, 184, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 32px rgba(107, 156, 255, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.5);
}
.sl-btn-primary:hover::before,
.btn-primary-hero:hover::before {
    opacity: 1;
}
.sl-btn-outline,
.btn-secondary-hero {
    background: linear-gradient(180deg, rgba(30, 36, 48, 0.9), rgba(15, 18, 24, 0.95));
    border: 1px solid rgba(176, 188, 210, 0.22);
    color: var(--sf-steel, #b8c4d8) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sl-btn-outline:hover {
    border-color: rgba(107, 156, 255, 0.4);
    color: #e8ecf4 !important;
    background: linear-gradient(180deg, rgba(40, 48, 62, 0.95), rgba(20, 24, 32, 0.98));
}

/* WhatsApp metalizado esverdeado */
.sl-whatsapp-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(120, 220, 160, 0.35) !important;
    background: linear-gradient(165deg, #1a3d2e 0%, #0f2419 40%, #0a1812 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(180, 255, 210, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 8px 28px rgba(37, 211, 102, 0.25) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.sl-whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(125deg,
        rgba(37, 211, 102, 0.45) 0%,
        rgba(16, 185, 129, 0.3) 50%,
        rgba(56, 189, 248, 0.12) 100%);
    opacity: 0.9;
    transition: opacity 0.3s;
}
.sl-whatsapp-btn:hover {
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(110, 231, 160, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(220, 255, 235, 0.25),
        0 12px 36px rgba(37, 211, 102, 0.4) !important;
}
.sl-whatsapp-btn:hover::before {
    opacity: 1;
}

.sl-pillar:hover,
.sl-card:hover,
.sl-step:hover {
    border-color: rgba(158, 184, 255, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* —— Carrossel compacto estilo streaming —— */
.sl-showcase {
    padding: 2rem 0 2.25rem;
    overflow: hidden;
}
.sl-showcase-head {
    padding: 0 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}
.sl-showcase-head h2 {
    font-size: 1.25rem;
}
.sl-carousel {
    position: relative;
    --sf-slide-w: min(72vw, 280px);
    max-width: 920px;
    margin: 0 auto;
    padding: 0 2.75rem;
}
.sl-carousel-viewport {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    border-radius: 14px;
}
.sl-carousel-viewport::before,
.sl-carousel-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18%;
    max-width: 80px;
    z-index: 2;
    pointer-events: none;
}
.sl-carousel-viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 12, 16, 0.95), transparent);
}
.sl-carousel-viewport::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 12, 16, 0.95), transparent);
}
.sl-carousel-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.sl-carousel-viewport.is-dragging .sl-carousel-track,
.sl-carousel-viewport.is-loop-reset .sl-carousel-track {
    transition: none !important;
}
.sl-carousel-viewport.is-dragging .sl-carousel-track {
    cursor: grabbing;
}
.sl-carousel-viewport.is-loop-reset .sl-carousel-slide {
    transition: none !important;
}
.sl-carousel-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0 0.85rem;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
}
.sl-carousel-slide.is-clone {
    pointer-events: none;
}
.sl-carousel-slide.is-clone .sl-carousel-zoom {
    pointer-events: none;
}
.sl-carousel-slide {
    flex: 0 0 var(--sf-slide-w);
    max-width: var(--sf-slide-w);
    transform: scale(0.82);
    opacity: 0.35;
    filter: brightness(0.55) saturate(0.85);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        filter 0.45s ease;
}
.sl-carousel-slide.is-active {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1) saturate(1.05);
    z-index: 1;
}
.sl-carousel-slide.is-near {
    transform: scale(0.9);
    opacity: 0.55;
    filter: brightness(0.75);
}
.sl-carousel-card {
    background: linear-gradient(160deg, #252b38 0%, #12151c 55%, #0a0c10 100%);
    border: 1px solid rgba(184, 196, 216, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.sl-carousel-slide.is-active .sl-carousel-card {
    border-color: rgba(158, 184, 255, 0.35);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(107, 156, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.sl-carousel-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    line-height: 0;
}
.sl-carousel-zoom img {
    width: 100%;
    height: auto;
    max-height: 168px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #0a0c10;
    pointer-events: none;
}
.sl-carousel-zoom-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 16, 0.75);
    border: 1px solid rgba(184, 196, 216, 0.25);
    color: #e8ecf4;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sl-carousel-slide.is-active .sl-carousel-zoom:hover .sl-carousel-zoom-icon,
.sl-carousel-slide.is-active .sl-carousel-zoom:focus-visible .sl-carousel-zoom-icon {
    opacity: 1;
}
.sl-carousel-edge {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(200, 210, 230, 0.22);
    background: linear-gradient(165deg, #3d4452, #151820);
    color: #e8ecf4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.sl-carousel-edge:hover {
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(107, 156, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 20px rgba(107, 156, 255, 0.2);
}
/* Lightbox */
.sl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sl-lightbox[hidden] {
    display: none !important;
}
.sl-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.88);
    backdrop-filter: blur(8px);
}
.sl-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    width: 100%;
}
.sl-lightbox-close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(184, 196, 216, 0.25);
    background: linear-gradient(165deg, #3d4452, #151820);
    color: #e8ecf4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sl-lightbox-figure {
    margin: 2.5rem 0 0;
    text-align: center;
}
.sl-lightbox-img {
    max-width: 100%;
    max-height: calc(92vh - 4rem);
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(184, 196, 216, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.sl-lightbox-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
}
.sl-carousel-edge--prev { left: 0; }
.sl-carousel-edge--next { right: 0; }
.sl-carousel-foot {
    text-align: center;
    padding: 0.75rem 0 0;
    max-width: 420px;
    margin: 0 auto;
}
.sl-carousel-meta strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #e8ecf4;
    margin-bottom: 0.25rem;
}
.sl-carousel-meta span {
    display: block;
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.45;
}
.sl-carousel-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 0.65rem;
}
.sl-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.sl-carousel-dot.is-active {
    background: linear-gradient(135deg, #8eb4ff, #9b8afb);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(107, 156, 255, 0.45);
}
@media (min-width: 768px) {
    .sl-carousel {
        --sf-slide-w: min(36vw, 340px);
        padding: 0 3rem;
    }
    .sl-carousel-zoom img {
        max-height: 200px;
    }
}
@media (min-width: 1100px) {
    .sl-carousel {
        --sf-slide-w: 360px;
    }
}

/* —— Recursos: abas + barra metal —— */
.sl-resources {
    padding: 2.5rem 1rem 3rem;
    border-top: 1px solid rgba(176, 188, 210, 0.1);
}
.sl-resources-head {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    text-align: center;
}
.sl-resources-head h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.sl-resources-head p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}
.sl-res-nav-wrap {
    position: sticky;
    top: 68px;
    z-index: 40;
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    padding: 0.5rem;
    background: linear-gradient(165deg, rgba(35, 42, 54, 0.75), rgba(12, 15, 20, 0.92));
    border: 1px solid rgba(184, 196, 216, 0.16);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}
.sl-res-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.4rem;
    padding: 2px;
    overflow: visible;
}
.sl-res-tab {
    flex: 0 1 auto;
    min-width: 7.25rem;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .sl-res-tab {
        font-size: 0.8125rem;
        padding: 0.55rem 0.85rem;
        min-width: 8.5rem;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .sl-res-tab {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
        font-size: 0.7rem;
        padding: 0.45rem 0.5rem;
    }
}
.sl-res-tab:hover {
    color: #d1d9e6;
    background: rgba(255, 255, 255, 0.04);
}
.sl-res-tab.is-active {
    color: #f4f7fc;
    border-color: rgba(184, 196, 216, 0.25);
    background: linear-gradient(165deg, #4a5568 0%, #252b38 50%, #1a2030 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.2);
}
.sl-res-progress {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(40, 48, 60, 0.4));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.sl-res-progress-fill {
    display: block;
    height: 100%;
    width: 20%;
    border-radius: 4px;
    background: linear-gradient(90deg,
        #5a6d88 0%,
        #6b9cff 25%,
        #8b7cf8 55%,
        #5ec8e8 100%);
    box-shadow:
        0 0 12px rgba(107, 156, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sl-res-panels {
    max-width: 1000px;
    margin: 0 auto;
}
.sl-res-panel {
    display: none;
}
.sl-res-panel.is-active {
    display: block;
    animation: sfResIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sfResIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.sl-res-panel-intro {
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
    margin: 0 auto 1.25rem;
    max-width: 480px;
    line-height: 1.5;
    padding: 0;
    background: none;
    border: none;
}
.sl-resources .sl-cards {
    gap: 0.85rem;
}
.sl-resources .sl-card {
    background: linear-gradient(160deg, rgba(26, 31, 40, 0.95), rgba(12, 15, 20, 0.98));
    border-color: rgba(176, 188, 210, 0.12);
}

/* Auth */
.sf-page--auth .navbar-brand-logo--auth {
    max-height: 26px !important;
    max-width: 100px !important;
}
.sf-page--auth .auth-brand-mark {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}
.sf-page--auth .auth-brand-mark img {
    max-width: 42px !important;
    max-height: 42px !important;
}
.sf-page--auth .auth-card-header,
.sf-page--auth .auth-title,
.sf-page--auth .auth-subtitle {
    text-align: center;
}
