:root {
    --bg: #080d1a;
    --panel: #11182b;
    --panel2: #151e34;
    --border: rgba(255,255,255,.08);
    --text: #f7f8fc;
    --muted: #9da8c0;
    --purple: #7354ff;
    --purple2: #8b6dff;
    --green: #22ca7a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(115,84,255,.15), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app {
    min-height: 100vh;
}

.topo {
    height: 82px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    background: rgba(8,13,26,.9);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.marca {
    display: flex;
    gap: 14px;
    align-items: center;
}

.marca-icone {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), #954cff);
    display: grid;
    place-items: center;
    font-size: 25px;
}

.marca strong {
    display: block;
    font-size: 22px;
}

.marca strong span {
    color: var(--purple2);
}

.marca small {
    color: var(--muted);
}

.demo-badge {
    border: 1px solid rgba(115,84,255,.4);
    background: rgba(115,84,255,.12);
    color: #aa98ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}

.conteudo {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
    padding: 46px 0 80px;
}

.hero {
    margin-bottom: 32px;
}

.tag {
    color: #a18dff;
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 12px 0;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.passos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.passo {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--muted);
    border-radius: 15px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.passo b {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
}

.passo.ativo {
    border-color: rgba(115,84,255,.6);
    color: white;
    background: rgba(115,84,255,.13);
}

.passo.ativo b {
    background: var(--purple);
}

.card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.015), transparent),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
}

.etapa {
    display: none;
}

.etapa.ativa {
    display: block;
}

.card-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-head h2 {
    font-size: 27px;
    margin: 6px 0;
}

.card-head p {
    margin: 0;
    color: var(--muted);
}

.numero {
    color: #9b87ff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
}

.grid-modelos {
    display: grid;
    gap: 12px;
}

.modelo-card,
.cliente-card {
    width: 100%;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--panel2);
    border-radius: 16px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.modelo-card div:nth-child(2),
.cliente-card div:nth-child(2) {
    flex: 1;
}

.modelo-card strong,
.modelo-card small,
.cliente-card strong,
.cliente-card small {
    display: block;
}

.modelo-card small,
.cliente-card small {
    margin-top: 5px;
    color: var(--muted);
}

.modelo-card.selecionado,
.cliente-card.selecionado {
    border-color: var(--purple);
    background: rgba(115,84,255,.12);
}

.modelo-icone {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.roxo {
    background: rgba(115,84,255,.18);
    color: #a28fff;
}

.azul {
    background: rgba(54,132,255,.18);
    color: #6ba4ff;
}

.verde {
    background: rgba(34,202,122,.15);
    color: #43dd98;
}

.check {
    opacity: 0;
    color: var(--green);
    font-weight: bold;
}

.selecionado .check {
    opacity: 1;
}

.acoes {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.acoes.dupla {
    justify-content: space-between;
}

.btn {
    border: none;
    border-radius: 13px;
    min-height: 50px;
    padding: 0 24px;
    font-weight: 700;
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--purple), #914fff);
}

.btn.secondary {
    color: white;
    border: 1px solid var(--border);
    background: var(--panel2);
}

.campo-busca input,
.form-grid input,
.transcricao-box textarea {
    width: 100%;
    background: #0c1324;
    color: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
}

.campo-busca input {
    padding: 15px;
    margin-bottom: 16px;
}

.clientes {
    display: grid;
    gap: 10px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #5e54ff, #9862ff);
    font-weight: 800;
}

.avatar2 {
    background: linear-gradient(135deg, #e04d7d, #ff7962);
}

.avatar3 {
    background: linear-gradient(135deg, #0da985, #29cb9c);
}

.voz-box {
    border: 1px solid rgba(115,84,255,.25);
    background:
        radial-gradient(circle at center, rgba(115,84,255,.14), transparent 60%),
        #0d1426;
    min-height: 300px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    text-align: center;
}

.microfone {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #7354ff;
    color: white;
    font-size: 42px;
    background:
        radial-gradient(circle, #795cff 0%, #3f2ba8 70%);
    box-shadow:
        0 0 0 12px rgba(115,84,255,.08),
        0 0 45px rgba(115,84,255,.35);
    margin-bottom: 24px;
}

.microfone.ouvindo {
    animation: pulsar 1s infinite;
}

@keyframes pulsar {
    0%,100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.voz-box p {
    max-width: 600px;
    color: var(--muted);
    line-height: 1.55;
}

.onda {
    display: none;
    height: 40px;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.onda.ativa {
    display: flex;
}

.onda i {
    width: 5px;
    height: 15px;
    background: #795cff;
    border-radius: 4px;
    animation: onda .8s infinite alternate;
}

.onda i:nth-child(2n) {
    animation-delay: .2s;
}

.onda i:nth-child(3n) {
    animation-delay: .4s;
}

@keyframes onda {
    from {
        height: 10px;
    }
    to {
        height: 36px;
    }
}

.separador {
    text-align: center;
    margin: 20px 0;
    color: var(--muted);
    position: relative;
}

.separador:before {
    content: "";
    height: 1px;
    background: var(--border);
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
}

.separador span {
    position: relative;
    background: var(--panel);
    padding: 0 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-grid label,
.transcricao-box label {
    color: #c7cee0;
    font-size: 13px;
    font-weight: 700;
}

.form-grid input {
    padding: 14px;
    margin-top: 7px;
}

.transcricao-box {
    margin-top: 18px;
}

.transcricao-box textarea {
    resize: vertical;
    padding: 15px;
    margin-top: 8px;
}

.transcricao-box small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}

.resumo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.resumo div {
    padding: 17px;
    background: var(--panel2);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.resumo small,
.resumo strong {
    display: block;
}

.resumo small {
    color: var(--muted);
    margin-bottom: 6px;
}

.sucesso {
    text-align: center;
    padding-bottom: 26px;
}

.sucesso-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
    font-size: 35px;
    background: var(--green);
    color: white;
    box-shadow: 0 0 35px rgba(34,202,122,.3);
}

.sucesso h2 {
    margin-bottom: 7px;
}

.sucesso p {
    color: var(--muted);
}

.documento {
    background: #fff;
    color: #151515;
    max-width: 850px;
    margin: auto;
    padding: 60px 70px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    min-height: 1000px;
}

.documento h2 {
    text-align: center;
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 40px;
}

.documento h3 {
    font-size: 15px;
    margin-top: 30px;
}

.documento p {
    font-family: Georgia, serif;
    text-align: justify;
    line-height: 1.75;
    font-size: 15px;
}

.doc-data {
    text-align: center;
    margin-top: 70px;
}

.assinaturas {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    text-align: center;
}

.assinaturas strong,
.assinaturas span {
    display: block;
    margin-top: 7px;
}

.assinaturas span {
    font-size: 11px;
}

.acoes-final {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 720px) {

    .topo {
        height: 72px;
        padding: 0 17px;
    }

    .marca strong {
        font-size: 18px;
    }

    .marca small {
        display: none;
    }

    .marca-icone {
        width: 42px;
        height: 42px;
    }

    .demo-badge {
        font-size: 11px;
    }

    .conteudo {
        width: min(100% - 22px, 1100px);
        padding-top: 25px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .passos {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .passo {
        min-width: 120px;
        flex: 0 0 auto;
    }

    .card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .form-grid,
    .resumo {
        grid-template-columns: 1fr;
    }

    .acoes.dupla,
    .acoes-final {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .documento {
        padding: 35px 23px;
        min-height: auto;
    }

    .assinaturas {
        grid-template-columns: 1fr;
        gap: 70px;
    }
}

@media print {

    body {
        background: white;
    }

    .topo,
    .hero,
    .passos,
    .sucesso,
    .acoes-final {
        display: none !important;
    }

    .conteudo {
        width: 100%;
        padding: 0;
    }

    .card {
        padding: 0;
        border: none;
        box-shadow: none;
        background: white;
    }

    .documento {
        box-shadow: none;
        max-width: none;
        min-height: auto;
    }
}
