:root {
  --bg: #08080b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.62);
  --text-3: rgba(245, 245, 247, 0.4);
  --brand-1: #9d72f8;
  --brand-2: #662ce3;
  --brand: #8150ee;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; }
img { display: block; max-width: 100%; }

/* ---------- Brilho desfocado nas bordas ---------- */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.38;
}
.glow span:nth-child(1) { background: var(--brand-1); top: -30vmax; left: -25vmax; }
.glow span:nth-child(2) { background: var(--brand-2); bottom: -32vmax; right: -25vmax; }
.glow span:nth-child(3) { background: #4a1fc4; top: 30%; right: -40vmax; opacity: 0.22; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 16px 104px;
}

/* ---------- Cabeçalho ---------- */
.profile { text-align: center; }

.profile__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 20px 60px -12px rgba(129, 80, 238, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: rise 0.9s var(--ease) both;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.profile__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.verified { width: 26px; height: 26px; flex-shrink: 0; }

.profile__bio {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  animation: rise 0.9s 0.14s var(--ease) both;
}

/* ---------- Redes sociais ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
  animation: rise 0.9s 0.2s var(--ease) both;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}
.icon-btn:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }

.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }

.card {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  animation: rise 0.9s var(--ease) both;
}
.card:nth-child(1) { animation-delay: 0.28s; }
.card:nth-child(2) { animation-delay: 0.36s; }
.card:nth-child(3) { animation-delay: 0.44s; }
.card:nth-child(4) { animation-delay: 0.52s; }
.card:nth-child(5) { animation-delay: 0.6s; }

.card__head { display: flex; align-items: center; gap: 16px; }

.card__cover {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.card__cover--round { border-radius: 50%; }

.card__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-1);
}

.card__title {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card__meta { margin-top: 2px; font-size: 13px; color: var(--text-3); }

.card__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.cta {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(129, 80, 238, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta svg { width: 14px; height: 14px; fill: currentColor; }
.cta:hover { transform: scale(1.04); box-shadow: 0 10px 30px -6px rgba(129, 80, 238, 0.95); }
.cta:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }

.cta--ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.cta--ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

/* ---------- Episódios (expansível) ---------- */
.expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.expand:hover { color: var(--text); }
.expand svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease);
}
.expand[aria-expanded="true"] svg { transform: rotate(180deg); }

.episodes-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.episodes-wrap.is-open { grid-template-rows: 1fr; }
.episodes-wrap > div { overflow: hidden; }

.episodes { list-style: none; display: grid; gap: 4px; padding-top: 4px; }

.episode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.3s var(--ease);
}
.episode:hover { background: var(--surface-hover); }

.episode__cover {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.episode__body { min-width: 0; }

.episode__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode__meta { margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ---------- Newsletter ---------- */
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--brand-grad);
  box-shadow: 0 10px 30px -10px rgba(129, 80, 238, 0.9);
}
.card__icon svg { width: 26px; height: 26px; fill: #fff; }

.newsletter-embed {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 150px;
  margin: 8px auto 0;
  border: 0;
  background: transparent;
}

/* ---------- Site: carrossel de posts ---------- */
.card__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(129, 80, 238, 0.9);
}

.carousel { margin: 16px 0 14px; }

.carousel__track {
  width: 100%;
  display: flex;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-md);
}
.carousel__track::-webkit-scrollbar { display: none; }

.post {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.post__image {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px var(--border);
}
.post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post:hover .post__image img { transform: scale(1.04); }

.post__title {
  display: -webkit-box;
  margin-top: 12px;
  padding: 0 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.35 * 2);
  transition: color 0.3s var(--ease);
}
.post__title:hover { color: var(--brand-1); }


.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.carousel__dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.carousel__dots button[aria-selected="true"] { width: 20px; background: var(--brand-1); }

/* ---------- YouTube: audiência do canal ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.stat__value {
  font-size: clamp(16px, 4.8vw, 22px);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 30%, var(--brand-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label { font-size: 12px; line-height: 1.3; color: var(--text-3); }

/* As caixas surgem uma após a outra quando a contagem começa */
.stats.is-waiting .stat { opacity: 0; transform: translateY(8px); }
.stats.is-counting .stat {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stats.is-counting .stat:nth-child(2) { transition-delay: 0.12s; }
.stats.is-counting .stat:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 400px) {
  .stat { padding: 10px; }
  .stat__label { font-size: 11px; }
}

/* ---------- YouTube: abas Recentes / Mais vistos ---------- */
#youtube { position: relative; overflow: hidden; }

.tabs {
  display: inline-flex;
  gap: 2px;
  margin-top: 16px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.tabs__tab {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.tabs__tab:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* Linha sutil no topo do card que marca os 11 s até trocar de aba */
.tab-timer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-1) 60%, var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.8;
  pointer-events: none;
}
.tab-timer.is-running { animation: tab-timer 11s linear forwards; }
.tab-timer.is-paused { animation-play-state: paused; }

@keyframes tab-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.videos[role="tabpanel"]:not([hidden]) { animation: fade 0.5s var(--ease); }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- YouTube: lista de vídeos ---------- */
.videos { list-style: none; display: grid; gap: 4px; margin-top: 12px; }

.video {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 14px;
  transition: background 0.3s var(--ease);
}
.video:hover { background: var(--surface-hover); }

.video__thumb {
  position: relative;
  width: 128px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }

.video__body { min-width: 0; }

.video__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video__meta { margin-top: 2px; font-size: 12px; color: var(--text-3); }

.cta-row { margin-top: 6px; }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.footer a:hover { color: var(--text-2); }

/* ---------- Compartilhar ---------- */
.share__fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(129, 80, 238, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.35s var(--ease);
  animation: rise 0.9s 0.6s var(--ease) both;
}
.share__fab svg { width: 24px; height: 24px; }
.share__fab:hover { transform: scale(1.06); }
.share__fab:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 4px; }
.share__fab[aria-expanded="true"] { transform: rotate(-8deg) scale(0.94); }

/* Chamada sutil: anel que se expande e ícone que dá um leve "pulo" a cada 5 s.
   Para depois que a pessoa abre o menu pela primeira vez. */
.share__fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  opacity: 0;
  pointer-events: none;
}
.share__fab:not(.is-seen)::before { animation: fab-ring 5s 2s var(--ease) infinite; }
.share__fab:not(.is-seen) svg { animation: fab-nudge 5s 2s var(--ease) infinite; }

@keyframes fab-ring {
  0% { transform: scale(1); opacity: 0.7; }
  30%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes fab-nudge {
  0%, 24%, 100% { transform: none; }
  6% { transform: translateY(-3px); }
  12% { transform: translateY(0); }
  18% { transform: translateY(-1.5px); }
}

/* Balão de chat ao chegar no fim da página */
.share__bubble {
  position: fixed;
  right: calc(max(20px, env(safe-area-inset-right)) + 68px);
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 6px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: min(280px, calc(100vw - 112px));
  padding: 4px 4px 4px 14px;
  border-radius: 20px 20px 6px 20px;
  background: rgba(36, 32, 48, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.7);
  transform-origin: bottom right;
  animation: bubble-in 0.45s var(--ease) both;
}
.share__bubble.is-leaving { animation: bubble-out 0.3s var(--ease) forwards; }

.share__bubble-text {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.share__bubble-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.share__bubble-close svg { width: 14px; height: 14px; }

/* "digitando…" antes da mensagem aparecer */
.share__typing { display: none; gap: 4px; padding: 11px 10px 11px 0; }
.share__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typing 1s infinite;
}
.share__typing i:nth-child(2) { animation-delay: 0.15s; }
.share__typing i:nth-child(3) { animation-delay: 0.3s; }
.share__bubble.is-typing .share__typing { display: flex; }
.share__bubble.is-typing .share__bubble-text,
.share__bubble.is-typing .share__bubble-close { display: none; }

@keyframes typing {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateX(8px) scale(0.85); }
  to { opacity: 1; transform: none; }
}
@keyframes bubble-out {
  to { opacity: 0; transform: translateX(8px) scale(0.9); }
}

.share__backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.share__panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 68px);
  z-index: 29;
  width: 340px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(24, 22, 32, 0.94);
  border: 1px solid var(--border);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  transform-origin: bottom right;
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}
.share.is-open .share__panel { transform: none; opacity: 1; visibility: visible; }

.share__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.share__title { font-size: 15px; font-weight: 600; }

.share__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  cursor: pointer;
}
.share__close svg { width: 16px; height: 16px; }
.share__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }

.share__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  list-style: none;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.share-option:hover,
.share-option:focus-visible { background: var(--surface-hover); color: var(--text); outline: none; }

.share-option__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--brand-1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.share-option__icon svg { width: 20px; height: 20px; fill: currentColor; }
.share-option:hover .share-option__icon,
.share-option.is-done .share-option__icon {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
}

/* Apoio via Pix (o campo .copy-field também é usado no card de contato) */
.share__support {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.share__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-1);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.copy-field--spaced { margin: 16px 0 6px; }

.copy-field__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--text);
  user-select: all;
  -webkit-user-select: all;
}

.copy-field__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.copy-field__btn svg { width: 15px; height: 15px; }
.copy-field__btn:active { transform: scale(0.96); }
.copy-field__btn:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* Celular: vira uma folha que sobe da parte de baixo */
@media (max-width: 640px) {
  .share.is-open .share__backdrop { opacity: 1; visibility: visible; }
  .share__panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
    opacity: 1;
  }
  .share__grid { row-gap: 8px; }
  .share__panel { z-index: 31; background: rgba(22, 20, 30, 0.985); }
  .share__fab { transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
  .share.is-open .share__fab {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
  }
  .share-option { font-size: 13px; }
  .share-option__icon { width: 56px; height: 56px; }
  .share-option__icon svg { width: 24px; height: 24px; }
}

/* ---------- Aviso de navegador interno ---------- */
.inapp {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 12px;
  right: 12px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 8px 10px 14px;
  border-radius: 18px;
  background: rgba(24, 22, 32, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  animation: inapp-in 0.6s 1s var(--ease) both;
}
.inapp.is-leaving { animation: inapp-out 0.35s var(--ease) forwards; }

.inapp__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--brand-1);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inapp__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-2);
}
.inapp__text strong { display: block; color: var(--text); font-weight: 600; }

.inapp__open {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.inapp__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.inapp__close svg { width: 16px; height: 16px; }

@keyframes inapp-in {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes inapp-out {
  to { opacity: 0; transform: translateY(-16px); }
}

/* ---------- Puxar para atualizar (celular) ---------- */
.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 50%;
  background: rgba(24, 22, 32, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-60px);
  pointer-events: none;
}
.ptr > svg { grid-area: 1 / 1; }

.ptr__ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.ptr__ring circle {
  fill: none;
  stroke: var(--brand-1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: calc(100.5 * (1 - var(--progress, 0)));
}

.ptr__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.ptr.is-ready .ptr__arrow { transform: rotate(180deg); }

.ptr.is-loading .ptr__arrow { opacity: 0; }
.ptr.is-loading .ptr__ring { animation: ptr-spin 0.8s linear infinite; }
.ptr.is-loading .ptr__ring circle { stroke-dashoffset: 70; }

.ptr.is-settling,
.page.is-settling { transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }

@keyframes ptr-spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

/* Substitui o puxar-para-atualizar nativo pelo da página, em todos os navegadores */
@media (hover: none) and (pointer: coarse) {
  html, body { overscroll-behavior-y: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Easter egg ---------- */
.secret {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px 20px 20px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(24, 22, 32, 0.97);
  color: var(--text);
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(129, 80, 238, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.secret[open] { animation: secret-in 0.6s var(--ease); }
.secret::backdrop {
  background: rgba(4, 3, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.secret__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  cursor: pointer;
}
.secret__close svg { width: 16px; height: 16px; }

.secret__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(157, 114, 248, 0.14);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secret__title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.secret__text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.secret__preview {
  margin-top: 18px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--border);
}
.secret__preview img { width: 100%; height: 100%; object-fit: cover; }

.secret__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.secret__status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.confetti {
  position: fixed;
  z-index: 50;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
}

@keyframes secret-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Formulário de contato ---------- */
.contact { padding: 22px 20px; animation-delay: 0.1s; scroll-margin-top: 24px; }
.contact.is-highlighted { animation: highlight 1.6s var(--ease); }

@keyframes highlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(157, 114, 248, 0); }
  30% { box-shadow: 0 0 0 3px rgba(157, 114, 248, 0.55); }
}

.form { display: grid; gap: 14px; margin-top: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__label small { font-weight: 400; color: var(--text-3); }

.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px evita o zoom automático do iOS */
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field__input::placeholder { color: var(--text-3); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.16); }
.field__input:focus { outline: none; border-color: var(--brand-1); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(157, 114, 248, 0.18); }
.field.is-invalid .field__input { border-color: #ff6b81; }

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
select.field__input:invalid { color: var(--text-3); }
select.field__input option { background: #1a1824; color: var(--text); }

textarea.field__input { min-height: 132px; resize: vertical; line-height: 1.5; }

.field__foot { display: flex; justify-content: space-between; gap: 8px; }
.field__error { min-height: 0; font-size: 12px; color: #ff8a9b; }
.field__count { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.consent.is-invalid { border-color: #ff6b81; }
.consent strong { color: var(--text); font-weight: 600; }
.consent small { color: var(--text-3); }
.consent--optional:has(input:checked) { border-color: rgba(157, 114, 248, 0.45); background: rgba(157, 114, 248, 0.08); }

.sent__newsletter {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(157, 114, 248, 0.08);
  border: 1px solid rgba(157, 114, 248, 0.3);
}
.sent__newsletter .cta svg { width: 14px; height: 14px; fill: currentColor; }

.consent input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.consent input::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.consent input:checked { background: var(--brand-grad); border-color: transparent; }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* Campo-isca contra robôs: invisível para pessoas */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 15px;
}
.form__submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form__submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form__submit.is-sending .spinner { display: block; }
.form__submit.is-sending svg { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form__status { min-height: 1.4em; font-size: 13px; text-align: center; color: #ff8a9b; }
.form__status .cta { margin-top: 10px; color: var(--text); }

.form__note { font-size: 12px; text-align: center; color: var(--text-3); }
.form__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* Mensagem de sucesso */
.sent { display: grid; justify-items: center; gap: 8px; padding: 24px 8px 8px; text-align: center; animation: rise 0.6s var(--ease) both; }
.sent__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 14px 36px -10px rgba(129, 80, 238, 0.9);
}
.sent__icon svg { width: 30px; height: 30px; color: #fff; }
.sent__title { font-size: 20px; font-weight: 700; }
.sent__text { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.sent .cta { margin-top: 8px; }

@media (max-width: 480px) {
  .contact { padding: 18px 16px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* Celular: tudo cabe na largura da tela, com proporções menores */
@media (max-width: 480px) {
  .page { padding-top: 40px; }
  .profile__logo { width: 104px; height: 104px; }
  .profile__name { margin-top: 18px; font-size: 28px; }
  .verified { width: 23px; height: 23px; }
  .profile__bio { font-size: 14px; }

  /* 7 ícones sempre numa linha só: o tamanho acompanha a largura da tela */
  .socials { gap: 8px; margin-top: 22px; flex-wrap: nowrap; }
  .socials .icon-btn {
    width: clamp(36px, calc((100vw - 32px - 48px) / 7), 48px);
    height: clamp(36px, calc((100vw - 32px - 48px) / 7), 48px);
  }
  .icon-btn svg { width: 18px; height: 18px; }

  .cards { gap: 12px; margin-top: 32px; }
  .card { padding: 16px; border-radius: 24px; }
  .card__head { gap: 12px; }
  .card__cover { width: 72px; height: 72px; }
  .card__cover:not(.card__cover--round) { border-radius: 16px; }
  .card__avatar, .card__icon { width: 48px; height: 48px; }
  .card__title { font-size: 19px; }
  .card__desc { margin-top: 12px; font-size: 14px; }
  .post__title { font-size: 16px; min-height: calc(16px * 1.35 * 2); }
  .video__thumb { width: 104px; }
  .platforms { gap: 6px; }
  .copy-field__value { font-size: 13px; }
}
