/* ============================================================
   Landing — Gestão de Milhas Premium (Tem Voo)
   Motivo visual: painel de embarque + cartão de embarque.
   ============================================================ */

:root {
  --navy: #0E2A47;        /* marca Tem Voo */
  --night: #081A30;
  --ink: #14213A;
  --paper: #F2F1EC;
  --paper-2: #E9E8E1;
  --line: #CFD3CC;
  --muted: #5B6675;
  --board: #F5C451;       /* amarelo do painel de embarque (sobre navy) */
  --board-ink: #7A5C12;   /* mesmo tom, legível sobre claro */
  --ok: #2F7A4E;
  --white: #FFFFFF;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --measure: 62ch;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-dark { background: var(--navy); color: var(--paper); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: #D8DEE6; }
.lead { font-size: 1.15rem; color: var(--muted); }

:focus-visible { outline: 3px solid var(--board); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .95em 1.5em; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--board); color: var(--night); border-color: var(--board); }
.btn-primary:hover { background: #FFD46A; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.section-light .btn-ghost:hover { background: rgba(14,42,71,.06); }
.btn-whats { background: #25D366; color: #06381C; border-color: #25D366; font-size: 1.1rem; }
.btn-whats:hover { background: #3AE07A; }
.btn-whats svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) 100%);
  color: var(--paper);
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(40px, 8vw, 96px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; border-radius: 4px; }
.brand span { font-weight: 600; letter-spacing: -0.01em; }
.topbar .btn { padding: .65em 1.1em; font-size: .95rem; }

.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.kicker { color: var(--board); font-weight: 500; margin: 0 0 1.2em; max-width: none; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { max-width: 46ch; margin-bottom: 1.8em; color: #C9D2DD; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px;
  filter: saturate(.85) contrast(1.02);
}
@media (min-width: 900px) {
  .topbar { margin-bottom: clamp(32px, 5vw, 56px); }
  .hero-photo img { aspect-ratio: 4 / 4.2; max-height: min(600px, 70vh); }
}

/* Cartão de embarque do responsável (autoridade nomeada) */
.pass {
  position: absolute; left: clamp(-8px, -2vw, -24px); bottom: clamp(16px, 4vw, 40px);
  width: min(360px, 92%);
  background: var(--paper); color: var(--ink);
  border-radius: 10px; padding: 16px 18px 14px;
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.pass::before, .pass::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); transform: translateY(-50%);
}
.pass::before { left: -9px; } .pass::after { right: -9px; }
.pass-avatar {
  width: 56px; height: 56px; border-radius: 6px; background: var(--navy); color: var(--board);
  display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; letter-spacing: .02em;
  overflow: hidden;
}
.pass-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pass-name { font-weight: 700; line-height: 1.1; }
.pass-role { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.pass-tag { font-family: var(--mono); font-size: .72rem; color: var(--board-ink); margin-top: 6px; }

/* ---------- Para quem é ---------- */
.two-col { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.fit-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-list h3 { margin-bottom: .2em; }
.fit-yes h3 { color: var(--ok); }
.fit-no h3 { color: var(--muted); }

/* ---------- Proposta de valor ---------- */
.statement {
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; letter-spacing: -0.015em;
  font-weight: 500; max-width: 28ch; color: var(--white);
}
.statement + p { color: #C9D2DD; max-width: 52ch; margin-top: 1.4em; }

/* ---------- Como funciona (sequência real, por isso numerada) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 24px 20px 24px 0; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--mono); color: var(--board-ink); font-size: .95rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .98rem; color: var(--muted); margin: 0; }

/* ---------- Autoridade ---------- */
.authority { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .authority { grid-template-columns: .8fr 1.2fr; } }
.authority img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.principles li { padding: 12px 0 12px 20px; border-left: 3px solid var(--board); margin-bottom: 10px; }

/* ---------- Painel de embarque (prova): o elemento memorável ---------- */
.board {
  background: var(--night); border-radius: 12px; padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.08); overflow-x: auto;
}
.board-head, .board-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.board-head { font-family: var(--mono); font-size: .75rem; color: #8A9BB0; letter-spacing: .06em; }
.board-row:last-child { border-bottom: 0; }
.board-label { color: #D8DEE6; font-weight: 500; }
.board-value { display: inline-flex; gap: 6px; align-items: center; }
.flap-sep { color: #8A9BB0; font-family: var(--mono); }
.flap {
  font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 600;
  color: var(--board); background: #0B2140; border: 1px solid #1B3A5F; border-radius: 4px;
  padding: 4px 8px; line-height: 1.2; position: relative;
  animation: flip .6s cubic-bezier(.2,.8,.2,1) both;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.board-row:nth-child(2) .flap { animation-delay: .05s; }
.board-row:nth-child(3) .flap { animation-delay: .15s; }
.board-row:nth-child(4) .flap { animation-delay: .25s; }
.board-row:nth-child(5) .flap { animation-delay: .35s; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flap { animation: none; } }
.board-note { font-size: .92rem; color: #A9B6C6; margin-top: 18px; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- Qualificação (cartão de embarque) ---------- */
.ticket {
  background: var(--paper); color: var(--ink); border-radius: 12px;
  max-width: 640px; margin: 0 auto; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 22px; border-bottom: 2px dashed var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.ticket-body { padding: clamp(22px, 4vw, 36px) 22px 26px; min-height: 300px; }
.q-progress { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.q-progress span { display: block; height: 100%; background: var(--navy); width: 0; transition: width .25s ease; }
.q-question { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 20px; max-width: 26ch; }
.q-help { color: var(--muted); font-size: .95rem; margin-top: -10px; margin-bottom: 20px; }
.q-options { display: grid; gap: 10px; }
.q-option {
  text-align: left; font: inherit; padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .12s ease;
}
.q-option:hover { border-color: var(--navy); }
.q-input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--white);
}
.q-input:focus { border-color: var(--navy); outline: none; }
.q-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.q-back { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; }
.q-result h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.q-result p { color: var(--muted); }
.q-summary { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 18px 0 22px; padding: 12px 14px; background: var(--paper-2); border-radius: var(--radius); }
.q-summary span { display: block; }

/* ---------- Rodapé ---------- */
footer { padding: 40px 0 120px; font-size: .92rem; color: var(--muted); }
@media (min-width: 800px) { footer { padding-bottom: 48px; } }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--ink); }

/* ---------- CTA fixo (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter);
  background: rgba(8,26,48,.92); backdrop-filter: blur(8px); z-index: 20;
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 800px) { .sticky-cta { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
