/* =========================================================
   3. SEÇÕES: aparência de cada parte, na ordem da página
   ========================================================= */

/* ---------- Menu ---------- */
nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(28, 24, 26, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
nav.small { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }   /* menu depois de rolar */
nav .w { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
nav.small .w { padding-block: 7px; }
.logo { font: 800 1.05rem var(--fonte-titulo); letter-spacing: -.02em; text-decoration: none; }
nav ul { display: flex; gap: 24px; list-style: none; align-items: center; }
nav ul a { text-decoration: none; font-size: .95rem; }
nav ul a:not(.btn) { position: relative; padding-block: 4px; }
nav ul a:not(.btn)::after {   /* linha embaixo do link ativo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--vermelho-claro); transform: scaleX(0);
}

/* ---------- Topo ---------- */
header { position: relative; isolation: isolate; padding-block: 90px 0; text-align: center; }
h1 { font-size: clamp(2.5rem, 8.6vw, 6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; color: var(--texto); }
header .role { font: 500 clamp(1rem, 2.4vw, 1.35rem) var(--fonte-titulo); color: var(--vermelho-claro); margin-top: 18px; }
header p.txt { max-width: 58ch; margin: 18px auto 30px; color: var(--texto-suave); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Linha do tempo decorativa */
.timeline { position: relative; display: grid; gap: 6px; overflow: hidden; margin-top: 56px; padding-block: 8px; }
.track { display: flex; gap: 4px; height: 16px; }
.track b { flex: var(--f); border-radius: 5px; background: var(--borda); }   /* --f = largura do bloco */
.track b:nth-child(odd) { background: var(--tom-linha); }
.head { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; }
.head::before {   /* agulha */
  content: ""; display: block; width: 3px; height: 100%;
  background: var(--vermelho-claro); box-shadow: 0 0 14px var(--vermelho);
}

/* ---------- Trabalhos (carrossel) ---------- */
.rail { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 12px 20px 20px; cursor: grab; user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; }
.clip { flex: 0 0 min(250px, 68vw); }     /* largura de cada vídeo */
.clip h3 { font-size: 1.15rem; margin-top: 14px; }
.clip p { font-size: .92rem; color: var(--texto-suave); }
.screen {
  display: block; width: 100%; aspect-ratio: 9 / 16; position: relative; overflow: hidden;
  border: 1px solid var(--borda); border-radius: 22px;
  background: linear-gradient(160deg, var(--tom-video), var(--cartao) 65%);
  color: inherit; font: inherit; cursor: pointer;
}
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.screen.has video { opacity: 1; }
.screen.has .empty { display: none; }
/* Aviso "Vídeo em breve" */
.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; }
.empty::before {
  content: ""; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 50%;
  background: #fff; clip-path: polygon(38% 28%, 76% 50%, 38% 72%); box-shadow: inset 0 0 0 40px #fff;
}
.empty b { font: 600 1.15rem var(--fonte-titulo); }
.empty span { font-size: .82rem; color: var(--texto-suave); }
/* Botões Anterior / Próximo / Pausar */
.arrows { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.arrows button {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: 99px;
  padding: 8px 18px; color: var(--texto); font: inherit; cursor: pointer;
}
/* Janela do vídeo grande */
dialog { margin: auto; background: transparent; border: 0; color: var(--texto); text-align: right; max-width: 95vw; max-height: 95vh; }
dialog::backdrop { background: rgba(20, 16, 19, .92); }
dialog video { display: block; max-width: 92vw; height: 80vh; border-radius: 18px; background: #000; }
dialog button { margin-bottom: 10px; }

/* ---------- Faixa de palavras ---------- */
.bandbox { overflow: hidden; margin-top: 40px; padding-block: 24px; }
.band {
  overflow: hidden; padding-block: 12px; transform: rotate(-1.5deg) scale(1.02);
  background: linear-gradient(90deg, var(--tom-faixa), var(--vermelho), var(--tom-faixa)); color: #fff;
}
.band div { display: flex; width: max-content; }
.band span { display: flex; align-items: center; gap: 48px; padding-right: 48px; font: 800 1.1rem var(--fonte-titulo); white-space: nowrap; }
.band span::after { content: ""; width: 9px; height: 9px; rotate: 45deg; background: #fff; }

/* ---------- Ferramentas ---------- */
.tools { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tools li {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 24px; border: 1px solid var(--borda); border-radius: 18px; background: var(--cartao);
}
.tools li > .ic {
  width: 50px; height: 50px; padding: 12px; margin-bottom: 18px; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, var(--vermelho), var(--tom-icone));
}
.tools h3 { font-size: 1.05rem; }
.tools p { margin-top: 8px; font-size: .93rem; color: var(--texto-suave); }

/* ---------- Planos ---------- */
.plans { list-style: none; display: grid; gap: 10px; }
.plan {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
  padding: 18px 24px; border: 1px solid var(--borda); border-radius: 18px; background: var(--cartao);
}
.plan.top { border-color: var(--vermelho); background: linear-gradient(100deg, var(--tom-destaque), var(--cartao)); }  /* plano destacado */
.plan h3 { font-size: 1.1rem; }
.plan small { font: 400 .9rem "Manrope", sans-serif; color: var(--texto-suave); }
.plan p { font-size: .9rem; color: var(--texto-suave); }
.plan strong { font: 800 1.35rem var(--fonte-titulo); white-space: nowrap; }
.note { max-width: 75ch; margin-top: 16px; font-size: .9rem; color: var(--texto-suave); }

/* Colunas "Em todos os planos" e "Como funciona" */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.cols h3 { font-size: 1.05rem; margin-bottom: 18px; }
.cols ul, .cols ol { display: grid; gap: 14px; }
.cols ol { padding-left: 20px; }
.cols li::marker { color: var(--vermelho); }
.cols li span { display: block; font-size: .93rem; color: var(--texto-suave); }
.cols li.has-ic { position: relative; list-style: none; padding-left: 34px; }
.cols li > .ic { position: absolute; left: 0; top: 4px; width: 22px; height: 22px; color: var(--vermelho-claro); }

/* ---------- Dúvidas ---------- */
details { padding-block: 18px; border-bottom: 1px solid var(--borda); }
summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font: 600 1.05rem var(--fonte-titulo); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--vermelho-claro); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { rotate: 45deg; }
details p { max-width: 70ch; margin-top: 10px; color: var(--texto-suave); }

/* ---------- Contato ---------- */
.final {
  margin-top: 96px; padding: 56px 24px; border-radius: 28px; text-align: center; scroll-margin-top: 80px; color: #fff;
  background: linear-gradient(135deg, var(--tom-profundo), var(--vermelho), var(--tom-contato-1), var(--tom-contato-2));
  background-size: 220% 220%;
  box-shadow: 0 24px 60px rgba(209, 10, 44, .3);
}
.final h2 { margin-bottom: 12px; }
.final h2::after { margin-inline: auto; background: #fff; }
.final .btn { margin-top: 24px; background: #fff; color: var(--tom-faixa); }
.contacts { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; font-weight: 600; }
.contacts a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(0, 0, 0, .25);
  text-align: left; text-decoration: none; overflow-wrap: anywhere;
}
.contacts a:hover { background: rgba(0, 0, 0, .45); }
.contacts .ic { width: 26px; height: 26px; }
.contacts span { min-width: 0; }
.contacts small { display: block; font-size: .78rem; font-weight: 400; opacity: .8; }

/* ---------- Rodapé ---------- */
footer { padding: 36px 20px; text-align: center; font-size: .88rem; color: var(--texto-suave); }
footer .ic { margin-right: 6px; vertical-align: -4px; color: var(--vermelho-claro); }
