/* =========================================================================
   components.css — Peças reutilizáveis da interface
   Cada bloco abaixo corresponde a um componente do HTML.
   ========================================================================= */

/* =========================================================================
   Cabeçalho e navegação
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
  padding-block: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink-900);
  font-weight: 800;
  font-size: 0.97rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--c-ink-900);
}

.brand svg {
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ---- Navegação ---------------------------------------------------------
   Mobile: painel que desce a partir do cabeçalho, controlado pelo botão
   hambúrguer via data-nav-open.
   Desktop (≥940px): barra horizontal, botão oculto.
   ----------------------------------------------------------------------- */

.site-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--gutter) var(--sp-5);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line-soft);
  box-shadow: var(--shadow-md);
}

.site-header[data-nav-open="true"] .site-nav {
  display: flex;
}

/* `:not(.btn)` protege o CTA dentro do menu: `.site-nav a` tem
   especificidade maior que `.btn--primary` e apagaria a cor do botão. */
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px; /* alvo de toque confortável */
  padding-inline: var(--sp-1);
  color: var(--c-ink-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--c-line-soft);
}

.site-nav a:not(.btn):hover {
  color: var(--c-brand-700);
}

.site-nav .nav-cta {
  margin-top: var(--sp-4);
}

/* Botão hambúrguer */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-ink-900);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--c-surface-sunken);
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* O CTA do topo só cabe a partir de 480px; abaixo disso ele vive no menu.
   Os seletores são compostos de propósito: `.btn` também declara `display`
   e, por vir depois neste arquivo, venceria um seletor de classe única. */
.header-actions .header-cta {
  display: none;
}

@media (min-width: 480px) {
  .header-actions .header-cta {
    display: inline-flex;
  }

  .site-nav .nav-cta {
    display: none;
  }
}

@media (min-width: 940px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-6);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav a:not(.btn) {
    min-height: 0;
    padding: 0;
    border: 0;
  }
}

/* =========================================================================
   Botões
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--c-brand-600);
  color: var(--c-on-dark);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: var(--c-brand-700);
  color: var(--c-on-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink-900);
}

.btn--outline:hover {
  background: var(--c-surface-sunken);
  color: var(--c-ink-900);
}

.btn--sm {
  min-height: 40px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  background: var(--c-surface);
  padding-block: var(--section-y) calc(var(--section-y) * 0.75);
}

.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-lead {
  max-width: var(--maxw-prose);
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  color: var(--c-ink-700);
  line-height: var(--lh-normal);
}

.hero .btn-row {
  margin-top: var(--sp-7);
  justify-content: center;
}

/* Selo acima do título */
.pill {
  display: inline-block;
  margin-bottom: var(--sp-5);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-brand-100);
  color: var(--c-brand-700);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

/* =========================================================================
   Vídeo do produto
   O iframe do Vimeo só é inserido no clique (facade), poupando ~1 MB de
   JavaScript de terceiros no carregamento inicial da página.
   ========================================================================= */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  background: var(--c-surface-sunken);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-5);
  background: var(--c-surface-alt);
  border: 0;
  cursor: pointer;
  text-align: center;
}

.video-facade:hover .video-play {
  background: var(--c-brand-700);
  transform: scale(1.05);
}

.video-play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--c-brand-600);
  color: var(--c-on-dark);
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.video-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-ink-400);
}

.video-hint {
  max-width: 40ch;
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
}

/* =========================================================================
   Cards
   ========================================================================= */

.card {
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
}

.card--raised {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-index,
.card-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-400);
}

.card-tag {
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.card h3 {
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
}

.card p {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-500);
  line-height: var(--lh-normal);
}

/* =========================================================================
   Fluxo "Como funciona" (3 etapas encadeadas)
   Empilhado no celular com seta para baixo; em linha a partir de 760px.
   ========================================================================= */

.flow {
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
  align-items: center;
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
}

.flow-node {
  width: 100%;
  max-width: 320px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.flow-node span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-ink-400);
}

.flow-node strong {
  display: block;
  margin-top: var(--sp-2);
  color: var(--c-ink-900);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.flow-arrow {
  color: var(--c-ink-400);
  transform: rotate(90deg);
}

@media (min-width: 760px) {
  .flow {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: center;
  }

  .flow-node {
    min-width: 180px;
  }

  .flow-arrow {
    transform: none;
  }
}

/* ---- Passos numerados -------------------------------------------------- */

.step {
  padding: var(--sp-5) 0;
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-brand-600);
}

.step h3 {
  margin-top: var(--sp-3);
}

.step p {
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--c-ink-700);
  line-height: var(--lh-relaxed);
}

/* =========================================================================
   Lista de segurança (bloco escuro)
   ========================================================================= */

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.check-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: rgb(78 124 111 / 0.28);
  color: var(--c-brand-accent);
  border-radius: 50%;
}

.check-item h3 {
  font-size: var(--fs-base);
  font-weight: 700;
}

.check-item p {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
  line-height: var(--lh-normal);
}

/* =========================================================================
   FAQ — <details>/<summary> nativos: abrem sem JavaScript, são acessíveis
   por teclado e o conteúdo fica sempre no HTML para os buscadores.
   ========================================================================= */

.faq-list {
  margin-top: var(--sp-6);
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-1);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-question {
  color: var(--c-brand-700);
}

.faq-q-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.faq-index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-400);
}

.faq-question {
  color: var(--c-ink-900);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--c-ink-400);
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-width: 72ch;
  padding: 0 var(--sp-1) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-ink-700);
  line-height: var(--lh-relaxed);
}

@media (min-width: 600px) {
  .faq-answer {
    padding-left: calc(var(--sp-6) + var(--sp-1));
  }
}

/* =========================================================================
   Contato — chamada final e formulário
   ========================================================================= */

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-7) var(--sp-5);
  background: var(--c-brand-100);
  border-radius: var(--radius-lg);
}

.cta-panel > div:first-child {
  flex: 1 1 360px;
}

.cta-panel h2 {
  font-size: var(--fs-lg);
}

.cta-panel p {
  max-width: 52ch;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-brand-900);
}

.form-card {
  margin-top: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: var(--fs-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-4);
}

.field label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--c-ink-500);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-ink-900);
  font-size: var(--fs-sm);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--c-brand-600);
}

/* Honeypot anti-spam: fora da tela, invisível para pessoas e leitores de tela */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.form-status {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.form-status[hidden] {
  display: none;
}

.form-status--ok {
  color: var(--c-success);
}

.form-status--error {
  color: var(--c-error);
}

/* =========================================================================
   Rodapé
   ========================================================================= */

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line-soft);
  padding-block: var(--sp-7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-6);
}

.footer-about {
  max-width: 300px;
}

.footer-about p {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
  line-height: var(--lh-normal);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--c-ink-700);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--c-brand-700);
}

.footer-meta a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-brand-700);
}

.footer-meta p {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-400);
}
