/* AMU Brasil, versão 4: o CSS da própria página (o kit em assets/kit dá a base: grade, menu, botões, rodapé).
   Ordem: base e marca-texto, menu sobre a abertura, abertura, pedido, motorista, baixar, cidades, história,
   dúvidas, WhatsApp e barra do celular, telas do app em HTML. As animações moram em assets/js/amu.js (GSAP). */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* entradas e saídas */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* o que se move na tela */
  --orange: #f77922;
  --orange-ink: #a8490a;                              /* laranja escuro para texto pequeno no fundo claro (5:1) */
}

/* link "pular para o conteúdo": escondido até receber o foco */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 16px; top: 12px; width: auto; height: auto; clip-path: none; z-index: 60;
  padding: 10px 16px; border-radius: var(--r-btn, 10px); background: var(--ink); color: var(--bg); }

.nav__logo img.logo-h { display: block; height: 36px; width: auto; }
@media (max-width: 639px) { .nav__logo img.logo-h { height: 30px; } }

/* o rótulo pequeno acima do título de cada seção */
.kicker { color: var(--orange-ink); margin-bottom: var(--s-3); }
.ground-inverse .kicker { color: var(--orange); }

/* marca-texto: um por seção, no máximo (referência: inDrive). --hl-w é animado na entrada da abertura */
.hl { --hl-w: 100%; color: #111; padding: 0 .12em .02em; margin: 0 -.02em; border-radius: .08em;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left center / var(--hl-w) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* splits da página: 6/6 também no tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid.split > .span-6 { grid-column: auto / span 6; }
  .grid.split > .start-7 { grid-column: 7 / span 6; }
}

/* ================================================================ menu: transparente sobre a abertura */
.nav { transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out); }
.js .nav:not(.is-solid):not(.is-open) { --bg: transparent; --ink: #fff; --line: transparent; --line-strong: rgb(255 255 255 / .45);
  background: transparent; border-bottom-color: transparent; }

/* entrada da abertura em CSS puro (roda fora da linha principal e não espera o GSAP; skill animate).
   Um elemento principal, o título; os outros acompanham com atraso que encolhe (0, 120, 200, 260 ms).
   fill-mode "backwards": depois da entrada o CSS normal volta a mandar (o hover dos cartões funciona). */
@media (prefers-reduced-motion: no-preference) {
  .cover h1 { animation: sobe .9s var(--ease-out) .05s backwards; }
  .cover h1 .hl { animation: marca .7s var(--ease-in-out) .55s backwards; }
  .cover__lead { animation: sobe .9s var(--ease-out) .2s backwards; }
  .pick--rider { animation: sobe .9s var(--ease-out) .3s backwards; }
  .pick--driver { animation: sobe .9s var(--ease-out) .38s backwards; }
  .cover__poster, .cover__video { animation: assenta 2.4s cubic-bezier(.22, .8, .3, 1) backwards; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } }
@keyframes marca { from { --hl-w: 0%; color: #fff; } }
@keyframes assenta { from { transform: scale(1.08); } }
@property --hl-w { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

/* ================================================================ abertura em tela cheia
   O vídeo (ou a imagem fixa) ocupa a tela; um degradê escuro embaixo dá leitura ao texto branco.
   O texto fica embaixo à esquerda; a escolha passageiro ou motorista fica embaixo à direita (no celular, empilha). */
html body main > .hero.cover { position: relative; height: 100vh; height: 100svh; min-height: 560px; padding: 0; overflow: hidden;
  background: #1b1612; color: #fff; }
.cover__media { position: absolute; inset: 0; z-index: 0; transform-origin: 50% 70%; }
.cover__media picture, .cover__poster, .cover__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__poster, .cover__video { object-fit: cover; object-position: 50% 60%; display: block; }
.cover__video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.cover__video.is-on { opacity: 1; }
.cover__shade { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(12 9 7 / .55) 0, rgb(12 9 7 / 0) 180px),
    linear-gradient(0deg, rgb(12 9 7 / .86) 0%, rgb(12 9 7 / .5) 38%, rgb(12 9 7 / 0) 66%); }
.cover__dim { position: absolute; inset: 0; background: #0c0907; opacity: 0; }
html body main > .hero.cover > .wrap { position: relative; z-index: 1; height: 100%; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: none; column-gap: var(--gutter); row-gap: var(--s-6);
  align-content: end; align-items: end; padding: calc(var(--nav) + 24px) 0 clamp(28px, 7vh, 72px); }
.cover__copy { grid-column: 1 / span 7; }
.cover h1 { font: 500 clamp(44px, 6vw, 96px)/1.04 var(--font-display); letter-spacing: -0.045em; color: #fff; }
.cover__l1 { display: block; }
.cover h1 .hl { background-size: var(--hl-w) 86%; background-position: left 64%; padding: 0 .1em; margin-left: -.1em; }
.cover__lead { margin-top: var(--s-5); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; color: rgb(255 255 255 / .88); max-width: 44ch; }
.cover__lead b { color: #fff; font-weight: 600; }
.cover__pick { grid-column: 9 / -1; display: grid; gap: 12px; }

/* os dois caminhos: passageiro (laranja) e motorista (branco) */
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 20px 20px 20px 24px; border-radius: 20px; text-decoration: none;
  transition: transform .2s var(--ease-out), background-color .2s ease; }
.pick__t { grid-column: 1; font: 500 clamp(21px, 1.7vw, 26px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.pick__s { grid-column: 1; font-size: 15px; line-height: 1.35; }
.pick__go { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.pick__go svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.pick--rider { background: var(--orange); color: #111; }
.pick--rider .pick__s { color: rgb(17 17 17 / .78); }
.pick--rider .pick__go { background: #111; color: #fff; }
.pick--driver { background: #fff; color: #1b1612; }
.pick--driver .pick__s { color: #5c534c; }
.pick--driver .pick__go { background: var(--orange); color: #111; }
@media (hover: hover) and (pointer: fine) {
  .pick:hover { transform: translateY(-2px); }
  .pick:hover .pick__go svg { transform: translateX(3px); }
  .pick--rider:hover { background: #ff8a3a; }
  .pick--driver:hover { background: #fdf2e9; }
}
.pick:active { transform: scale(.98); transition-duration: .1s; }
.pick:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 1023px) {
  .cover__copy, .cover__pick { grid-column: 1 / -1; }
  .cover__pick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  html body main > .hero.cover > .wrap { padding-bottom: calc(20px + env(safe-area-inset-bottom)); row-gap: var(--s-5); }
  .cover__pick { grid-template-columns: 1fr; gap: 10px; }
  .pick { padding: 16px 16px 16px 20px; border-radius: 16px; }
  .pick__go { width: 40px; height: 40px; }
  .cover__lead { margin-top: var(--s-3); }
}
@media (max-height: 640px) and (min-width: 640px) { .cover h1 { font-size: clamp(40px, 5vw, 64px); } }

/* ================================================================ pedido (cena de rolagem)
   Repouso (tablet, celular, movimento reduzido, sem script): o cartão pronto, com a rota e o carro ao lado do passageiro.
   Ao vivo (1024 px ou mais, com GSAP): a seção tem 1,7 tela, o conteúdo fica parado e a rolagem anda a cena. */
.ride { background: #fff; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; align-self: start; }
.ride__row { padding: 16px 20px; border-bottom: 1px solid var(--line); background-color: rgb(253 236 222 / calc(var(--hl, 0) * .9)); }
.ride__row:last-child { border-bottom: 0; }
.ride .ride__head { padding: 0; }
.ride__map { position: relative; height: 210px; overflow: hidden; background: #eef0f0; }
.ride__mapin { position: absolute; inset: 0; transform-origin: 59% 42%; }
.ride__mapin img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.ride__route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.ride__route path { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ride__pulse { fill: none; stroke: #2d8cff; stroke-width: 3; transform-box: fill-box; transform-origin: center; opacity: 0; }
.ride__head .ride__field { padding: 16px 20px; }
.ride__field { display: flex; gap: 12px; align-items: flex-start; }
.ride__field small, .ride__opts small { display: block; font-size: 13px; color: var(--muted); }
.ride__field b, .ride__opts b { font-weight: 500; font-size: 16px; }
.ride__seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); }
.ride__seg span { height: 36px; padding: 0 22px; display: grid; place-items: center; border-radius: 999px; font: 500 14px/1 var(--font-text); color: var(--muted); }
.ride__seg span.is-on { background: var(--orange); color: #111; }
.ride__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ride__go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ride__btn { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: #111;
  font: 500 15px/1 var(--font-text); white-space: nowrap; cursor: default; transition: background-color .3s ease; }
.ride__btn.is-called { background: #e26a14; }
.ride__state { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.ride__state i { width: 9px; height: 9px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 4px rgb(31 164 90 / .18); }

/* carros livres circulando devagar (só com movimento liberado) */
@media (prefers-reduced-motion: no-preference) {
  .car--a { animation: rodaA 11s ease-in-out infinite alternate; }
  .car--b { animation: rodaB 13s ease-in-out infinite alternate; }
  .car--c { animation: rodaC 9s ease-in-out infinite alternate; }
  .ride__pulse { animation: pulso 2.2s ease-out infinite; }
  .app__online i { animation: online 2s ease-out infinite; }
}
@keyframes rodaA { 0% { translate: 0 0; } 45% { translate: 26px -14px; } 100% { translate: 44px -2px; } }
@keyframes rodaB { 0% { translate: 0 0; } 50% { translate: -30px -12px; } 100% { translate: -52px -26px; } }
@keyframes rodaC { 0% { translate: 0 0; } 60% { translate: 22px 10px; } 100% { translate: 40px 2px; } }
@keyframes pulso { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes online { 0% { box-shadow: 0 0 0 0 rgb(31 164 90 / .55); } 100% { box-shadow: 0 0 0 8px rgb(31 164 90 / 0); } }

/* passos com a linha de progresso que enche com a rolagem */
.pedido__steps { position: relative; margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); counter-reset: p; }
.pedido__steps li { position: relative; counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); align-items: center;
  font: var(--display-weight) var(--t-lead)/1.35 var(--font-display); color: var(--ink); }
.pedido__steps li::before { content: counter(p); position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 500 15px/1 var(--font-text); border: 1px solid var(--line-strong, rgb(27 22 18 / .25)); color: var(--ink); background: var(--bg);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
@media (min-width: 1024px) { .pedido__steps li { font-size: var(--t-h3); } .pedido__steps { gap: var(--s-5); margin-top: var(--s-7); } }
/* notebook pequeno ou tela baixa: a cena inteira cabe na tela enquanto fica presa */
@media (min-width: 1024px) and (max-width: 1279px), (min-width: 1024px) and (max-height: 820px) {
  .pedido__steps li { font-size: 20px; }
  .pedido__steps { gap: var(--s-4); margin-top: var(--s-5); }
  .pedido .ride__map { height: 180px; }
  .pedido .ride__row { padding-block: 12px; }
  .pedido .ride__head .ride__field { padding-block: 12px; }
}
@media (max-width: 639px) { .ride__map { height: 300px; } .pedido .ride { margin-top: var(--s-6); } }
html body main > section.pedido.is-live { height: 170vh; height: 170svh; min-height: 0; display: block; }
.pedido.is-live > .wrap { position: sticky; height: auto; min-height: calc(100svh - var(--padt) - var(--padb)); top: max(var(--padt), calc(var(--nav) + 40px)); }
.pedido.is-live .pedido__steps::before, .pedido.is-live .pedido__steps::after {
  content: ""; position: absolute; left: 17px; top: var(--l-top, 18px); bottom: var(--l-bot, 18px); width: 2px; border-radius: 2px; background: var(--line); }
.pedido.is-live .pedido__steps::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--pp, 0)); }
.pedido.is-live .pedido__steps li { color: var(--muted); transition: color .3s ease; }
.pedido.is-live .pedido__steps li.is-on { color: var(--ink); }
.pedido.is-live .pedido__steps li.is-on::before { background: var(--orange); border-color: var(--orange); color: #111; }
.pedido.is-live .pedido__steps li.is-past::before { border-color: var(--orange); color: var(--orange-ink); }
.pedido.is-live .ride__mapin, .pedido.is-live .ride__row, .pedido.is-live .ride__state { will-change: transform, opacity; }

/* ================================================================ motorista: fundo escuro com luzes de rua */
.motor { overflow: hidden; }
.motor > video.layer { object-position: 50% 50%; }
.motor::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(21 17 14 / .95) 0%, rgb(21 17 14 / .84) 46%, rgb(21 17 14 / .5) 100%); }
.motor__copy { display: grid; align-content: start; }
.motor__key { font-weight: 600; color: var(--orange); white-space: nowrap; }
.motor__lead { margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.motor__steps { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); counter-reset: m; }
.motor__steps li { counter-increment: m; display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s-3); row-gap: 2px; }
.motor__steps li::before { content: counter(m); grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 500 15px/1 var(--font-text); background: rgb(247 121 34 / .14); color: var(--orange); box-shadow: inset 0 0 0 1px rgb(247 121 34 / .5); }
.motor__steps b { font-weight: 500; font-size: 18px; line-height: 1.3; align-self: end; }
.motor__steps span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.motor__copy .btn-row { margin-top: var(--s-6); }
.motor__note { margin-top: var(--s-4); font-size: 13px; color: var(--muted); max-width: 52ch; }

.motor__phones { position: relative; height: clamp(460px, 48vw, 640px); }
.motor__phones .device { position: absolute; }
.device--front { --dw: clamp(220px, 19vw, 276px); left: 12%; top: 72px; z-index: 2; }
.device--back { --dw: clamp(190px, 16vw, 232px); right: 6%; top: 0; z-index: 1; }
.device--back .app { filter: brightness(.92); }
@media (max-width: 1023px) {
  .motor__phones { height: 470px; }
  .device--front { left: 4%; } .device--back { right: 0; }
}
@media (max-width: 639px) {
  /* no celular, um aparelho só, centralizado e legível */
  .motor__phones { height: 470px; margin-top: var(--s-6); }
  .device--front { --dw: 216px; left: 50%; top: 10px; margin-left: -108px; } .device--back { display: none; }
  .motor::after { background: rgb(21 17 14 / .86); }
}

/* ================================================================ baixar: passageiro e motorista
   Cada cartão tem uma foto de fundo. O texto fica embaixo, sobre um desfoque com degradê (.get__body::before) que
   acompanha a altura do texto: começa transparente e vai escurecendo, então o rosto da foto fica sempre limpo. */
.get__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); max-width: none; }
.get__qr { display: flex; align-items: center; gap: 16px; max-width: 320px; }
.get__qr img { flex: none; width: 88px; height: 88px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.get__qr p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.get { align-items: stretch; }
.get__card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(600px, 46vw, 700px); border-radius: var(--r-lg); background: #1b1612; color: #fff; --muted: rgb(255 255 255 / .82); }
.get__photo { position: absolute; inset: 0; z-index: 0; }
.get__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.get__card--rider .get__photo img { object-position: 56% 25%; }
.get__card--driver .get__photo img { object-position: 55% 30%; }
.get__body { position: relative; z-index: 1; display: grid; gap: var(--s-4); align-content: end;
  padding: 128px clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.get__body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(16 12 9 / 0) 0, rgb(16 12 9 / .5) 128px, rgb(16 12 9 / .8) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 128px); mask-image: linear-gradient(to bottom, transparent 0, #000 128px); }
.get__body .t-label { color: var(--orange); }
.get__card h3 { margin: 0; font: 500 clamp(28px, 2.4vw, 36px)/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.get__txt { color: var(--muted); margin: 0; }
.get__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-2); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #fff; color: #111; text-decoration: none; transition: transform .16s var(--ease-out), background-color .2s ease; }
.store-btn img { width: 22px; height: 24px; flex: none; }
.store-btn span { display: grid; font: 500 17px/1.1 var(--font-text); }
.store-btn small { font-size: 11px; font-weight: 400; opacity: .7; }
@media (hover: hover) and (pointer: fine) { .store-btn:hover { background: #fdf2e9; } }
.store-btn:active { transform: scale(.97); }
.store-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.get__how { margin: var(--s-2) 0 0; font-size: 14px; font-weight: 500; color: #fff; }
.get__steps { margin-top: 0; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: var(--s-3); }
.steps-list li { counter-increment: passo; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; line-height: 1.5; }
.steps-list li::before { content: counter(passo); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 500 14px/1 var(--font-text); background: var(--surface); color: var(--ink); }
.get__steps li { color: var(--muted); }
.get__steps li::before { background: rgb(255 255 255 / .16); color: #fff; }
.get__steps b { font-weight: 500; color: #fff; }
.get__main, .get__ios { display: grid; gap: var(--s-4); align-content: end; }
/* a partir do tablet, o passo a passo do iPhone fica numa segunda coluna, para o texto não subir até o rosto da foto */
@media (min-width: 640px) {
  .get__card--rider .get__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px); align-items: end; }
  .get__card--rider .get__how { margin-top: 0; }
}
@media (max-width: 1023px), (pointer: coarse) { .get__qr { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .grid.get > .get__card { grid-column: 1 / -1; min-height: 560px; } }
@media (max-width: 639px) {
  /* espaço fixo para a foto no topo; o texto vem embaixo. A foto ocupa só o alto do cartão (mostra a pessoa inteira)
     e some num degradê para o fundo escuro, sem linha de corte */
  .get__card { min-height: 0; padding-top: 230px; }
  .get__card--driver { padding-top: 290px; }
  .get__photo { bottom: auto; height: 440px; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
  .get__card--driver .get__photo { height: 520px; }
  .get__card--rider .get__photo img { object-position: 52% 30%; }
  .get__body { padding-top: 96px; }
  .get__body::before { background: linear-gradient(to bottom, rgb(16 12 9 / 0) 0, rgb(16 12 9 / .5) 96px, rgb(16 12 9 / .82) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px); mask-image: linear-gradient(to bottom, transparent 0, #000 96px); }
  .store-btn { flex: 1 1 140px; justify-content: center; padding: 0 16px; }
}

/* ================================================================ cidades */
.city-search { display: grid; gap: var(--s-2); width: min(100%, 460px); }
.city-search__row { display: flex; gap: var(--s-2); }
.city-search input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 var(--s-4); font: 400 16px/1 var(--font-text);
  color: var(--ink); background: #fff; border: 1px solid rgb(27 22 18 / .25); border-radius: 999px; }
.city-search input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.city-search .btn { height: 48px; flex: none; }
.city-search__out { min-height: 1.5em; margin: 0; font-size: 15px; }
.city-search__out a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* a seção é uma faixa curta, centralizada: título e busca, sem fotos nem nomes de cidade */
main > #cidades.section { min-height: 0; }
.city-band__in { display: grid; justify-items: center; gap: var(--s-6); text-align: center; }
.city-band__in h2 { margin: 0; }
.city-band .city-search { width: min(100%, 560px); justify-items: center; }
.city-band .city-search__row { width: 100%; }
.city-band .city-search__out { text-align: center; }
@media (max-width: 639px) {
  .city-search__row { flex-direction: column; } .city-search .btn { width: 100%; }
}

/* ================================================================ história */
.story { display: grid; gap: var(--s-4); align-content: start; }
.story h2 { margin-bottom: var(--s-2); }
.story > p:not(.kicker) { font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 0; }
.story > p b { font-weight: 600; }
.story__quote { margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); max-width: 52ch; }
.story__quote::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--orange); margin-bottom: var(--s-2); }
.story__quote p { font: var(--display-weight) var(--t-lead)/1.45 var(--font-display); margin: 0; }
.story__quote footer { font-size: 14px; color: var(--muted); font-style: italic; }
.story__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3.2; background: var(--surface); }
.story__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) and (max-width: 1023px) {
  #historia .grid.split > .span-6, #historia .grid.split > .start-7 { grid-column: 1 / -1; }
  .story__photo { aspect-ratio: 16 / 7; margin-top: var(--s-7); }
}
@media (max-width: 639px) { .story__photo { aspect-ratio: 16 / 9; margin-top: var(--s-5); } .story > p:not(.kicker) { font-size: 16px; } }

/* ================================================================ dúvidas: sanfona, uma aberta por vez */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 20px 0; font: 500 var(--t-lead)/1.35 var(--font-text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%231b1612' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.qa summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.qa details p { margin: 0; padding: 0 48px 22px 0; max-width: 60ch; font-size: 17px; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover::after { background-color: #f3d9c4; } .qa details[open] summary:hover::after { background-color: var(--orange); } }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .qa { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
  }
}

/* ================================================================ WhatsApp fixo (computador) e barra do celular */
html .btn.wa-float, html:not([data-motion="off"]) .btn.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 20; gap: 10px; padding-left: 16px; }
.wa-float img { width: 24px; height: 24px; }
@media (max-width: 639px) { .btn.wa-float { display: none; } }
html .btn.wa-float { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s ease, transform .3s var(--ease-out), visibility 0s linear .3s; }
html .btn.wa-float.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s var(--ease-out); }
/* no celular, a barra fica escondida na abertura (os dois caminhos já estão lá) e sobe depois */
@media (max-width: 639px) {
  .actionbar { transition: transform .35s var(--ease-out); }
  body.em-capa .actionbar { transform: translateY(110%); }
}
.btn.btn--secondary:hover { background-color: color-mix(in oklab, var(--ink) 12%, var(--bg)); }
.closing__links .footer__col a { display: inline-block; padding-block: 4px; }
@media (min-width: 640px) and (max-width: 1023px) { .closing__links .footer__col { grid-column: auto / span 4; } }
@media (max-width: 639px) { .nav:not(.is-open) .nav__actions .btn--primary { display: none; } }

/* ================================================================ alturas: cada seção ocupa pelo menos uma tela
   no computador e cresce se o conteúdo for maior; no celular, a altura do conteúdo */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
    display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; }
  /* o conteúdo no meio da tela, não colado no topo com um vão embaixo */
  main > :is(#motorista, #baixar, #cidades, #historia, #duvidas) > .wrap { justify-content: center; }
}
@media (max-width: 639px) {
  html body main > :is(section, .section):not(.hero), html body footer.closing { height: auto; min-height: 0; padding-bottom: calc(80px + var(--bar)); }
}

/* ================================================================ telas do app em HTML
   Refeitas a partir dos prints reais do app (mesma estrutura e cores), sobre o mapa real de Mococa
   (© colaboradores do OpenStreetMap). Os prints da loja mostram o mapa do Rio, o demo da plataforma. */
.device { position: relative; flex: none; width: var(--dw, 236px); aspect-ratio: 600 / 1230;
  padding: 7px; border-radius: 36px; background: #0d0a08; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.app { position: relative; height: 100%; border-radius: 29px; overflow: hidden; background: #eceef0;
  font-family: var(--font-text); color: #1d1d1f; text-align: left; }
.app__status { position: relative; z-index: 2; height: 24px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: #e0670f; color: #fff; font: 500 10px/1 var(--font-text); }
.app__status--dark { background: #15110e; }
.app__sig { display: inline-flex; gap: 2px; align-items: flex-end; }
.app__sig i { width: 3px; background: currentColor; border-radius: 1px; }
.app__sig i:nth-child(1) { height: 4px; } .app__sig i:nth-child(2) { height: 6px; } .app__sig i:nth-child(3) { height: 8px; }
.app img.app__map { position: absolute; left: 0; top: 24px; width: 100%; height: calc(100% - 24px); object-fit: cover; object-position: 50% 30%; z-index: 0; }
.car { position: absolute; z-index: 1; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--orange) url("../img/carro.svg") center / 14px no-repeat; box-shadow: 0 0 0 2px #fff; }
.me { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #2d8cff; box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgb(45 140 255 / .18); }
.me--driver { width: 20px; height: 20px; background: #15110e; }
.app__online { position: absolute; z-index: 2; left: 50%; top: 36px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; font: 500 11px/1 var(--font-text); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); white-space: nowrap; }
.app__online i { width: 8px; height: 8px; border-radius: 50%; background: #1fa45a; }
.app__toast { position: absolute; z-index: 2; left: 10px; right: 10px; top: 72px; padding: 10px 12px; border-radius: 12px; background: #fff;
  display: grid; gap: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.app__toast b { font: 500 12px/1.2 var(--font-text); color: #1a9ad6; }
.app__toast span { font-size: 11px; color: #3a3a3c; }
.app--list { background: #f2f3f5; }
.app__tabs { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-bottom: 1px solid #e3e3e6; }
.app__tabs span { height: 38px; display: grid; place-items: center; font: 500 11px/1 var(--font-text); color: #6e6e73; }
.app__tabs span.is-on { color: #1d1d1f; box-shadow: inset 0 -2px 0 var(--orange); }
.app__req { margin: 10px 10px 0; padding: 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgb(0 0 0 / .07); display: grid; gap: 6px; }
.app__tag { justify-self: start; padding: 3px 8px; border-radius: 6px; border: 1px solid #d8d8dc; font: 500 10px/1 var(--font-text); }
.appc__pt { display: flex; gap: 8px; align-items: center; font-size: 11px; line-height: 1.3; }
.dot { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.app__req .dot { margin-top: 0; width: 8px; height: 8px; }
.dot--me { background: #1fa45a; box-shadow: 0 0 0 3px rgb(31 164 90 / .18); }
.dot--flag { background: var(--orange); border-radius: 2px; }

/* movimento reduzido: nada desliza; o vídeo da abertura não toca (fica a imagem fixa) */
@media (prefers-reduced-motion: reduce) {
  .pick, .pick__go svg, .store-btn, .nav, .actionbar { transition: none; }
}

/* ================================================================ pedir a AMU (faixa de cidades) */
.city-band__ask { display: grid; justify-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); width: min(100%, 560px); }
.city-band__ask p { margin: 0; color: var(--muted); }

/* ================================================================ parceiro (faixa escura, texto do Leilson) */
main > #parceiro.section { min-height: 0; }
.partner__grid { align-items: end; row-gap: var(--s-5); }
.partner h2 { margin: 0; }
.partner .kicker { color: var(--orange); }
.partner__body { display: grid; gap: var(--s-5); justify-items: start; }
.partner__body .btn { width: auto; min-width: 0; padding-inline: 32px; }
.partner__body p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.partner__body b { color: var(--ink); font-weight: 600; }
@media (min-width: 640px) and (max-width: 1023px) { .partner__grid > .span-6, .partner__grid > .span-5 { grid-column: 1 / -1; } }

/* ================================================================ formulários (janela; no celular, sobe de baixo) */
.sheet { width: min(100% - 32px, 560px); max-width: none; max-height: min(92svh, 880px); padding: 0; border: 0; border-radius: 24px;
  background: #fbf9f6; color: #1b1612; overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgb(16 12 9 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:has(dialog.sheet[open]) { overflow: hidden; }
.sheet__form, .sheet__done { display: grid; gap: var(--s-5); padding: clamp(24px, 4vw, 36px); }
.sheet__form[hidden], .sheet__done[hidden] { display: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet h2 { margin: 0; font: 500 clamp(24px, 3vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; outline: none; }
.sheet__done p { margin: 0; font-size: 17px; line-height: 1.55; }
.sheet__x { flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgb(27 22 18 / .06); color: inherit; cursor: pointer; transition: background-color .15s ease; }
.sheet__x svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .sheet__x:hover { background: rgb(27 22 18 / .12); } }
.sheet__x:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field[hidden] { display: none; }
.field > label, .field > legend { padding: 0; font-size: 14px; font-weight: 500; }
.field > legend { margin-bottom: 8px; }
.field input, .field select { width: 100%; height: 52px; padding: 0 16px; font: 400 16px/1 var(--font-text); color: inherit;
  background: #fff; border: 1px solid rgb(27 22 18 / .22); border-radius: 12px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231b1612' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.field input::placeholder { color: rgb(27 22 18 / .45); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field.is-erro input, .field.is-erro select { border-color: #b42318; }
.field__err { margin: 0; font-size: 13px; color: #b42318; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid rgb(27 22 18 / .22); border-radius: 999px;
  background: #fff; font-size: 15px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: rgb(27 22 18 / .5); } }
.chip input:checked + span { background: #1b1612; border-color: #1b1612; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field.is-erro .chip span { border-color: #b42318; }
.sheet__note { margin: -8px 0 0; font-size: 13px; text-align: center; color: rgb(27 22 18 / .62); }
.sheet__done .sheet__note { margin: 0; text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: janela .32s var(--ease-out); }
  .sheet[open]::backdrop { animation: fundo .32s ease; }
}
@keyframes janela { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fundo { from { opacity: 0; } }
@media (max-width: 639px) {
  .sheet { width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .field-row { grid-template-columns: minmax(0, 1fr) 104px; }
}
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sobe-janela .36s var(--ease-out); }
}
@keyframes sobe-janela { from { transform: translateY(48px); opacity: 0; } }

/* ============================================================ aviso de cookies (medidor.js) e campo anti-robô
   O aviso fica no canto, pequeno, sem cobrir o conteúdo; some depois da escolha. "Preferências de cookies" (rodapé) reabre. */
.cookies { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 440px;
  display: grid; gap: 12px; padding: 16px 16px 16px 20px; border-radius: var(--r-md); background: #1b1612; color: #fff;
  box-shadow: 0 12px 32px rgb(0 0 0 / .22); font-size: 14px; line-height: 1.45;
  --bg: #1b1612; --ink: #fff; --line-strong: rgb(255 255 255 / .4); }   /* os botões do kit leem estas cores */
.cookies[hidden] { display: none; }
.cookies p { margin: 0; color: rgb(255 255 255 / .86); }
.cookies .link { color: #fff; }
.cookies__acoes { display: flex; gap: 8px; justify-content: flex-end; }
.cookies .btn { width: auto; min-width: 0; padding-inline: 18px; }
@media (min-width: 640px) { .cookies { left: 24px; bottom: 24px; } }
.js .cookies:not([hidden]) { animation: cookies-in .4s var(--ease-out) both; }
@keyframes cookies-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .js .cookies:not([hidden]) { animation: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet__done .btn { margin-top: 4px; }
