/* ============================================================
   Central de Ajuda - folha de estilos
   Paleta: branco, verde florescente e preto
   ============================================================ */

:root {
    --green: #00E676;
    --green-strong: #00C853;
    --green-soft: #E8FFF3;
    --black: #0B0B0B;
    --black-soft: #16181A;
    --ink: #14161A;
    --muted: #5C636B;
    --line: #E3E6E8;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 12px 32px rgba(11, 11, 11, 0.06);
    --shadow-lg: 0 2px 4px rgba(11, 11, 11, 0.05), 0 24px 60px rgba(11, 11, 11, 0.10);
    --wrap: 1120px;
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--black);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--green-strong);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   Botões
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background-color 0.2s ease,
                color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
    box-shadow: 0 8px 22px rgba(0, 230, 118, 0.35);
}

.btn-primary:hover {
    background: var(--green-strong);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 200, 83, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--black);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--black);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Cabeçalho
   ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--black);
    color: var(--green);
    flex-shrink: 0;
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--black);
    background: var(--green-soft);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
    position: relative;
    padding: 84px 0 72px;
    background:
        radial-gradient(1100px 420px at 12% 0%, rgba(0, 230, 118, 0.16), transparent 62%),
        linear-gradient(180deg, #FAFFFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 230, 118, 0.35);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    padding: 7px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--black);
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 .mark {
    background: linear-gradient(180deg, transparent 62%, rgba(0, 230, 118, 0.45) 62%);
    padding: 0 4px;
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 30px;
}

.hero-list {
    display: grid;
    gap: 12px;
    margin-bottom: 34px;
    max-width: 620px;
}

.hero-list li {
    position: relative;
    padding-left: 32px;
    font-size: 0.98rem;
    color: var(--ink);
    font-weight: 500;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: inset 0 0 0 2px var(--white);
}

.hero-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(-45deg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ------------------------------------------------------------
   Seções
   ------------------------------------------------------------ */

.section-head {
    max-width: 620px;
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted);
    font-size: 1rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ------------------------------------------------------------
   Atendimento / chat
   ------------------------------------------------------------ */

.support {
    padding: 76px 0;
    background: var(--white);
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.chat-card {
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-color: #DDE3DF;
}

.chat-head {
    padding: 24px 26px 20px;
    background: var(--black);
    color: var(--white);
}

.chat-head-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chat-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.22);
    flex-shrink: 0;
}

.chat-tag {
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.16);
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chat-sub {
    color: #B9C0C6;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #9AA3AA;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    font-weight: 700;
}

.steps li.is-active {
    background: var(--green);
    color: var(--black);
}

.steps li.is-active span {
    background: rgba(11, 11, 11, 0.16);
    color: var(--black);
}

.steps li.is-done {
    background: rgba(0, 230, 118, 0.18);
    color: var(--green);
}

.steps li.is-done span {
    background: var(--green);
    color: var(--black);
}

/* Conversa */

.chat-log {
    padding: 24px 26px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 430px;
    overflow-y: auto;
    background: #FBFDFC;
}

.msg {
    display: flex;
    max-width: 88%;
    animation: msgIn 0.22s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.msg-bot {
    align-self: flex-start;
}

.msg-bot .msg-bubble {
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}

.msg-user {
    align-self: flex-end;
}

.msg-user .msg-bubble {
    background: var(--green);
    border-bottom-right-radius: 5px;
    color: var(--black);
    font-weight: 600;
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 26px 6px;
    background: #FBFDFC;
    border-top: 1px solid var(--line);
}

#chatInput {
    flex: 1;
    width: 100%;
    min-height: 52px;
    max-height: 140px;
    padding: 15px 18px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.97rem;
    line-height: 1.4;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#chatInput::placeholder {
    color: #9AA3AA;
}

#chatInput:focus {
    outline: none;
    border-color: var(--green-strong);
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.18);
}

.btn-send {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 12px;
    background: var(--green);
    color: var(--black);
    border: none;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-send:hover {
    background: var(--green-strong);
    transform: translateY(-1px);
}

.btn-send:disabled {
    background: var(--line);
    color: #9AA3AA;
    cursor: not-allowed;
    transform: none;
}

.chat-error {
    margin: 0 26px;
    padding: 0;
    color: #B3261E;
    font-size: 0.86rem;
    font-weight: 600;
    min-height: 0;
}

.chat-error:not(:empty) {
    padding: 10px 14px;
    margin-top: 10px;
    background: #FFF1F0;
    border: 1px solid #FFD6D2;
    border-radius: var(--radius-sm);
}

.chat-hint {
    padding: 10px 26px 20px;
    background: #FBFDFC;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Ações finais do chat */

.chat-actions {
    padding: 16px 26px 20px;
    background: #FBFDFC;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

.chat-actions .btn {
    width: 100%;
}

.btn-whats {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(11, 11, 11, 0.22);
}

.btn-whats:hover {
    background: var(--black-soft);
    transform: translateY(-1px);
}

.btn-restart {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}

.btn-restart:hover {
    color: var(--black);
    border-color: var(--black);
}

.chat-actions-note {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Resumo */

.summary {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.summary-row .k {
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
}

.summary-row .v {
    color: var(--ink);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   Coluna lateral
   ------------------------------------------------------------ */

.side {
    display: grid;
    gap: 20px;
}

.side-card {
    padding: 24px 26px;
}

.side-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.side-block + .side-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

.side-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.side-value {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.side-note p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ------------------------------------------------------------
   Como funciona
   ------------------------------------------------------------ */

.how {
    padding: 76px 0;
    background: linear-gradient(180deg, #FAFFFC 0%, #F4FFF9 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.how-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.how-item {
    position: relative;
    padding: 30px 26px 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--green);
    color: var(--black);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.how-item h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.how-item p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ------------------------------------------------------------
   Dúvidas
   ------------------------------------------------------------ */

.faq {
    padding: 76px 0;
    background: var(--white);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 840px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    position: relative;
    font-weight: 700;
    font-size: 0.99rem;
    color: var(--ink);
    transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--green-soft);
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--black);
    border-bottom: 2.5px solid var(--black);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-item[open] summary {
    background: var(--green-soft);
}

.faq-item p {
    padding: 0 24px 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

/* ------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------ */

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand .brand-mark {
    background: rgba(0, 230, 118, 0.14);
}

.footer-note {
    color: #C6CDD2;
    font-size: 0.92rem;
}

.footer-note span {
    color: var(--green);
    font-weight: 700;
}

.footer-copy {
    color: #7C858C;
    font-size: 0.82rem;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* ------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------ */

@media (max-width: 940px) {
    .support-grid {
        grid-template-columns: 1fr;
    }

    .how-list {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .wrap {
        padding: 0 18px;
    }

    .hero {
        padding: 56px 0 52px;
    }

    .hero::after {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .support,
    .how,
    .faq {
        padding: 52px 0;
    }

    .chat-head {
        padding: 20px 18px 16px;
    }

    .chat-log {
        padding: 18px 18px 6px;
        max-height: 380px;
    }

    .chat-form {
        padding: 14px 18px 6px;
    }

    .chat-hint,
    .chat-error {
        padding-left: 18px;
        padding-right: 18px;
    }

    .chat-actions {
        padding: 14px 18px 18px;
    }

    .msg {
        max-width: 94%;
    }

    .side-card {
        padding: 20px 18px;
    }

    .how-item {
        padding: 24px 20px 20px;
    }

    .faq-item summary {
        padding: 18px 48px 18px 18px;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 18px 18px;
    }

    .chat-tag {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
