/* Travel by Me — lista de lançamento (/lancamento e /lancamento/perfil).
   Mesmas cores, fonte e traço "de adesivo" do site; layout próprio, de uma tela só. */

:root {
  --primary: #FE5702;
  --primary-text: #C2410C;
  --primary-soft: #FDEBDD;
  --navy: #1C2456;
  --navy-text: #212655;
  --navy-deep: #011547;
  --cream: #FEF7EC;
  --surface: #F1F2F6;
  --muted: #5B6172;
  --border: #D0D5DD;
  --success: #14734A;
  --success-soft: #E3F5EC;
  --ink: 2.5px solid var(--navy-deep);
  --drop: 0 6px 0 var(--navy-deep);
  --drop-sm: 0 4px 0 var(--navy-deep);
  --soft-shadow: 0 14px 40px rgba(1, 21, 71, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--navy-text); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Fundo ---------- */

.lp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--cream); }
.lp-bg__video, .lp-bg__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
/* Respiração lenta (scale) e um leve acompanhamento do mouse (translate): propriedades separadas, sem conflito. */
.lp-bg__video { scale: 1.06; translate: var(--mx, 0) var(--my, 0); transition: translate 1.4s var(--ease); animation: breathe 22s ease-in-out infinite alternate; }
@keyframes breathe { to { scale: 1.12; } }
.lp-bg__shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(254, 247, 236, 0.97) 0%, rgba(254, 247, 236, 0.92) 30%, rgba(254, 247, 236, 0.6) 46%, rgba(254, 247, 236, 0) 62%),
    linear-gradient(180deg, rgba(254, 247, 236, 0.55) 0%, rgba(254, 247, 236, 0) 18%, rgba(254, 247, 236, 0) 82%, rgba(254, 247, 236, 0.6) 100%); }
.lp-bg--soft .lp-bg__still { filter: blur(22px) saturate(1.1); scale: 1.12; }
.lp-bg--soft .lp-bg__shade { background: rgba(254, 247, 236, 0.78); }

/* ---------- Topo e rodapé ---------- */

.lp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px clamp(20px, 6vw, 96px); }
.lp-logo img { width: 128px; }
.lp-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid rgba(1, 21, 71, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.lp-ghost:hover { background: #fff; border-color: var(--navy-deep); }
.lp-ghost i { transition: transform 0.2s var(--ease); }
.lp-ghost:hover i { transform: translate(2px, -2px); }
.lp-step { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; color: var(--navy); }

.lp-foot { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 20px clamp(20px, 6vw, 96px); font-size: 14px; color: var(--muted); }
.lp-foot a { text-decoration: none; font-weight: 600; }
.lp-foot a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Tela principal ---------- */

.lp { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.lp-main { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: center; padding: 112px clamp(20px, 6vw, 96px) 28px; }
.lp-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.lp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(253, 235, 221, 0.92); font-weight: 700; font-size: 15px; color: var(--primary-text); }
.lp-badge b { font-weight: 800; }
.lp-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.lp-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.lp-title { font-weight: 800; font-size: clamp(44px, 5vw, 78px); line-height: 1.0; letter-spacing: -0.052em; color: var(--navy); }
/* A máscara da animação precisa de folga em cima (acentos) e embaixo (g, ç, q, p), senão corta as letras. */
.lp-line { display: block; overflow: hidden; padding: 0.08em 0.04em 0.24em; margin: -0.08em -0.04em -0.24em; }
.lp-line > * { display: inline-block; }
.lp-title em { font-style: normal; color: var(--primary-text); }
.lp-lead { max-width: 560px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--navy-text); }

.lp-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 12px; width: 100%; max-width: 680px; margin-top: 6px; }
.lp-field { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 18px; border: 1.5px solid rgba(1, 21, 71, 0.12); border-radius: 18px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--soft-shadow); transition: border-color 0.2s, box-shadow 0.2s; }
.lp-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 87, 2, 0.16), var(--soft-shadow); }
.lp-field.is-bad { border-color: #D92D20; }
.lp-field i { flex-shrink: 0; font-size: 22px; color: var(--muted); }
.lp-field:focus-within i { color: var(--primary); }
.lp-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 17px/1 'Inter', 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.lp-field input::placeholder { color: #8A90A2; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lp-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 28px; border: var(--ink); border-radius: 999px; background: var(--primary); box-shadow: var(--drop); font-weight: 800; font-size: 17px; color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s; }
/* Um brilho atravessa o botão de vez em quando: chama o olho sem piscar. */
.lp-btn::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); animation: shine 5.5s ease-in-out 2.2s infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.lp-btn i { transition: transform 0.2s var(--ease); }
.lp-btn:hover { transform: translateY(2px); box-shadow: var(--drop-sm); }
.lp-btn:hover i { transform: translateX(4px); }
.lp-btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--navy-deep); }
.lp-btn[disabled] { cursor: progress; opacity: 0.85; }
.lp-btn.is-ok { background: var(--success); }
.lp-btn .lp-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lp-msg { min-height: 0; font-weight: 700; font-size: 15px; }
.lp-msg:empty { display: none; }
.lp-msg.is-bad { color: #B42318; }
.lp-msg.is-ok { color: var(--success); }
.lp-terms { max-width: 600px; margin-top: -8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lp-terms a { font-weight: 700; color: var(--navy); }

.lp-perks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 4px; }
.lp-perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--navy); }
.lp-perks i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(253, 235, 221, 0.95); font-size: 15px; color: var(--primary-text); }

/* ---------- Adesivos sobre a cena ---------- */

.lp-stickers { position: absolute; inset: 0; pointer-events: none; }
.lp-pass { position: absolute; left: calc(50% + 130px); bottom: 11vh; width: 236px; border: var(--ink); border-radius: 18px; background: #fff; box-shadow: var(--drop); overflow: hidden; transform: rotate(-5deg); animation: float 7s ease-in-out infinite; }
.lp-pass__top { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 2.5px dashed var(--navy-deep); background: var(--navy-deep); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.lp-pass__top i { font-size: 18px; color: var(--primary); }
.lp-pass__route { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--navy); }
.lp-pass__dash { flex: 1; height: 0; border-top: 3px dotted var(--primary); }
.lp-pass__meta { display: flex; justify-content: space-between; gap: 10px; padding: 0 14px 14px; }
.lp-pass__meta span { font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lp-pass__meta b { display: block; margin-top: 2px; font-weight: 800; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--navy); }
.lp-count { position: absolute; left: calc(50% + 70px); top: 14vh; display: grid; place-items: center; align-content: center; width: 128px; height: 128px; padding: 14px; border: var(--ink); border-radius: 50%; background: var(--primary); box-shadow: var(--drop); color: #fff; text-align: center; transform: rotate(-10deg); animation: float 6s ease-in-out -2s infinite; }
.lp-count[hidden] { display: none; }

/* Olho de avião (só no celular) */
.lp-porthole { display: none; }
.lp-count b { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.lp-count span { font-weight: 700; font-size: 12px; line-height: 1.2; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Entrada (as linhas do título sobem por trás de uma máscara) ---------- */

.js .lp-in { opacity: 0; translate: 0 22px; animation: lp-in 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
.js .lp-line > .lp-in { opacity: 1; translate: 0 108%; }
@keyframes lp-in { to { opacity: 1; translate: none; } }
.js .lp-stickers > * { opacity: 0; animation: pop-in 0.7s var(--ease) 1.1s forwards, float 7s ease-in-out 1.8s infinite; }
.js .lp-stickers > .lp-count { animation-delay: 1.3s, 2s; }
@keyframes pop-in { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }
/* Saída para o passo seguinte. */
.is-leaving .lp-hero, .is-leaving .lp-stickers { transition: opacity 0.4s ease, translate 0.45s var(--ease); opacity: 0; translate: -30px 0; }

/* ---------- Questionário ---------- */

.quiz { display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 780px; margin: 0 auto; padding: 128px 20px 72px; }
.quiz__intro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.quiz__intro .lp-badge { background: var(--success-soft); color: var(--success); }
.quiz__intro .lp-badge i { font-size: 18px; }
.quiz__hello { font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.045em; color: var(--navy); text-wrap: balance; }
.quiz__sub { max-width: 560px; font-size: 18px; color: var(--muted); text-wrap: pretty; }

.quiz__card { position: relative; padding: 28px clamp(18px, 4vw, 36px) 26px; border: var(--ink); border-radius: 32px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--drop); }
.quiz__bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--primary); transform: scaleX(var(--progress, 0.16)); transform-origin: left; transition: transform 0.5s var(--ease); }

.q { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.q[hidden] { display: none; }
.q legend { padding: 0; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.03em; color: var(--navy); outline: none; }
.q legend small { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.q.is-in { animation: q-in 0.45s var(--ease); }
.q.is-in.from-left { animation-name: q-in-left; }
@keyframes q-in { from { opacity: 0; translate: 36px 0; } }
@keyframes q-in-left { from { opacity: 0; translate: -36px 0; } }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 20px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt > span { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 58px; padding: 13px 44px 13px 16px; border: 2px solid var(--border); border-radius: 16px; background: #fff; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--navy); transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease); }
.opt > span em { font-style: normal; font-size: 22px; }
.opt > span i { font-size: 20px; color: var(--primary-text); }
.opt > span::after { content: ''; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--border); border-radius: 50%; background: #fff no-repeat center / 12px; transition: background-color 0.15s, border-color 0.15s, transform 0.2s var(--ease); }
.opt input[type='checkbox'] + span::after { border-radius: 6px; }
.opt:hover > span { border-color: var(--navy); transform: translateY(-2px); }
.opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.opt input:checked + span::after { border-color: var(--primary); background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transform: scale(1.08); }
.opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.opts--photos { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.opts--photos .opt > span { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.opts--photos .opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale 0.4s var(--ease); }
.opts--photos .opt:hover img { scale: 1.06; }
.opts--photos .opt b { display: block; padding: 9px 12px 10px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.opts--photos .opt > span::after { top: 10px; margin-top: 0; box-shadow: 0 1px 4px rgba(1, 21, 71, 0.3); }

.quiz__other { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.quiz__other span { font-weight: 700; font-size: 14px; color: var(--muted); }
.quiz__other input, .quiz__other textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 14px; background: #fff; font: 500 16px/1.4 'Inter', 'Plus Jakarta Sans', sans-serif; color: var(--navy); outline: none; resize: vertical; transition: border-color 0.15s, box-shadow 0.15s; }
.quiz__other input:focus, .quiz__other textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(254, 87, 2, 0.14); }
.quiz__other--area { margin-top: 20px; }

.quiz .lp-msg { margin-top: 16px; }
.quiz__nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.quiz__nav .lp-btn { margin-left: auto; min-height: 56px; }
.quiz__back, .quiz__skip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; }
.quiz__back:hover, .quiz__skip:hover { background: var(--surface); color: var(--navy); }
.quiz__back[hidden], .quiz__skip[hidden] { display: none; }

.quiz__done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px clamp(18px, 4vw, 40px) 36px; border: var(--ink); border-radius: 32px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--drop); text-align: center; outline: none; animation: lp-in 0.7s var(--ease) both; }
.quiz__done[hidden] { display: none; }
.quiz__mascot { width: 170px; border: var(--ink); border-radius: 32px; background: #FEF7EC; box-shadow: var(--drop-sm); }
.quiz__done h1 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.045em; color: var(--navy); text-wrap: balance; }
.quiz__done p { max-width: 520px; font-size: 18px; color: var(--muted); }
.quiz__done p b { color: var(--navy); }
.quiz__done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.is-done .quiz__intro, .is-done .quiz__card { display: none; }

/* ---------- Telas menores ---------- */

/* Em telas médias o cartão de embarque encostaria no formulário: fica só a contagem. */
@media (max-width: 1320px) { .lp-pass { display: none; } }

@media (max-width: 1100px) {
  .lp-stickers .lp-count { display: none; }
  .lp-bg__shade { background:
      linear-gradient(90deg, rgba(254, 247, 236, 0.97) 0%, rgba(254, 247, 236, 0.9) 45%, rgba(254, 247, 236, 0.5) 65%, rgba(254, 247, 236, 0.1) 85%),
      linear-gradient(180deg, rgba(254, 247, 236, 0.55) 0%, rgba(254, 247, 236, 0) 18%, rgba(254, 247, 236, 0) 82%, rgba(254, 247, 236, 0.6) 100%); }
}

@media (max-width: 860px) {
  .lp-main { grid-template-columns: 1fr; align-items: start; padding-top: 112px; padding-bottom: 150px; }
  .lp-form { grid-template-columns: 1fr; }
  .lp-btn { width: 100%; }
  .quiz__nav .lp-btn { width: auto; }
  .lp-stickers { display: none; }
  /* No celular o fundo é a cena desfocada (sem disputar com o texto) e o vídeo vai para o olho de avião. */
  .lp-bg { background: var(--cream) url('/assets/video/fundo-waitlist.jpg') 70% 50% / cover no-repeat; }
  .lp-bg::before { content: ''; position: absolute; inset: -40px; background: inherit; filter: blur(26px) saturate(1.1); }
  .lp-bg__shade { background: rgba(254, 247, 236, 0.84); }
  .lp-bg--soft .lp-bg__shade { background: rgba(254, 247, 236, 0.82); }
  .lp-main { padding-bottom: 12px; }
  .lp-foot { padding-top: 8px; }
  .lp-foot a:last-child { margin-left: 0; }

  .lp-porthole { position: relative; display: grid; place-items: center; width: min(250px, 66vw); aspect-ratio: 0.77; margin: 34px auto 6px; padding: 14px; border-radius: 46% / 38%; background: linear-gradient(160deg, #fff 0%, #F3EDE3 100%); box-shadow: inset 0 0 0 1px rgba(1, 21, 71, 0.08), 0 18px 40px rgba(1, 21, 71, 0.16); }
  .lp-porthole__glass { position: relative; width: 100%; height: 100%; border-radius: 44% / 36%; overflow: hidden; background: #F5C89B url('/assets/video/fundo-waitlist.jpg') 66% 42% / 520% auto no-repeat; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85), inset 0 10px 24px rgba(1, 21, 71, 0.25); }
  /* Só a vista lá fora: o quadro do vídeo é ampliado até a janela dele preencher o olho. */
  .lp-porthole .lp-bg__video { position: absolute; inset: auto; top: -52%; left: -300%; width: 520%; max-width: none; height: auto; object-fit: initial; scale: 1; translate: none; animation: none; }
  .lp-porthole__glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 38%); pointer-events: none; }
  .lp-count--mini { position: absolute; top: -10px; right: -26px; left: auto; width: 84px; height: 84px; padding: 8px; transform: rotate(10deg); }
  .lp-count--mini b { font-size: 30px; }
  .lp-count--mini span { font-size: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .lp-top { padding-top: 18px; }
  .lp-logo img { width: 108px; }
  .lp-ghost { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .lp-badge { font-size: 14px; }
  .lp-perks { flex-direction: column; gap: 10px; }
  .quiz { padding-top: 104px; }
  .opts { grid-template-columns: 1fr; }
  .opts--photos { grid-template-columns: repeat(2, 1fr); }
  .quiz__nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .lp-in, .js .lp-line > .lp-in, .js .lp-stickers > * { opacity: 1; translate: none; }
  .lp-bg__video { scale: 1.06; translate: none; }
}
