/* =========================================================================
   docs-coletor.css: só a página /Docs/coletor-ui ("O Chrome e a coleta").
   Carregado por templates/docs/coletor-ui.html, logo depois do docs-core.css.
   Paleta do site: navy #0D2142, ciano #00B5CC / #26C6DA, azul #1976D2.
   A paleta do app (fundo #090f1f, verde-limão #5cf542) aparece só DENTRO
   da tela simulada (.dcol-chat) e dos prints.

   Componentes:
     .dcol-lead            parágrafo de abertura
     .dcol-label           rótulo pequeno em maiúsculas
     .dcol-goals           "Comece pelo que você quer fazer" (4 atalhos)
     .dcol-flow            como a conexão acontece (4 etapas)
     .dcol-split           passos ao lado do print estreito
     .dcol-pin / .dcol-ring  destaque de um botão sobre o print
     .dcol-chat            tela simulada da conversa (só CSS, sem JS)
   Como style.css carrega depois deste arquivo, os seletores usam classe + classe.
   ========================================================================= */

/* ---------- Texto ---------- */
.docs-coletor .dcol-lead {
    color: #4f5d73;
    font-size: 18.5px;
    line-height: 1.7;
}
.docs-coletor .dcol-lead strong,
.docs-coletor .docs-section > p strong,
.docs-coletor .docs-section li strong,
.docs-coletor .docs-table td strong {
    color: #0D2142;
}
.docs-coletor p a:not([class]),
.docs-coletor li a:not([class]),
.docs-coletor td a:not([class]),
.docs-coletor .tip-box a:not([class]),
.docs-coletor .warning-box a:not([class]),
.docs-coletor .docs-ficha__cell a:not([class]) {
    color: #00B5CC;
    font-weight: 700;
}
.docs-coletor p a:not([class]):hover,
.docs-coletor li a:not([class]):hover,
.docs-coletor td a:not([class]):hover,
.docs-coletor .tip-box a:not([class]):hover,
.docs-coletor .warning-box a:not([class]):hover,
.docs-coletor .docs-ficha__cell a:not([class]):hover {
    color: #1976D2;
    text-decoration: underline;
}
.docs-coletor .docs-section > h4 {
    margin-top: 34px;
    font-size: 19px;
    font-weight: 800;
}
.docs-coletor .tip-box > i.bx,
.docs-coletor .warning-box > i.bx {
    margin-right: 4px;
    font-size: 20px;
    line-height: 1;
    vertical-align: -4px;
}
.docs-coletor .tip-box > i.bx { color: #1976D2; }
.docs-coletor .warning-box > i.bx { color: #f57c00; }
.docs-coletor .tip-box p:last-child,
.docs-coletor .warning-box p:last-child {
    margin-bottom: 0;
}
.docs-coletor .docs-ficha__cell strong > i.bx {
    margin-right: 6px;
    color: #00B5CC;
    font-size: 18px;
    line-height: 1;
    vertical-align: -3px;
}
.docs-coletor .docs-ficha__cell a.dcol-more {
    display: inline-block;
    margin-top: 6px;
    color: #00B5CC;
    font-size: 14px;
    font-weight: 700;
}
.docs-coletor .docs-ficha__cell a.dcol-more:hover {
    color: #1976D2;
}
.docs-coletor .docs-table td:first-child {
    color: #0D2142;
    font-weight: 700;
}
.docs-coletor .docs-table td {
    vertical-align: top;
}
.docs-coletor .dcol-next li {
    margin-bottom: 6px;
}

/* ---------- Rótulo e atalhos ---------- */
.docs-coletor .dcol-label {
    display: block;
    margin: 28px 0 10px;
    color: #00B5CC;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.docs-coletor .dcol-goals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.docs-coletor .dcol-goals > li {
    min-width: 0;
    margin: 0;
}
.docs-coletor .dcol-goals a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 14px 14px 13px;
    background: #ffffff;
    border: 1px solid #e3ecf4;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(13, 33, 66, 0.05);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.docs-coletor .dcol-goals a > i {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f7fa;
    color: #00B5CC;
    font-size: 19px;
    line-height: 1;
}
.docs-coletor .dcol-goals a.is-featured > i {
    background: linear-gradient(135deg, #26C6DA 0%, #1976D2 100%);
    color: #ffffff;
}
.docs-coletor .dcol-goals a strong {
    color: #0D2142;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}
.docs-coletor .dcol-goals a span {
    color: #5d6a7d;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}
.docs-coletor .dcol-goals a:hover,
.docs-coletor .dcol-goals a:focus-visible {
    border-color: rgba(0, 181, 204, 0.55);
    box-shadow: 0 12px 26px rgba(13, 33, 66, 0.1);
    transform: translateY(-2px);
}

/* ---------- Como a conexão acontece ---------- */
.docs-coletor .dcol-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 18px 0 26px;
    padding: 0;
    list-style: none;
}
.docs-coletor .dcol-flow > li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 16px 16px 15px;
    background: #f4f8fb;
    border: 1px solid #e3ecf4;
    border-radius: 14px;
}
.docs-coletor .dcol-flow > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -17px;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid #26C6DA;
    border-right: 2.5px solid #26C6DA;
    transform: translateY(-50%) rotate(45deg);
}
.docs-coletor .dcol-flow i {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e3ecf4;
    color: #00B5CC;
    font-size: 20px;
    line-height: 1;
}
.docs-coletor .dcol-flow small {
    display: block;
    margin-bottom: 2px;
    color: #1976D2;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.docs-coletor .dcol-flow strong {
    display: block;
    margin-bottom: 4px;
    color: #0D2142;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}
.docs-coletor .dcol-flow span {
    display: block;
    color: #5d6a7d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------- Passos ao lado do print estreito ---------- */
.docs-coletor .dcol-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 32px;
    align-items: start;
    margin: 18px 0 10px;
}
.docs-coletor .dcol-split > figure.docs-shot {
    margin: 0;
}
.docs-coletor .dcol-split > ol.docs-steps {
    margin-top: 4px;
}

/* ---------- Destaque de um botão sobre o print ---------- */
.docs-coletor .dcol-pin {
    position: relative;
    display: block;
}
.docs-coletor .dcol-ring {
    position: absolute;
    border: 2px solid #26C6DA;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.28), 0 0 18px rgba(38, 198, 218, 0.55);
    pointer-events: none;
    animation: dcol-ring 2.4s ease-in-out infinite;
}
@keyframes dcol-ring {
    0%, 100% { box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.28), 0 0 14px rgba(38, 198, 218, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(38, 198, 218, 0.14), 0 0 22px rgba(38, 198, 218, 0.7); }
}

/* ---------- Tela simulada da conversa (paleta do app só aqui dentro) ---------- */
.docs-coletor figure.dcol-mock {
    margin: 26px 0 30px;
}
.docs-coletor .dcol-chat {
    --app-bg: #090f1f;
    --app-card: #141a29;
    --app-line: #232b3d;
    --app-ink: #eef2f8;
    --app-muted: #97a3b8;
    --app-lime: #5cf542;
    overflow: hidden;
    padding: 0;
    background: var(--app-bg);
    border: 1px solid rgba(38, 198, 218, 0.28);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(13, 33, 66, 0.16);
    color: var(--app-ink);
    font-family: "Nunito", sans-serif;
    text-align: left;
}
.docs-coletor .dcol-chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--app-line);
}
.docs-coletor .dcol-chat__menu {
    flex: 0 0 auto;
    color: var(--app-muted);
    font-size: 20px;
    line-height: 1;
}
.docs-coletor .dcol-chat__proj {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}
.docs-coletor .dcol-chat__proj small {
    display: block;
    color: var(--app-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.docs-coletor .dcol-chat__proj b {
    display: block;
    overflow: hidden;
    color: var(--app-ink);
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.docs-coletor .dcol-chat__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: var(--app-card);
    color: var(--app-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.docs-coletor .dcol-chat__btn--screen {
    padding: 6px 12px;
    border-color: var(--app-lime);
    border-radius: 999px;
    background: transparent;
    color: var(--app-ink);
    font-size: 12.5px;
}
.docs-coletor .dcol-chat__btn--screen i {
    color: var(--app-lime);
    font-size: 15px;
}
.docs-coletor .dcol-chat__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 18px 20px;
}
.docs-coletor .dcol-chat__you {
    width: fit-content;
    max-width: 86%;
    margin: 0 0 16px auto;
    padding: 10px 14px;
    background: var(--app-card);
    border: 1px solid var(--app-line);
    border-radius: 14px 14px 4px 14px;
    color: var(--app-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.docs-coletor .dcol-chat__act {
    display: grid;
    margin: 0 0 12px;
    color: var(--app-muted);
    font-size: 13.5px;
    font-weight: 700;
}
.docs-coletor .dcol-chat__act > span {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-coletor .dcol-chat__act b {
    color: var(--app-muted);
    font-weight: 800;
}
.docs-coletor .dcol-chat__spin {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(92, 245, 66, 0.25);
    border-top-color: var(--app-lime);
    border-radius: 50%;
    animation: dcol-spin 0.9s linear infinite;
}
.docs-coletor .dcol-chat__act i {
    color: var(--app-lime);
    font-size: 15px;
    line-height: 1;
}
.docs-coletor .dcol-chat__run {
    animation: dcol-run 9s ease infinite;
}
.docs-coletor .dcol-chat__done {
    opacity: 0;
    animation: dcol-done 9s ease infinite;
}
.docs-coletor .dcol-chat__reply {
    padding: 12px 14px;
    border-left: 2px solid var(--app-line);
    animation: dcol-reply 9s ease infinite;
}
.docs-coletor .dcol-chat__reply strong {
    display: block;
    margin: 0 0 6px;
    color: var(--app-ink);
    font-size: 13.5px;
    font-weight: 800;
}
.docs-coletor .dcol-chat__reply strong + .dcol-chat__sk {
    margin-top: 0;
}
.docs-coletor .dcol-chat__sk {
    display: block;
    height: 8px;
    margin: 0 0 7px;
    border-radius: 4px;
    background: #1f2738;
}
.docs-coletor .dcol-chat__sk--short { width: 62%; }
.docs-coletor .dcol-chat__sk--mid { width: 80%; }
.docs-coletor .dcol-chat__sk + strong,
.docs-coletor .dcol-chat__line + strong {
    margin-top: 12px;
}
.docs-coletor .dcol-chat__file {
    color: var(--app-lime);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
}
.docs-coletor .dcol-chat__line {
    margin: 0 0 7px;
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.docs-coletor figure.dcol-mock figcaption {
    margin: 12px auto 0;
    max-width: 760px;
    padding: 0 6px;
    color: #5d6a7d;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}
.docs-coletor figure.dcol-mock figcaption strong {
    color: #0D2142;
}
@keyframes dcol-spin {
    to { transform: rotate(360deg); }
}
@keyframes dcol-run {
    0%, 2% { opacity: 0; }
    5%, 28% { opacity: 1; }
    31%, 100% { opacity: 0; }
}
@keyframes dcol-done {
    0%, 30% { opacity: 0; }
    33%, 96% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes dcol-reply {
    0%, 34% { opacity: 0; transform: translateY(6px); }
    40%, 95% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1199px) {
    .docs-coletor .dcol-goals,
    .docs-coletor .dcol-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .docs-coletor .dcol-flow {
        gap: 12px;
    }
    .docs-coletor .dcol-flow > li:not(:last-child)::after {
        display: none;
    }
}
@media (max-width: 991px) {
    .docs-coletor .dcol-split {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .docs-coletor .dcol-split > figure.docs-shot {
        max-width: 460px;
        margin: 10px auto 24px;
    }
}
@media (max-width: 767px) {
    .docs-coletor .dcol-lead {
        font-size: 17px;
    }
    .docs-coletor .dcol-chat__head {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }
    .docs-coletor .dcol-chat__proj {
        flex-basis: calc(100% - 34px);
    }
    .docs-coletor .dcol-chat__btn--export {
        margin-left: 28px;
    }
    .docs-coletor .dcol-chat__body {
        padding: 14px 12px 16px;
    }
    .docs-coletor .dcol-chat__you {
        max-width: 92%;
        font-size: 13.5px;
    }
}
@media (max-width: 575px) {
    .docs-coletor .dcol-goals,
    .docs-coletor .dcol-flow {
        grid-template-columns: 1fr;
    }
    .docs-coletor .dcol-flow > li {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
    }
    .docs-coletor .dcol-flow i {
        grid-row: 1 / span 3;
        margin-bottom: 0;
    }
    .docs-coletor .dcol-goals a {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 2px;
        align-items: start;
    }
    .docs-coletor .dcol-goals a > i {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }
}
/* Tabelas viram cartões no celular: a 1ª célula é o título, a 2ª ganha o rótulo da coluna
   (vem de --dcol-label, definido no style da tabela em PT ou EN). */
@media (max-width: 575px) {
    .docs-coletor .docs-table.dcol-table {
        display: block;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }
    .docs-coletor .dcol-table thead {
        display: none;
    }
    .docs-coletor .dcol-table tbody,
    .docs-coletor .dcol-table tr,
    .docs-coletor .dcol-table td {
        display: block;
        width: 100%;
    }
    .docs-coletor .dcol-table tbody tr,
    .docs-coletor .dcol-table tbody tr:nth-of-type(even) {
        margin: 0 0 12px;
        background: #ffffff;
        border: 1px solid #e3ecf4;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 14px rgba(13, 33, 66, 0.05);
    }
    .docs-coletor .docs-table.dcol-table td {
        padding: 10px 14px;
        border: 0;
        font-size: 15px;
        hyphens: manual;
    }
    .docs-coletor .docs-table.dcol-table td:first-child {
        padding-top: 12px;
        background: #f4f8fb;
        border-bottom: 1px solid #e3ecf4;
    }
    .docs-coletor .dcol-table td + td::before {
        content: var(--dcol-label);
        display: block;
        margin-bottom: 2px;
        color: #00B5CC;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}
@media (prefers-reduced-motion: reduce) {
    .docs-coletor .dcol-goals a {
        transition: none;
    }
    .docs-coletor .dcol-goals a:hover {
        transform: none;
    }
    .docs-coletor .dcol-ring,
    .docs-coletor .dcol-chat__spin {
        animation: none;
    }
    .docs-coletor .dcol-chat__run {
        animation: none;
        opacity: 0;
    }
    .docs-coletor .dcol-chat__done,
    .docs-coletor .dcol-chat__reply {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
