/* ============================================================
   PR7 Hosting — E-mail Profissional Cloud
   Calculadora, migração, capacidades, modal e CTA móvel.
   Reutiliza as variáveis CSS definidas na landing page.
   ============================================================ */

/* Utilitário: conteúdo apenas para leitores de tela */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Hero: destaque comercial e microinformações ---------- */
.hero__price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding: 14px 20px;
    border: 1px solid rgba(3, 224, 191, 0.3);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(3, 224, 191, 0.12), rgba(3, 224, 191, 0.03));
}
.hero__price strong {
    color: var(--accent);
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero__price span { color: rgb(255 255 255 / 0.88); font-size: .86rem; }
.hero__price small { flex-basis: 100%; color: rgb(255 255 255 / 0.88); font-size: .76rem; }

.hero__micro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.hero__micro li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: .76rem;
    font-weight: 600;
}
.hero__micro svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--accent); }

/* ---------- Seção da calculadora ---------- */
.calculator-section .section-heading p strong { color: var(--ink); }

.calculator-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(3, 224, 191, 0.25);
    border-radius: 12px;
    background: rgba(3, 224, 191, 0.06);
    color: var(--ink);
    font-size: .82rem;
    line-height: 1.55;
}
.calculator-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: #008f7a; }

/* Presets */
.calc-presets { margin-bottom: 26px; }
.calc-presets__title {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.calc-presets__grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preset-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.preset-card:hover { border-color: rgba(3, 224, 191, 0.55); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.preset-card.is-active { border-color: var(--accent); background: rgba(3, 224, 191, 0.06); }
.preset-card--featured { border-color: rgba(3, 224, 191, 0.45); }
.preset-card strong { color: var(--ink); font-size: .95rem; font-weight: 800; }
.preset-card span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.preset-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -14px -14px 6px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(41, 53, 59, 0.14);
    border-radius: 11px 11px 0 0;
    background: linear-gradient(135deg, #eef3f4, #e2eaea);
    color: var(--ink);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}
.preset-card__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(3, 224, 191, 0.22);
}
.preset-card--featured .preset-card__badge {
    border-bottom-color: rgba(3, 224, 191, 0.28);
    background: linear-gradient(135deg, rgba(3, 224, 191, 0.14), rgba(3, 224, 191, 0.04));
    color: #007a68;
}
.preset-card--featured .preset-card__badge::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(3, 224, 191, 0.18);
}

/* Cards de capacidade */
.calc-products { display: grid; gap: 14px; }
.calc-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.calc-card:hover { border-color: rgba(3, 224, 191, 0.45); box-shadow: var(--shadow-sm); }
.calc-card.is-selected {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(3, 224, 191, 0.07), rgba(3, 224, 191, 0.015));
    box-shadow: 0 0 0 1px rgba(3, 224, 191, 0.25), var(--shadow-sm);
}
@keyframes calc-card-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.012); }
    100% { transform: scale(1); }
}
.calc-card.is-bump { animation: calc-card-pop .22s ease; }
.calc-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.calc-card__title { display: flex; align-items: center; gap: 12px; }
.calc-card__title .icon-box { flex: 0 0 44px; }
.calc-card__title h3 { font-size: 1.3rem; line-height: 1; }
.calc-card__title small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.calc-card__badge {
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(3, 224, 191, 0.14);
    color: #007a68;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .07em;
    white-space: nowrap;
}
.calc-card__price { color: var(--ink); font-size: .9rem; }
.calc-card__price strong { font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.calc-card__desc { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.calc-card__note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.5;
}
.calc-card__note svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 2px; color: #b78a00; }
.calc-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-card__subtotal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    color: #007a68;
    font-size: .85rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .2s ease, transform .2s ease;
}
.calc-card.is-selected .calc-card__subtotal { opacity: 1; transform: translateY(0); }
.calc-card__subtotal svg { width: 15px; height: 15px; }

/* Stepper de quantidade */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.calc-card.is-selected .qty-stepper { border-color: rgba(3, 224, 191, 0.45); }
.qty-stepper button {
    width: 44px;
    min-height: 44px;
    display: grid;
    place-content: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.qty-stepper button:hover { background: rgba(3, 224, 191, 0.14); color: #007a68; }
.qty-stepper button:disabled { color: rgba(41, 53, 59, 0.25); cursor: not-allowed; background: transparent; }
.qty-stepper button svg { width: 17px; height: 17px; }
.qty-stepper input {
    width: 58px;
    min-height: 44px;
    border: 0;
    border-inline: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: 3px solid rgba(3, 224, 191, 0.42); outline-offset: -3px; }

/* Campos complementares */
.calc-details {
    margin-top: 26px;
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
}
.calc-details > strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 800; }
.calc-details > p { margin: 6px 0 18px; color: var(--muted); font-size: .78rem; }
.calc-details__grid { display: grid; gap: 14px; }
.calc-field { display: grid; gap: 7px; }
.calc-field label { color: var(--ink); font-size: .78rem; font-weight: 700; }
.calc-field input,
.calc-field select,
.calc-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.calc-field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.calc-field input::placeholder, .calc-field textarea::placeholder { color: rgba(104, 120, 134, 0.6); }
.calc-field input:focus, .calc-field select:focus, .calc-field textarea:focus {
    border-color: rgba(3, 224, 191, 0.65);
    box-shadow: 0 0 0 3px rgba(3, 224, 191, 0.16);
    background: var(--white);
}
.calc-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687886' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Card de resumo */
.calc-summary {
    position: relative;
    padding: 26px 22px;
    border: 1px solid rgba(3, 224, 191, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, #2e3c43 0%, var(--ink) 52%, #243036 100%);
    color: rgb(255 255 255 / 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(30, 43, 49, 0.14), 0 14px 30px rgba(30, 43, 49, 0.16);
    overflow: hidden;
}
.calc-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(3, 224, 191, 0.12), transparent 42%);
    pointer-events: none;
}
.calc-summary > * { position: relative; }
.calc-summary__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-soft);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.calc-summary__kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.calc-summary__meta { display: flex; gap: 18px; margin-top: 16px; }
.calc-summary__meta div strong { display: block; color: var(--white); font-family: var(--font-title); font-size: 1.3rem; line-height: 1; }
.calc-summary__meta div span { display: block; margin-top: 5px; color: rgb(255 255 255 / 0.94); font-size: .76rem; }
.calc-summary__empty { margin-top: 16px; font-size: .92rem; line-height: 1.6; }
.calc-summary__items { display: grid; gap: 7px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); list-style: none; }
.calc-summary__items li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.calc-summary__items li span:first-child { color: rgb(255 255 255 / 0.94); }
.calc-summary__items li span:last-child { color: rgb(255 255 255 / 0.94); font-variant-numeric: tabular-nums; }
.calc-summary__rows { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.calc-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; }
.calc-summary__row span:last-child { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.94); }
.calc-summary__row--total { padding-top: 4px; }
.calc-summary__row--total span:first-child { color: var(--white); font-weight: 700; }
.calc-summary__row--total strong {
    color: var(--accent);
    font-family: var(--font-title);
    font-size: clamp(1.55rem, 4vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.calc-summary__row--total small { margin-left: 4px; color: rgb(255 255 255 / 0.94); font-size: .78rem; }
.calc-summary__row--annual span:last-child { color: rgb(255 255 255 / 0.94); }

/* Barra de progresso até o mínimo */
.calc-minimum { margin-top: 16px; }
.calc-minimum__bar { position: relative; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.calc-minimum__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent));
    transition: width .25s ease;
}
.calc-minimum p { margin-top: 9px; font-size: .82rem; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.calc-minimum p strong { color: var(--accent-soft); font-weight: 700; }
.calc-minimum--reached p { display: flex; align-items: center; gap: 7px; color: var(--accent-soft); }
.calc-minimum--reached svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* Incluído + aviso */
.calc-summary__included { display: grid; gap: 7px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); list-style: none; }
.calc-summary__included li { display: flex; align-items: center; gap: 8px; color: rgb(255 255 255 / 0.94); font-size: .82rem; }
.calc-summary__included svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--accent); }
.calc-summary__disclaimer { margin-top: 16px; color: rgb(255 255 255 / 0.89); font-size: .75rem; line-height: 1.55; }
.calc-summary__actions { display: grid; gap: 10px; margin-top: 20px; }
.calc-summary__actions .btn { width: 100%; }
.calc-summary__actions .btn:disabled,
.calc-summary__actions .btn[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}
.btn--whatsapp { background: var(--accent); color: var(--ink); box-shadow: 0 2px 6px rgba(3, 224, 191, .28), 0 6px 14px rgba(3, 224, 191, .16); }
.btn--whatsapp:hover { box-shadow: var(--shadow-accent); }
.btn--outline-light { border-color: rgba(255, 255, 255, .22); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--outline-light:hover { border-color: var(--accent); background: rgba(3, 224, 191, .08); }

/* ---------- Migração assistida ---------- */
.migration-steps { display: grid; gap: 16px; }
.migration-step {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.migration-step:hover { transform: translateY(-4px); border-color: rgba(3, 224, 191, 0.55); box-shadow: var(--shadow-sm); }
.migration-step__number {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    border-radius: 12px;
    background: var(--surface);
    color: #008f7a;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 800;
}
.migration-step h3 { margin-top: 18px; font-size: 1.1rem; }
.migration-step p { margin-top: 10px; font-size: .84rem; }
.migration-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 34px; }
.migration-cta small { color: var(--muted); font-size: .76rem; line-height: 1.55; max-width: 560px; }

/* ---------- Capacidades e preços ---------- */
.capacity-grid { display: grid; gap: 16px; }
.capacity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    border: 1px solid rgba(41, 53, 59, 0.08);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(41, 53, 59, 0.04), 0 5px 14px rgba(41, 53, 59, 0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.capacity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(3, 224, 191, 0.4);
    box-shadow: 0 2px 5px rgba(41, 53, 59, 0.05), 0 10px 22px rgba(41, 53, 59, 0.09);
}
.capacity-card--featured { border-color: rgba(3, 224, 191, 0.55); box-shadow: 0 2px 6px rgba(41, 53, 59, 0.06), 0 8px 18px rgba(41, 53, 59, 0.07), 0 0 0 1px rgba(3, 224, 191, 0.18); }
.capacity-card__badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(3, 224, 191, 0.28), 0 5px 12px rgba(3, 224, 191, 0.16);
}
.capacity-card h3 { font-size: 1.5rem; }
.capacity-card__usage { margin-top: 5px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.capacity-card__price { display: flex; align-items: baseline; gap: 5px; margin-top: 16px; color: var(--ink); }
.capacity-card__price strong { font-family: var(--font-title); font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.capacity-card__price span { color: var(--muted); font-size: .74rem; }
.capacity-card__desc { flex: 1; margin-top: 12px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.capacity-card__note { display: flex; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.capacity-card__note svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 1px; color: #b78a00; }
.capacity-card .btn { width: 100%; margin-top: 18px; min-height: 48px; font-size: .84rem; }
.btn--soft {
    border: 1px solid rgba(3, 224, 191, 0.35);
    background: rgba(3, 224, 191, 0.08);
    color: var(--ink);
}
.btn--soft:hover { border-color: rgba(3, 224, 191, 0.55); background: rgba(3, 224, 191, 0.14); box-shadow: 0 4px 12px rgba(3, 224, 191, 0.16); }
.capacity-footnote {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
    color: #9AA7B0;
    font-size: .86rem;
    line-height: 1.65;
}
.capacity-footnote strong { color: var(--ink); }

/* ---------- Formulário comercial (novos campos) ---------- */
.form-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 40px 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background-color: rgba(15, 22, 26, 0.55);
    color: var(--white);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field select:focus { border-color: rgba(3, 224, 191, .65); box-shadow: 0 0 0 3px rgba(3, 224, 191, .16); }
.form-field select option { color: var(--ink); background: var(--white); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; }
.form-consent input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-height: 0;
    margin-top: 2px;
    flex: 0 0 19px;
    accent-color: var(--accent);
    cursor: pointer;
}
.form-consent label { color: rgba(255, 255, 255, .6); font-size: .74rem; line-height: 1.55; font-weight: 500; cursor: pointer; }
.form-consent a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.form-simulation-summary {
    display: none;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(3, 224, 191, .3);
    border-radius: 12px;
    background: rgba(3, 224, 191, .07);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    line-height: 1.55;
}
.form-simulation-summary.is-visible { display: grid; }
.form-simulation-summary strong { color: var(--accent-soft); }
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.turnstile-slot { min-height: 0; }
.turnstile-slot:not(:empty) { min-height: 68px; }

/* ---------- Modal "Receber proposta por e-mail" ---------- */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 22, 26, 0.7);
    backdrop-filter: blur(6px);
}
.quote-modal.is-open { display: flex; }
.quote-modal__dialog {
    width: 100%;
    max-width: 620px;
    max-height: min(92vh, 92dvh);
    overflow-y: auto;
    padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
    border: 1px solid rgba(3, 224, 191, 0.22);
    border-radius: 22px 22px 0 0;
    background: linear-gradient(165deg, #2e3c43 0%, var(--ink) 55%, #243036 100%);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.22), 0 -12px 32px rgba(0, 0, 0, 0.18);
}
.quote-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.quote-modal__head h3 { color: var(--white); font-size: 1.3rem; }
.quote-modal__head p { margin-top: 7px; color: rgba(255, 255, 255, 0.55); font-size: .82rem; line-height: 1.55; }
.quote-modal__close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.quote-modal__close:hover { border-color: var(--accent); background: rgba(3, 224, 191, 0.1); }
.quote-modal__close svg { width: 18px; height: 18px; }
.quote-modal .contact-form__status { margin-top: 4px; }
.quote-success { display: none; text-align: center; padding: 18px 6px 6px; }
.quote-success.is-visible { display: block; }
.quote-success__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(3, 224, 191, 0.14);
    color: var(--accent);
}
.quote-success__icon svg { width: 28px; height: 28px; }
.quote-success h4 { color: var(--white); font-family: var(--font-title); font-size: 1.25rem; }
.quote-success p { margin-top: 10px; color: rgba(255, 255, 255, 0.6); font-size: .85rem; line-height: 1.6; }
.quote-success__code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px dashed rgba(3, 224, 191, 0.45);
    border-radius: 12px;
    color: var(--accent-soft);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.quote-success__code button {
    display: grid;
    place-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: rgba(3, 224, 191, 0.14);
    color: var(--accent);
    cursor: pointer;
    transition: background-color .18s ease;
}
.quote-success__code button:hover { background: rgba(3, 224, 191, 0.26); }
.quote-success__code button svg { width: 15px; height: 15px; }
.quote-success__actions { display: grid; gap: 10px; margin-top: 22px; }

/* Spinner de envio */
.btn__spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(41, 53, 59, 0.25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: pr7-spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading > svg { display: none; }
@keyframes pr7-spin { to { transform: rotate(360deg); } }

/* ---------- CTA móvel fixo ---------- */
.mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(31, 42, 47, 0.96);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform .28s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__info { display: grid; gap: 1px; min-width: 0; }
.mobile-cta__info strong { color: var(--white); font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-cta__info span { color: rgba(255, 255, 255, 0.5); font-size: .64rem; }
.mobile-cta .btn { min-height: 46px; padding: 10px 16px; font-size: .74rem; letter-spacing: .04em; white-space: nowrap; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; }
.final-cta .section-heading { margin-bottom: 30px; }
.final-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-cta__note { margin-top: 18px; color: rgba(255, 255, 255, 0.45); font-size: .76rem; }

/* ---------- Carrossel de logomarcas de clientes ---------- */
.logos-section { overflow: hidden; }
.logos-section .section-heading { margin-bottom: 36px; }

.logo-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee + .logo-marquee { margin-top: 6px; }
.logo-marquee__track {
    display: flex;
    width: max-content;
    animation: logo-marquee 48s linear infinite;
    will-change: transform;
}
.logo-marquee--reverse .logo-marquee__track {
    animation-name: logo-marquee-reverse;
    animation-duration: 56s;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 14px;
    padding-right: 14px; /* igual ao gap — loop contínuo sem "salto" */
}
@keyframes logo-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes logo-marquee-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.logo-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 16px 26px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(41, 53, 59, 0.04), 0 4px 10px rgba(41, 53, 59, 0.04);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.logo-chip img {
    height: 34px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .25s ease, opacity .25s ease;
}
.logo-chip:hover {
    border-color: rgba(3, 224, 191, 0.45);
    box-shadow: 0 2px 5px rgba(41, 53, 59, 0.05), 0 8px 18px rgba(41, 53, 59, 0.08);
    transform: translateY(-2px);
}
.logo-chip:hover img { filter: none; opacity: 1; }
/* Ajuste óptico: wordmarks densas (só letras) reduzidas para equilibrar o peso visual */
.logo-chip--slim img { height: 25px; }

@media (prefers-reduced-motion: reduce) {
    .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .logo-marquee__track { animation: none !important; width: auto; }
    .logo-marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Rodapé: ícone sem link (Instagram em breve) ---------- */
.footer-social a:not([href]) {
    opacity: .5;
    cursor: default;
}
.footer-social a:not([href]):hover {
    color: rgba(255, 255, 255, .7);
    border-color: rgba(255, 255, 255, .12);
    transform: none;
}

/* ---------- Tooltips acessíveis para termos técnicos ---------- */
.term-help {
    text-decoration: underline dotted rgba(3, 224, 191, 0.7);
    text-underline-offset: 3px;
    cursor: help;
}

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
    .calc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-details__grid .calc-field--full { grid-column: 1 / -1; }
    .calc-presets__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .capacity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .migration-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-modal { align-items: center; padding: 24px; }
    .quote-modal__dialog { border-radius: 22px; padding: 32px 30px; }
    .final-cta__actions { flex-direction: row; justify-content: center; }
    .final-cta__actions .btn { min-width: 230px; }
    .hero__micro { grid-template-columns: repeat(4, auto); justify-content: start; }
    .contact-form__row--triple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .calc-summary { position: sticky; top: 134px; }
    .migration-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .capacity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .capacity-card--featured { transform: translateY(-4px); }
    .capacity-card--featured:hover { transform: translateY(-9px); }
    .migration-cta { flex-direction: row; align-items: center; gap: 24px; }
    .mobile-cta { display: none; }
    .quote-modal__dialog { max-width: 680px; }
    .contact-form__row--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    /* CTA móvel não pode cobrir o botão flutuante do WhatsApp */
    body.has-mobile-cta .floating-whatsapp {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    /* Hero compacto: o selo "E-mail Profissional Cloud" surge logo abaixo do cabeçalho */
    .hero { min-height: 0; padding-top: 92px; }
    .hero__inner { min-height: 0; padding-block: 24px 110px; }

    /* Navegação por âncora (menu/CTAs): a seção começa logo abaixo do cabeçalho.
       O offset global de 104px é do header desktop; aqui o header tem ~76px,
       e o scroll-margin negativo desconta parte do respiro interno da seção. */
    html { scroll-padding-top: 80px; }
    .section[id] { scroll-margin-top: -44px; }

    /* ============================================================
       Menu mobile refeito
       O backdrop-filter do .main-nav cria um "containing block" que
       prende o painel fixed à altura da barra — por isso ele é
       desligado enquanto o menu está aberto.
       ============================================================ */
    body.nav-open .main-nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
        border-bottom-color: transparent;
        box-shadow: none;
    }
    /* Logomarca clara e botão de fechar em destaque, mesmo com a página rolada */
    body.nav-open .brand__image--dark { opacity: 1 !important; }
    body.nav-open .brand__image--light { opacity: 0 !important; }
    body.nav-open .site-header .nav-toggle,
    body.nav-open .site-header.is-scrolled .nav-toggle {
        border-color: rgba(3, 224, 191, 0.55);
        background: rgba(3, 224, 191, 0.12);
        color: var(--accent);
        box-shadow: 0 0 0 4px rgba(3, 224, 191, 0.1), 0 4px 14px rgba(0, 0, 0, 0.25);
    }
    /* Centraliza o ícone X (o absolute original ficava sem coordenadas) */
    .nav-toggle__icon--close {
        inset: 0;
        margin: auto;
    }

    /* Painel em tela cheia, grafite sólido com a textura do hero */
    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 108px 28px calc(36px + env(safe-area-inset-bottom));
        overflow-y: auto;
        background:
                radial-gradient(circle at 88% 12%, rgba(3, 224, 191, 0.14), transparent 42%),
                linear-gradient(165deg, #2e3c43 0%, #29353B 52%, #1a2429 100%);
        background-color: #29353B;
        counter-reset: navitem;
    }
    .nav-menu::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
        background-size: 54px 54px;
        -webkit-mask-image: linear-gradient(to bottom, #000 12%, transparent 88%);
        mask-image: linear-gradient(to bottom, #000 12%, transparent 88%);
    }

    /* Links: numerados, com seta e entrada escalonada */
    .nav-menu > a:not(.btn) {
        position: relative;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 17px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        color: var(--white);
        font-family: var(--font-title);
        font-size: 1.42rem;
        font-weight: 700;
        letter-spacing: .02em;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .32s ease, transform .32s ease;
    }
    .nav-menu > a:not(.btn)::before {
        counter-increment: navitem;
        content: "0" counter(navitem);
        min-width: 26px;
        color: var(--accent);
        font-family: var(--font-body);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .08em;
        opacity: .85;
    }
    .nav-menu > a:not(.btn)::after {
        content: "";
        width: 9px;
        height: 9px;
        margin-left: auto;
        border-top: 2px solid rgba(3, 224, 191, 0.65);
        border-right: 2px solid rgba(3, 224, 191, 0.65);
        transform: rotate(45deg);
        transition: transform .2s ease;
    }
    .nav-menu > a:not(.btn):active::after { transform: rotate(45deg) scale(1.25); }

    .nav-menu .btn {
        margin-top: 30px;
        min-height: 56px;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .32s ease, transform .32s ease;
    }

    .nav-menu.is-open > a { opacity: 1; transform: none; }
    .nav-menu.is-open > a:nth-child(1) { transition-delay: .05s; }
    .nav-menu.is-open > a:nth-child(2) { transition-delay: .1s; }
    .nav-menu.is-open > a:nth-child(3) { transition-delay: .15s; }
    .nav-menu.is-open > a:nth-child(4) { transition-delay: .2s; }
    .nav-menu.is-open > a:nth-child(5) { transition-delay: .25s; }
    .nav-menu.is-open > a:nth-child(6) { transition-delay: .3s; }
    .nav-menu.is-open > a:nth-child(7) { transition-delay: .36s; }
}

@media (prefers-reduced-motion: reduce) {
    .calc-card.is-bump { animation: none; }
    .btn__spinner { animation-duration: 1.2s; }
    .mobile-cta { transition: none; }
    .calc-minimum__bar span { transition: none; }
}
