/* Encontro das mentorias — Casa Cósmica (design system copiado de Antigravity/lancamento-a01/styles.css) */

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

:root {
  --black:    #000000;
  --white:    #ffffff;
  --gray:     #8A8A8A;
  --purple:   #674BFE;
  --lilac:    #8A7CFA;
  --border:   rgba(255,255,255,0.08);
  --text:     rgba(255,255,255,0.85);
  --muted:    rgba(255,255,255,0.35);
  --font-primary:   'Manrope', sans-serif;
  --font-secondary: 'Times New Roman', Times, serif;
}

/* A01 usa kerning -6 globalmente em tudo */
* { letter-spacing: -0.06em; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 2px; }

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


/* ─── COVER BUTTON (specs do botão real em a01.aerolito.ai) ─── */
.cover-btn {
  display: inline-block;
  width: 110px; height: 29px;
  font-family: var(--font-primary);
  font-size: 10px; font-weight: 800; letter-spacing: -0.6px; line-height: 15px;
  color: var(--white); background: transparent;
  border: 1px solid var(--white);
  border-radius: 2px;
  padding: 6px 0; text-align: center; cursor: pointer;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.cover-btn:hover { background: rgba(255,255,255,0.1); }
/* ação principal: o mesmo botão, preenchido */
.cover-btn--solid { background: var(--white); color: var(--black); }
.cover-btn--solid:hover { background: rgba(255,255,255,0.82); }
.cover-btn:disabled { opacity: .6; cursor: wait; }

/* ─── INFO MODAL (linha → caixa → texto, mesma animação 4 fases da A01) ─── */
.info-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem;
  opacity: 1; transition: opacity 500ms ease-out;
}
.info-modal[hidden] { display: none; }
.info-modal.closing { opacity: 0; pointer-events: none; }
.info-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 1200ms ease-out;
}
.info-modal:not([data-phase="0"]) .info-modal-backdrop { opacity: 1; }

.info-modal-box {
  position: relative; margin: 0 auto;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px; overflow: hidden;
  width: 0; max-width: 0; height: 2px;
  transition: width 1600ms ease-out, max-width 1600ms ease-out, height 1600ms ease-out;
}
.info-modal[data-phase="2"] .info-modal-box,
.info-modal[data-phase="3"] .info-modal-box,
.info-modal[data-phase="4"] .info-modal-box { width: 100%; max-width: 42rem; }
.info-modal[data-phase="3"] .info-modal-box,
.info-modal[data-phase="4"] .info-modal-box { height: min(80vh, 672px); height: min(calc(var(--vh, 1vh) * 80), 672px); }

.info-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 1200ms ease-out; z-index: 5;
}
.info-modal-close:hover { color: var(--white); }
.info-modal-close svg { width: 14px; height: 14px; }
.info-modal[data-phase="4"] .info-modal-close { opacity: 1; pointer-events: auto; }

.info-modal-content {
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 3rem 2rem 2rem;
  opacity: 0; transition: opacity 1200ms ease-out;
}
/* centraliza na vertical quando cabe; rola normalmente quando não cabe */
.info-modal-content::before, .info-modal-content::after { content: ''; flex: 1 0 0; }
.info-modal[data-phase="4"] .info-modal-content { opacity: 1; }

.modal-panel { display: none; }
.modal-panel.active { display: block; will-change: opacity; transform: translateZ(0); }

.info-modal-kicker {
  font-size: 10px; font-weight: 800; line-height: 1.3;
  color: var(--lilac);
  margin-bottom: .75rem;
}
/* botão de ação das caixas (igual ao "Enviar" do Contato das Vagas): vazado, 48px */
.action-btn {
  width: 100%; height: 48px; padding: 0 1rem;
  font-family: var(--font-primary); font-size: 10px; font-weight: 800; letter-spacing: -0.6px;
  color: var(--white); background: transparent; border: 1px solid var(--white); border-radius: 2px;
  cursor: pointer; transition: background .25s;
}
.action-btn:hover { background: rgba(255,255,255,0.1); }
.action-btn:disabled { cursor: wait; } /* sem mudar a aparência: nada muda na caixa antes do fade */
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.info-modal-title {
  font-family: var(--font-primary);
  font-weight: 800; color: var(--white);
  font-size: clamp(18px, 2.1vw, 28px); line-height: 1.05;
  margin-bottom: 2rem;
}
.info-modal-text {
  font-family: var(--font-secondary); font-style: italic; font-weight: 400;
  font-size: .95rem; color: var(--text); line-height: 1.6;
  margin-bottom: 1rem;
}
.info-modal-text:last-of-type { margin-bottom: 2rem; }
.info-modal-text--tight { margin-bottom: 1rem !important; }
.info-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* ─── FORM (specs do form real da A01: 48px, rgba(255,255,255,.08), Times itálico) ─── */
.waitlist-form { position: relative; display: flex; flex-direction: column; gap: .75rem; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-input {
  width: 100%; height: 48px; padding: 0 1rem;
  font-family: var(--font-secondary); font-style: italic; font-size: .875rem; letter-spacing: -0.06em; /* apertado, como nos campos do Contato das Vagas */
  color: var(--white); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4); border-radius: 2px;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist-input:focus { outline: none; border-color: var(--white); }
.waitlist-textarea { height: 13rem; padding: .8rem 1rem; resize: none; line-height: 1.6; }
.waitlist-error {
  font-family: var(--font-secondary); font-style: italic; font-size: .75rem; letter-spacing: 0;
  color: #FF8CC6;
}
.waitlist-error:empty { display: none; }
.waitlist-submit { width: 100%; height: 48px; padding: 0; }
.waitlist-privacy {
  font-family: var(--font-secondary); font-style: italic; font-size: .7rem; letter-spacing: 0;
  color: var(--muted); margin-top: 1rem; line-height: 1.4;
}
.waitlist-privacy a { color: inherit; text-decoration: underline; }
.waitlist-privacy a:hover { color: var(--white); }

@media (min-width: 768px) {
  .info-modal-content { padding: 3rem 4rem 2.5rem; }
}

/* ─── FOOTER (idêntico ao da A01) ─── */
.a01-footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem 6rem; }
.a01-footer-inner { max-width: 1280px; margin: 0 auto; text-align: left; }
.a01-footer-inner p {
  font-size: 10px; font-weight: 800; letter-spacing: -0.06em;
  color: var(--muted); margin-bottom: 2px;
}

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── HERO MENTORIAS (vídeo bem escurecido + "Party/Connect/Drink Like A Futurist") ─── */
.mentor-hero {
  position: relative; overflow: hidden; background: var(--black);
  /* mais baixa que a tela: a capa do encontro já aparece embaixo */
  height: 84vh; height: 84dvh; height: calc(var(--vh, 1vh) * 84);
  display: flex; align-items: center; justify-content: center;
}
.mentor-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); pointer-events: none; }
.mentor-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.78); pointer-events: none; }
/* bloco: diamante à esquerda, título e subtítulo à direita; tudo medido em "em" do título */
.mentor-block {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto auto; column-gap: 0.7em; align-items: center;
  --t: min(10.2vw, 19vh);
  font-size: var(--t);
}
/* diamante menor, centralizado na vertical em relação às três linhas do título */
.mentor-mark { grid-column: 1; grid-row: 1; align-self: center; width: 0.975em; height: auto; display: block; transform: translateY(0.1em); } /* ajuste óptico: centralizado na caixa ele parecia alto */
.mentor-type {
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-secondary); font-style: italic; font-weight: 400;
  grid-column: 2; grid-row: 1;
  font-size: 1em;
  line-height: 0.71; letter-spacing: -0.05em;
  color: var(--white);
  transform: translateX(-0.06em);
}
.mentor-type span { letter-spacing: -0.05em; }
/* subtítulo: Manrope 800, -6%, branco, uma linha */
.mentor-sub {
  /* numa linha só, embaixo de "A Futurist" (o alinhamento no A fica no .mentor-info) */
  white-space: nowrap;
  margin-top: 2.6em;
  font-family: var(--font-primary); font-weight: 800;
  font-size: max(14px, 0.14em); line-height: 1.3; letter-spacing: -.06em;
  color: var(--white);
}
/* botões embaixo de "A Futurist", alinhados no A; dividem a largura meio a meio */
.mentor-info {
  /* largura ≈2,25× o tamanho do título; no celular, mín. 240px */
  grid-column: 2; grid-row: 2; justify-self: start; width: max(240px, calc(var(--t) * 2.25));
  margin-left: calc(var(--t) * -0.06);
}
.mentor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: max(26px, calc(var(--t) * 0.42)); }
.mentor-actions .cover-btn { width: 100%; height: 36px; padding: 0 4px; font-size: 12px; line-height: 34px; white-space: nowrap; }
.mentor-line { display: block; padding-right: .08em; }
/* kerning manual só entre o P e o a de "Party" (o par fica aberto demais no Times itálico) */
.mentor-type .kern-pa { letter-spacing: -0.13em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Party → Connect → Drink: as três ocupam a mesma célula (a mais larga define a largura);
   cada uma fica 3,2s e cruza com a próxima em 0,6s */
.mentor-swap { display: grid; }
.mentor-swap > span { grid-area: 1 / 1; opacity: 0; animation: mentor-swap 9.6s linear infinite; }
.mentor-swap > span:nth-child(1) { animation-delay: 0s; }
.mentor-swap > span:nth-child(2) { animation-delay: -6.4s; }
.mentor-swap > span:nth-child(3) { animation-delay: -3.2s; }
@keyframes mentor-swap {
  0%      { opacity: 1; }
  27.08%  { opacity: 1; }   /* 2,6s */
  33.33%  { opacity: 0; }   /* 3,2s */
  93.75%  { opacity: 0; }   /* 9,0s */
  100%    { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-map-pulse { animation: none; opacity: 0; }
  .mentor-swap > span { animation: none; }
  .mentor-swap > span:nth-child(1) { opacity: 1; }
}
@media (max-width: 860px) {
  .mentor-hero { height: 76vh; height: 76dvh; height: calc(var(--vh, 1vh) * 76); }
  .mentor-block, .rsvp-actions { --t: 15.5vw; }
  .mentor-actions .cover-btn { font-size: 11px; }
}

/* ─── SEÇÕES DO ENCONTRO (convite, quando/onde, confirmação) — em preto e branco ─── */
.sec-wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.sec-label { font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.5); margin: 0 0 1.6rem; }
.sec-title {
  font-family: var(--font-primary); font-weight: 800;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 0.95; letter-spacing: -.06em;
  color: var(--white);
}

/* Convite: seda do vídeo original, só que em P&B */
.convite { position: relative; overflow: hidden; background: var(--black); }
.convite-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.85); opacity: .7; pointer-events: none;
}
.convite-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,.25) 75%),
    linear-gradient(0deg, #000 0%, transparent 35%),
    linear-gradient(180deg, #000 0%, transparent 20%);
}
.convite-copy {
  position: relative; z-index: 1;
  /* mesma largura do bloco Palestras/Casa Cósmica: a borda esquerda do texto alinha com "Palestras" */
  width: min(1030px, calc(100% - 96px)); text-align: left;
  padding-block: 130px 120px;
}
/* o texto ocupa a largura toda: mesma margem na esquerda e na direita */
.convite-copy > * { max-width: none; }
.convite-copy .sec-title { margin-bottom: 3rem; font-size: clamp(4.5rem, 13vw, 12rem); line-height: 0.85; font-weight: 800; letter-spacing: -0.06em; } /* "Carta / Aberta", Manrope ExtraBold -6, bem grande */
/* mesma formatação do corpo do post de vagas.aerolito.ai: Source Serif 4, 20px, entrelinha 1.6, branco 88% */
.convite-copy p {
  font-family: 'Source Serif 4', var(--font-secondary); font-style: normal; font-weight: 400;
  font-size: 20px; line-height: 1.6; color: rgba(255,255,255,0.88);
  margin: 0 0 1.75rem;
}

.convite-copy .convite-sign { margin-top: 0; }

/* Palestras / Casa Cósmica */
.detalhes {
  width: min(1030px, calc(100% - 96px));
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px;
  padding-block: 110px 110px;
}
.det-title {
  font-family: var(--font-primary); font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1; letter-spacing: -.06em;
  color: var(--white); margin-bottom: 1.5rem;
}
/* programação e endereço na mesma formatação do texto do convite (corpo do post de Vagas) */
.agenda, .onde address {
  font-family: 'Source Serif 4', var(--font-secondary); font-style: normal; font-weight: 400;
  font-size: 18px; line-height: 1.3; color: rgba(255,255,255,0.75); /* cinza claro, contrastando com os títulos brancos */
}
.agenda { list-style: none; }
.agenda time { font-variant-numeric: tabular-nums; }
/* a coluna da esquerda estica até a altura da direita; o bloco da contagem desce até a base,
   alinhando com a linha "Como chegar / © OpenStreetMap" */
.programa, .onde { display: flex; flex-direction: column; }
/* o mapa também desce até a base, para "Como chegar" ficar na mesma linha da contagem, seja qual for a coluna mais alta */
.onde .map-frame { margin-top: auto; }
.countdown-block { margin-top: auto; padding-top: 40px; }
.countdown-block > p { font-size: 11px; font-weight: 800; color: var(--white); margin-bottom: 12px; } /* igual ao "Como chegar" */
.countdown { display: flex; justify-content: space-between; gap: 8px; max-width: 330px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.countdown span { font-size: 32px; font-weight: 200; letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.62); margin-top: 6px; } /* igual ao "© OpenStreetMap" */
.countdown b { font-size: 20px; font-weight: 200; padding-top: 4px; color: rgba(255,255,255,0.55); }
.onde address { margin-bottom: 2rem; }
.map-frame {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4); background: transparent; /* vazado: o vídeo azul aparece por trás das ruas */
  transition: border-color .25s;
}
.map-frame:hover { border-color: rgba(255,255,255,0.5); }
.mini-map { width: 100%; height: 100%; display: block; }
.mini-map-label { font-family: var(--font-primary); font-weight: 800; font-size: 13px; letter-spacing: -.04em; fill: #fff; }
.mini-map-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.map-credit { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.62); }
.map-credit a { color: inherit; text-decoration: none; transition: color .25s; }
.map-credit > a { color: var(--white); }
.map-credit a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Confirmação */
/* só os dois botões, centralizados na página */
.rsvp { padding-block: 110px 120px; }
/* botões iguais aos da hero: mesma largura (2,25× o tamanho do título da hero), centralizados */
.rsvp-actions { --t: min(10.2vw, 19vh); width: max(240px, calc(var(--t) * 2.25)); margin: 0 auto; }

@media (max-width: 860px) {
  .sec-wrap { width: calc(100% - 44px); }
  .convite-copy { width: calc(100% - 44px); padding-block: 72px 64px; }
  .convite-copy p { font-size: 19px; }
  .detalhes { width: calc(100% - 44px); grid-template-columns: 1fr; gap: 64px; padding-block: 64px; }
  .agenda, .onde address { font-size: 17px; }
  .countdown-block { padding-top: 44px; }
  .countdown span { font-size: 30px; }
  .onde address { margin-bottom: 1.8rem; }
  .map-frame { aspect-ratio: 4 / 3; }
  .rsvp { padding-block: 70px 80px; }
}

/* TESTE (07/10): hero com a tinta rosa da A01 — mantém a cor (sem P&B) e escurece menos */
.mentor-hero--tinta .mentor-video { filter: none; }
.mentor-hero--tinta .mentor-shade { background: rgba(0,0,0,0.45); }

/* Convite em claro (House of Futures): fundo branco, título cinza #5a5a5a, texto preto 80% */
.convite--claro { background: #fff; }
.convite--claro .sec-title { color: #13294b; } /* azul escuro */
.convite--claro .convite-copy p { color: #1f3a63; }

/* Terceira seção com o vídeo azul do House of Futures de fundo (40% de preto, como lá) */
.detalhes-bg { position: relative; overflow: hidden; background: var(--black); }
.detalhes-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.detalhes-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.4); pointer-events: none; }
.detalhes-bg .detalhes, .detalhes-bg .rsvp { position: relative; z-index: 1; }
/* "See you there" + botões dentro do mesmo bloco do vídeo azul */
.detalhes-bg .rsvp { padding-top: 40px; }

/* Convite com texto vazado: o vídeo azul aparece por dentro das letras */
.convite--vazado { isolation: isolate; }
.convite-knock-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: brightness(0.42) saturate(1.3); /* escurecido para as letras não sumirem no branco nas partes claras das nuvens */
}
.convite-knock { position: relative; background: #fff; mix-blend-mode: screen; }
.convite--vazado .sec-title,
.convite--vazado .convite-copy p { color: #000; }
