:root {
  --icred-green: #16c764;
  --icred-green-dark: #075a2a;
  --icred-ink: #08130d;
  --icred-paper: #f7faf8;
}

html {
  background: var(--icred-ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(22, 199, 100, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 25%, rgba(83, 224, 160, 0.09), transparent 34rem),
    var(--icred-ink);
}

#root {
  min-height: 100vh;
}

img[src$="icred-logo.svg"] {
  max-width: 138px;
}

/* Os vídeos voltaram a fazer parte do pacote. Garante imagem visível e
   proporção correta mesmo nas páginas que usam um player posicionado. */
#root video {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
  background: #030806;
}

#root .aspect-video video {
  height: 100% !important;
  object-fit: contain !important;
}

.icred-original-sound-button {
  display: none !important;
}

.icred-sound-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(7, 18, 11, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  color: #fff;
  cursor: pointer;
  font: 800 12px/1 "Plus Jakarta Sans", Arial, sans-serif;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.icred-sound-button:hover {
  background: rgba(8, 145, 65, 0.94);
  transform: translateY(-1px);
}

.icred-sound-button[data-sound-active="1"] {
  background: rgba(8, 145, 65, 0.94);
}

.icred-sound-button span[aria-hidden="true"] {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 480px) {
  .icred-sound-button {
    right: 9px;
    bottom: 9px;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 11px;
  }
}

.icred-video-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  background: linear-gradient(145deg, #07110b, #10291a);
  color: #fff;
  text-align: center;
}

.icred-video-error strong {
  color: #7ee6a7;
  font-size: 14px;
}

.icred-video-error span {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.5;
}

/* O projeto nasceu mobile-first. Em telas largas, a home passa a ocupar uma
   área de campanha completa, mantendo os formulários confortáveis para leitura. */
@media (min-width: 860px) {
  #root > div[style*="max-width: 430px"] {
    width: min(1180px, calc(100vw - 64px));
    max-width: 1180px !important;
    margin: 28px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    overflow: hidden !important;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.4);
  }

  main.max-w-\[500px\],
  div.max-w-\[430px\] {
    width: min(100% - 40px, 520px);
  }
}

@media (min-width: 1100px) {
  /* A notificação social da home cobria o logotipo em telas largas. */
  #root > div.fixed.top-3.left-3 {
    display: none !important;
  }

  /* Nos upsells, o rodapé de ação participa do fluxo e fica alinhado ao
     conteúdo. Assim ele não cobre os cartões nem fica solto no canto. */
  #root div.fixed.bottom-0.left-0.right-0 {
    position: sticky !important;
    left: auto !important;
    right: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    transform: none !important;
    overflow: visible;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.14) !important;
  }
}

@media (max-width: 859px) {
  body {
    background: var(--icred-paper);
  }
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(22, 199, 100, 0.38) !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
