/* Ocaki landing: tokens, base, componentes e seções. Sem build, sem dependências. */

:root {
    --bg: #ffffff;
    --bg-subtle: #f6f7f9;
    --surface: #ffffff;
    --border: #e3e6eb;
    --border-strong: #cfd4dc;
    --text: #14181f;
    --text-muted: #5b6472;
    --text-faint: #8a93a1;

    --accent: #c2410c;
    --oca: #c2410c;
    --accent-contrast: #ffffff;
    --accent-tint: color-mix(in srgb, var(--accent) 10%, var(--bg));
    --accent-text: var(--accent);
    --accent-hover: color-mix(in srgb, var(--accent) 94%, #000);

    --success: #0f7a4a;
    --warning: #b54708;
    --danger: #b42318;

    --radius: 6px;
    --radius-lg: 8px;
    --shadow-pop: 0 8px 24px rgba(15, 23, 42, 0.12);

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --content: 1200px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --oca: #ea580c;
        --bg: #0e1116;
        --bg-subtle: #151a21;
        --surface: #181d25;
        --border: #262d38;
        --border-strong: #36404d;
        --text: #e8ebf0;
        --text-muted: #a0a9b6;
        --text-faint: #6f7886;
        --accent-text: color-mix(in srgb, var(--accent), #fff 35%);
        --accent-tint: color-mix(in srgb, var(--accent) 18%, var(--bg));
        --success: #3dd68c;
        --warning: #f5a524;
        --danger: #ff8a80;
        --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --oca: #ea580c;
    --bg: #0e1116;
    --bg-subtle: #151a21;
    --surface: #181d25;
    --border: #262d38;
    --border-strong: #36404d;
    --text: #e8ebf0;
    --text-muted: #a0a9b6;
    --text-faint: #6f7886;
    --accent-text: color-mix(in srgb, var(--accent), #fff 35%);
    --accent-tint: color-mix(in srgb, var(--accent) 18%, var(--bg));
    --success: #3dd68c;
    --warning: #f5a524;
    --danger: #ff8a80;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

img {
    height: auto;
}

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
    max-width: 30ch;
}

h3 {
    font-size: 16px;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.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;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
}

.skip-link:focus {
    top: 8px;
}

.container {
    width: 100%;
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

.container.narrow {
    max-width: 780px;
}

/* Tipografia de apoio */

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 12px;
}

.lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 60ch;
}

.caption {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 12px;
}

.section {
    padding: 48px 0;
}

.section-line {
    border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
    .section {
        padding: 72px 0;
    }
}

/* Botões e campos */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.btn-small {
    padding: 0 12px;
    font-size: 13px;
}

.btn-icon {
    width: 40px;
    padding: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.final-cta .btn-row {
    margin-top: 24px;
}

/* Cabeçalho */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 56px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 27px;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
}

.site-nav > a:not(.btn) {
    padding: 8px 10px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: var(--radius);
}

.site-nav > a:not(.btn):hover {
    color: var(--text);
    background: var(--bg-subtle);
    text-decoration: none;
}

.site-nav .nav-demo {
    margin-left: 8px;
    color: var(--accent-contrast);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-toggle span:first-child {
    top: 15px;
}

.menu-toggle span:last-child {
    top: 22px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* Celular: o menu abre como painel abaixo do cabeçalho */
.site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.site-nav.is-open > a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 16px;
}

.site-nav.is-open .nav-demo {
    margin: 16px 0 0;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .site-nav > a:not(.btn) {
        padding: 8px 6px;
    }

    .site-nav {
        margin-left: 8px;
    }
}

@media (max-width: 479px) {
    .btn-contact {
        width: 40px;
        padding: 0;
    }

    .btn-contact span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* Aparência (popover) */

.appearance {
    position: relative;
}

.popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    z-index: 60;
}

@media (max-width: 559px) {
    .popover {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.popover-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 4px 0 8px;
}

.popover .palette-list {
    max-height: 280px;
    overflow-y: auto;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.segmented button {
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.segmented button:last-child {
    border-right: 0;
}

.segmented button[aria-pressed="true"] {
    background: var(--accent-tint);
    color: var(--accent-text);
}

.palette-list {
    display: grid;
    gap: 4px;
}

.palette-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.palette-option:hover {
    background: var(--bg-subtle);
}

.palette-option[aria-pressed="true"] {
    border-color: var(--accent);
    font-weight: 600;
}

.palette-option .samples {
    display: flex;
    gap: 4px;
    flex: none;
}

.sample {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
}

.sample-accent {
    background: var(--sw);
    border-color: transparent;
}

.sample-tint {
    background: color-mix(in srgb, var(--sw) 12%, #ffffff);
}

.sample-text {
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--sw);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sample-tint {
        background: color-mix(in srgb, var(--sw) 22%, #181d25);
    }

    :root:not([data-theme="light"]) .sample-text {
        background: #181d25;
    }
}

:root[data-theme="dark"] .sample-tint {
    background: color-mix(in srgb, var(--sw) 22%, #181d25);
}

:root[data-theme="dark"] .sample-text {
    background: #181d25;
}

/* Hero */

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

.hero .eyebrow {
    margin-bottom: 16px;
}

.hero h1 {
    margin-top: 0;
}

.hero .lead {
    margin-top: 16px;
}

@media (min-width: 768px) {
    .hero {
        padding: 72px 0;
    }

    .hero h1 {
        font-size: 40px;
        max-width: 32ch;
    }
}

/* Quadro de captura (navegador simples) */

.frame {
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.frame img {
    width: 100%;
}

.frame-bar {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-faint);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* Duas colunas: texto + mídia */

.split {
    display: grid;
    gap: 32px;
    align-items: start;
}

.split-media {
    min-width: 0;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 56px;
        align-items: center;
    }
}

.split-copy > p:not(.eyebrow) {
    margin-top: 16px;
    color: var(--text-muted);
}

/* Lista numerada */

.numbered {
    list-style: none;
    counter-reset: passo;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
}

.numbered li {
    counter-increment: passo;
    position: relative;
    padding: 14px 0 14px 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

.numbered li:last-child {
    border-bottom: 1px solid var(--border);
}

.numbered li::before {
    content: counter(passo, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-faint);
}

.numbered li strong {
    color: var(--text);
    font-weight: 600;
}

.split-media .phone {
    width: min(220px, 60%);
    margin-top: 16px;
}

@media (min-width: 1100px) {
    .split-media:has(.phone) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 16px;
        align-items: end;
    }

    .split-media .phone {
        width: 100%;
        margin-top: 0;
    }
}

/* Dados do painel (lista em duas colunas) */

.data-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0 0 0;
    display: grid;
    border-bottom: 1px solid var(--border);
}

.data-list li {
    display: grid;
    gap: 2px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.data-list strong {
    font-weight: 600;
    font-size: 15px;
}

.data-list span {
    font-size: 14px;
    color: var(--text-muted);
}

@media (min-width: 760px) {
    .data-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }
}

/* Abas */

.tabs {
    display: flex;
    gap: 4px;
    margin-top: 32px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.tab:hover {
    color: var(--text);
}

.tab[aria-selected="true"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.tab-panels {
    margin-top: 24px;
}

/* Tabela de dados */

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.data-table td:first-child {
    font-weight: 600;
}

.data-table td:last-child {
    color: var(--text-muted);
}

/* Lista de verificação (marca) */

.checklist {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checklist li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.palette-title {
    margin-top: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.split-copy .palette-list {
    margin-top: 12px;
}

/* Prévia da marca */

.preview {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.preview-header strong {
    font-weight: 600;
    margin-right: auto;
}

.preview-links {
    color: var(--text-muted);
    font-size: 13px;
}

.preview-header .btn-primary {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.preview-body {
    padding: 16px;
    background: var(--bg-subtle);
}

.prop-card {
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.prop-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-subtle);
    overflow: hidden;
}

/* Recorte do quadro central da captura imovel.webp (1440x900), sem distorção */
.prop-photo {
    position: absolute;
    left: -51.6%;
    top: -57.7%;
    width: 203%;
    aspect-ratio: 1440 / 900;
    background: url("../img/imovel.webp") no-repeat;
    background-size: 100% 100%;
}

.prop-compare {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 8px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text);
}

.prop-compare input {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}

.prop-fav {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
}

.prop-fav svg {
    width: 20px;
    height: 20px;
}

.prop-body {
    padding: 12px 14px 14px;
}

.prop-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.prop-price {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.prop-address {
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-data {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.prop-data li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prop-data svg {
    width: 16px;
    height: 16px;
    color: var(--text-faint);
}

.prop-foot {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.prop-foot .is-fresh {
    color: var(--success);
}

/* Código */

.code-block {
    margin-top: 32px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    overflow: hidden;
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 6px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.code-block pre {
    margin: 0;
    padding: 14px 16px;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-block code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

/* Simulação */

.calc {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.calc-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.field input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-tint);
}

.field input[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    font-size: 13px;
    color: var(--danger);
}

.results {
    margin: 0;
    display: grid;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.results > div {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.results > div:last-child {
    border-bottom: 0;
}

.results dt {
    font-size: 13px;
    color: var(--text-muted);
}

.results dd {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

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

@media (min-width: 560px) {
    .calc-form {
        grid-template-columns: 1fr 1fr;
    }
}

/* FAQ */

.faq {
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    position: relative;
    display: block;
    padding: 16px 32px 16px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: translateY(-75%) rotate(45deg);
}

.faq details[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.faq summary:hover {
    color: var(--accent-text);
}

.faq details p {
    padding: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Chamada final */

.final-cta {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.final-cta h2 {
    max-width: 24ch;
}

.final-cta p {
    margin-top: 12px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .final-cta {
        padding: 72px 0;
    }
}

/* Rodapé */

.site-footer {
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    font-size: 13px;
}

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

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

.footer-title {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.site-footer ul a {
    color: var(--text-muted);
}

.site-footer ul a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-muted);
}

/* Botão fixo do WhatsApp (celular) */

.fab-contact {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-pop);
}

.fab-contact:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
    text-decoration: none;
}

.fab-contact svg {
    width: 20px;
    height: 20px;
}

body {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .fab-contact {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* Cor dinâmica: fundos, bordas e faixas derivados da paleta escolhida (mesma lógica do site v2) */

:root {
    --bg: color-mix(in srgb, var(--accent) 3%, #fff);
    --bg-subtle: color-mix(in srgb, var(--accent) 9%, #fff);
    --surface: color-mix(in srgb, var(--accent) 1%, #fff);
    --border: color-mix(in srgb, var(--accent) 16%, #e5e7eb);
    --border-strong: color-mix(in srgb, var(--accent) 28%, #cfd4dc);
    --text-muted: color-mix(in srgb, var(--accent) 12%, #566070);
    --accent-deep: color-mix(in srgb, var(--accent) 62%, #05070b);
    --accent-deep-2: color-mix(in srgb, var(--accent) 46%, #05070b);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: color-mix(in srgb, var(--accent) 7%, #0a0d12);
        --bg-subtle: color-mix(in srgb, var(--accent) 14%, #0a0d12);
        --surface: color-mix(in srgb, var(--accent) 11%, #0f131a);
        --border: color-mix(in srgb, var(--accent) 24%, #1a2029);
        --border-strong: color-mix(in srgb, var(--accent) 36%, #262d38);
        --text-muted: color-mix(in srgb, var(--accent) 10%, #a8b0bd);
        --accent-deep: color-mix(in srgb, var(--accent) 50%, #05070b);
        --accent-deep-2: color-mix(in srgb, var(--accent) 36%, #05070b);
    }
}

:root[data-theme="dark"] {
    --bg: color-mix(in srgb, var(--accent) 7%, #0a0d12);
    --bg-subtle: color-mix(in srgb, var(--accent) 14%, #0a0d12);
    --surface: color-mix(in srgb, var(--accent) 11%, #0f131a);
    --border: color-mix(in srgb, var(--accent) 24%, #1a2029);
    --border-strong: color-mix(in srgb, var(--accent) 36%, #262d38);
    --text-muted: color-mix(in srgb, var(--accent) 10%, #a8b0bd);
    --accent-deep: color-mix(in srgb, var(--accent) 50%, #05070b);
    --accent-deep-2: color-mix(in srgb, var(--accent) 36%, #05070b);
}

body {
    transition: background-color 0.25s ease;
}

.section:nth-of-type(even) {
    background: var(--bg-subtle);
}

.hero,
.final-cta,
.site-footer {
    --text: #fff;
    --text-muted: rgba(255, 255, 255, 0.78);
    --text-faint: rgba(255, 255, 255, 0.62);
    --border: rgba(255, 255, 255, 0.2);
    --accent-text: #fff;
    color: #fff;
    border-top: 0;
}

.hero {
    background: linear-gradient(180deg, var(--accent-deep), var(--accent-deep-2));
    padding-bottom: 72px;
}

.final-cta {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-deep-2));
}

.site-footer {
    background: var(--accent-deep-2);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.hero .btn-primary,
.final-cta .btn-primary {
    background: #fff;
    border-color: #fff;
    color: var(--accent-deep);
}

.hero .btn-primary:hover,
.final-cta .btn-primary:hover {
    background: color-mix(in srgb, #fff 90%, var(--accent));
}

.hero .btn-secondary,
.final-cta .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.hero .btn-secondary:hover,
.final-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-footer a,
.site-footer ul a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
    color: #fff;
}

.frame {
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 18%, transparent);
}

.data-list li,
.prop-card,
.calc,
.code-block {
    background: var(--surface);
}

.hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero-points {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-points li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fde68a;
    vertical-align: middle;
}

.lead-card {
    margin: 0;
    max-width: 440px;
    padding: 20px 24px 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: #1c1917;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lead-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #5b6472;
}

.lead-chip {
    padding: 2px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.lead-name {
    margin: 12px 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.lead-data {
    margin: 0;
    display: grid;
}

.lead-data div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e3e6eb;
    font-size: 14px;
}

.lead-data dt {
    color: #5b6472;
}

.lead-data dd {
    margin: 0;
}

.lead-whats {
    display: block;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: #15803d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.lead-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #5b6472;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 64px;
    }

    .lead-card {
        justify-self: end;
        width: 100%;
    }
}

/* Painel: cartões com ícone */

.feature-grid {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.feature-card strong {
    font-size: 16px;
    font-weight: 650;
    color: var(--text);
}

.feature-card .feature-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.feature-card .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    color: var(--accent-text);
    transition: background .18s ease, color .18s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: #fff;
}

.feature-card--destaque {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-card .feature-icon {
        transition: none;
    }

    .feature-card:hover {
        transform: none;
    }
}

/* Simulação: cartão único com resultado em destaque */

.calc {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.calc-form {
    padding: 28px;
    align-content: center;
}

.calc .field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.calc .field input {
    min-height: 46px;
    font-size: 17px;
    font-weight: 600;
    background: var(--bg-subtle);
    border-color: var(--border);
}

.calc .field input:focus {
    background: var(--surface);
}

.calc .results {
    --text: #fff;
    --text-muted: rgba(255, 255, 255, .72);
    gap: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(160deg, var(--accent-deep), var(--accent-deep-2));
    color: #fff;
}

.calc .results > div {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.calc .results > div:last-child {
    padding: 26px 28px 30px;
    border-bottom: 0;
    background: rgba(255, 255, 255, .08);
}

.calc .results dd {
    font-size: 28px;
}

.calc .results > div:last-child dd {
    font-size: 40px;
    letter-spacing: -.01em;
}

@media (min-width: 900px) {
    .calc {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
    }

    .calc .results {
        align-content: stretch;
        grid-template-rows: 1fr 1fr 1.3fr;
    }

    .calc .results > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .calc-form {
        padding: 20px;
    }

    .calc .results > div,
    .calc .results > div:last-child {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Celular: botões de chamada em largura total e barra fixa com área segura */

@media (max-width: 560px) {
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn {
        justify-content: center;
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .fab-contact {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        transition: opacity .2s ease, transform .2s ease;
    }

    .fab-contact.is-hidden {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
    }

    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

/* Planos */

.plan-grid {
    display: grid;
    gap: 16px;
    margin-top: 32px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (min-width: 1100px) {
    .plan-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.plan {
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.plan--destaque {
    border-color: var(--accent);
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent);
}

.plan h3 {
    font-size: 20px;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    font-size: 12px;
    font-weight: 600;
}

.plan-for {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin: 4px 0 8px;
    white-space: nowrap;
}

.plan-price strong {
    font-size: min(38px, 12.5cqi);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-price s {
    flex-basis: 100%;
    color: var(--text-muted);
    font-size: 16px;
}

.plan-promo {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.plan-price span {
    color: var(--text-muted);
}

.plan-list {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 10px;
    margin: 0 0 12px;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    font-size: 15px;
}

.plan-list li {
    position: relative;
    padding-left: 24px;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 5px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--accent-text);
    border-bottom: 2px solid var(--accent-text);
    transform: rotate(-45deg);
}

.plan .btn {
    justify-content: center;
}

.plan-extras {
    display: grid;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
}

@media (min-width: 700px) {
    .plan-extras {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }
}

.plan-extras strong {
    color: var(--text);
}
