/* ============================================================
   SITE24 — sistema visual
   Fundo carvão quase-preto, vermelho de impacto, tipografia
   condensada brutalista pra headline + grotesk pra leitura.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --bg-panel: #18181b;
  --line: #2a2a2e;
  --fg: #f4f1ec;
  --muted: #9a968f;
  --red: #e0231a;
  --red-dark: #9c140d;
  --red-glow: rgba(224, 35, 26, 0.35);

  --display: 'Archivo', sans-serif;
  --body: 'Archivo', sans-serif;

  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* grain overlay pra tirar o "chapado" do preto */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- topbar ---------- */
/* Só enquanto o hero é de tela cheia (acima de 1100px) o topo e a barra do
   hero abandonam o container centralizado — num monitor largo ele empurraria
   o texto pra cima do rosto. Abaixo disso o layout empilha e tudo volta pro
   container normal, senão o hero fica 2px fora do resto da página. */
@media (min-width: 1101px) {
  .topbar .wrap,
  .hero-bar .wrap {
    max-width: none;
    padding-left: clamp(28px, 3.5vw, 56px);
    padding-right: clamp(28px, 3.5vw, 56px);
  }
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 22px 0;
  pointer-events: none;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

/* relógio regressivo: discreto, sem chamar atenção pra si */
.countdown {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 236, 0.55);
  padding: 5px 10px;
  border: 1px solid rgba(244, 241, 236, 0.16);
  border-radius: 4px;
  line-height: 1;
  user-select: none;
}
.logo {
  font-family: var(--body);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--fg);
  pointer-events: auto;
}
.logo span { color: var(--red); }
.topbar-link {
  pointer-events: auto;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(244,241,236,0.85);
  border-bottom: 1px solid rgba(244,241,236,0.3);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.topbar-link:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 30%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(6,6,7,0.72) 100%),
    linear-gradient(90deg, rgba(6,6,7,0.5) 0%, transparent 38%);
}

/* --eye-line: altura dos olhos dela no crop atual do vídeo (o JS recalcula).
   Texto e CTA ancoram nessa linha, não no rodapé. */
.hero { --eye-line: 46%; }

/* barra única: usa o mesmo .wrap do topo, então texto e CTA ficam
   exatamente alinhados com o logo e o link do cabeçalho */
.hero-bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: var(--eye-line);
  transform: translateY(-50%);
}
.hero-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-line {
  margin: 0;
  max-width: 22ch;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  letter-spacing: 0.1px;
  color: var(--fg);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
}
.hero-line.show { opacity: 1; transform: translateY(0); }
.btn-hero {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--red);
  background: rgba(10,10,11,0.35);
  border: 1px solid rgba(224,35,26,0.7);
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background .2s ease, border-color .2s ease, transform .18s ease;
}
.btn-hero:hover { background: rgba(224,35,26,0.16); border-color: var(--red); transform: translateY(-1px); }

.scroll-cue {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrolldown 1.8s infinite;
}
@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- footer ---------- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
footer .logo { font-size: 17px; }
footer .foot-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
footer .foot-links a { color: var(--muted); transition: color .2s; }
footer .foot-links a:hover { color: var(--fg); }
footer .foot-copy { color: #6a665f; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,7,0.82);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 46px 44px 40px;
  transform: translateY(24px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  margin: -10px -10px 0 0;
}
.modal-close:hover { color: var(--red); }
.modal h3.step-title {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.modal .modal-kicker { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.modal-step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.modal-step:first-of-type { border-top: none; }
.modal-step .n {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
  min-width: 34px;
}
.modal-step h4 { margin: 0 0 6px; font-size: 16px; }
.modal-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.modal-cta {
  margin-top: 30px;
  text-align: center;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* ---------- responsive ---------- */

/* Faixa intermediária: a tela estreita e o rosto começa a crescer.
   Encolhe o texto pra manter a folga até a imagem. */
@media (max-width: 1320px) {
  .hero-bar .wrap { gap: 28px; }
  .hero-line { max-width: 18ch; font-size: 16px; }
}

/* Abaixo de 1100px o recorte do vídeo aperta e o rosto passa a ocupar a
   largura toda: medi e, a partir daí, texto sobre a imagem SEMPRE encosta
   no rosto. Então o vídeo deixa de ser fundo e o conteúdo desce pra baixo
   dele, cada coisa na sua faixa. */
@media (max-width: 1100px) {
  .hero { height: auto; display: block; }
  .hero-media { position: relative; height: 58svh; min-height: 340px; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(6,6,7,0.45) 0%, transparent 28%, transparent 72%, var(--bg) 100%);
  }
  .hero-bar {
    position: relative;
    top: auto;
    transform: none;
    padding: 30px 0 52px;
    background: var(--bg);
  }
  .hero-bar .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero-line {
    max-width: 30ch;
    font-size: 18px;
    /* no mobile não há espera do vídeo: entra já visível */
    opacity: 1;
    transform: none;
  }
  .btn-hero {
    padding: 15px 30px;
    font-size: 14.5px;
  }
  .topbar { padding: 16px 0; }
}

/* No celular a barra do hero deixa de ser legenda sobre a imagem e vira
   o bloco principal da tela: texto ocupando a largura toda e botão sólido,
   porque sobre o preto chapado o contorno vazado some. */
@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  .modal { padding: 34px 22px 30px; }
  /* o próprio vídeo tem preto em volta do rosto; corta um pouco a barriga
     pra não somar vão morto com o respiro do texto */
  .hero-media { height: 42svh; min-height: 290px; }

  .hero-bar { padding: 22px 0 36px; }
  .hero-bar .wrap { gap: 20px; align-items: stretch; }

  .hero-line {
    max-width: none;      /* sem limite: usa a largura inteira, sem vão morto */
    font-size: 21px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -0.1px;
  }

  .btn-hero {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0b;              /* botão sólido = ação óbvia */
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 4px;
  }
  .btn-hero:hover { background: #ff2c1f; transform: none; }

  .logo { font-size: 16px; }

  /* rodapé no celular: alinhado à esquerda, mesma margem do resto,
     links em linha e o copyright abaixo pra não virar uma coluna solta */
  footer { padding: 26px 0 32px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer .foot-links { flex-wrap: wrap; gap: 18px; row-gap: 10px; }
  footer .foot-copy { flex-basis: 100%; }
}

/* ============================================================
   Onboarding wizard
   ============================================================ */

/* tela de bloqueio (sem token válido) */
.gate-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.gate-screen[hidden] { display: none; }
.gate-box { max-width: 460px; }
.gate-box .logo { display: inline-block; margin-bottom: 28px; font-size: 20px; }
.gate-box h2 {
  font-weight: 600;
  font-size: clamp(21px, 3vw, 26px);
  margin: 0 0 12px;
  line-height: 1.25;
}
.gate-box p { color: var(--muted); font-size: 15px; margin: 0 0 26px; line-height: 1.6; }
.gate-box .gate-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14.5px;
  color: #0a0a0b;
  background: var(--red);
  padding: 14px 28px;
  border-radius: 4px;
  transition: background .2s;
}
.gate-box .gate-btn:hover { background: #ff2c1f; }
.gate-box .gate-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.gate-box .gate-link:hover { color: var(--fg); }

/* [hidden] precisa vencer os display: flex/grid dos componentes abaixo */
[hidden] { display: none !important; }

.wiz-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.wiz-header {
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}
.wiz-header .wrap { padding-left: 28px; padding-right: 28px; }
.wiz-progress {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}
.wiz-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0.04);
  transform-origin: left;
  transition: transform .4s ease;
}
.wiz-step-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}
.wiz-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 50px 24px 140px;
}
.wiz-panel { width: 100%; max-width: 660px; }
.wiz-panel .kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wiz-panel h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.1;
}
.wiz-panel .wiz-desc { color: var(--muted); font-size: 15px; margin: 0 0 34px; }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field .hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 8px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.field input::placeholder, .field textarea::placeholder { color: #55524c; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.radio-pill input { display: none; }
.radio-pill.checked, .radio-pill:has(input:checked) {
  border-color: var(--red);
  background: rgba(224,35,26,0.14);
}

.wiz-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, var(--bg) 60%, transparent);
  padding: 26px 24px 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 40;
}
.wiz-nav-inner { width: 100%; max-width: 660px; display: flex; justify-content: space-between; gap: 14px; }
.btn-nav {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  flex: 1;
  max-width: 220px;
}
.btn-nav.next { background: var(--red); color: #0a0a0b; }
.btn-nav.next:hover { background: #ff2c1f; }
.btn-nav.back { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-nav.back:hover { color: var(--fg); border-color: var(--fg); }
.btn-nav:disabled { opacity: 0.45; cursor: not-allowed; }

.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone.drag { border-color: var(--red); background: rgba(224,35,26,0.08); }
.upload-zone p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.upload-zone strong { font-family: var(--display); font-size: 16px; letter-spacing: 0.3px; text-transform: uppercase; }

.file-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.file-item .kind-select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 8px;
  margin-right: 10px;
}
.file-item button {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px;
}
.file-item button:hover { color: var(--red); }

.style-ref { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; background: var(--bg-panel); }
.style-ref .field { margin-bottom: 14px; }
.style-ref .field:last-child { margin-bottom: 0; }

.review-block { border-top: 1px solid var(--line); padding: 16px 0; }
.review-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin: 0 0 10px; }
.review-block p { margin: 0 0 4px; font-size: 14px; color: var(--fg); }
.review-block .muted-line { color: var(--muted); }

.wiz-done {
  text-align: center;
  padding: 90px 24px;
}
.wiz-done .h2 { margin-left: auto; margin-right: auto; }

.error-msg { color: var(--red); font-size: 13px; margin-top: 6px; display: none; }
.error-msg.show { display: block; }

/* ---------- responsive do wizard ---------- */
@media (max-width: 760px) {
  .wiz-header { padding: 18px 0 14px; }
  .wiz-header .wrap { padding-left: 20px; padding-right: 20px; }
  .wiz-body { padding: 34px 20px 150px; }
  .wiz-nav { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .wiz-nav-inner { gap: 10px; }
  .btn-nav { padding: 15px 16px; font-size: 13.5px; max-width: none; }
  .field { margin-bottom: 22px; }
  /* alvo de toque confortável nas opções */
  .radio-pill { padding: 12px 16px; font-size: 14px; }
  /* 16px é o mínimo que impede o iOS de dar zoom ao focar o campo.
     Precisa casar a especificidade da regra base, senão não vence. */
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field input[type="url"],
  .field textarea,
  .field select { font-size: 16px; }
  .upload-zone { padding: 30px 16px; }
  .file-item { flex-wrap: wrap; gap: 8px; }
  .gate-box { padding: 0 4px; }
}
