/* Travel by Me — cupom de lançamento (/cupom), visual de 29/11/2026.
   Mesma identidade do site novo (src/app/home.css): branco e areia, texto azul-marinho, laranja só no
   destaque e na ação, papelaria de viagem em 3D. As peças saem de mockups/exportar-campanha.mjs. */

:root {
  --brand: #FE5702;
  --hl: #F04E00;
  --brand-text: #A8380B;
  --navy: #1C2456;
  --ink-2: #4C5266;
  --soft: #6A728F;
  --line: rgba(13, 20, 55, 0.12);
  --sand: #F4EBDE;
  --mist: #F4F5F9;
  --r-card: 24px;
  --r-section: 40px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --edge: max(24px, calc((100vw - 1280px) / 2 + 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.5; color: var(--ink-2); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, p, dt, dd, small, a, button { text-wrap: balance; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b { font-weight: 600; color: var(--navy); }
em { font-style: normal; color: var(--hl); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

/* Cada trecho só aparece no seu estado. */
.cp:not([data-state='wait']) .only-wait,
.cp:not([data-state='open']) .only-open,
.cp:not([data-state='ended']) .only-ended { display: none !important; }

/* ================= Abertura ================= */

.cp-hero { position: relative; overflow-x: clip; display: flex; flex-direction: column; min-height: min(100svh, 1080px); border-radius: 0 0 var(--r-section) var(--r-section); background: linear-gradient(180deg, #fff 0%, #fff 14%, var(--sand) 82%); }

.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--edge) 0; }
.cp-logo { display: flex; align-items: center; min-height: 44px; }
.cp-logo img { width: 136px; }

/* Aviso de cabine (o do cinto): aceso na espera, apagado quando libera. */
.cp-sign { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 100px; background: #fff; box-shadow: 0 1px 2px rgba(13, 20, 55, 0.06), 0 10px 24px -8px rgba(13, 20, 55, 0.16); font-size: 14px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.cp-sign__lamp { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); font-size: 17px; color: #fff; animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { box-shadow: 0 0 0 0 rgba(254, 87, 2, 0.32); } 60% { box-shadow: 0 0 0 9px rgba(254, 87, 2, 0); } }
.cp[data-state='open'] .cp-sign__lamp,
.cp[data-state='ended'] .cp-sign__lamp { background: var(--mist); color: var(--soft); animation: none; }
.cp-sign.is-ding .cp-sign__lamp { animation: ding 0.9s var(--ease); }
@keyframes ding { 0% { background: var(--brand); color: #fff; box-shadow: 0 0 0 10px rgba(254, 87, 2, 0.25); } 100% { background: var(--mist); } }

/* As linhas de fora centralizam o texto na altura da janela; com o cupom aberto, a janela acompanha a rolagem. */
.cp-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(32px, 5vw, 88px); width: 100%; padding: clamp(24px, 3.5vh, 44px) var(--edge) clamp(40px, 6vh, 72px); }
.cp-head { grid-area: 2 / 1; }
.cp-body { grid-area: 3 / 1; margin-top: clamp(24px, 3.4vh, 36px); max-width: 520px; }
.cp-scene { grid-area: 1 / 2 / 5; }

.cp-kicker { margin-bottom: 18px; font-size: 16px; font-weight: 500; color: var(--navy); }
.cp-title { font-size: clamp(2.6rem, 1.1rem + 3.7vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--navy); }
.cp-title em { display: block; }
.cp-lead { max-width: 30em; margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); letter-spacing: -0.01em; }

/* ================= Janela, passaporte e bilhete ================= */

.cp-scene { --mx: 0; --my: 0; position: relative; align-self: center; justify-self: center; width: min(100%, 640px, calc((100svh - 120px) * 0.9)); min-width: 400px; aspect-ratio: 1 / 1.1; container-type: inline-size; }
.cp[data-state='open'] .cp-scene { position: sticky; top: 24px; align-self: start; }

.cp-window { position: absolute; left: 15%; top: 0; z-index: 2; width: 70%; aspect-ratio: 1388 / 1728; translate: calc(var(--mx) * -6px) calc(var(--my) * -5px); }
.cp-window::before { content: ''; position: absolute; inset: 2%; border-radius: 45% / 36%; box-shadow: 0 5cqw 9cqw rgba(98, 68, 32, 0.28), 0 1.4cqw 2.4cqw rgba(98, 68, 32, 0.16); }
.cp-frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; filter: drop-shadow(0 0.7cqw 0.8cqw rgba(84, 56, 26, 0.32)); pointer-events: none; }

/* O vão (medido na imagem: 18% à esquerda, 14,7% no alto, 63,9% × 70,5%), com uma sobra escondida pela moldura. */
.cp-opening { position: absolute; left: 17%; top: 13.9%; z-index: 2; width: 66%; height: 72.2%; overflow: hidden; border-radius: 38% / 28%; background: #8FB7DD; container-type: inline-size; transform: translateZ(0); }
.cp-sky, .cp-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-still { object-fit: cover; }
/* Recorte do vídeo (1280×720): x 735–974 e y 100–425, só o céu e a asa. */
.cp-video { position: absolute; left: -307.5%; top: -30.8%; width: 535.6%; max-width: none; height: 221.6%; opacity: 0; transition: opacity 0.6s ease; }
.cp-video.is-on { opacity: 1; }

.cp-shade { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 0 12%; border: 0; border-radius: 0; background: url('/cupom/novo/persiana.webp') 50% 100% / 100% auto no-repeat #F0E8DC; box-shadow: 0 6px 14px rgba(50, 34, 14, 0.36); cursor: default; touch-action: none; transform: translateY(var(--pull, 0px)); transition: transform 1s var(--ease), height 0.6s var(--ease); -webkit-tap-highlight-color: transparent; }
.cp[data-state='wait'] .cp-shade,
.cp[data-state='ended'] .cp-shade { height: 87%; }
.cp-shade:disabled { opacity: 1; }
.cp[data-state='open'] .cp-shade { cursor: grab; }
.cp[data-state='open'] .cp-shade:active { cursor: grabbing; }
.cp[data-state='open'] .cp-shade:not(.is-up) { animation: tease 2.2s var(--ease) 0.6s infinite; }
@keyframes tease { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-5%); } }
.cp-shade.is-dragging { transition: none; animation: none !important; }
.cp-shade.is-up { transform: translateY(-103%); pointer-events: none; animation: none !important; }
.cp-shade:focus-visible { outline-offset: -8px; }

/* Etiqueta colada na persiana. */
.cp-sticker { display: block; padding: 0.75em 1.25em 0.8em; border-radius: 0.8em; background: #fff; box-shadow: 0 1px 2px rgba(84, 56, 26, 0.14), 0 0.6em 1.3em -0.3em rgba(84, 56, 26, 0.3); font-size: clamp(13px, 6.2cqw, 21px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; rotate: -4deg; transition: opacity 0.25s; }
.cp-sticker > span { display: grid; justify-items: center; gap: 2px; }
.cp-sticker > span > span { display: inline-flex; align-items: center; gap: 0.35em; }
.cp-sticker i { color: var(--hl); }
.cp-sticker b { font-size: 1.3em; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cp-sticker small { font-size: 0.68em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.cp-shade.is-up .cp-sticker { opacity: 0; }

/* Luz do sol quando a persiana sobe (animada pelo cupom.js). */
.cp-flare { position: absolute; inset: -25%; z-index: 4; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(30% 24% at 34% 64%, rgb(255, 252, 240), rgba(255, 236, 200, 0.75) 30%, rgba(255, 200, 140, 0) 72%), linear-gradient(0deg, rgba(255, 238, 210, 0.85), rgba(255, 238, 210, 0.3) 45%, rgba(255, 238, 210, 0.1)); }
.cp-spill { position: absolute; inset: -14%; z-index: 4; opacity: 0; pointer-events: none; background: radial-gradient(44% 44% at 50% 42%, rgba(255, 226, 182, 0.95), rgba(255, 226, 182, 0.35) 50%, rgba(255, 226, 182, 0) 100%); mix-blend-mode: soft-light; }

/* Escrita no céu: letras de fumaça reveladas da esquerda para a direita, atrás do avião. */
.cp-skywrite { position: absolute; left: 7%; right: 7%; top: 25%; z-index: 1; display: flex; justify-content: center; font-weight: 700; font-size: 10.4cqw; letter-spacing: -0.01em; color: #fff; text-shadow: 0 0 0.12em rgba(255, 255, 255, 0.95), 0 0 0.35em rgba(255, 255, 255, 0.65), 0 0.06em 0.25em rgba(28, 46, 100, 0.5); white-space: nowrap; clip-path: inset(-20% 100% -20% 0); pointer-events: none; }
.cp-skywrite span { display: inline-block; translate: 0 var(--y, 0); rotate: var(--r, 0deg); }
.cp-plane { position: absolute; top: 24%; left: -14%; z-index: 1; font-size: 8cqw; color: #fff; rotate: 90deg; filter: drop-shadow(0 2px 3px rgba(20, 30, 60, 0.45)); opacity: 0; }
.cp-opening.is-writing .cp-skywrite { animation: write 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.25s forwards; }
.cp-opening.is-writing .cp-plane { animation: fly-by 2.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards; }
@keyframes write { to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes fly-by { 0% { left: -14%; opacity: 1; translate: 0 6px; } 50% { translate: 0 -4px; } 100% { left: 112%; opacity: 1; translate: 0 2px; } }
.cp-opening.is-written .cp-skywrite { clip-path: none; animation: smoke 7s ease-in-out infinite alternate; }
@keyframes smoke { to { filter: blur(0.7px); translate: -4px 2px; } }

.cp-piece { position: absolute; filter: drop-shadow(0 3cqw 3cqw rgba(84, 56, 26, 0.24)) drop-shadow(0 0.5cqw 0.6cqw rgba(84, 56, 26, 0.14)); pointer-events: none; }
.cp-piece--passport { left: 0; bottom: 2%; z-index: 1; width: 33%; rotate: -13deg; translate: calc(var(--mx) * 14px) calc(var(--my) * 10px); }
.cp-piece--ticket { right: 0; bottom: 0; z-index: 5; width: 32%; rotate: 9deg; translate: calc(var(--mx) * -22px) calc(var(--my) * -16px); }

@media (prefers-reduced-motion: no-preference) {
  .cp-window { animation: rise 1s var(--ease) both; }
  .cp-piece--passport { animation: piece-in 1.2s 0.15s var(--ease) both; }
  .cp-piece--ticket { --side: 60px; --turn: 34deg; animation: piece-in 1.2s 0.28s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }
@keyframes piece-in { from { opacity: 0; transform: translate(var(--side, -60px), 120px) rotate(var(--turn, -34deg)); } }

/* ================= Espera: contagem em placas ================= */

.cp-wait { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cp-count { display: flex; gap: clamp(10px, 1.3vw, 18px); }
.cp-count p { display: grid; justify-items: center; gap: 8px; }
.cp-count small { font-size: 14px; color: var(--ink-2); }
.cp-plates { display: flex; gap: 4px; min-height: 66px; perspective: 300px; }
.cp-plates > span { width: clamp(38px, 3.6vw, 50px); aspect-ratio: 0.74; border-radius: 8px; background: linear-gradient(#fff 0 49.4%, rgba(13, 20, 55, 0.16) 49.4% 50.4%, #FAFBFD 50.4%); box-shadow: 0 1px 2px rgba(84, 56, 26, 0.12), 0 8px 16px -8px rgba(84, 56, 26, 0.24); }
.cp-plates b { display: grid; place-items: center; height: 100%; font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .cp-plates b { animation: flap 0.46s cubic-bezier(0.3, 0, 0.3, 1) backwards; }
}
@keyframes flap { from { opacity: 0; transform: rotateX(96deg); } 60% { opacity: 1; transform: rotateX(-16deg); } }
.cp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-note { font-size: 15px; }
.cp-note a { display: inline-block; padding-block: 10px; font-weight: 500; color: var(--brand-text); text-underline-offset: 4px; }

/* ================= Botões e selos ================= */

.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 26px; border: 0; border-radius: 100px; background: linear-gradient(180deg, #FF7433 0%, #FE5702 100%); box-shadow: 0 12px 24px -8px rgba(254, 87, 2, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: #fff; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease; }
.cp-btn i { font-size: 20px; }
.cp-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -8px rgba(254, 87, 2, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.cp-btn:active { transform: scale(0.98); }
.cp-btn--light, .cp-btn--light:hover { background: #fff; box-shadow: 0 1px 2px rgba(84, 56, 26, 0.08), 0 10px 20px -10px rgba(84, 56, 26, 0.22); color: var(--navy); }
.cp-btn--light i { color: var(--navy); }
.cp-btn--big { width: 100%; min-height: 60px; }

/* Selos oficiais (Apple e Google): sem alterar a arte. */
.cp-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; }
.cp-badge { display: inline-block; border-radius: 9px; transition: transform 0.2s var(--ease); }
.cp-badge:hover { transform: translateY(-1px); }
.cp-badge img { width: auto; height: 44px; }
.cp-badge--big img { height: 54px; }

/* ================= O cupom: bilhete no desenho das passagens ================= */

.cp-open { display: flex; flex-direction: column; gap: 22px; }
.cp-ticket { position: relative; container-type: inline-size; filter: drop-shadow(0 26px 30px rgba(84, 56, 26, 0.2)) drop-shadow(0 2px 3px rgba(84, 56, 26, 0.1)); }
.cp-ticket__band, .cp-ticket__route, .cp-ticket__meta, .cp-ticket__code { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding-inline: 28px; background-color: #fff; }
.cp-ticket__band { padding-block: 17px; border-radius: var(--r-card) var(--r-card) 0 0; background-color: var(--brand); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: #fff; }
.cp-ticket__route { margin-top: -1px; padding-top: 22px; font-size: clamp(44px, 15cqw, 76px); line-height: 1; letter-spacing: -0.06em; color: var(--navy); }
.cp-ticket__route b { font-weight: 600; }
.cp-ticket__route sup { margin-left: 0.04em; font-size: 0.5em; line-height: 0; vertical-align: 0; }
.cp-ticket__route i { font-size: 0.56em; color: var(--hl); rotate: 90deg; }
.cp-ticket__route b:last-child { color: var(--hl); }
.cp-ticket__meta { margin-top: -1px; padding-block: 20px 26px; background: radial-gradient(circle at 0 100%, transparent 13px, #fff 13.5px) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 13px, #fff 13.5px) 100% 0 / 51% 100% no-repeat; }
.cp-ticket__meta dt { font-size: 14px; color: var(--soft); }
.cp-ticket__meta dd { font-size: clamp(17px, 4.2cqw, 20px); font-weight: 600; letter-spacing: -0.02em; color: var(--navy); }
/* Picote: dois meios círculos recortados nas bordas e a linha tracejada. */
.cp-ticket__code { padding-block: 26px 18px; border: 0; background: radial-gradient(circle at 0 0, transparent 13px, #fff 13.5px) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 13px, #fff 13.5px) 100% 0 / 51% 100% no-repeat; text-align: left; cursor: pointer; }
.cp-ticket__code::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; border-top: 2px dashed rgba(13, 20, 55, 0.18); }
.cp-ticket__code small { display: block; margin-bottom: 6px; font-size: 14px; color: var(--soft); }
.cp-ticket__value { display: block; font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(23px, 7.3cqw, 35px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--navy); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.cp-ticket__copy { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: -8px; padding: 0 18px; border-radius: 100px; background: var(--mist); font-size: 15px; font-weight: 600; color: var(--navy); transition: background-color 0.2s, color 0.2s; }
.cp-ticket__code:hover .cp-ticket__copy { background: #E9ECF5; }
.cp-ticket__code.is-copied .cp-ticket__copy { background: var(--navy); color: #fff; }
.cp-ticket__bars { display: block; margin-top: -1px; padding: 6px 28px 28px; border-radius: 0 0 var(--r-card) var(--r-card); background: #fff; }
.cp-ticket__bars::before { content: ''; display: block; height: 46px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 5px, var(--navy) 5px 6px, transparent 6px 8px, var(--navy) 8px 12px, transparent 12px 14px, var(--navy) 14px 15px, transparent 15px 19px, var(--navy) 19px 22px, transparent 22px 24px); }

/* Entrada do cupom depois da escrita no céu. */
.js .cp-open.is-hidden > * { opacity: 0; translate: 0 28px; }
.js .cp-open.is-hidden { visibility: hidden; }
.js .cp-open.is-hidden.is-in { visibility: visible; }
.js .cp-open.is-in > * { opacity: 1; translate: 0 0; transition: opacity 0.6s var(--ease), translate 0.8s var(--ease); }
.js .cp-open.is-in > :nth-child(2) { transition-delay: 0.1s; }
.js .cp-open.is-in > :nth-child(n + 3) { transition-delay: 0.2s; }

.cp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 100px; background: rgba(84, 56, 26, 0.09); }
.cp-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 100px; background: none; font-size: 16px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s; }
.cp-tabs button[aria-selected='true'] { background: #fff; box-shadow: 0 1px 3px rgba(84, 56, 26, 0.16); color: var(--navy); }
.cp-tabs button i { font-size: 18px; }

.cp-panel { display: flex; flex-direction: column; gap: 20px; }
.cp-steps { display: flex; flex-direction: column; }
.cp-steps li { display: flex; gap: 18px; padding-block: 14px; border-top: 1px solid rgba(84, 56, 26, 0.16); font-size: 16px; line-height: 1.45; }
.cp-steps li:first-child { border-top: 0; }
.cp-steps li > span { flex: none; width: 0.8em; font-size: 26px; font-weight: 300; line-height: 1; color: var(--hl); }
.cp-steps li > div { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 14px; }
.cp-steps small { font-size: 14px; }
.cp-fine { font-size: 14px; line-height: 1.5; text-wrap: pretty; }

.cp-share, .cp-qr { padding: 22px; border-radius: var(--r-card); background: rgba(255, 255, 255, 0.66); font-size: 16px; line-height: 1.45; }
.cp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cp-share p { flex: 1 1 200px; }
.cp-share .cp-row { flex: 1 0 auto; }
.cp-share .cp-btn { flex: 1 1 130px; min-height: 48px; padding-inline: 18px; font-size: 16px; }
.cp-share b, .cp-qr b { display: block; }
.cp-qr { display: flex; align-items: center; gap: 22px; }
.cp-qr__code { flex: none; width: 104px; height: 104px; padding: 8px; border-radius: 14px; background: #fff; }

/* ================= O que vem no PRO ================= */

.cp-pro { padding: clamp(72px, 10vw, 136px) var(--edge); }
.cp-h2 { font-size: clamp(2.125rem, 1.5rem + 2.7vw, 3.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; color: var(--navy); text-align: center; }
.cp-h2 em { display: block; }
.cp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.cp-cards li { display: flex; flex-direction: column; gap: 28px; min-height: 420px; padding: 28px 28px 0; border-radius: 32px; background: var(--mist); overflow: hidden; }
.cp-cards li:nth-child(even) { background: var(--sand); }
.cp-cards h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; color: var(--navy); }
.cp-cards h3 span { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); }
.cp-cards img { align-self: center; width: 112%; max-width: none; margin-top: auto; margin-bottom: -22%; filter: drop-shadow(0 18px 20px rgba(13, 20, 55, 0.16)); }

/* ================= Rodapé, aviso, confete ================= */

.cp-foot { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.cp-foot > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 32px clamp(24px, 4vw, 56px); border-radius: var(--r-section); background: #0D1437; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.cp-foot nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.cp-foot a { padding-block: 11px; color: #fff; text-decoration: none; }
@media (max-width: 420px) { .cp-foot nav { gap: 0 20px; } }
/* Durante a contagem, as páginas em inglês e espanhol ainda não estão abertas. */
.cp[data-state='wait'] .cp-langs { display: none; }
.cp-foot a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.cp-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cp-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 20; width: max-content; max-width: calc(100vw - 32px); padding: 14px 24px; border-radius: 100px; background: #0D1437; box-shadow: 0 16px 34px rgba(13, 20, 55, 0.3); font-size: 16px; font-weight: 500; color: #fff; text-align: center; translate: -50% 30px; opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.35s var(--ease); }
.cp-toast.is-on { opacity: 1; translate: -50% 0; }
.cp-noscript { padding: 16px; text-align: center; }
.cp-confetti { position: fixed; z-index: 30; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* ================= Telas menores ================= */

@media (min-width: 980px) and (max-height: 780px) {
  .cp-title { font-size: clamp(2.5rem, 1rem + 3vw, 4rem); }
  .cp-lead { margin-top: 16px; }
  .cp-wait { gap: 16px; }
}

@media (max-width: 1180px) {
  .cp-cards { grid-template-columns: 1fr 1fr; }
  .cp-cards img { width: min(112%, 420px); }
}

@media (max-width: 979px), (max-aspect-ratio: 1/1) {
  :root { --edge: 16px; --r-section: 28px; }
  .cp-hero { min-height: 0; }
  .cp-top { padding-top: 16px; }
  .cp-main { display: flex; flex-direction: column; align-items: center; padding-block: 36px 48px; }
  .cp-head { text-align: center; }
  .cp-lead { margin-inline: auto; }
  .cp-scene, .cp[data-state='open'] .cp-scene { position: relative; top: auto; align-self: center; width: min(100%, 460px); min-width: 0; margin-top: 32px; }
  .cp-body { width: 100%; margin-top: 36px; }
  .cp-wait { align-items: center; }
  .cp-wait .cp-row { justify-content: center; }
  .cp-note { text-align: center; }
  .cp-ended .cp-badges { justify-content: center; }
  .cp-foot > div { flex-direction: column; text-align: center; }
  .cp-foot nav { justify-content: center; }
}

@media (max-width: 560px) {
  .cp-logo img { width: 118px; }
  .cp-sign { padding-right: 14px; font-size: 13px; }
  .cp-sign__lamp { width: 28px; height: 28px; font-size: 15px; }
  .cp-title { font-size: clamp(2.25rem, 11.4vw, 3.25rem); }
  .cp-kicker { margin-bottom: 14px; }
  .cp-lead { margin-top: 16px; }
  .cp-count { gap: 8px; }
  .cp-plates { gap: 3px; min-height: 0; }
  .cp-plates > span { width: clamp(30px, 9.4vw, 38px); border-radius: 6px; }
  .cp-plates b { font-size: clamp(21px, 6.4vw, 26px); }
  .cp-wait .cp-row { width: 100%; }
  .cp-wait .cp-btn { flex: 1 1 100%; }
  .cp-ticket__band, .cp-ticket__route, .cp-ticket__meta, .cp-ticket__code { padding-inline: 20px; }
  .cp-ticket__code::before { left: 20px; right: 20px; }
  .cp-ticket__bars { padding-inline: 20px; padding-bottom: 22px; }
  .cp-ticket__copy { padding: 0 14px; }
  .cp-ticket__copy i { display: none; }
  .cp-qr { display: none; }
  .cp-cards { grid-template-columns: 1fr; }
  .cp-cards li { min-height: 0; }
  .cp-badge--big img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
