/* ============================================================
   welcome.css — página pública de apresentação
   Única tela aberta ao público: identidade própria, mas as
   cores e a tipografia vêm de tokens.css como no resto.
   ============================================================ */
:root {
    --welcome-ink: #0f172a;
    --welcome-muted: #64748b;
    --welcome-line: #dbe4ef;
    --welcome-blue: #2563eb;
    --welcome-green: #059669;
    --welcome-sky: #0284c7;
    --welcome-violet: #7c3aed;
    --welcome-amber: #d97706;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(5, 150, 105, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fb 44%, #eef4f8 100%) !important;
    color: var(--welcome-ink);
}

.welcome-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(219, 228, 239, 0.9);
    backdrop-filter: blur(18px);
}

.welcome-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.welcome-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.welcome-brand strong,
.welcome-brand span {
    display: block;
    line-height: 1.15;
}

.welcome-brand strong {
    color: var(--welcome-ink);
    font-size: 0.9rem;
    font-weight: 850;
}

.welcome-brand span {
    margin-top: 2px;
    color: var(--welcome-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.welcome-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-nav a,
.hero-action,
.access-card,
.carousel-btn {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.welcome-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--welcome-line);
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 750;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.welcome-nav a:hover,
.hero-action:hover,
.access-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.welcome-nav .nav-primary {
    background: var(--welcome-blue);
    border-color: var(--welcome-blue);
    color: #fff;
}

.welcome-page {
    padding-top: 72px;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    padding: 54px 28px 34px;
}

.hero-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 40px;
    align-items: center;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(219, 234, 254, 0.72);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 850;
}

.hero h1 {
    max-width: 740px;
    margin: 0;
    color: var(--welcome-ink);
    font-size: clamp(2.45rem, 5.2vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: 0;
    font-weight: 900;
}

.hero h1 span {
    color: var(--welcome-blue);
}

.hero-lead {
    max-width: 620px;
    margin: 22px 0 0;
    color: #475569;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid var(--welcome-line);
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
}

.hero-action.primary {
    background: linear-gradient(135deg, var(--welcome-blue), #1d4ed8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.hero-action.green {
    background: linear-gradient(135deg, var(--welcome-green), #047857);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 34px rgba(5, 150, 105, 0.18);
}

.hero-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(219, 228, 239, 0.86);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.visual-stage {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
}

.system-preview {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.preview-topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--welcome-line);
    background: rgba(248, 250, 252, 0.86);
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    color: var(--welcome-ink);
}

.preview-brand img {
    width: 30px;
    height: 30px;
}

.preview-pills {
    display: flex;
    gap: 8px;
}

.preview-pills i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.preview-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 420px;
}

.preview-side {
    padding: 16px;
    border-right: 1px solid var(--welcome-line);
    background: #f8fafc;
}

.preview-link {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.preview-link.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.preview-main {
    padding: 22px;
}

.preview-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.preview-title h3 {
    margin: 0;
    color: var(--welcome-ink);
    font-size: 1.25rem;
}

.preview-title p {
    margin: 5px 0 0;
    color: var(--welcome-muted);
    font-size: 0.82rem;
}

.preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.preview-kpi,
.preview-chart,
.preview-list {
    border: 1px solid var(--welcome-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.preview-kpi {
    padding: 14px;
}

.preview-kpi span {
    display: block;
    color: var(--welcome-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-kpi strong {
    display: block;
    margin-top: 7px;
    color: var(--welcome-ink);
    font-size: 1.5rem;
    font-weight: 900;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}

.preview-chart {
    min-height: 168px;
    padding: 16px;
    display: flex;
    align-items: end;
    gap: 9px;
}

.preview-chart i {
    flex: 1;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.preview-list {
    padding: 14px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 750;
}

.preview-row:last-child {
    border-bottom: 0;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.floating-card.one {
    top: 54px;
    right: -18px;
}

.floating-card.two {
    left: -26px;
    bottom: 78px;
}

.floating-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.08rem;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    color: var(--welcome-ink);
    font-size: 0.9rem;
}

.floating-card span {
    margin-top: 2px;
    color: var(--welcome-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.section {
    padding: 74px 28px;
}

.section-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    color: var(--welcome-ink);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.section-head p {
    max-width: 540px;
    margin: 10px 0 0;
    color: var(--welcome-muted);
    line-height: 1.65;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.access-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--welcome-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.access-card i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 15px;
    color: #fff;
    font-size: 1.25rem;
}

.access-card h3 {
    margin: 0 0 8px;
    color: var(--welcome-ink);
    font-size: 1.02rem;
}

.access-card p {
    margin: 0;
    color: var(--welcome-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.access-card span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--welcome-blue);
    font-size: 0.84rem;
    font-weight: 850;
}

.carousel-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--welcome-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

.carousel-track {
    position: relative;
    min-height: 360px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
    padding: 34px;
    opacity: 0;
    transform: translateX(26px);
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-copy h3 {
    margin: 0 0 10px;
    color: var(--welcome-ink);
    font-size: 2rem;
    line-height: 1.05;
}

.slide-copy p {
    margin: 0;
    color: var(--welcome-muted);
    line-height: 1.7;
}

.slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.slide-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
}

.slide-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.slide-panel {
    min-height: 126px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--welcome-line);
    background: #f8fafc;
}

.slide-panel.wide {
    grid-column: 1 / -1;
}

.slide-panel span {
    display: block;
    color: var(--welcome-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.slide-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--welcome-ink);
    font-size: 1.75rem;
    font-weight: 900;
}

.carousel-controls {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--welcome-line);
    border-radius: 999px;
    background: #fff;
    color: var(--welcome-ink);
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    margin: 0 4px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.carousel-dot.active {
    width: 24px;
    background: var(--welcome-blue);
}

.numbers {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.number-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.number-card strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.number-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.lgpd {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid #bbf7d0;
    border-radius: 24px;
    background: #f0fdf4;
}

.lgpd i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.lgpd h3 {
    margin: 0 0 4px;
    color: var(--welcome-ink);
    font-size: 1rem;
}

.lgpd p {
    margin: 0;
    color: var(--welcome-muted);
    line-height: 1.55;
}

.welcome-footer {
    padding: 34px 28px;
    background: #0f172a;
    color: #cbd5e1;
}

.welcome-footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

@media (max-width: 1080px) {
    .welcome-nav .hide-tablet {
        display: none;
    }

    .hero-inner,
    .carousel-slide {
        grid-template-columns: 1fr;
    }

    .visual-stage {
        min-height: auto;
    }

    .access-grid,
    .number-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .welcome-header {
        height: auto;
        min-height: 70px;
        padding: 12px;
        gap: 12px;
        align-items: flex-start;
    }

    .welcome-brand span {
        display: none;
    }

    .welcome-nav {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .welcome-nav a {
        min-height: 36px;
        padding-inline: 10px;
        font-size: 0.78rem;
    }

    .welcome-page {
        padding-top: 86px;
    }

    .hero {
        min-height: auto;
        padding: 36px 14px 24px;
    }

    .hero-actions .hero-action,
    .access-card {
        width: 100%;
    }

    .preview-body,
    .preview-grid,
    .preview-kpis,
    .slide-visual,
    .access-grid,
    .number-grid {
        grid-template-columns: 1fr;
    }

    .preview-side,
    .floating-card {
        display: none;
    }

    .system-preview {
        border-radius: 20px;
    }

    .section {
        padding: 48px 14px;
    }

    .section-head {
        display: block;
    }

    .carousel-track {
        min-height: 620px;
    }

    .carousel-slide {
        padding: 22px;
    }

    .carousel-controls {
        right: 16px;
        bottom: 16px;
    }

    .lgpd {
        align-items: flex-start;
    }
}
