/* ==========================================================================
   SEGURALTA | LANDING PAGE SEGURO AUTO
   Organização: 1. Fonte · 2. Tokens · 3. Base · 4. Utilitários · 5. Botões
   6. Cabeçalho · 7. Hero · 8. Formulário · 9. Seções · 10. Rodapé
   11. Barra fixa (celular) · 12. Animações · 13. Breakpoints
   CSS pensado primeiro para o celular; telas maiores ficam nos @media do fim.
   ========================================================================== */

/* 1. FONTE (Outfit variável, hospedada no próprio site: 1 arquivo para todos os pesos) */
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* 2. TOKENS DE DESIGN */
:root {
    /* Marca */
    --orange: #FF6400;          /* laranja da marca: destaques e ícones */
    --orange-strong: #C94C00;   /* laranja dos botões: contraste 4.6:1 com texto branco */
    --orange-hover: #A93F00;
    --orange-soft: #FFF1E8;
    --navy: #1C3240;            /* azul da marca */
    --navy-800: #142734;
    --navy-900: #0C1A23;

    /* Neutros */
    --text: #1E2B36;
    --text-muted: #5B6B7A;
    --text-on-dark: #FFFFFF;
    --text-on-dark-muted: #A9B8C6;
    --bg: #FFFFFF;
    --bg-muted: #F5F7F9;
    --border: #E2E8EE;
    --border-input: #7F8EA0;

    /* Estados */
    --error: #B42318;
    --success: #15803D;
    --whatsapp: #0B7A4B;
    --whatsapp-hover: #08623C;

    /* Tipografia */
    --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-h3: 1.1875rem;
    --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
    --fs-h1: clamp(2rem, 1.35rem + 2.8vw, 3.4rem);

    /* Espaçamento e layout */
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-space: clamp(4rem, 3rem + 5vw, 7rem);
    --header-height: 72px;

    /* Forma e profundidade */
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(12, 26, 35, 0.06), 0 2px 8px rgba(12, 26, 35, 0.05);
    --shadow: 0 10px 30px -12px rgba(12, 26, 35, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(12, 26, 35, 0.45);
    --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--orange);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 6px;
}

::selection {
    background: var(--orange);
    color: #FFFFFF;
}

/* 4. UTILITÁRIOS E ELEMENTOS COMPARTILHADOS */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(820px + var(--gutter) * 2);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.icon-sprite {
    display: none;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.text-accent {
    color: var(--orange);
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--navy);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus-visible {
    transform: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-strong);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--orange);
}

.hide-mobile {
    display: none;
}

.site-header__actions .site-header__cta {
    display: none;
}

/* 5. BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:active {
    transform: translateY(1px);
}

.btn--sm {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}

.btn--lg {
    min-height: 56px;
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn--block {
    width: 100%;
}

.btn--icon {
    width: 52px;
    min-height: 52px;
    padding: 0;
}

.btn--icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.btn--primary {
    background-color: var(--orange-strong);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -8px rgba(201, 76, 0, 0.6);
}

.btn--primary:hover {
    background-color: var(--orange-hover);
}

.btn--secondary {
    background-color: var(--bg-muted);
    border-color: var(--border);
    color: var(--navy);
}

.btn--secondary:hover {
    border-color: var(--navy);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding-inline: 0.75rem;
}

.btn--ghost:hover {
    color: var(--navy);
}

.btn--whatsapp {
    background-color: var(--whatsapp);
    color: #FFFFFF;
}

.btn--whatsapp:hover {
    background-color: var(--whatsapp-hover);
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

.btn--outline-light:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.icon--whatsapp {
    color: var(--whatsapp);
}

/* 6. CABEÇALHO */
.site-header {
    position: fixed;
    inset: 0.625rem 0 auto;
    z-index: 100;
    padding-inline: 0.625rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--container);
    height: 60px;
    margin-inline: auto;
    padding: 0 0.5rem 0 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
}

.site-header__logo img {
    width: auto;
    height: 36px;
}

.site-nav {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
    color: var(--navy);
    background-color: var(--bg-muted);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 7. HERO */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-height) + 1.5rem) 0 3rem;
    color: var(--text-on-dark);
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(255, 100, 0, 0.22) 0%, transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(12, 26, 35, 0.94) 0%, rgba(20, 39, 52, 0.85) 45%, rgba(28, 50, 64, 0.55) 100%);
}

.hero__grid {
    display: grid;
    gap: 1.75rem;
    grid-template-areas:
        "intro"
        "form"
        "points";
}

.hero__intro {
    grid-area: intro;
}

.hero__title {
    margin: 0.875rem 0 1rem;
    font-size: var(--fs-h1);
    font-weight: 800;
    color: inherit;
}

.hero__lead {
    max-width: 34rem;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    color: var(--text-on-dark-muted);
}

.hero__points {
    grid-area: points;
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.hero__points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.hero__points .icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--orange);
}

/* 8. FORMULÁRIO DE COTAÇÃO */
.quote-card {
    grid-area: form;
    position: relative;
    padding: 1.5rem 1.25rem;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.quote-card__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.quote-card__subtitle {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.progress {
    margin: 1.25rem 0 1.25rem;
}

.progress__labels {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress__track {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-muted);
    overflow: hidden;
}

.progress__bar {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange-strong), var(--orange));
    transition: width 0.4s var(--ease);
}

.quote-card[data-current-step="2"] .progress__bar {
    width: 100%;
}

/* Sem JavaScript: as duas etapas aparecem juntas e a barra de progresso some */
html:not(.js) .progress,
html:not(.js) [data-step-next],
html:not(.js) [data-step-prev] {
    display: none;
}

.form-step {
    border: 0;
    min-width: 0;
}

html:not(.js) .form-step + .form-step {
    margin-top: 1rem;
}

.js .form-step:not(.is-active) {
    display: none;
}

.js .form-step.is-active {
    animation: step-in 0.35s var(--ease);
}

@keyframes step-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

.field {
    margin-bottom: 1rem;
    border: 0;
    min-width: 0;
}

.field__label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
}

.field__optional {
    font-weight: 400;
    color: var(--text-muted);
}

.field__input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    font-size: 1rem; /* 16px evita o zoom automático do iPhone */
    background: var(--bg);
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder {
    color: #8C99A6;
}

.field__input--upper {
    text-transform: uppercase;
}

.field__input:hover {
    border-color: var(--navy);
}

.field__input:focus-visible {
    border-color: var(--orange-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 4px rgba(255, 100, 0, 0.18);
}

.field__input.is-valid {
    border-color: var(--success);
}

.field__input.is-invalid {
    border-color: var(--error);
}

.field__help {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.field__error {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--error);
}

.field__error:not(:empty) {
    margin-top: 0.375rem;
}

.choice-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 52px;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.choice:hover {
    border-color: var(--navy);
}

.choice input {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--orange-strong);
    cursor: pointer;
}

.choice input:focus-visible {
    box-shadow: var(--focus-ring);
    border-radius: 50%;
}

.choice:has(input:checked) {
    border-color: var(--orange-strong);
    background-color: var(--orange-soft);
    color: var(--orange-strong);
}

.field--choice.is-invalid .choice {
    border-color: var(--error);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.form-actions .btn--primary {
    flex: 1;
    padding-inline: 1rem;
}

.quote-form__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.quote-form__note .icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    color: var(--success);
}

.quote-success {
    padding: 1rem 0 0.25rem;
    text-align: center;
    animation: step-in 0.35s var(--ease);
}

.quote-success:focus-visible {
    box-shadow: none;
}

.quote-success__icon {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #DCFCE7;
    color: var(--success);
}

.quote-success__icon .icon {
    width: 2rem;
    height: 2rem;
}

.quote-success__title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.quote-success p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.quote-success .quote-success__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
}

/* 9. SEÇÕES */
.section {
    padding-block: var(--section-space);
}

.section--muted {
    background-color: var(--bg-muted);
}

.section--dark {
    background:
        radial-gradient(80% 60% at 0% 100%, rgba(255, 100, 0, 0.12) 0%, transparent 60%),
        var(--navy-800);
    color: var(--text-on-dark);
}

.section--dark .section-title,
.section--dark h3 {
    color: var(--text-on-dark);
}

.section--dark .section-lead,
.section--dark p:not(.eyebrow) {
    color: var(--text-on-dark-muted);
}

.section-header {
    max-width: 40rem;
    margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.5rem);
    text-align: center;
}

.section-title {
    margin-top: 0.75rem;
    font-size: var(--fs-h2);
    font-weight: 800;
}

.section-lead {
    margin-top: 1rem;
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* 9.1 Confiança: números e seguradoras */
.trust {
    padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
    border-bottom: 1px solid var(--border);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
}

.stats__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--bg);
    text-align: center;
}

.stats dd {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.stats__plus {
    color: var(--orange);
}

.stats dt {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.insurers {
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    text-align: center;
}

.insurers__title {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
}

.insurers__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    list-style: none;
}

.insurers__list img {
    width: auto;
    height: 32px;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s, opacity 0.3s;
}

.insurers__list img:hover {
    filter: none;
    opacity: 1;
}

.insurers__more {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border: 1px dashed var(--border-input);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--navy);
}

/* 9.2 Como funciona */
.steps {
    display: grid;
    gap: 1rem;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step__icon,
.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange-strong);
}

.step__icon .icon,
.feature__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.step__number {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange-strong);
}

.step__title,
.feature__title {
    margin: 0.375rem 0 0.5rem;
    font-size: var(--fs-h3);
    font-weight: 700;
}

.step p,
.feature p {
    color: var(--text-muted);
}

/* 9.3 Coberturas */
.features {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.feature {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.feature__title {
    margin-top: 1.125rem;
}

.features__note {
    margin-top: 1.5rem;
    font-size: var(--fs-sm);
    text-align: center;
    color: var(--text-muted);
}

/* 9.4 Por que a Seguralta */
.why {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.why__content .section-title,
.why__content .section-lead {
    max-width: 36rem;
}

.why__list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.25rem;
    list-style: none;
}

.why__item {
    display: flex;
    gap: 1rem;
}

.why__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--orange);
}

.why__item h3 {
    margin-bottom: 0.25rem;
    font-size: var(--fs-md);
    font-weight: 700;
}

.why__media {
    position: relative;
}

.why__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--navy);
}

.why__badge {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.why__badge .icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--orange-strong);
}

.why__badge strong {
    color: var(--navy);
}

/* 9.5 Depoimentos */
.testimonials {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.testimonial figure {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial__quote {
    width: 2rem;
    height: 2rem;
    color: var(--orange);
    opacity: 0.85;
}

.testimonial blockquote {
    flex: 1;
    margin: 1rem 0 1.5rem;
    color: var(--text);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    line-height: 1.35;
}

.testimonial__author strong {
    display: block;
    color: var(--navy);
}

/* Serve tanto para <img> (foto do cliente) quanto para <span> (iniciais) */
.testimonial__photo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--orange-soft);
    color: var(--orange-strong);
    font-weight: 700;
}

.testimonial__meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* 9.6 Perguntas frequentes */
.faq {
    display: grid;
    gap: 0.75rem;
}

.faq__item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
    border-color: var(--border-input);
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 1rem 1.25rem;
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
    border-radius: var(--radius);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary .icon {
    color: var(--orange-strong);
    transition: transform 0.3s var(--ease);
}

.faq__item[open] summary .icon {
    transform: rotate(180deg);
}

.faq__item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
}

/* 9.7 Chamada final */
.final-cta {
    padding-top: 0;
    padding-bottom: clamp(1rem, 0.5rem + 2vw, 2rem);
    background: linear-gradient(var(--bg-muted) 50%, var(--navy-900) 50%);
}

.final-cta__box {
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3vw, 4rem);
    text-align: center;
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(255, 100, 0, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
    box-shadow: var(--shadow-lg);
}

.final-cta__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: inherit;
}

.final-cta__text {
    margin-top: 0.75rem;
    font-size: var(--fs-md);
    color: var(--text-on-dark-muted);
}

.final-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* 10. RODAPÉ */
.site-footer {
    padding: 1rem 0 calc(2rem + 76px); /* espaço para a barra fixa do celular */
    background: var(--navy-900);
    color: var(--text-on-dark-muted);
    font-size: 0.9375rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-block: 2.5rem;
}

.site-footer__logo {
    width: auto;
    height: 44px;
    margin-bottom: 1rem;
}

.site-footer address {
    margin-top: 0.75rem;
    font-style: normal;
}

.site-footer__title {
    margin-bottom: 1rem;
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-on-dark);
}

.site-footer ul {
    display: grid;
    gap: 0.625rem;
    list-style: none;
}

.site-footer a,
.site-footer__info {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #FFFFFF;
}

.site-footer .icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    color: var(--orange);
}

.site-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-sm);
}

/* 11. BARRA DE AÇÃO FIXA (CELULAR) */
.mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: flex;
    gap: 0.625rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -12px rgba(12, 26, 35, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
}

.mobile-cta.is-visible {
    transform: none;
}

.mobile-cta .btn--primary {
    min-height: 52px;
}

/* 12. ANIMAÇÕES (apenas com JavaScript ativo e sem preferência por movimento reduzido) */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    }

    .js .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    .feature:hover {
        transform: translateY(-4px);
        border-color: #F5C6A5;
        box-shadow: var(--shadow);
    }

    .btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px -10px rgba(201, 76, 0, 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 13. BREAKPOINTS */

/* Celulares grandes e tablets pequenos */
@media (min-width: 640px) {
    .hide-mobile {
        display: inline;
    }

    .site-header__actions .site-header__cta {
        display: inline-flex;
    }

    .site-header__logo img {
        height: 40px;
    }

    .quote-card {
        padding: 2rem;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats__item {
        padding: 1.75rem 1rem;
    }

    .insurers__list img {
        height: 38px;
    }

    .features,
    .testimonials {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-cta__actions {
        flex-direction: row;
        justify-content: center;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Tablets na horizontal e notebooks */
@media (min-width: 960px) {
    :root {
        --header-height: 80px;
    }

    .site-header {
        inset: 1rem 0 auto;
        padding-inline: 1.5rem;
    }

    .site-header__inner {
        height: 68px;
        padding: 0 0.75rem 0 1.5rem;
    }

    .site-header__logo img {
        height: 44px;
    }

    .hero {
        display: flex;
        align-items: center;
        min-height: min(100svh, 920px);
        padding: calc(var(--header-height) + 3rem) 0 4rem;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "intro form"
            "points form";
        column-gap: clamp(2.5rem, 5vw, 5rem);
        row-gap: 2.5rem;
        align-items: center;
    }

    .hero__intro {
        align-self: end;
    }

    .hero__points {
        align-self: start;
    }

    .hero__lead {
        font-size: 1.25rem;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Linha que conecta os passos */
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: calc(1.75rem + 1.5rem);
        left: calc(1.5rem + 3rem + 1rem);
        right: -1.5rem;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--border-input) 0 6px, transparent 6px 12px);
        opacity: 0.5;
    }

    .features,
    .testimonials {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .why {
        grid-template-columns: 1.1fr 0.9fr;
        gap: clamp(3rem, 6vw, 6rem);
    }

    .why__media img {
        aspect-ratio: 4 / 5;
    }

    .why__badge {
        left: -1.5rem;
        right: auto;
        bottom: 2rem;
        max-width: 18rem;
    }

    .site-footer {
        padding-bottom: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        padding-block: 3.5rem 3rem;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    /* A barra fixa é exclusiva do celular */
    .mobile-cta {
        display: none;
    }
}

/* Notebooks maiores e desktops: navegação completa */
@media (min-width: 1100px) {
    .site-nav {
        display: block;
    }
}

/* Monitores grandes */
@media (min-width: 1600px) {
    :root {
        --container: 1280px;
    }
}