/* Coordenei — "Em breve". Manual de marca v1.0: Preto Noite domina, Amarelo Placa em pouca quantidade (logo, botão
   principal, destaques), Branco Papel no texto. Big Shoulders Display ExtraBold em MAIÚSCULAS (+3%) nos títulos e no
   botão principal; Geist nos textos; Geist Mono nos dados (ICAO). Pouca coisa na tela. Celular primeiro. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/BigShouldersDisplay-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --night: #0b0b0c; /* Preto Noite */
  --sign: #f2c230; /* Amarelo Placa */
  --paper: #f5f4ef; /* Branco Papel */
  --graphite: #2a2a2c; /* Grafite */
  --runway: #8e8b84; /* Cinza Pista — legendas sobre preto */
  /* Interface */
  --ink: var(--paper);
  --ink-2: rgba(245, 244, 239, 0.8);
  --ink-3: rgba(245, 244, 239, 0.62);
  --line: rgba(245, 244, 239, 0.22);
  --line-strong: rgba(245, 244, 239, 0.48);
  --field: rgba(11, 11, 12, 0.5);
  --error: #ffb4a8;
  --gutter: clamp(20px, 5vw, 64px);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

[hidden] {
  display: none !important;
}

/* --- Foto de fundo e véu ------------------------------------------------------------------------------------------ */

/* Celular e tablet: a foto é um bloco grande no topo (o avião inteiro à vista) que se funde no preto; o título entra sobre
   a parte de baixo dela e o formulário segue no fundo escuro. Tela larga (900 px+): a foto ocupa a tela inteira. */
.bg,
.veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48vh;
  height: 48svh;
  z-index: 0;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-mobile, 50% 60%);
  display: block;
  background: var(--night) var(--lqip, none) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
}

/* Celular: um pouco escuro sob o cabeçalho e sob o título; o meio (o avião) fica limpo. */
.veil {
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.05) 20%, rgba(8, 9, 11, 0) 42%, rgba(8, 9, 11, 0.45) 72%, rgba(8, 9, 11, 0) 100%);
}

@media (min-aspect-ratio: 4.0001/5) {
  .bg img {
    object-position: var(--focus-desktop, 50% 60%);
  }
}

@media (min-width: 900px) {
  /* Tela larga: a foto ocupa a direita e se funde no preto à esquerda, onde fica o texto — o avião não fica atrás dele. */
  .bg,
  .veil {
    position: fixed;
    inset: 0;
    height: auto;
  }

  .bg {
    left: 24%;
  }

  .bg img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 38%);
  }

  .veil {
    background:
      linear-gradient(90deg, rgba(8, 9, 11, 0.7) 0%, rgba(8, 9, 11, 0.45) 36%, rgba(8, 9, 11, 0.12) 64%, rgba(8, 9, 11, 0.06) 100%),
      linear-gradient(180deg, rgba(8, 9, 11, 0.4) 0%, rgba(8, 9, 11, 0) 22%, rgba(8, 9, 11, 0) 72%, rgba(8, 9, 11, 0.55) 100%);
  }
}

/* --- Estrutura ------------------------------------------------------------------------------------------------------ */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 4px;
}

/* Logo principal (fundo próprio — vale sobre a foto). A margem de proteção do manual já vem no SVG; a placa visível fica
   com ~89% da largura, sempre acima dos 140 px mínimos. */
.logo {
  display: inline-block;
  margin-left: -12px; /* a margem de proteção do arquivo alinha a placa com o texto */
  line-height: 0;
}

.logo img {
  display: block;
  width: 160px;
  height: auto;
}

@media (min-width: 900px) {
  .logo img {
    width: clamp(170px, 22vh, 196px);
  }

  .logo {
    margin-left: -14px;
  }
}

.lang {
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.24em;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink-2);
}

.lang:hover {
  color: var(--ink);
}

.main {
  flex: 1;
  display: grid;
  align-content: start;
  gap: clamp(14px, 2.4svh, 24px);
  padding: 15vh 0 6px;
  padding-top: 15svh;
  max-width: 1200px;
  width: 100%;
}

/* --- Texto ---------------------------------------------------------------------------------------------------------- */

.soon {
  margin: 0 0 clamp(6px, 1.2svh, 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sign);
}

.rule {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--sign);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, min(12vw, 6.4svh), 3.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 13ch;
}

.lead {
  margin: clamp(10px, 1.6svh, 18px) 0 0;
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lead-strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- Formulário ----------------------------------------------------------------------------------------------------- */

.signup {
  max-width: 34rem;
  width: 100%;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  height: clamp(46px, 6svh, 52px);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16 px: o iOS não dá zoom no campo. */
  font-weight: 400;
  transition: border-color 160ms ease;
}

input::placeholder {
  color: var(--ink-3);
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--sign);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

/* Botão principal: a "placa de direção" amarela da marca. */
.btn {
  height: clamp(46px, 6svh, 52px);
  padding: 0 24px;
  border: 1px solid var(--sign);
  border-radius: 2px;
  background: var(--sign);
  color: var(--night);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: #f6cf55;
}

.btn:focus-visible {
  outline-color: var(--paper);
}

.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: progress;
}

.btn--light {
  width: auto;
}

@media (min-width: 560px) {
  .row {
    flex-direction: row;
    gap: 0;
  }

  .row input {
    border-right: 0;
    border-radius: 2px 0 0 2px;
  }

  .row .btn {
    border-radius: 0 2px 2px 0;
  }
}

.error {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--error);
}

.founder {
  margin-top: clamp(12px, 2svh, 18px);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.founder input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--field);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.founder input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--night);
  border-bottom: 1.5px solid var(--night);
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}

.founder input:checked {
  background: var(--sign);
  border-color: var(--sign);
}

.founder input:checked::after {
  opacity: 1;
}

.founder label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0 0 2px;
}

.founder-fields {
  margin: 12px 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 10px 12px;
  align-items: end;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}

.field input {
  height: 44px;
}

.field--icao input {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.consent {
  margin: clamp(12px, 2svh, 18px) 0 0;
  padding-top: clamp(10px, 1.6svh, 14px);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.consent a {
  color: var(--ink-2);
  white-space: nowrap;
}

/* Campo-armadilha: fora da tela, sem foco (anti-robô). */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success {
  padding: 18px 0 4px;
  border-top: 2px solid var(--sign);
  outline: none;
}

.success-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sign);
}

.success-text {
  margin: 10px 0 0;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* --- Destaques ------------------------------------------------------------------------------------------------------ */

.highlights ul {
  list-style: none;
  margin: 0;
  padding: clamp(10px, 1.8svh, 16px) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* Celular (2 colunas): item ímpar no fim ocupa a linha inteira. No computador são 5 numa linha só. */
@media (max-width: 899px) {
  .highlights li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.icon {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--sign);
}

@media (min-width: 900px) {
  .main {
    align-content: center;
    padding: 1svh 0 1svh;
    gap: clamp(18px, 3.4svh, 34px);
  }

  .intro,
  .signup {
    max-width: 36rem;
  }

  h1 {
    font-size: clamp(3.2rem, min(6.6vw, 10.5svh), 6.2rem);
  }

  .soon {
    font-size: 16px;
  }

  .lead {
    font-size: clamp(14.5px, 1.9svh, 16px);
    max-width: 33rem;
  }

  .founder label {
    font-size: 14px;
  }

  .highlights ul {
    /* Computador: os 5 numa linha; se a tela não couber, o rótulo nunca quebra ao meio — o item desce inteiro. */
    display: flex;
    flex-wrap: wrap;
    gap: 10px clamp(24px, 2.2vw, 32px);
    max-width: 64rem;
  }

  .highlights li {
    font-size: 12.5px;
    white-space: nowrap;
  }
}

/* --- Rodapé --------------------------------------------------------------------------------------------------------- */

.foot {
  padding: clamp(6px, 1.4svh, 16px) 0 max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 24px;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.foot p {
  margin: 0;
}

/* Celular: só a linha da operadora (a política está no link do formulário; o e-mail de contato, na política). */
@media (max-width: 899px) {
  .page:has(.signup) .foot p + p {
    display: none;
  }
}

.foot a {
  text-decoration-color: transparent;
}

.foot a:hover {
  text-decoration-color: currentColor;
}

/* --- Páginas de texto (privacidade, sair da lista) ----------------------------------------------------------------- */

body.text {
  background: linear-gradient(180deg, #161617 0%, var(--night) 55%);
  background-attachment: fixed;
}

.doc {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  padding: 6vh 0 56px;
}

.doc--narrow {
  max-width: 34rem;
}

.doc h1 {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  max-width: none;
  line-height: 0.95;
}

.doc h2 {
  margin: 36px 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sign);
}

.doc p {
  margin: 0 0 12px;
  color: var(--ink-2);
}

.updated {
  margin-top: 14px !important;
  font-size: 13px;
  color: var(--ink-3) !important;
}

.back {
  margin: 0 0 28px !important;
  font-size: 13px;
}

.doc .back:last-child {
  margin: 36px 0 0 !important;
}

.leave {
  margin-top: 24px;
}

.leave .btn {
  margin-top: 8px;
}

.status {
  margin-top: 24px !important;
  font-size: 1.05rem;
  color: var(--ink) !important;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

:root{--focus-desktop:50% 60%;--focus-mobile:48% 60%;--lqip:url("data:image/webp;base64,UklGRlYAAABXRUJQVlA4IEoAAABwAwCdASoYABAALrV2u12jqampiYC0SgCdACzQ7FhpI3kpXQAA/UV9r5e5fw9p3OIRiG4TMQh0MmpcQzgsO8mheZcHoLmHns+AAA==")}
