/* ============================================================================
   INDEX.CSS — Attend · v1 "Plataforma"
   Estilos por seção da home. Tokens e componentes globais estão em base.css.

     1.  Hero + slot de vídeo
     2.  Duas portas
     3.  Canais
     4.  Telefonia (o bloco principal desta versão)
     5.  Arquitetura — o caminho de uma chamada
     6.  A Stella
     7.  Painel ao Vivo
     8.  Comparativo
     9.  Como funciona + modelos de operação
     10. Confiança
     11. Para quem
     12. Para o seu produto
     13. Chamada final
   ========================================================================== */

/* ------------------------------------------------------------------ *
   1. HERO
 * ------------------------------------------------------------------ */
.hero {
    position: relative;
    padding-top: clamp(2.5rem, 1.4rem + 4vw, 5rem);
    padding-bottom: 0;
    overflow: hidden;
}

/* Malha discreta atrás do hero: sugere "plataforma/infraestrutura" sem
   ilustração. Some antes de encostar no conteúdo. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 620px;
    background:
        linear-gradient(180deg, rgba(167, 139, 250, .07), transparent 62%),
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 88px 88px,
        linear-gradient(180deg, var(--line) 1px, transparent 1px) 0 0 / 88px 88px;
    -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 32%, transparent 76%);
    mask-image: radial-gradient(120% 78% at 50% 0%, #000 32%, transparent 76%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 5vw, 4rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 4rem;
    }
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1.5rem;
    padding: .38rem .75rem .38rem .5rem;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-500);
    box-shadow: var(--shadow-1);
}

.hero__kicker b {
    color: var(--ink-900);
    font-weight: 600;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
    flex: none;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 15ch;
}

.hero .lead {
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 2rem 0 1.5rem;
}

/* Fatos do hero: só o que a base autoriza sem número medido. */
.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--t-small);
    color: var(--ink-500);
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.hero__facts li::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 2px;
    background: var(--lime);
    outline: 1px solid #b6dd6d;
}

/* --- Slot de vídeo (banner estático 16:9) --------------------------- */
.frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, #fdfdfe, #eef1f6);
    box-shadow: var(--shadow-3);
    overflow: hidden;
}

.frame__scene {
    width: 100%;
    height: 100%;
    display: block;
}

/* Etiqueta que deixa explícito que ali entra um vídeo. Quem trocar o
   placeholder pelo <video> apaga este bloco junto. */
.frame__tag {
    position: absolute;
    margin: 0;
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem;
    background: rgba(11, 14, 19, .82);
    color: #fff;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.frame__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(56px, 8vw, 78px);
    height: clamp(56px, 8vw, 78px);
    border-radius: 50%;
    border: 1px solid rgba(11, 14, 19, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-2);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.frame__caption {
    margin-top: .9rem;
    font-size: var(--t-small);
    color: var(--ink-400);
    max-width: 46ch;
}

/* ------------------------------------------------------------------ *
   2. DUAS PORTAS
   Twilio/Sinch abrem o site perguntando "quem é você?". Aqui a pergunta
   vem logo abaixo do hero, com duas respostas de peso igual.
 * ------------------------------------------------------------------ */
.doors {
    position: relative;
    display: grid;
    gap: 1rem;
    margin-top: clamp(3rem, 1.5rem + 5vw, 5.5rem);
    padding-bottom: var(--section-y);
}

@media (min-width: 760px) {
    .doors {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.door {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.door:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
    color: inherit;
}

.door__label {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.door h3 {
    font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
}

.door p {
    color: var(--ink-500);
    font-size: .95rem;
}

.door .arrow-link {
    margin-top: auto;
    padding-top: .5rem;
}

/* Faixa colorida no topo do card — a única cor "de marca" no bloco. */
.door--op {
    border-top: 3px solid var(--lime);
}

.door--dev {
    border-top: 3px solid var(--violet);
}

/* ------------------------------------------------------------------ *
   3. CANAIS
 * ------------------------------------------------------------------ */
.grid-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}

.card h3 {
    font-size: 1.05rem;
}

.card p {
    font-size: .92rem;
    color: var(--ink-500);
    margin: 0;
}

.card__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--paper-3);
    color: var(--ink-900);
}

.card__icon svg {
    width: 18px;
    height: 18px;
}

.card__meta {
    margin-top: auto;
    padding-top: .5rem;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .04em;
    color: var(--ink-400);
    border-top: 1px solid var(--line);
}

/* Nota honesta ao pé de uma seção (o que NÃO existe). */
.note {
    margin-top: 1.5rem;
    padding: .9rem 1.1rem;
    border-left: 3px solid var(--line-strong);
    background: var(--paper-2);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: var(--t-small);
    color: var(--ink-500);
}

.section--tint .note {
    background: var(--paper);
}

/* ------------------------------------------------------------------ *
   4. TELEFONIA — o bloco principal desta versão
   Layout de "folha de especificação": denso, alinhado, fácil de varrer
   com o olho. É o que um gestor que já tem PABX procura numa lista.
 * ------------------------------------------------------------------ */
.tel__intro {
    display: grid;
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
}

@media (min-width: 900px) {
    .tel__intro {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 3.5rem;
    }
}

.tel__claim {
    padding: 1.35rem 1.5rem;
    background: var(--ink-900);
    color: #d6dde6;
    border-radius: var(--r-md);
    font-size: .95rem;
}

.tel__claim strong {
    color: #fff;
    display: block;
    margin-bottom: .35rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: -.01em;
}

.tel__grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

@media (min-width: 720px) {
    .tel__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1120px) {
    .tel__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tel__group {
    background: var(--paper);
    padding: 1.5rem 1.35rem 1.65rem;
}

.tel__group>h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.15rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
    font-size: .82rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-500);
}

.tel__group>h3 svg {
    width: 16px;
    height: 16px;
    color: var(--violet-ink);
    flex: none;
}

.tel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.05rem;
}

.tel__list li {
    display: grid;
    gap: .2rem;
}

.tel__list b {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.35;
}

.tel__list span {
    font-size: .84rem;
    line-height: 1.5;
    color: var(--ink-500);
}

/* Código discreto (ex.: *1 da gravação sob demanda) */
.kbd {
    display: inline-block;
    padding: 0 .32em;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--paper-2);
    font-family: var(--font-mono);
    font-size: .82em;
    color: var(--ink-700);
}

/* ------------------------------------------------------------------ *
   5. ARQUITETURA — o caminho de uma chamada
   Diagrama em CSS (não em SVG) justamente para poder reempilhar em
   telas pequenas: o conector muda de horizontal para vertical.
 * ------------------------------------------------------------------ */
.arch {
    display: grid;
    gap: 1.25rem;
}

.arch__lane {
    padding: 1.35rem 1.35rem 1.5rem;
    background: #11161e;
    border: 1px solid #232b36;
    border-radius: var(--r-md);
}

.arch__lane h3 {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8b96a6;
}

.arch__lane h3 em {
    font-style: normal;
    color: var(--lime);
}

.arch__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}

@media (min-width: 900px) {
    .arch__steps {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: .5rem;
    }
}

.arch__step {
    position: relative;
    padding: .9rem 1rem;
    background: #171d26;
    border: 1px solid #2a3341;
    border-radius: var(--r-sm);
}

.arch__step b {
    display: block;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .2rem;
}

.arch__step span {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    color: #93a0b0;
}

/* Conector. Vertical no empilhado, horizontal a partir de 900px. */
.arch__step:not(:last-child)::after {
    content: "";
    position: absolute;
    background: linear-gradient(180deg, #3a4557, #2a3341);
    left: 50%;
    bottom: -1.4rem;
    width: 1px;
    height: 1.4rem;
    transform: translateX(-50%);
}

@media (min-width: 900px) {
    .arch__step:not(:last-child)::after {
        left: 100%;
        bottom: auto;
        top: 50%;
        width: .5rem;
        height: 1px;
        background: #3a4557;
        transform: translateY(-50%);
    }
}

.arch__step--ai {
    border-color: #4c3a86;
    background: linear-gradient(180deg, #1d1930, #171d26);
}

.arch__step--ai b {
    color: #c9b6ff;
}

.arch__note {
    font-size: var(--t-small);
    color: #8b96a6;
    margin-top: 1.25rem;
    max-width: 70ch;
}

.arch__note code {
    font-family: var(--font-mono);
    font-size: .85em;
    color: var(--lime);
}

/* ------------------------------------------------------------------ *
   6. A STELLA
 * ------------------------------------------------------------------ */
.trio {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.trio__col {
    padding: 1.6rem 1.5rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.trio__col h3 {
    margin-bottom: 1.15rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
}

.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
    font-size: .93rem;
}

.checks li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: .7rem;
    align-items: start;
    color: var(--ink-500);
}

.checks svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--violet-ink);
    flex: none;
}

.checks b {
    color: var(--ink-900);
}

/* Frases da própria Stella, no tom aprovado da base. */
.quotes {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.quote {
    padding-left: 1.15rem;
    border-left: 2px solid var(--lime);
    font-family: var(--font-display);
    font-size: 1.22rem;
    line-height: 1.4;
    color: var(--ink-900);
}

/* ------------------------------------------------------------------ *
   7. PAINEL AO VIVO
 * ------------------------------------------------------------------ */
.panel {
    display: grid;
    gap: clamp(2rem, 1rem + 3vw, 3.5rem);
    align-items: center;
}

@media (min-width: 980px) {
    .panel {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    }

    /* No HTML o texto vem primeiro (ordem de leitura no celular).
       Na tela larga a ilustração assume a coluna da esquerda. */
    .panel__mock {
        order: -1;
    }
}

.panel__mock {
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.panel__mock svg {
    width: 100%;
    height: auto;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: .34rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    font-size: var(--t-small);
    color: var(--ink-700);
}

.chips li.is-new {
    border-color: #b6dd6d;
    background: var(--lime-soft);
    color: var(--lime-ink);
    font-weight: 600;
}

/* ------------------------------------------------------------------ *
   8. COMPARATIVO
 * ------------------------------------------------------------------ */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    /* rolagem lateral só desta tabela — o body nunca rola na horizontal */
    -webkit-overflow-scrolling: touch;
}

.cmp {
    width: 100%;
    min-width: 660px;
    font-size: .92rem;
}

.cmp th,
.cmp td {
    padding: .95rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.cmp thead th {
    position: sticky;
    top: 0;
    background: var(--paper-2);
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-500);
    white-space: nowrap;
}

.cmp tbody th {
    font-weight: 600;
    color: var(--ink-900);
    width: 30%;
}

.cmp td {
    color: var(--ink-500);
}

.cmp tr:last-child th,
.cmp tr:last-child td {
    border-bottom: 0;
}

/* Coluna da Attend destacada com fundo, não com cor de texto. */
.cmp .col-us {
    background: var(--lime-soft);
    color: var(--ink-700);
    border-left: 1px solid #dcefb4;
    border-right: 1px solid #dcefb4;
}

.cmp thead .col-us {
    color: var(--lime-ink);
    background: var(--lime);
}

/* ------------------------------------------------------------------ *
   9. COMO FUNCIONA + MODELOS
 * ------------------------------------------------------------------ */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.steps li {
    position: relative;
    padding-top: 1.25rem;
    border-top: 2px solid var(--line-strong);
}

.steps li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: .6rem;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .1em;
    color: var(--ink-400);
}

.steps h3 {
    margin-bottom: .45rem;
    font-size: 1.05rem;
}

.steps p {
    font-size: .92rem;
    color: var(--ink-500);
    margin: 0;
}

.models {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 800px) {
    .models {
        grid-template-columns: 1fr 1fr;
    }
}

.model {
    padding: 1.75rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.model__tag {
    display: inline-block;
    margin-bottom: .9rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.model--managed .model__tag {
    background: var(--lime);
    color: var(--lime-ink);
}

.model--byok .model__tag {
    background: var(--violet-soft);
    color: var(--violet-ink);
}

.model h3 {
    margin-bottom: .5rem;
    font-size: 1.3rem;
}

.model>p {
    color: var(--ink-500);
    font-size: .95rem;
}

.model .checks {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ *
   10. CONFIANÇA
 * ------------------------------------------------------------------ */
.trust {
    display: grid;
    gap: 1px;
    background: #232b36;
    border: 1px solid #232b36;
    border-radius: var(--r-md);
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.trust__item {
    background: #11161e;
    padding: 1.6rem 1.5rem;
}

.trust__item h3 {
    margin-bottom: .5rem;
    font-size: 1.02rem;
}

.trust__item p {
    margin: 0;
    font-size: .9rem;
    color: #93a0b0;
}

.trust__item svg {
    width: 20px;
    height: 20px;
    margin-bottom: .9rem;
    color: var(--lime);
}

/* ------------------------------------------------------------------ *
   11. PARA QUEM
 * ------------------------------------------------------------------ */
.audience {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.aud {
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.aud:hover {
    border-color: var(--violet);
    transform: translateY(-2px);
}

.aud h3 {
    margin-bottom: .5rem;
    font-size: 1.02rem;
}

.aud p {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-500);
}

.aud__k {
    display: block;
    margin-bottom: .7rem;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--violet-ink);
}

/* ------------------------------------------------------------------ *
   12. PARA O SEU PRODUTO
 * ------------------------------------------------------------------ */
.dev {
    display: grid;
    gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 900px) {
    .dev {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: start;
    }
}

.dev__list {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.dev__row {
    background: var(--paper);
    padding: 1.35rem 1.4rem;
}

.dev__row h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
    font-size: 1rem;
}

.dev__row h3 .mono {
    padding: .15rem .45rem;
    border-radius: 5px;
    background: var(--violet-soft);
    color: var(--violet-ink);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 500;
}

.dev__row p {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-500);
}

/* ------------------------------------------------------------------ *
   13. CHAMADA FINAL
 * ------------------------------------------------------------------ */
.cta {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 1.5rem;
}

.cta h2 {
    max-width: 18ch;
}

.cta .lead {
    margin-inline: auto;
    text-align: center;
}

.cta__phone {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
    border-bottom: 2px solid transparent;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}

.cta__phone:hover {
    color: var(--lime);
    border-bottom-color: var(--lime);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.cta__fine {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    letter-spacing: .06em;
    color: #8b96a6;
    text-transform: uppercase;
}
