/* ==========================================================================
   Snappz — Curtain intro + branch exit transitions
   Shared by index.html and all snappz-*.html landing pages.
   ========================================================================== */

/* Trust chips under a hero CTA */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #52606d;
}

.trust-chip i {
    color: var(--accent, #008573);
}

/* Dark authority / credibility band */
.authority-band {
    position: relative;
    background: #0b0f10;
    overflow: hidden;
}

.authority-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 25% 25%, var(--accent, #008573) 0%, transparent 55%),
        radial-gradient(circle at 82% 75%, var(--accent-2, #006d5e) 0%, transparent 50%);
    opacity: 0.22;
    filter: blur(70px);
    pointer-events: none;
}

.authority-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 75%);
    pointer-events: none;
}

.authority-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.authority-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #008573);
    background: rgba(255, 255, 255, 0.06);
}

.authority-card i {
    color: var(--accent, #008573);
}

/* Numbered process steps */
.proc-step {
    position: relative;
}

.proc-number {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: var(--accent-gradient, linear-gradient(135deg, #008573 0%, #006d5e 100%));
    color: #fff;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 26px -8px var(--accent-shadow, rgba(0, 133, 115, 0.55));
}

.proc-connector {
    position: absolute;
    top: 24px;
    left: 48px;
    right: -100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-soft, #99d9cf) 0 8px, transparent 8px 14px);
}

/* Comparison table */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: center;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    min-width: 220px;
}

.compare-table thead th {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    color: #302f2f;
    background: #f8fafc;
}

.compare-table thead th.is-accent {
    background: var(--accent, #008573);
    color: #fff;
    border-radius: 14px 14px 0 0;
}

.compare-table tbody td {
    border-bottom: 1px solid #eef1f4;
    font-size: 14px;
    color: #52606d;
    background: #fff;
}

.compare-table tbody td.is-accent {
    background: var(--accent-soft-bg, rgba(0, 133, 115, 0.06));
    font-weight: 700;
    color: var(--accent, #008573);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:last-child td.is-accent {
    border-radius: 0 0 14px 14px;
}

.compare-table i.fa-circle-check {
    color: #16a34a;
}

.compare-table i.fa-circle-xmark {
    color: #cbd5e1;
}

/* Sticky mobile CTA bar */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

#curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--curtain-color, #008573);
    will-change: transform;
}

#curtain .curtain-icon {
    width: 84px;
    height: 84px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
}

#curtain .curtain-icon i {
    font-size: 34px;
    color: #ffffff;
}

#curtain .curtain-label {
    position: absolute;
    top: calc(50% + 70px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    opacity: 0;
}

.exit-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    will-change: transform;
    pointer-events: none;
}

.exit-curtain .curtain-icon {
    width: 84px;
    height: 84px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
}

.exit-curtain .curtain-icon i {
    font-size: 34px;
    color: #ffffff;
}

/* Elements revealed once the curtain lifts */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

/* Brand selector cards */
.brand-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: block;
}

.brand-card:hover,
.brand-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px -10px var(--brand-shadow, rgba(0, 133, 115, 0.35));
    border-color: var(--brand-color, #008573);
}

.brand-card .brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient, linear-gradient(135deg, #008573 0%, #006d5e 100%));
    transition: transform 0.35s ease;
}

.brand-card:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-card .brand-arrow {
    transition: transform 0.35s ease;
}

.brand-card:hover .brand-arrow {
    transform: translateX(6px);
}

.brand-card .brand-glow {
    position: absolute;
    inset: -40% -40% auto auto;
    width: 220px;
    height: 220px;
    background: var(--brand-gradient, linear-gradient(135deg, #008573 0%, #006d5e 100%));
    opacity: 0.08;
    border-radius: 9999px;
    filter: blur(10px);
    pointer-events: none;
}

/* ==========================================================================
   Hub — dark cinematic canvas behind the orbit diagram
   ========================================================================== */

.hub-canvas {
    position: relative;
    background: #06090b;
    overflow: hidden;
}

.hub-glow {
    position: absolute;
    inset: -15%;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.6;
}

.hub-glow span {
    position: absolute;
    border-radius: 9999px;
}

.hub-glow .g1 {
    width: 520px;
    height: 520px;
    background: #008573;
    top: -8%;
    left: 2%;
    animation: hubDrift1 17s ease-in-out infinite alternate;
}

.hub-glow .g2 {
    width: 460px;
    height: 460px;
    background: #2563eb;
    bottom: -14%;
    right: -4%;
    animation: hubDrift2 21s ease-in-out infinite alternate;
}

.hub-glow .g3 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: 6%;
    left: -8%;
    animation: hubDrift3 19s ease-in-out infinite alternate;
}

@keyframes hubDrift1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(60px, 40px) scale(1.15);
    }
}

@keyframes hubDrift2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-50px, -30px) scale(1.1);
    }
}

@keyframes hubDrift3 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, -45px) scale(1.2);
    }
}

.hub-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 30%, transparent 75%);
}

.hub-logo-chip {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Orbit diagram — "Grupo Snappz" center node with connected branches
   ========================================================================== */

.orbit-stage {
    position: relative;
    z-index: 1;
    width: min(86vw, 640px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.orbit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.orbit-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 5px rgba(0, 133, 115, 0.35));
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 172px;
    height: 172px;
    margin: -86px 0 0 -86px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 133, 115, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0, 133, 115, 0.12), 0 25px 60px -12px rgba(0, 133, 115, 0.6), inset 0 0 40px rgba(0, 133, 115, 0.12);
    opacity: 0;
    transform: scale(0.6);
    z-index: 3;
    text-align: center;
    padding: 0 12px;
}

.orbit-center img {
    width: 52px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 6px;
}

.orbit-center span {
    color: #fff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 172px;
    height: 172px;
    margin: -86px 0 0 -86px;
    border-radius: 9999px;
    border: 2px solid rgba(0, 133, 115, 0.4);
    z-index: 2;
    opacity: 0;
}

.orbit-ring.is-active {
    animation: orbitPulse 3s ease-out infinite;
}

.orbit-ring.ring-2.is-active {
    animation-delay: 1s;
}

@keyframes orbitPulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.orbit-node {
    display: block;
    position: absolute;
    width: 136px;
    height: 136px;
    margin-left: -68px;
    margin-top: -68px;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.5);
    z-index: 3;
}

.orbit-caption {
    opacity: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

.orbit-node-float {
    animation: orbitFloat 4.5s ease-in-out infinite;
}

@keyframes orbitFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.orbit-bubble {
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    border-radius: 9999px;
    background: var(--node-gradient, linear-gradient(135deg, #008573 0%, #006d5e 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -10px var(--node-shadow, rgba(0, 0, 0, 0.5)), 0 0 50px -6px var(--node-shadow, rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.orbit-bubble i {
    color: #fff;
    font-size: 28px;
}

.orbit-label {
    display: block;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.25;
    transition: color 0.3s ease;
}

.orbit-node:hover .orbit-bubble,
.orbit-node:focus-visible .orbit-bubble {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px -10px var(--node-shadow, rgba(0, 0, 0, 0.6)), 0 0 65px -4px var(--node-shadow, rgba(0, 0, 0, 0.55));
}

.orbit-node:hover .orbit-label,
.orbit-node:focus-visible .orbit-label {
    color: #fff;
}

@media (max-width: 480px) {
    .orbit-node {
        width: 108px;
        height: 108px;
        margin-left: -54px;
        margin-top: -54px;
    }

    .orbit-bubble {
        width: 68px;
        height: 68px;
    }

    .orbit-bubble i {
        font-size: 22px;
    }

    .orbit-label {
        font-size: 11.5px;
    }

    .orbit-center {
        width: 128px;
        height: 128px;
        margin: -64px 0 0 -64px;
    }

    .orbit-center img {
        width: 40px;
    }

    .orbit-ring {
        width: 128px;
        height: 128px;
        margin: -64px 0 0 -64px;
    }
}

/* Reduced motion: never trap users behind a curtain */
@media (prefers-reduced-motion: reduce) {

    #curtain,
    .exit-curtain {
        display: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .orbit-center,
    .orbit-node {
        opacity: 1 !important;
        transform: none !important;
    }

    .orbit-node-float,
    .orbit-ring {
        animation: none !important;
    }

    .orbit-ring {
        opacity: 0 !important;
    }
}
