/* ===== Argos — componentes da home =====
   Contrato: DESIGN-SYSTEM.md. Ordem de carga: styles.css (tokens e base
   compartilhada com /investidor e blog) → client-first.css (globais) →
   este arquivo → leilao.css (carrossel).

   Aqui só entram classes de componente com o prefixo da seção
   (hero_, ajuda_, faq_, cadastro_ ...) e os ajustes da home sobre peças
   de styles.css que o JS usa (nav, modal, FAQ, botão flutuante). */

:root {
  --nav-h: 61px;

  /* Faixa da chamada final (fundo escuro da marca) */
  --ink-1: #2A1760;
  --ink-2: #1B1040;
  --ink-3: #140B30;
  --ink-text: #E4DCFF;        /* texto claro sobre --ink-*: AA */
  --ink-glow: rgba(167, 139, 250, 0.35);
  --ink-glow-0: rgba(124, 58, 237, 0);
  --ink-art: rgba(196, 181, 253, 0.12);
  --ink-shadow: 0 16px 36px -18px rgba(27, 16, 64, 0.45);

  --video-bg: #000000;
}

body { font-size: 16px; }

/* =========================================================
   Menu (nav) — sai por cima ao rolar; o botão flutuante assume
   ========================================================= */

.nav {
  transition: transform 420ms var(--ease-out),
              opacity 320ms ease,
              border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.nav.is-hidden { transform: translateY(-100%); opacity: 0; }

.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: var(--radius-round);
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}

.mobile-menu { padding-left: 24px; padding-right: 24px; }
.mobile-menu .button { align-self: flex-start; margin-top: var(--sp-2); }
.mobile-door { color: var(--text-3); }

/* Botão flutuante "Quero ser avisado": mesmo botão do menu, só muda o lugar.
   As transições de entrada/saída substituem as do .button. */
.signup-fab.button {
  right: 24px;
  bottom: 24px;
  box-shadow: var(--shadow-brand-hover);
  transition: opacity 320ms ease, transform 420ms var(--ease-out),
              background-color 150ms ease, box-shadow 150ms ease;
}
.signup-fab.button:not(.is-visible) { transform: translateY(16px); }

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

.section_hero .padding-section-medium { padding-top: 0; }

.hero_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h));
  padding-block: var(--sp-12);
}

.hero_tagline { margin-bottom: 28px; }

.hero_title { margin-bottom: 28px; }

.hero_sub { max-width: 640px; margin-bottom: 44px; }

.hero_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}

.hero_note { max-width: 520px; margin-top: var(--sp-6); }

.hero_myths {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}
.hero_myths li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
}
.hero_myths li strong { color: var(--text); font-weight: 600; }

.hero_myth-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-bg);
}
.hero_myth-icon::after {
  content: "";
  position: absolute;
  left: 8px; top: 5px;
  width: 5px; height: 10px;
  border: solid var(--green-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Entrada: cada bloco aparece depois do outro, uma vez por visita. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero_tagline, .hero_title, .hero_sub, .hero_buttons, .hero_myths li, .hero_note {
  animation: hero-in 600ms var(--ease-out) both;
}
.hero_tagline { animation-delay: 80ms; }
.hero_title   { animation-delay: 200ms; }
.hero_sub     { animation-delay: 360ms; }
.hero_buttons { animation-delay: 500ms; }
.hero_myths li:nth-child(1) { animation-delay: 640ms; }
.hero_myths li:nth-child(2) { animation-delay: 720ms; }
.hero_note { animation-delay: 800ms; }

/* ----- Card do imóvel ----- */

.hero_card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fade-up var(--dur-reveal) 180ms var(--ease-out) both;
}

.hero_card-photo { position: relative; min-height: 260px; background: var(--violet-bg); }
.hero_card-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero_card-status { position: absolute; top: 16px; left: 16px; box-shadow: var(--shadow-md); }

.hero_card-body { display: flex; flex-direction: column; padding: var(--sp-6) var(--sp-8); }
.hero_card-kind { margin-bottom: var(--sp-5); }
.hero_card-total {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero_card-total-sub { margin-top: 2px; font-size: 14px; color: var(--text-3); }

.hero_card-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--sp-4) 0 var(--sp-5);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-text);
  animation: fade-in 300ms 1150ms ease both;
}
@keyframes fade-in { from { opacity: 0; } }

.hero_card-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; }

.hero_card-note {
  margin-top: var(--sp-3);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Barras de preço: mostram o desconto. Animam uma vez, quando o card entra. */
.price-bars { display: flex; flex-direction: column; gap: 12px; margin-top: var(--sp-4); }
.pb-row { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; align-items: baseline; }
.pb-lbl { font-size: 13px; color: var(--text-3); }
.pb-lbl em { font-style: normal; color: var(--text-4); }
.pb-val { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pb-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--bg-soft);
  overflow: hidden;
}
.pb-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--pb, 1));
  animation: pb-grow 800ms 450ms var(--ease-out) both;
}
.pb-fill-ref { background: var(--violet-muted); }
.pb-fill-you { background: var(--violet); animation-delay: 600ms; }
@keyframes pb-grow { from { transform: scaleX(0); } }

/* =========================================================
   Cabeçalho de seção (tagline + h2 centralizados)
   ========================================================= */

.section_header { margin: 0 auto var(--sp-12); }

/* =========================================================
   Vídeo
   ========================================================= */

.demo_video { max-width: none; }
.demo_video .video-placeholder {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--bg-soft);
}
/* Capa: quadro da abertura do próprio vídeo (o play continua a mesma cena) */
.demo_poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Play no vão entre o título e os cartões da capa, sem cobrir texto */
.demo_video .play-btn {
  position: absolute;
  left: calc(53.5% - 30px);
  top: calc(50% - 30px);
}
.demo_video iframe, .demo_video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-lg);
  background: var(--video-bg);
}
.demo_note { margin-top: var(--sp-4); }

/* =========================================================
   Atendimento
   ========================================================= */

.ajuda_component {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-12);
  background: linear-gradient(135deg, var(--violet-wash) 0%, var(--white) 70%);
  border: 1px solid var(--violet-border);
  border-radius: var(--radius-large);
}

.ajuda_title { margin-bottom: var(--sp-5); }

.ajuda_list { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); }
.ajuda_note { max-width: 440px; margin-bottom: var(--sp-6); }
.ajuda_list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--text); }
.ajuda_list li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.ajuda_chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}

.ajuda_bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: var(--radius-medium);
}
.ajuda_bubble.is-in { align-self: flex-end; background: var(--violet); color: var(--white); border-bottom-right-radius: 0; }
.ajuda_bubble.is-out { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 0; }

/* A conversa aparece em sequência quando a seção entra (uma vez). */
.js #ajuda .ajuda_bubble {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.js #ajuda.is-visible .ajuda_bubble { opacity: 1; transform: none; }
.js #ajuda.is-visible .ajuda_bubble:nth-child(1) { transition-delay: 150ms; }
.js #ajuda.is-visible .ajuda_bubble:nth-child(2) { transition-delay: 450ms; }
.js #ajuda.is-visible .ajuda_bubble:nth-child(3) { transition-delay: 750ms; }
.js #ajuda.is-visible .ajuda_bubble:nth-child(4) { transition-delay: 1050ms; }

/* =========================================================
   Dúvidas (faq-* vem de styles.css; aqui só os ajustes da home)
   ========================================================= */

.section_faq .faq-list { max-width: none; }

/* A linha divisória do item fica reta; o realce do hover é só na pergunta */
.faq-item { margin: 0; padding: 0; border-radius: 0; }
.faq-question {
  font-size: 18px;
  margin: 0 calc(var(--sp-4) * -1);
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  border-radius: var(--radius-medium);
  transition: color 150ms ease, background-color 150ms ease;
}
.faq-question:focus-visible { border-radius: var(--radius-medium); }
.faq-answer p { font-size: 16px; color: var(--text-2); }
.faq-answer a { color: var(--violet); font-weight: 600; }

/* Resposta abre com altura suave onde o navegador permite */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 250ms var(--ease-out), content-visibility 250ms allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

.faq_contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-10);
  padding: var(--sp-6) var(--sp-8);
}
.faq_contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-medium);
  background-color: var(--violet);
  color: var(--white);
}
.faq_contact-text { flex: 1; min-width: 200px; }
.faq_contact-text .heading-style-h4 { margin-bottom: var(--sp-1); }

/* =========================================================
   Chamada final
   ========================================================= */

.cadastro_component {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: 36px 44px;
  border-radius: var(--radius-large);
  color: var(--white);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--ink-glow) 0%, var(--ink-glow-0) 60%),
    linear-gradient(160deg, var(--ink-1) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  box-shadow: var(--ink-shadow);
}

.cadastro_art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink-art);
  pointer-events: none;
}

.cadastro_text { position: relative; }
.cadastro_title { color: var(--white); }
.cadastro_sub { margin-top: 6px; color: var(--ink-text); }
.cadastro_button { position: relative; flex-shrink: 0; }

/* =========================================================
   Modais e campos (modal-* vem de styles.css; o JS usa essas classes)
   ========================================================= */

.modal-close { border-radius: var(--radius-round); }
.modal-ok a { color: var(--violet); font-weight: 600; }
/* Botão de compartilhar depois do cadastro */
.modal-ok .modal-share { margin-top: var(--sp-5); }
/* Link da política de privacidade abaixo do botão Cadastrar */
.modal-form .text-size-small a { color: var(--violet); font-weight: 600; text-decoration: underline; }

.form_field { display: flex; flex-direction: column; gap: 3px; }
.form_field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form_row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* Popup de contato compacto: cabe inteiro na tela, sem rolagem */
#contactOverlay .modal-box { max-width: 480px; padding: var(--sp-6) var(--sp-8); }
#contactOverlay .modal-ico { width: 36px; height: 36px; margin-bottom: var(--sp-3); }
#contactOverlay .modal-body h3 { margin-bottom: 4px; }
#contactOverlay .modal-desc { margin-bottom: var(--sp-4); }
#contactOverlay .modal-form { gap: var(--sp-3); }
#contactOverlay .form_input { padding: 9px 12px; }
#contactOverlay .form_textarea { min-height: 76px; padding: 9px 12px; }

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

.footer-legal { max-width: 520px; margin-top: var(--sp-2); font-size: 13px; line-height: 1.5; color: var(--text-3); }

/* =========================================================
   Hover (só com mouse)
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
  .faq-question:hover { background: var(--bg-soft); }
  .faq-question:hover { color: var(--violet); }
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 880px) {
  .hero_card { grid-template-columns: 1fr; }
  .hero_card-photo { min-height: 190px; }
  .ajuda_component { grid-template-columns: 1fr; padding: var(--sp-8) var(--sp-6); gap: var(--sp-8); }
}

@media (max-width: 760px) {
  .cadastro_component { flex-direction: column; align-items: stretch; text-align: center; gap: var(--sp-5); padding: 32px 20px; }
  .cadastro_button { width: 100%; }
}

@media (max-width: 640px) {
  .mobile-menu { padding-left: 20px; padding-right: 20px; }
  .signup-fab.button { right: 20px; bottom: 16px; }

  .demo_video .play-btn { width: 40px; height: 40px; left: calc(53.5% - 20px); top: calc(50% - 20px); }
  .demo_video .play-btn svg { width: 16px; height: 16px; }

  .hero_content { align-items: flex-start; text-align: left; padding-block: var(--sp-6); }
  .hero_tagline { margin-bottom: var(--sp-6); }
  .hero_title { margin-bottom: var(--sp-6); }
  .hero_sub { margin-bottom: var(--sp-8); line-height: 1.65; }
  .hero_buttons { flex-direction: column; width: 100%; gap: 12px; }
  .hero_buttons .button { width: 100%; }
  .hero_myths { width: 100%; align-items: flex-start; gap: var(--sp-4); margin-top: var(--sp-10); }
  .hero_myths li { align-items: flex-start; text-align: left; }
  .hero_myth-icon { margin-top: 1px; }
  .hero_card-body { padding: var(--sp-5); }
  .hero_card-photo { min-height: 0; aspect-ratio: 5 / 2; }
  .hero_card-save { align-items: flex-start; line-height: 1.5; }
  .hero_card-save svg { flex-shrink: 0; margin-top: 4px; }
  .hero_card-tags { gap: 8px; }
  .hero_card-tags .tag { white-space: normal; line-height: 1.3; }
  .pb-row { column-gap: 12px; }
  .pb-val { white-space: nowrap; }

  .section_header { margin-bottom: var(--sp-8); text-align: left; }

  .ajuda_component { padding: var(--sp-5); gap: var(--sp-6); }
  .ajuda_list { margin-bottom: var(--sp-4); gap: 14px; }
  .ajuda_component .button { width: 100%; }
  .ajuda_chat { padding: var(--sp-4); }
  .ajuda_bubble { max-width: 95%; font-size: 15px; line-height: 1.55; }
  .demo_note { text-align: left; }

  .faq-item { margin: 0; padding: 0; }
  .faq-question { margin: 0; padding-inline: 0; gap: 16px; align-items: flex-start; }
  .faq-chevron { margin-top: 4px; }
  .faq_contact { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5) var(--sp-4); padding: var(--sp-6) var(--sp-5); }
  .faq_contact-icon { width: 44px; height: 44px; }
  .faq_contact-text { min-width: 0; }
  .faq_contact-button { grid-column: 1 / -1; width: 100%; }
  .cadastro_component { text-align: left; padding: var(--sp-6) var(--sp-5); }
  .cadastro_sub { line-height: 1.6; }
  .signup-fab.button { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .signup-fab.button.is-content-action { opacity: 0; pointer-events: none; }
}

@media (max-width: 560px), (max-height: 640px) {
  #contactOverlay .modal-box { padding: var(--sp-5); }
  #contactOverlay .modal-ico { display: none; }
  #contactOverlay .modal-desc { font-size: 13px; margin-bottom: var(--sp-3); }
  #contactOverlay .modal-form { gap: 10px; }
  #contactOverlay .form_textarea { min-height: 64px; }
}

@media (max-width: 420px) {
  .form_row { grid-template-columns: 1fr; gap: 10px; }
}

/* =========================================================
   Movimento reduzido: sem deslocamento, só fade curto
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .nav { transition: opacity 250ms ease; }
  .nav.is-hidden { transform: none; opacity: 0; pointer-events: none; }
  .nav-links a::after { transition: none; }
  .signup-fab.button,
  .signup-fab.button:not(.is-visible) { transform: none; transition: opacity 200ms ease; }

  @keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
  .hero_tagline, .hero_title, .hero_sub, .hero_buttons, .hero_myths li,
  .hero_myths li:nth-child(n), .hero_note {
    animation-duration: 250ms;
    animation-delay: 0ms;
  }
  .hero_card { animation-duration: 200ms; animation-delay: 0s; }
  @keyframes pb-grow { from { opacity: 0; } }
  .pb-fill, .hero_card-save { animation-duration: 200ms; animation-delay: 0s; }

  .js #ajuda .ajuda_bubble { transform: none; transition: opacity 200ms ease; }
  .js #ajuda.is-visible .ajuda_bubble { transition-delay: 0ms; }

  .faq-item::details-content { transition: none; }
}

/* Marca: mesmo raio padrão dos ícones quadrados */
.logo-mark { border-radius: var(--radius-medium); }

/* Títulos dos modais: heading-style-h4 (20px no modal) */
.modal-body h3 { font-size: 20px; }
