/* ==========================================================================
   main.css — Estilos de componentes e layout da landing page
   Depende de: tokens.css (variáveis) e reset.css
   ========================================================================== */

/* -------------------- Base -------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-gap);
}

/* Cabeçalho de seção reutilizável */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0;
}

.section-head .lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-soft);
  margin: 12px 0 0;
}

/* Esconde conteúdo visualmente, mantendo para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Botões -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  padding: 18px 32px;
  font-size: 18px;
  box-shadow: var(--shadow-btn);
}

.btn--light {
  background: var(--color-surface);
  color: var(--color-primary);
  padding: 18px 38px;
  font-size: 19px;
  font-weight: 900;
  box-shadow: var(--shadow-btn-light);
}

.btn--block {
  display: flex;
  width: 100%;
  padding: 18px;
  font-weight: 900;
}

/* -------------------- Animação de brilho dos CTA --------------------
   Inspirada no efeito "shine" do componente Bluetooth: uma faixa de luz
   cruza o botão lentamente e descansa a maior parte do ciclo — sutil, sem
   exagero. O texto fica nítido (shine pintado entre o fundo e o texto).
   Desativada automaticamente por prefers-reduced-motion (ver reset.css). */
.btn--primary,
.btn--light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::before,
.btn--light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* acima do fundo do botão, abaixo do texto */
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: 165% 0;
  pointer-events: none;
  animation: ctaShine 6s ease-in-out infinite;
}

/* Botão roxo: brilho branco translúcido */
.btn--primary::before {
  background-image: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 58%
  );
}

/* Botão claro (CTA final): brilho roxo, já que o branco não apareceria */
.btn--light::before {
  background-image: linear-gradient(
    115deg,
    transparent 42%,
    rgba(123, 97, 255, 0.28) 50%,
    transparent 58%
  );
}

@keyframes ctaShine {
  0% {
    background-position: 165% 0;
  }
  /* a luz cruza no início e descansa fora de quadro o resto do ciclo */
  32%,
  100% {
    background-position: -65% 0;
  }
}

/* -------------------- Navbar -------------------- */
.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center; /* logo centralizada */
  background: var(--color-surface);
  border-radius: 26px;
  padding: 14px 22px;
  box-shadow: var(--shadow-nav);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  height: 156px;
  width: auto;
  /* margem negativa mantém a navbar compacta sem cortar o logo no topo */
  margin: -38px 0;
  /* Animação de flutuação suave */
  animation: float 3.4s ease-in-out infinite;
}

/* Fallback do logo: badge roxo + texto, caso a imagem não carregue */
.brand__fallback {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 12px rgba(60, 40, 90, 0.2),
    -2px -2px 8px rgba(255, 255, 255, 0.5),
    inset 3px 3px 6px rgba(255, 255, 255, 0.4),
    inset -4px -4px 9px rgba(0, 0, 0, 0.18);
  animation: float 3.4s ease-in-out infinite;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* -------------------- Hero -------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}

.hero__stage {
  position: relative;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-card-lg);
  min-height: 560px;
  cursor: crosshair;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__body {
  position: relative;
  z-index: 2;
  pointer-events: none; /* deixa o canvas receber o mouse; botão reativa abaixo */
  padding: 84px 32px 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  box-shadow: 4px 4px 12px rgba(173, 138, 82, 0.12),
    -3px -3px 9px rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
  margin: 0 0 20px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
}

.hero__title .accent {
  color: var(--color-coral);
}

.hero__sub {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-text-soft);
  max-width: 580px;
  margin: 0 0 34px;
}

.hero__body .btn {
  pointer-events: auto; /* reativa cliques no botão */
  margin-bottom: 20px;
}

.hero__trust {
  font-size: 14px;
  font-weight: 700;
  color: #8e86a0;
}

.hero__hint {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 24px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #8b6fe0;
}

/* -------------------- Grids -------------------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* -------------------- Cards genéricos -------------------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-icon);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text-strong);
  margin: 0 0 10px;
}

.card__text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* Cores de fundo dos ícones (também servem de fallback p/ SVG) */
.bg-primary { background: var(--color-primary); }
.bg-coral { background: var(--color-coral); }
.bg-yellow { background: var(--color-yellow); }
.bg-teal { background: var(--color-teal); }
.bg-blue { background: var(--color-blue); }
.bg-lilac { background: var(--color-lilac); }
.bg-orange { background: var(--color-orange); }

/* Faixa de transição (final do Problema) */
.note-pill {
  text-align: center;
  margin-top: 36px;
}

.note-pill span {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 3px 3px 7px rgba(123, 97, 255, 0.1),
    inset -3px -3px 7px rgba(255, 255, 255, 0.9);
}

/* -------------------- Solução (cards menores com badge) -------------------- */
.feature {
  position: relative;
  background: var(--color-surface);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-card-sm);
}

.feature__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  border-radius: 11px;
  padding: 5px 11px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 3px 3px 8px rgba(60, 40, 90, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 6px rgba(0, 0, 0, 0.3);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 4px 4px 11px rgba(60, 40, 90, 0.18),
    inset 2px 2px 5px rgba(255, 255, 255, 0.4),
    inset -4px -4px 9px rgba(0, 0, 0, 0.18);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-strong);
  margin: 0 0 8px;
}

.feature__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------- Prova social -------------------- */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial__stars {
  color: var(--color-star);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial__quote {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: #544e63;
  margin: 0 0 22px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  flex: none;
  box-shadow: 4px 4px 10px rgba(60, 40, 90, 0.2),
    inset 2px 2px 5px rgba(255, 255, 255, 0.35),
    inset -3px -3px 7px rgba(0, 0, 0, 0.18);
}

.testimonial__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text-strong);
}

.testimonial__role {
  font-size: 13px;
  font-weight: 700;
  color: #9a92a8;
}

/* -------------------- Oferta + Preço -------------------- */
.offer {
  max-width: 580px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 36px;
  padding: 40px;
  box-shadow: 18px 18px 44px rgba(123, 97, 255, 0.16),
    -12px -12px 30px rgba(255, 255, 255, 0.92),
    inset 4px 4px 12px rgba(255, 255, 255, 0.7),
    inset -8px -8px 18px rgba(173, 138, 82, 0.06);
}

.offer__flag {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 6px;
  background: var(--color-orange);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  box-shadow: 4px 4px 10px rgba(255, 138, 76, 0.3),
    inset 2px 2px 4px rgba(255, 255, 255, 0.35),
    inset -3px -3px 7px rgba(180, 70, 20, 0.4);
}

.offer__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-strong);
  margin: 0 0 22px;
}

/* Rótulo acima da lista de entregáveis */
.offer__list-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-strong);
  margin: 0 0 14px;
}

.offer__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
  /* Moldura sutil para destacar os entregáveis dentro do card branco */
  background: #faf8ff;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: inset 2px 2px 6px rgba(123, 97, 255, 0.07),
    inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.offer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Quantidade em destaque (146+, 51+, ...) — puxa o olho para o valor entregue */
.offer__qty {
  color: var(--color-primary);
  font-weight: 900;
}

.offer__check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -2px -2px 5px rgba(0, 0, 0, 0.18);
}

.offer__item span:last-child {
  font-size: 15px;
  font-weight: 700;
  color: #544e63;
}

.offer__divider {
  height: 2px;
  background: #f0e8f4;
  border-radius: 2px;
  margin: 0 0 26px;
}

.offer__pricing {
  text-align: center;
}

.offer__old {
  font-size: 17px;
  font-weight: 700;
  color: #a89fb4;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.offer__price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.offer__terms {
  font-size: 14px;
  font-weight: 800;
  color: #9a92a8;
  margin-bottom: 26px;
}

.offer__secure {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #9a92a8;
}

.offer__compare {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--color-yellow-soft);
  border-radius: var(--radius-icon);
  font-size: 15px;
  font-weight: 700;
  color: #7a6a3e;
  line-height: 1.5;
  box-shadow: inset 3px 3px 7px rgba(190, 150, 60, 0.12),
    inset -3px -3px 7px rgba(255, 255, 255, 0.8);
}

/* -------------------- FAQ -------------------- */
.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--color-surface);
  border-radius: 22px;
  box-shadow: 12px 12px 28px rgba(173, 138, 82, 0.14),
    -8px -8px 22px rgba(255, 255, 255, 0.92),
    inset 3px 3px 8px rgba(255, 255, 255, 0.65),
    inset -5px -5px 12px rgba(173, 138, 82, 0.05);
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  border-radius: 22px;
}

.faq__q {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-strong);
  line-height: 1.35;
}

.faq__symbol {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 3px 3px 8px rgba(123, 97, 255, 0.3),
    inset 2px 2px 4px rgba(255, 255, 255, 0.32),
    inset -2px -2px 6px rgba(60, 40, 150, 0.4);
  transition: transform 0.2s ease;
}

.faq__item[data-open="true"] .faq__symbol {
  transform: rotate(180deg);
}

/* Painel animado por altura */
.faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.faq__answer {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text-muted);
  padding: 0 70px 22px 26px;
}

/* -------------------- CTA final -------------------- */
.cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 110px;
}

.cta__card {
  position: relative;
  background: var(--color-primary);
  border-radius: var(--radius-card-lg);
  padding: 68px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: 18px 18px 46px rgba(123, 97, 255, 0.34),
    -12px -12px 30px rgba(255, 255, 255, 0.55),
    inset 5px 5px 14px rgba(255, 255, 255, 0.3),
    inset -8px -8px 20px rgba(60, 40, 150, 0.42);
}

.cta__deco {
  position: absolute;
}

.cta__deco--1 {
  top: -30px;
  left: 8%;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--color-yellow);
  box-shadow: inset 3px 3px 7px rgba(255, 255, 255, 0.5),
    inset -4px -4px 9px rgba(190, 140, 0, 0.4);
  animation: bob 5s ease-in-out infinite;
}

.cta__deco--2 {
  bottom: 24px;
  right: 10%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: inset 3px 3px 7px rgba(255, 255, 255, 0.45),
    inset -4px -4px 9px rgba(180, 40, 40, 0.4);
  animation: float 4s ease-in-out infinite;
}

.cta__deco--3 {
  top: 40px;
  right: 16%;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--color-teal);
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.45),
    inset -3px -3px 7px rgba(0, 0, 0, 0.2);
  animation: bob 6s ease-in-out infinite;
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 0 rgba(60, 40, 150, 0.25);
}

.cta__text {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 0 34px;
}

.cta__trust {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 18px;
}

/* -------------------- Rodapé -------------------- */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #a89fb4;
  line-height: 1.8;
}

.footer__link {
  color: var(--color-primary);
  font-weight: 800;
}

.footer__link:hover {
  text-decoration: underline;
}

/* -------------------- Animações -------------------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

/* ==========================================================================
   RESPONSIVIDADE
   > 1024px  : layout desktop completo (padrão acima)
   768–1024  : grids em 2 colunas, fontes reduzidas
   < 768px   : empilhamento vertical, padding reduzido
   < 420px   : headlines menores, botões full-width
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-gap: 84px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading {
    font-size: 38px;
  }
  .hero__title {
    font-size: 50px;
  }
  .cta__title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 18px;
    --section-gap: 64px;
  }
  .section,
  .faq,
  .cta {
    padding-top: 64px;
  }
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero {
    padding-top: 20px;
  }
  .hero__stage {
    min-height: 0;
    border-radius: 26px;
  }
  .hero__body {
    padding: 46px 22px 54px;
  }
  .hero__title {
    font-size: 34px;
    line-height: 1.1;
  }
  .hero__sub {
    font-size: 17px;
  }
  .hero__hint {
    display: none;
  }
  .heading {
    font-size: 27px;
    line-height: 1.14;
  }
  .card__title,
  .feature__title {
    font-size: 18px;
  }
  .offer {
    padding: 26px 20px;
    border-radius: 28px;
  }
  .offer__price {
    font-size: 46px;
  }
  .cta__card {
    padding: 42px 22px;
    border-radius: 30px;
  }
  .faq__answer {
    padding-right: 26px;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 29px;
  }
  .cta__title {
    font-size: 25px;
  }
  .btn--primary,
  .btn--light {
    width: 100%;
  }
  .navbar__inner {
    padding: 12px 16px;
  }
  .brand__logo {
    height: 124px;
    margin: -28px 0;
  }
}
