/* ============================================================
   IndicAI: página pública no visual do sistema (app.indicai.com.br).
   Mesmos tokens do globals.css do sistema: verde #509384, hover
   #427b6e, grafite #1b1f23 das telas de entrada, fundo #f7f8fa,
   Inter no texto, Archivo nos títulos, botões rounded-lg em negrito
   e em caixa normal, cartões brancos com borda slate-200.
   ============================================================ */

:root {
    --primario: #509384;
    --primario-escuro: #427b6e;
    --primario-claro: #7cc4b1;           /* o verde claro do menu, legível no grafite */
    --primario-suave: rgba(80, 147, 132, 0.12);
    --grafite: #1b1f23;
    --fundo: #f7f8fa;
    --texto: #1e293b;                    /* slate-800 */
    --texto-suave: #475569;              /* slate-600 */
    --texto-mudo: #64748b;               /* slate-500 */
    --borda: #e2e8f0;                    /* slate-200 */
    --borda-forte: #cbd5e1;              /* slate-300 */
    --raio: 8px;                         /* rounded-lg dos botões */
    --raio-card: 16px;                   /* rounded-2xl dos cartões */
    --fonte: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --fonte-titulo: 'Archivo', 'Inter', ui-sans-serif, sans-serif;
    --altura-topo: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--altura-topo);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fonte);
    color: var(--texto);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fonte-titulo);
    letter-spacing: -0.01em;
    color: var(--texto);
}

::selection {
    background: var(--primario);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(80, 147, 132, 0.45);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.centro {
    text-align: center;
}

.verde {
    color: var(--primario);
}

/* ---------- Botões: o padrão único do sistema ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: var(--raio);
    font-family: var(--fonte);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}

.btn-primario {
    background: var(--primario);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primario:hover {
    background: var(--primario-escuro);
}

.btn-secundario {
    background: #fff;
    color: #334155;
    border-color: var(--borda-forte);
}

.btn-secundario:hover {
    background: #f1f5f9;
}

.btn-secundario i {
    color: var(--primario);
}

.btn-cta i {
    font-size: 13px;
    transition: transform .15s ease;
}

.btn-cta:hover i {
    transform: translateX(3px);
}

/* ---------- Cabeçalho ---------- */
.topo {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.topo.rolou {
    border-bottom-color: var(--borda);
    box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.35);
}

.topo-linha {
    height: var(--altura-topo);
    display: flex;
    align-items: center;
    gap: 24px;
}

.topo-logo img {
    height: 30px;
    width: auto;
}

.topo-nav {
    display: none;
    gap: 4px;
    margin-left: 12px;
}

.topo-nav a {
    padding: 8px 12px;
    border-radius: var(--raio);
    font-size: 14px;
    font-weight: 600;
    color: var(--texto-suave);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.topo-nav a:hover {
    background: #f1f5f9;
    color: var(--texto);
}

.topo-acoes {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* No celular bem estreito o "Cadastrar" do topo sai: o botão grande da abertura fica logo abaixo. */
.topo-cadastrar {
    display: none;
}

/* ---------- Abertura ---------- */
.hero {
    padding: 28px 0 56px;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(80, 147, 132, 0.10), transparent 70%),
        #fff;
}

.hero-grade {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero-texto {
    animation: subir .6s ease-out both;
}

.hero h1 {
    font-size: clamp(2rem, 8.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.hero-desc {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--texto-suave);
    max-width: 520px;
}

.hero-texto .btn-cta {
    margin-top: 28px;
}

/* A foto vai solta, com o fundo transparente dela, encostando na direita (como no site antigo). */
.hero {
    overflow: hidden;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: subir .7s ease-out .1s both;
}

.hero-img {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* ---------- Seções ---------- */
.secao {
    padding: 56px 0;
}

.secao-cinza {
    background: var(--fundo);
    border-top: 1px solid var(--borda);
    border-bottom: 1px solid var(--borda);
}

.titulo-secao {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* ---------- Quem pode ser ---------- */
.quem-grade {
    display: grid;
    gap: 32px;
    align-items: center;
}

.quem-lista {
    list-style: none;
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.quem-lista li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.45;
    color: var(--texto);
    font-weight: 500;
}

.quem-lista i {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: -1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--primario);
    background: var(--primario-suave);
}

.quem-nota {
    margin-top: 24px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--borda);
    border-left: 4px solid var(--primario);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    color: var(--texto);
}

.quem-texto .btn-cta {
    margin-top: 24px;
}

.quem-foto {
    position: relative;
}

/* Bloco verde atrás da foto, no lugar do triângulo antigo. */
.quem-foto::before {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 45%;
    height: 55%;
    border-radius: var(--raio-card);
    background: var(--primario);
    opacity: .9;
}

.quem-foto img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 60% 40%;
    border-radius: var(--raio-card);
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
}

/* ---------- Serviços ---------- */
.servicos-grade {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.servico-card {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: var(--raio-card);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.servico-card:hover {
    border-color: rgba(80, 147, 132, 0.55);
    box-shadow: 0 16px 36px -22px rgba(80, 147, 132, 0.7);
    transform: translateY(-2px);
}

.servico-icone {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primario);
    background: var(--primario-suave);
}

.servico-card h3 {
    font-family: var(--fonte);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.servicos-mais {
    margin-top: 24px;
    text-align: center;
}

.servicos-mais span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--primario-suave);
    color: var(--primario-escuro);
    font-weight: 700;
    font-size: 14px;
}

.servicos-mais i {
    font-size: 11px;
}

/* ---------- Vídeo ---------- */
.selo {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto-mudo);
}

.selo i {
    color: var(--primario);
}

.video-moldura {
    max-width: 880px;
    margin: 28px auto 0;
    border-radius: var(--raio-card);
    overflow: hidden;
    background: var(--grafite);
    border: 1px solid var(--borda);
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
    aspect-ratio: 16 / 9;
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#video-explicativo .btn-cta {
    margin-top: 32px;
}

/* ---------- Rodapé (o grafite das telas de entrada) ---------- */
.rodape {
    background: var(--grafite);
    color: rgba(255, 255, 255, 0.65);
    padding-top: 44px;
}

.rodape-grade {
    display: grid;
    gap: 32px;
    padding-bottom: 36px;
}

.rodape-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.rodape-marca p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.rodape-col h4 {
    font-family: var(--fonte);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primario-claro);
    margin-bottom: 14px;
}

.rodape-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.rodape-col ul a {
    font-size: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: color .15s ease;
}

.rodape-col ul a:hover {
    color: #fff;
}

.rodape-sociais {
    display: flex;
    gap: 10px;
}

.rodape-sociais a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background-color .15s ease;
}

.rodape-sociais a:hover {
    background: var(--primario);
}

.rodape-email {
    margin-top: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rodape-base {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.rodape-base a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.rodape-base a:hover {
    color: #fff;
}

.rodape-base .sep {
    margin: 0 4px;
    opacity: .5;
}

/* ---------- Voltar ao topo ---------- */
#back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primario);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primario-escuro);
}

@keyframes subir {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   Celular: o botão principal ocupa a largura toda.
   ============================================================ */
@media (max-width: 639px) {
    .btn-cta {
        width: 100%;
    }

    .rodape-base p {
        line-height: 1.8;
    }

    .base-links {
        display: block;
    }

    .sep-1 {
        display: none;
    }

    .quem-foto::before {
        right: -6px;
        bottom: -8px;
    }
}

@media (min-width: 420px) {
    .topo-cadastrar {
        display: inline-flex;
    }
}

/* ============================================================
   Tablet em diante
   ============================================================ */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    .servicos-grade {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .servico-card {
        padding: 30px 18px;
    }

    .rodape-grade {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

/* ============================================================
   Computador
   ============================================================ */
@media (min-width: 960px) {
    :root {
        --altura-topo: 76px;
    }

    .container {
        padding: 0 32px;
    }

    .topo-logo img {
        height: 34px;
    }

    .topo-nav {
        display: flex;
    }

    .btn-sm {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .hero {
        padding: 48px 0 88px;
    }

    .hero-grade {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 56px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    }

    .hero-desc {
        font-size: 18px;
        margin-top: 22px;
    }

    .hero-texto .btn-cta {
        margin-top: 32px;
    }

    .hero-visual {
        justify-content: flex-end;
    }

    .hero-img {
        width: 118%;
        max-width: 760px;
        margin-right: -14%;
    }

    .secao {
        padding: 88px 0;
    }

    .quem-grade {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 64px;
    }

    .quem-foto::before {
        right: -16px;
        bottom: -16px;
    }

    .quem-lista li {
        font-size: 17px;
    }

    .servicos-grade {
        margin-top: 44px;
        gap: 20px;
    }

    .servico-icone {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        font-size: 26px;
    }

    .servico-card {
        padding: 36px 20px;
        gap: 18px;
    }

    .servico-card h3 {
        font-size: 16px;
    }

    .video-moldura {
        margin-top: 36px;
    }

    .rodape {
        padding-top: 56px;
    }

    #back-to-top {
        right: 28px;
        bottom: 28px;
    }
}
