/* =========================================================================
   @imagenopolis · Renato & Sofia — Página Oficial de Links da Bio
   Paleta: Azul cobalto da série, dourado da maleta, ciano elétrico e contorno ink
   ========================================================================= */

:root {
  --bg: #eef4ff;
  --paper: #fffdf8;
  --ink: #181726;
  --ink-soft: rgba(24, 23, 38, 0.78);
  --cobalt: #1e3a8a;
  --cobalt-dark: #091b54;
  --royal: #2563eb;
  --cyan: #38bdf8;
  --yellow: #ffd23a;
  --yellow-soft: #fff2b2;
  --green: #15803d;
  --green-dark: #14532d;
  --red: #e8323c;
  --shadow: 0 6px 0 #181726;
  --shadow-sm: 0 3px 0 #181726;
  --font-display: "Fredoka", "Nunito", ui-rounded, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding: 20px 14px 40px;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16px 16px, rgba(37, 99, 235, 0.14) 2px, transparent 0),
    radial-gradient(circle at 38px 38px, rgba(255, 210, 58, 0.25) 2px, transparent 0);
  background-size: 46px 46px;
}

img {
  display: block;
  max-width: 100%;
}

.links-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================================
   TOPO (Avatar + @handle + 3 ícones sociais)
   ========================================================================= */
.hero {
  text-align: center;
  padding: 6px 6px 2px;
}

.avatar-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--cobalt);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 2px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-handle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.05rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-tagline {
  margin: 8px auto 0;
  max-width: 39ch;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-soft);
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.social-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.social-orb svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-orb:hover {
  transform: translateY(-2px) scale(1.04);
}

.social-orb:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.social-orb--ig:hover {
  background: #ff4fa3;
  color: #ffffff;
}

.social-orb--tt:hover {
  background: #181726;
  color: var(--cyan);
}

.social-orb--yt:hover {
  background: var(--red);
  color: #ffffff;
}

/* =========================================================================
   OS 3 BLOCOS PRINCIPAIS + PERSONAGENS ESPIANDO
   ========================================================================= */
.blocks-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.block-wrap {
  position: relative;
  padding-top: 20px;
}

.block-card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.block-card--community {
  background: linear-gradient(180deg, #fffdf4 0%, #fff4cc 100%);
  padding-top: 26px;
}

.block-card--course {
  background: linear-gradient(180deg, #f3f7ff 0%, #dbeafe 100%);
}

.block-card--support {
  background: linear-gradient(180deg, #fffaf0 0%, #ffefc7 100%);
}

.block-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.block-badge--blue {
  background: var(--royal);
  color: #ffffff;
}

.block-badge--gold {
  background: var(--yellow);
  color: var(--ink);
}

.block-title {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.15;
  color: var(--ink);
}

.block-desc {
  margin: 0 0 15px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-soft);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.cta-btn--community {
  background: var(--green);
  color: #ffffff;
}

.cta-btn--course {
  background: var(--cobalt);
  color: #ffffff;
}

.cta-btn--support {
  background: var(--yellow);
  color: var(--ink);
}

/* =========================================================================
   PERSONAGENS ESPIANDO NOS CARTÕES
   ========================================================================= */
.peek-char {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 3px 0 rgba(24, 23, 38, 0.28));
}

.peek-char.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.char-renato {
  width: 72px;
  top: -38px;
  left: 4px;
}

.char-sofia {
  width: 74px;
  top: -40px;
  right: 4px;
}

.char-vitor {
  width: 72px;
  top: -36px;
  right: 10px;
}

.peek-char.is-visible .char-bob {
  animation: charBob 2.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.peek-char.is-visible .char-wave {
  animation: charWave 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.peek-char.is-visible .char-sneak {
  animation: charSneak 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes charBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes charWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

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

/* =========================================================================
   RODAPÉ
   ========================================================================= */
.links-footer {
  text-align: center;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.links-footer a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}

/* =========================================================================
   MODAL DE INFORMAÇÃO + LISTA DE ESPERA VIP
   ========================================================================= */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(24, 23, 38, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.info-modal-backdrop[hidden] {
  display: none;
}

.info-modal-card {
  width: 100%;
  max-width: 420px;
  background: #fffdf8;
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 9px 0 var(--ink);
}

.info-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}

.info-modal-card h2 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.15;
}

.info-modal-card p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-soft);
}

.vip-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 800;
}

.vip-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.vip-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-soft);
}

.vip-consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.vip-consent a {
  color: var(--cobalt);
}

.vip-feedback {
  margin: 2px 0 0 !important;
  min-height: 18px;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}

.vip-feedback.is-ok {
  color: var(--green-dark) !important;
}

.vip-feedback.is-err {
  color: var(--red) !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.info-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

@media (min-width: 560px) {
  body {
    padding: 28px 24px 48px;
  }

  .char-renato {
    width: 82px;
    top: -46px;
    left: -8px;
  }

  .char-sofia {
    width: 84px;
    top: -48px;
    right: -8px;
  }

  .char-vitor {
    width: 78px;
    top: -42px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .peek-char,
  .social-orb,
  .block-card,
  .cta-btn {
    transition: none;
  }

  .peek-char {
    opacity: 1;
    transform: none;
  }

  .peek-char.is-visible .char-bob,
  .peek-char.is-visible .char-wave,
  .peek-char.is-visible .char-sneak {
    animation: none;
  }
}
