/* Rasante · passagens baratas saindo de Goiânia */
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --ink: #10213a;
  --muted: #5b6b82;
  --line: #e1e7f0;
  --sky: #0d4f91;
  --sky-2: #1677d2;
  --sky-soft: #e6f0fb;
  --sun: #ff6b3d;
  --sun-2: #ff8f3d;
  --green: #0f9d58;
  --green-soft: #e3f6ec;
  --yellow-soft: #fff4d6;
  --red-soft: #fde7e3;
  --radius: 20px;
  --shadow: 0 2px 4px rgba(16, 33, 58, .04), 0 10px 30px rgba(16, 33, 58, .08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --w: 1200px;
  --m: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-sun { background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 61, .35); }
.btn-sun:hover { box-shadow: 0 10px 26px rgba(255, 107, 61, .5); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-2); }
.btn-claro { background: var(--sky-soft); color: var(--sky); }
.btn-claro:hover { background: var(--sky); color: #fff; }

/* ---------- topo ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: var(--w); margin: auto; padding: 12px var(--m); display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; color: var(--sky); }
.logo svg { width: 36px; height: 36px; }
.saida { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--sky); font-size: .9rem; }
.saida svg { width: 16px; height: 16px; }
.top-cta { font-weight: 700; color: var(--sun); text-decoration: none; font-size: .95rem; }
.top-cta:hover { text-decoration: underline; }

/* ---------- capa com busca ---------- */
.hero {
  position: relative; color: #fff; padding: clamp(48px, 7vw, 96px) var(--m) 0;
  background: linear-gradient(180deg, rgba(8, 40, 82, .55), rgba(8, 40, 82, .85)), var(--capa, none) center 40% / cover, var(--sky);
}
.hero-in { max-width: var(--w); margin: auto; }
.hero-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: .875rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 14px; max-width: 14ch; }
.hero-sub { max-width: 54ch; font-size: clamp(1rem, .95rem + .3vw, 1.175rem); opacity: .92; }
.busca {
  max-width: var(--w); margin: clamp(32px, 4vw, 48px) auto 0; transform: translateY(50%);
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 10px; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: stretch;
}
.campo { display: grid; gap: 2px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.campo:focus-within { border-color: var(--sky-2); }
.campo span { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.campo input, .campo select { border: 0; padding: 2px 0; background: transparent; font-weight: 600; font-size: 1rem; outline: none; min-width: 0; width: 100%; }
.busca .btn { min-height: 56px; }
main { padding-top: 70px; }

/* ---------- blocos ---------- */
.bloco { max-width: var(--w); margin: auto; padding: clamp(40px, 5vw, 64px) var(--m) 0; }
.bloco-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.bloco h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.bloco-cab p { color: var(--muted); margin-top: 4px; }
.ordem { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.ordem select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--card); font-weight: 600; color: var(--ink); }

/* ---------- promoções (cartões com foto) ---------- */
.promos { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 20px;
  border-radius: var(--radius); overflow: hidden; color: #fff; text-align: left; border: 0; cursor: pointer;
  background: var(--sky); box-shadow: var(--shadow); isolation: isolate;
}
.promo img, .card-foto img, .cal-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 25, 50, .15) 0%, rgba(8, 25, 50, .1) 30%, rgba(8, 25, 50, .92) 75%); }
.promo h3, .promo .por { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.promo:hover img { transform: scale(1.06); }
.selo { position: absolute; top: 14px; right: 14px; background: var(--sun); color: #fff; font-weight: 800; font-size: .95rem; padding: 6px 12px; border-radius: 999px; }
.selo-g { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--green); font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 999px; }
.promo h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.promo .uf { opacity: .8; font-weight: 600; font-size: .9rem; }
.promo .de { margin-top: 10px; font-size: .85rem; opacity: .85; }
.promo .de s { opacity: .9; }
.promo .por { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.promo .por small { font-size: .9rem; font-weight: 600; }
.promo .quando { font-size: .875rem; opacity: .9; margin-top: 4px; }
.promo .ver { margin-top: 14px; align-self: stretch; text-align: center; padding: 10px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px; font-weight: 700; font-size: .9rem; transition: background-color .2s, color .2s; }
.promo:hover .ver { background: #fff; color: var(--ink); }

/* ---------- abas ---------- */
.abas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.abas button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all .2s; }
.abas button:hover { border-color: var(--sky-2); color: var(--sky-2); }
.abas button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }

/* ---------- cartões de destino ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; text-align: left; border: 0; padding: 0; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 33, 58, .14); }
.card:hover .card-foto img { transform: scale(1.05); }
.card-foto { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sky), var(--sky-2)); overflow: hidden; isolation: isolate; }
.card-corpo { padding: 16px 18px 18px; display: grid; gap: 4px; flex: 1; }
.card-cid { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.card .uf { color: var(--muted); font-weight: 600; font-size: .85rem; }
.card .apartir { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.card .preco { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.card .preco small { font-size: .85rem; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; width: max-content; }
.chip-g { background: var(--green-soft); color: var(--green); }
.chip-n { background: var(--sky-soft); color: var(--sky); }
.card .quando { color: var(--muted); font-size: .85rem; }
.card .voo { color: var(--muted); font-size: .8rem; }
.barras { display: flex; align-items: flex-end; gap: 1px; height: 38px; margin-top: 10px; }
.barras i { flex: 1; border-radius: 2px 2px 0 0; background: #cdd9e8; }
.barras i.ok { background: #7fb2e6; }
.barras i.of { background: var(--green); }
.card .btn { margin-top: 12px; min-height: 44px; width: 100%; }
.vazio { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); background: var(--card); border-radius: var(--radius); }

/* ---------- como funciona ---------- */
.como h2 { margin-bottom: 22px; }
.passos { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passos article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.passos .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sky-soft); color: var(--sky); margin-bottom: 16px; }
.passos .ic svg { width: 26px; height: 26px; }
.passos h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; }
.passos p { color: var(--muted); }

.alerta {
  max-width: calc(var(--w) - 2 * var(--m)); margin: clamp(40px, 5vw, 64px) auto 0; width: calc(100% - 2 * var(--m));
  border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(120deg, var(--sun), var(--sun-2) 55%, #ffb547); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center;
}
.alerta h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.alerta p { max-width: 52ch; opacity: .95; }
.alerta-arte { width: 100%; max-width: 280px; justify-self: end; }

.rodape { max-width: var(--w); margin: auto; padding: 40px var(--m) 48px; color: var(--muted); font-size: .875rem; display: grid; gap: 4px; }

/* ---------- calendário de preços ---------- */
.cal { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 80px rgba(8, 25, 50, .35); overflow: auto; color: var(--ink); }
.cal::backdrop { background: rgba(8, 25, 50, .55); backdrop-filter: blur(3px); }
.cal-foto { position: relative; height: 150px; background: linear-gradient(135deg, var(--sky), var(--sky-2)); overflow: hidden; isolation: isolate; }
.cal-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 1)); }
.cal-in { position: relative; padding: 0 clamp(18px, 4vw, 32px) 28px; margin-top: -40px; }
.fechar { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.cal-rota { color: var(--muted); font-weight: 600; font-size: .9rem; position: relative; }
.cal h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; position: relative; }
.cal-resumo { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.meses { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.meses button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; text-transform: capitalize; }
.meses button small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.meses button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.meses button[aria-selected="true"] small { color: rgba(255, 255, 255, .8); }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 10px; font-size: .78rem; color: var(--muted); }
.legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.l-of::before { background: var(--green); }
.l-ok::before { background: #9cc6ee; }
.l-alto::before { background: #f3b0a3; }
.grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.grade .sem { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; padding-bottom: 2px; }
.dia { border: 0; border-radius: 12px; padding: 8px 2px; text-align: center; background: var(--bg); cursor: pointer; display: grid; gap: 2px; transition: transform .15s; min-height: 58px; align-content: center; }
.dia b { font-size: .95rem; }
.dia span { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.dia:hover { transform: scale(1.06); }
.dia.of { background: var(--green); color: #fff; }
.dia.ok { background: var(--sky-soft); color: var(--sky); }
.dia.alto { background: var(--red-soft); color: #b3412b; }
.dia.vazio-d { background: transparent; cursor: default; color: #b9c3d1; }
.dia.vazio-d:hover { transform: none; }
.cal-nota { color: var(--muted); font-size: .85rem; margin-top: 14px; }

@media (max-width: 960px) {
  .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .busca { grid-template-columns: 1fr 1fr; transform: translateY(40%); }
  .busca .campo:first-child, .busca .btn { grid-column: 1 / -1; }
  main { padding-top: 130px; }
}
@media (max-width: 640px) {
  .top-cta { display: none; }
  .saida .longo { display: none; }
  .promos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--m)); padding: 0 var(--m) 8px; scrollbar-width: none; }
  .promo { scroll-snap-align: start; min-height: 360px; }
  .busca { grid-template-columns: 1fr; transform: translateY(24%); }
  main { padding-top: 110px; }
  .passos, .alerta { grid-template-columns: minmax(0, 1fr); }
  .alerta-arte { display: none; }
  .dia { min-height: 50px; border-radius: 10px; }
  .dia span { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- entrada: só quem assinou vê o painel ---------- */
body.trancado > :not(.entrada):not(script):not(dialog) { display: none !important; }
.entrada { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px var(--m); background: var(--sky); }
.entrada[hidden] { display: none; }
.entrada-caixa { width: 100%; max-width: 440px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 6vw, 44px); display: grid; gap: 18px; }
.entrada-caixa .logo { margin-bottom: 6px; }
.entrada h1 { font-size: clamp(1.7rem, 5vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.entrada-sub { color: var(--muted); }
.entrada form { display: grid; gap: 14px; }
.entrada form[hidden] { display: none; }
.entrada-campo { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.entrada-campo input { min-height: 54px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 1.05rem; font-weight: 500; }
.entrada-campo input:focus { outline: none; border-color: var(--sky-2); background: var(--card); }
#e-codigo { font-size: 1.6rem; letter-spacing: .35em; font-weight: 800; text-align: center; }
.entrada .btn { width: 100%; }
.entrada .btn:disabled { opacity: .6; cursor: wait; }
.entrada-links { text-align: center; color: var(--muted); font-size: .9rem; }
.entrada-links button { background: none; border: 0; padding: 4px; color: var(--sky-2); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.entrada-msg { font-size: .95rem; min-height: 1.4em; }
.entrada-msg:empty { display: none; }
.entrada-msg.erro { color: #b3261e; }
.entrada-msg a, .entrada-pe a { color: var(--sky-2); font-weight: 700; }
.entrada-pe { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.top-sair { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; color: var(--sky); cursor: pointer; }
.top-sair svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .top-sair { padding: 0; width: 40px; height: 40px; justify-content: center; } .top-sair span { display: none; } }
.top-sair:hover { color: var(--ink); border-color: var(--muted); }
.entrada-msg.ok { color: var(--green); }
.entrada [hidden], .conta [hidden] { display: none !important; }
.senha-caixa { position: relative; display: block; }
.senha-caixa input { width: 100%; padding-right: 96px; }
.ver { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px 10px; font-weight: 700; font-size: .85rem; color: var(--sky-2); cursor: pointer; }
.entrada-campo input { width: 100%; }
.dica { color: var(--muted); font-size: .88rem; margin-top: -4px; }

/* ---------- minha conta ---------- */
.conta { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(24px, 5vw, 34px); border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 80px rgba(8, 25, 50, .35); overflow: auto; color: var(--ink); }
.conta::backdrop { background: rgba(8, 25, 50, .55); backdrop-filter: blur(3px); }
.conta h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.conta h3 { font-size: 1.1rem; font-weight: 800; }
.conta-quem { margin-bottom: 14px; }
.conta-nome { font-weight: 700; font-size: 1.1rem; }
.conta-email { color: var(--muted); word-break: break-all; }
.conta-plano { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px; border-radius: 14px; background: var(--sky-soft); color: var(--sky); font-weight: 600; }
.conta-selo { background: var(--sun); color: var(--ink); font-weight: 800; padding: 6px 12px; }
.conta-selo:empty { display: none; }
.conta form { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.conta .btn { width: 100%; }
.conta-sair { display: block; width: 100%; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 999px; background: none; font-weight: 700; color: #b3261e; cursor: pointer; }
.conta-sair:hover { background: var(--red-soft); }
/* topo no celular: logo, saída com a hora e a conta cabem em 360 px */
@media (max-width: 520px) {
  .top-in { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .logo { font-size: 1.2rem; gap: 7px; }
  .logo svg { width: 30px; height: 30px; }
  .saida { padding: 7px 10px; font-size: .8rem; gap: 4px; min-width: 0; }
  .saida svg { width: 13px; height: 13px; }
}
