/* ═══════════════════════════════════════════════════════════════
   SWIPE OFFERS · Captação Meteórico — Grupo VIP
   Tokens vindos do design system do app (app/globals.css):
   brand hsl(22 100% 52%), background hsl(0 0% 3.9%), card hsl(0 0% 10%),
   border hsl(0 0% 20%), muted hsl(0 0% 63.9%), radius .5rem.
   Tipografia: Geist Sans / Geist Mono (números tabulares) /
   Bricolage Grotesque (display).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #151515;
  --alerta:    #c9241a;
  --card:      #121212;
  --input:     #0e0e0e;
  --line:      #242424;
  --line-soft: #1a1a1a;
  --fg:        #f4f3f1;
  --muted:     #8d8d8d;
  --dim:       #5f5f5f;
  --brand:     #ff6207;
  --danger:    #f0503c;
  --zap:       #25a75a;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Bricolage Grotesque", var(--font-sans);

  --radius: 10px;
  --bar-h: 54px;
  --pad-x: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* Números tabulares — o mesmo tratamento que o app dá a métrica */
.nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* Rótulo miúdo em mono, usado como marcação de seção */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ─────────────────────────── BARRA DE PRAZO ─────────────────────────── */

/* Vermelho sólido: é o único elemento da página que precisa gritar,
   e assim ele não disputa atenção com o laranja da marca no botão. */
.timerbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--alerta);
  color: #fff;
}

.timerbar__inner {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.timerbar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.timerbar__clock {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.timerbar__clock b { font-weight: 600; }
.timerbar__clock i {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 7px;
}
.timerbar__clock i:last-of-type { margin-right: 0; }

.timerbar__progress { height: 2px; background: rgba(0, 0, 0, 0.28); }
.timerbar__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.85);
  transition: width 1s linear;
}

/* Prazo vencido: o vermelho perde a função, então a barra recolhe */
.timerbar.is-over { background: #1a1a1a; border-bottom: 1px solid var(--line); }
.timerbar.is-over .timerbar__label { color: var(--alerta); }
.timerbar.is-over .timerbar__clock { color: var(--dim); }

/* ─────────────────────────── DOBRA 1 · CAPTAÇÃO ─────────────────────────── */

.hero {
  padding-top: calc(var(--bar-h) + clamp(36px, 7vh, 76px));
  padding-bottom: clamp(48px, 9vh, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
}

.brandmark { height: 22px; width: auto; margin-bottom: clamp(26px, 4vh, 44px); }

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin: 0;
  text-wrap: balance;
}
.headline .em { color: var(--brand); font-style: normal; }

.deck {
  margin: clamp(18px, 3vh, 26px) 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.deck strong { color: var(--fg); font-weight: 500; }
.deck b {
  display: block;
  margin-top: 12px;
  color: var(--fg);
  font-weight: 600;
}

/* Ficha técnica — linhas de dado, não "cards de benefício" */
.specs {
  list-style: none;
  margin: clamp(26px, 4vh, 40px) 0 0;
  padding: 0;
  max-width: 34rem;
  border-top: 1px solid var(--line-soft);
}
.specs li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
.specs dfn {
  flex: none;
  width: 3.9rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

/* ── Formulário ── */

.signup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}

.signup__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 0;
}
.signup__sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.form { margin-top: clamp(18px, 2.6vw, 24px); display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px; /* 16px evita o zoom automático do iOS */
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder { color: #4a4a4a; }
.field input:hover { border-color: #303030; }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #101010;
}
.field.is-invalid input { border-color: var(--danger); }
#whatsapp { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.field__error { display: none; font-size: 12.5px; color: var(--danger); }
.field.is-invalid .field__error { display: block; }

.cta {
  position: relative;
  margin-top: 4px;
  width: 100%;
  min-height: 54px;
  padding: 15px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s ease;
}
.cta:hover { background: #ff7526; }
.cta:active { background: #e85602; }
.cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cta:disabled { cursor: default; }

.cta__spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta.is-loading .cta__label { visibility: hidden; }
.cta.is-loading .cta__spinner { display: block; }

.signup__foot {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}

.signup__status { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.signup__status:empty { display: none; }
.signup__status.is-error { color: var(--danger); }
.signup__status.is-ok { color: var(--fg); }

/* ─────────────────────────── DOBRA 2 · POR DENTRO ─────────────────────────── */

/* Fundo mais claro que o da captação: a troca de cor é o que avisa
   que começou outro assunto. */
.inside {
  background: var(--bg-alt);
  border-top: 1px solid #2b2b2b;
  padding-block: clamp(56px, 10vh, 104px);
}
.inside .stage { border-color: #2f2f2f; }

.inside__head { max-width: 46rem; }
.inside__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.inside__lede {
  margin: 16px 0 0;
  max-width: 40rem;
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.stage {
  margin-top: clamp(28px, 5vh, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #060606;
}
.stage__media {
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  object-fit: cover;
  background: #060606;
}
/* Moldura enquanto o vídeo da central não é colocado */
.stage__slot {
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  color: var(--dim);
  text-align: center;
  padding: 20px;
}
.stage__slot img { height: 20px; width: auto; opacity: .4; }

.inside__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vh, 40px);
}
.inside__foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 30rem; }

.btn-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.btn-anchor:hover { background: #ff7526; }
.btn-anchor svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ─────────────────────────── RODAPÉ ─────────────────────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 26px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.foot img { height: 15px; width: auto; opacity: .45; }
.foot p { margin: 0; font-size: 12px; color: var(--dim); }

/* ─────────────────────────── DESKTOP ─────────────────────────── */

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 64px;
    align-items: start;
  }
  .signup { position: sticky; top: calc(var(--bar-h) + 28px); }
  .timerbar__label { font-size: 11.5px; }
  .timerbar__clock { font-size: 18px; }
}

@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 424px; }
}

/* ─────────────────────────── TELAS PEQUENAS ─────────────────────────── */

@media (max-width: 899px) {
  .signup { max-width: 34rem; }   /* mesma medida de linha da copy */
  .signup__sub { display: none; } /* a promessa já está na deck acima */
  .specs { display: none; }       /* os dados voltam na segunda dobra */
  .inside__foot { flex-direction: column; align-items: stretch; }
  .btn-anchor { justify-content: center; }
}

/* A gravação da central é bem panorâmica (2,5:1). Deitada no celular ela
   viraria uma tarja de 150px, então o quadro fica mais alto e o vídeo é
   cortado pelas laterais — dá pra ver os cards em tamanho legível. */
@media (max-width: 700px) {
  .stage__media { aspect-ratio: 4 / 3; object-position: center; }
}

@media (max-width: 560px) {
  :root { --bar-h: 50px; }
  .timerbar__inner { gap: 10px; }
  .timerbar__label { font-size: 9.5px; letter-spacing: .1em; }
  .timerbar__clock { font-size: 15px; }
  .timerbar__clock i { font-size: 10px; margin-right: 5px; }

  /* No celular a dobra precisa terminar no botão, então a copy vem enxuta
     e o resto do argumento fica para a segunda dobra. */
  .hero { padding-top: calc(var(--bar-h) + 26px); }
  .brandmark { height: 19px; margin-bottom: 22px; }
  .deck { font-size: 15px; margin-top: 16px; }
  .deck__extra { display: none; }
  .deck b { margin-top: 10px; }
  .hero__grid { gap: 26px; }
  .signup { padding: 20px 18px; }
  .signup__title { margin-top: 8px; }
  .form { margin-top: 16px; gap: 12px; }
}

@media (max-width: 360px) {
  .timerbar__label { display: none; }
  .headline { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
