/* Padronização de frota: palco dividido (split stage).
   Tokens e componentes vêm do identidade.css; aqui só a estrutura desta página.
   Dois modos:
   - html.fp-vivo: o palco fica preso na tela; o divisor anda com a rolagem e a frota sem padrão encaixa no gabarito.
   - sem a classe (movimento reduzido ou sem JS): o mesmo conteúdo vira uma tabela de pares, um par por linha. */

.fp-palco { --fp-pad: var(--pc-margem); --fp-texto-top: 6.25rem; --fp-d: .5; --fp-cheio: 0; }

/* ------------------------------------------------------------ texto comum */
.fp-h1 { margin: 0 0 1.1rem; font: 700 var(--pc-t-h1)/1.04 var(--pc-display); letter-spacing: -.025em; text-wrap: balance; }
.fp-h1 em { font-style: normal; color: var(--pc-amarelo); }
.fp-lide { margin: 0 0 1.6rem; max-width: 34em; font-size: var(--pc-t-lede); line-height: 1.5; color: var(--pc-tinta-suave); text-wrap: pretty; }
.fp-h2 { margin: 0 0 .85rem; max-width: 15em; font: 700 var(--pc-t-titulo)/1.06 var(--pc-display); letter-spacing: -.02em; text-wrap: balance; }
.fp-texto p:not(.fp-lide) { margin: 0; max-width: 34em; font-size: var(--pc-t-corpo); line-height: 1.55; color: var(--pc-tinta-suave); text-wrap: pretty; }
.fp-texto .pc-btn { margin-top: 0; }
.fp-texto--fim .pc-btn { margin-top: 1.6rem; }
/* O lado do padrão fala mais alto que o outro: a balança já pende para ele. */
.fp-a .fp-h2 { font-size: var(--pc-t-h1); line-height: 1.04; letter-spacing: -.025em; }
.fp-b { color: var(--pc-preto); }
.fp-b .fp-texto p { color: var(--pc-tinta-papel); }

/* ------------------------------------------------------------ a ilustração da frota */
.fp-frota { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); row-gap: .35rem; }
.fp-linha { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 1rem; align-items: center; min-height: 0; }
.fp-rotulo { margin: 0; font: 500 .8rem/1.3 var(--pc-texto); color: var(--pc-tinta-papel); }
.fp-rotulo b { display: block; font: 700 .92rem/1.25 var(--pc-display); color: var(--pc-preto); }
.fp-troca { display: grid; }
.fp-troca > span { grid-area: 1 / 1; }
.fp-troca__depois { opacity: 0; }
.fp-veiculo { height: 100%; min-height: 0; transform-origin: 100% 92%; }
.fp-veiculo svg { width: 100%; height: 100%; overflow: visible; }

.fp-corpo { fill: var(--pc-papel); stroke: var(--pc-preto); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fp-chassi { fill: var(--pc-preto); }
.fp-vidro { fill: color-mix(in oklab, var(--pc-preto) 14%, transparent); stroke: var(--pc-preto); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fp-friso { fill: none; stroke: var(--pc-preto); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; }
.fp-roda circle { fill: var(--pc-preto); }
.fp-roda .fp-cubo { fill: var(--pc-papel); }
.fp-chao { stroke: var(--pc-preto); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; opacity: .4; }
.fp-gabarito { fill: none; stroke: var(--pc-preto); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; opacity: 0; }
.fp-encaixou { stroke-dasharray: none; }
.fp-m { fill: var(--pc-preto); }
#fp-hachura rect { fill: var(--pc-preto); }
.fp-m__hachura { fill: url(#fp-hachura); }
.fp-m--2 .fp-m__solida, .fp-m--3 .fp-m__solida { opacity: 0; }
.fp-m--3 { opacity: .42; }
/* A bagunça de partida: cada marca num lugar, num tamanho e num tom; cada veículo fora do alinhamento. */
.fp-m--1 { transform: translate(190px, 49px) scale(.62) translate(-340px, -89px); }
.fp-m--2 { transform: translate(285px, 81px) scale(1.42) translate(-340px, -89px); }
.fp-m--3 { transform: translate(328px, 93px) scale(.86) translate(-340px, -89px); }
.fp-veiculo--1 { transform: translate(-3%, 0) rotate(-1.8deg); }
.fp-veiculo--2 { transform: translate(5%, -4%) rotate(1.4deg) scale(.95); }
.fp-veiculo--3 { transform: translate(-1.5%, 5%) rotate(-1deg); }

/* A mesma frota do lado do padrão: encaixada, em tinta clara, marca em amarelo. */
.fp-frota--padrao .fp-veiculo, .fp-frota--padrao .fp-m { transform: none !important; }
.fp-frota--padrao .fp-corpo { fill: var(--pc-preto-2); stroke: color-mix(in oklab, var(--pc-tinta) 72%, transparent); }
.fp-frota--padrao .fp-chassi { fill: color-mix(in oklab, var(--pc-tinta) 30%, transparent); }
.fp-frota--padrao .fp-vidro { fill: color-mix(in oklab, var(--pc-tinta) 10%, transparent); stroke: color-mix(in oklab, var(--pc-tinta) 50%, transparent); }
.fp-frota--padrao .fp-friso { stroke: var(--pc-tinta); }
.fp-frota--padrao .fp-roda circle { fill: var(--pc-preto); stroke: color-mix(in oklab, var(--pc-tinta) 60%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fp-frota--padrao .fp-roda .fp-cubo { fill: var(--pc-tinta-suave); stroke: none; }
.fp-frota--padrao .fp-chao { stroke: var(--pc-tinta); stroke-dasharray: none; opacity: .3; }
.fp-frota--padrao .fp-gabarito { stroke: var(--pc-amarelo); stroke-dasharray: none; opacity: .5; }
.fp-frota--padrao .fp-m { fill: var(--pc-amarelo); opacity: 1; }
.fp-frota--padrao .fp-m__solida { opacity: 1; }
.fp-frota--padrao .fp-m__hachura, .fp-frota--padrao .fp-m__velha { opacity: 0; }
.fp-frota--padrao .fp-rotulo { color: var(--pc-tinta-suave); }
.fp-frota--padrao .fp-rotulo b { color: var(--pc-tinta); }
.fp-frota--padrao .fp-troca__antes { opacity: 0; }
.fp-frota--padrao .fp-troca__depois { opacity: 1; }

/* Papel quadriculado do lado sem padrão: o plano do fundo. */
.fp-quadricula, html:not(.fp-vivo) .fp-b {
  background-color: var(--pc-papel);
  background-image:
    linear-gradient(color-mix(in oklab, var(--pc-preto) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--pc-preto) 9%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in oklab, var(--pc-preto) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--pc-preto) 4%, transparent) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* =========================================================== modo vivo */
.fp-vivo .fp-split { position: relative; }
.fp-vivo .fp-palco { height: 100vh; height: 100svh; overflow: clip; }
.fp-vivo .fp-camada { position: absolute; inset: 0; will-change: clip-path; }
.fp-vivo .fp-camada--a { z-index: 1; background: var(--pc-preto); clip-path: inset(0 calc(100% - var(--fp-d) * 100%) 0 0); }
.fp-vivo .fp-camada--b { z-index: 2; background: var(--pc-papel); clip-path: inset(0 0 0 calc(var(--fp-d) * 100%)); }
.fp-vivo .fp-quadricula { position: absolute; inset: -6rem 0; transform: translate3d(0, calc(var(--sc-p, 0) * -5.5rem), 0); }
.fp-vivo .fp-par { position: absolute; inset: 0; pointer-events: none; }
/* Só a marca é clicável fora das legendas; o motor liga e desliga o clique de cada legenda conforme ela aparece. */
.fp-vivo .fp-par .pc-marca { pointer-events: auto; }
.fp-vivo .pc-marca { position: absolute; top: 1.1rem; left: var(--fp-pad); }

.fp-vivo .fp-a .fp-texto { position: absolute; top: var(--fp-texto-top); left: var(--fp-pad); width: calc(50% - var(--fp-pad) * 2); }
.fp-vivo .fp-a .fp-foto { position: absolute; left: var(--fp-pad); width: calc(50% - var(--fp-pad) * 2); top: var(--fp-foto-top, 62%); bottom: 1.4rem; display: flex; flex-direction: column; background: var(--pc-preto); }
/* A foto nunca é cortada: fica 2:1 na largura toda e, se faltar altura, diminui inteira (contain), com a legenda logo abaixo. */
.fp-vivo .fp-a .fp-foto img { flex: none; width: min(100%, calc(var(--fp-foto-h) * 2)); height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
/* No computador o título da abertura é menor, para a primeira foto caber no mesmo tamanho das outras. */
@media (min-width: 861px) { .fp-vivo .fp-a1 .fp-h1 { font-size: clamp(1.9rem, 2.9vw, 2.5rem); margin-bottom: .6rem; } }
.fp-vivo .fp-a .fp-foto figcaption { transition: opacity 160ms ease-out; }
.fp-vivo .fp-sem-foto .fp-a .fp-foto { display: none; }
.fp-vivo .fp-texto--fim { top: 50% !important; translate: 0 -50%; }
.fp-vivo .fp-b .fp-texto { position: absolute; top: var(--fp-texto-top); left: calc(50% + var(--fp-pad)); right: var(--fp-pad); }
.fp-vivo .fp-frota { position: absolute; left: calc(50% + var(--fp-pad)); right: var(--fp-pad); top: var(--fp-frota-top, 44%); bottom: 1.4rem; }

/* O divisor: uma caixa do tamanho do palco cuja borda direita (no celular, a de baixo) é a costura. */
.fp-divisor { display: none; }
.fp-vivo .fp-divisor { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; transform: translate3d(calc((var(--fp-d) - 1) * 100%), 0, 0); }
.fp-divisor__linha { position: absolute; top: 0; bottom: 0; right: -2px; width: 4px; background: var(--pc-tinta-papel); }
.fp-divisor__cheio { position: absolute; inset: 0; background: var(--pc-amarelo); transform-origin: 50% 0; transform: scaleY(var(--fp-cheio)); }
.fp-divisor__lado { position: absolute; top: 1.1rem; display: flex; align-items: center; gap: 1.1rem; min-height: var(--pc-toque); }
.fp-divisor__lado--um { right: 1.25rem; }
.fp-divisor__lado--sem { left: calc(100% + 1.25rem); }
.fp-divisor__rotulo { font: 700 .78rem/1 var(--pc-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fp-divisor__lado--um .fp-divisor__rotulo { color: var(--pc-amarelo); }
.fp-divisor__lado--sem .fp-divisor__rotulo { color: var(--pc-preto); }
.fp-divisor__cta { pointer-events: auto; transition: opacity 160ms ease-out, visibility 0s linear 0s; }
.fp-divisor__cta[data-oculto] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms ease-out, visibility 0s linear 160ms; }

/* ------------------------------------------------------------ celular: o split empilha, o divisor vira barra */
@media (max-width: 860px) {
  .fp-palco { --fp-pad: 1rem; --fp-texto-top: 3.85rem; --fp-d: .62; --fp-barra: 3rem; }
  .fp-vivo .fp-camada--a { clip-path: inset(0 0 calc(100% - var(--fp-d) * 100%) 0); }
  .fp-vivo .fp-camada--b { clip-path: inset(calc(var(--fp-d) * 100%) 0 0 0); }
  .fp-vivo .pc-marca { top: .5rem; }
  .fp-vivo .fp-a .fp-texto { width: auto; right: var(--fp-pad); }
  .fp-vivo .fp-a .fp-foto { width: auto; right: var(--fp-pad); bottom: calc(38% + var(--fp-barra) + .75rem); }
  .fp-vivo .fp-texto--fim { top: var(--fp-texto-top) !important; translate: none; }
  .fp-vivo .fp-lide { display: none; }
  .fp-vivo .fp-b .fp-texto { top: calc(62% + 2.1rem); left: var(--fp-pad); }
  .fp-vivo .fp-b .fp-texto p { display: none; }
  .fp-vivo .fp-b .fp-h2 { margin: 0; max-width: none; font-size: var(--pc-t-lede); line-height: 1.3; letter-spacing: -.01em; }
  .fp-vivo .fp-frota { left: var(--fp-pad); top: var(--fp-frota-top, 72%); bottom: .6rem; }
  .fp-linha { grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: .5rem; }
  .fp-rotulo { font-size: .72rem; }
  .fp-rotulo b { font-size: .82rem; }

  .fp-vivo .fp-divisor { transform: translate3d(0, calc((var(--fp-d) - 1) * 100%), 0); }
  .fp-divisor__linha { top: auto; left: 0; right: 0; bottom: -2px; width: auto; height: 4px; }
  .fp-divisor__cheio { transform-origin: 0 50%; transform: scaleX(var(--fp-cheio)); }
  .fp-divisor__lado--um { top: auto; bottom: 0; left: 0; right: 0; height: var(--fp-barra); padding: 0 var(--fp-pad); flex-direction: row-reverse; justify-content: space-between; background: var(--pc-preto); border-top: 1px solid var(--pc-linha); }
  .fp-divisor__lado--sem { top: 100%; left: var(--fp-pad); min-height: 0; margin-top: .7rem; }
}

/* =========================================================== modo estático (movimento reduzido, sem JS) */
html:not(.fp-vivo) .fp-palco { display: grid; grid-template-columns: 1fr 1fr; }
html:not(.fp-vivo) .fp-camada { display: contents; }
html:not(.fp-vivo) .fp-quadricula { display: none; }
html:not(.fp-vivo) [data-sc-cue] { opacity: 1 !important; transform: none !important; }
html:not(.fp-vivo) .fp-par { padding: clamp(2.5rem, 5vw, 4rem) var(--pc-margem); min-width: 0; }
html:not(.fp-vivo) .fp-a { background: var(--pc-preto); }
html:not(.fp-vivo) .pc-marca { margin: -1.25rem 0 2rem; }
html:not(.fp-vivo) .fp-a .fp-foto { margin-top: 2rem; }
html:not(.fp-vivo) .fp-a .fp-foto img { aspect-ratio: 2 / 1; height: auto; }
html:not(.fp-vivo) .fp-texto--abre .pc-btn { margin-top: 0; }
html:not(.fp-vivo) .fp-frota { height: clamp(16rem, 30vw, 26rem); margin-top: 2.25rem; }
html:not(.fp-vivo) .fp-a1 { grid-area: 1 / 1; } html:not(.fp-vivo) .fp-b1 { grid-area: 1 / 2; }
html:not(.fp-vivo) .fp-a2 { grid-area: 2 / 1; } html:not(.fp-vivo) .fp-b2 { grid-area: 2 / 2; }
html:not(.fp-vivo) .fp-a3 { grid-area: 3 / 1; } html:not(.fp-vivo) .fp-b3 { grid-area: 3 / 2; }
html:not(.fp-vivo) .fp-a4 { grid-area: 4 / 1; } html:not(.fp-vivo) .fp-b4 { grid-area: 4 / 2; }
html:not(.fp-vivo) .fp-a5 { grid-row: 5; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--pc-margem); align-items: center; border-top: 4px solid var(--pc-amarelo); }
html:not(.fp-vivo) .fp-a5 .fp-frota { margin-top: 0; }
@media (max-width: 860px) {
  html:not(.fp-vivo) .fp-palco { grid-template-columns: 1fr; }
  html:not(.fp-vivo) .fp-a1 { grid-area: 1 / 1; } html:not(.fp-vivo) .fp-b1 { grid-area: 2 / 1; }
  html:not(.fp-vivo) .fp-b2 { grid-area: 3 / 1; } html:not(.fp-vivo) .fp-a2 { grid-area: 4 / 1; }
  html:not(.fp-vivo) .fp-b3 { grid-area: 5 / 1; } html:not(.fp-vivo) .fp-a3 { grid-area: 6 / 1; }
  html:not(.fp-vivo) .fp-b4 { grid-area: 7 / 1; } html:not(.fp-vivo) .fp-a4 { grid-area: 8 / 1; }
  html:not(.fp-vivo) .fp-a5 { grid-row: 9; grid-template-columns: 1fr; }
  html:not(.fp-vivo) .pc-marca { margin: -1.5rem 0 1.5rem; }
}

/* ------------------------------------------------------------ para quem é (dentro da moldura do formulário) */
.fp-quem { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pc-linha); }
.fp-quem h3 { margin: 0 0 .9rem; font-size: 1.15rem; line-height: 1.2; }
.fp-quem ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.fp-quem li { position: relative; padding-left: 1.25rem; color: var(--pc-tinta); }
.fp-quem li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; background: var(--pc-amarelo); }
.fp-quem li.fp-nao { margin-top: .35rem; color: var(--pc-tinta-suave); }
.fp-quem li.fp-nao::before { background: none; border: 1.5px solid var(--pc-tinta-suave); box-sizing: border-box; }

/* ------------------------------------------------------------ perguntas frequentes */
.fp-faq { padding: clamp(3rem, 7vw, 5.5rem) var(--pc-margem); border-top: 1px solid var(--pc-linha); }
.fp-faq__dentro { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 920px) { .fp-faq__dentro { grid-template-columns: .9fr 1fr; gap: 4.5rem; } }
.fp-faq h2 { margin: 0; font-size: var(--pc-t-titulo); line-height: 1.08; }
.fp-faq details { border-bottom: 1px solid var(--pc-linha); }
.fp-faq details:first-child { border-top: 1px solid var(--pc-linha); }
.fp-faq summary { position: relative; display: block; padding: 1.1rem 2.5rem 1.1rem 0; font: 600 1.05rem/1.35 var(--pc-display); cursor: pointer; list-style: none; border-radius: var(--pc-r); }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::before, .fp-faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .85rem; height: 2px; background: var(--pc-amarelo); transition: transform 160ms ease-out; }
.fp-faq summary::after { transform: rotate(90deg); }
.fp-faq details[open] summary::after { transform: rotate(0deg); }
.fp-faq details p { margin: 0 0 1.2rem; max-width: 36em; color: var(--pc-tinta-suave); }
@media (hover: hover) and (pointer: fine) { .fp-faq summary:hover { color: var(--pc-amarelo); } }
@media (prefers-reduced-motion: reduce) { .fp-faq summary::after { transition: none; } }

/* ------------------------------------------------------------ celular leve (até 700 px) */
/* No celular a página fica sempre no modo estático (o script do head não liga o fp-vivo até 700 px):
   os pares empilhados, já no estado final, sem palco preso. Aqui só o que aparece na entrada fica visível de cara. */
.lp-leve [data-sc-in], .lp-leve [data-sc-stagger] > * { opacity: 1; transform: none; transition: none; }
/* As fotos 2 a 4 têm versão de celular (<picture>); o picture não entra na caixa, para a foto continuar
   sendo o item da coluna no palco do computador. */
.fp-foto picture { display: contents; }
