/* Página pública de links (cada pessoa). As cores vêm das variáveis do tema. */
*,
*::before,
*::after { box-sizing: border-box; }

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

body.lp {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg2);
  background-image: linear-gradient(170deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  color: var(--title);
  font-family: "Jost", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

.lp-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 16px 36px;
}

.lp-head { text-align: center; margin-bottom: 30px; }

.lp-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .55);
  margin: 0 auto 16px;
  display: block;
  background: var(--soft);
}

.lp-name {
  margin: 0;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--title);
  overflow-wrap: anywhere;
}

.lp-prof {
  margin: 10px 0 0;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lp-bio {
  margin: 14px auto 0;
  max-width: 400px;
  font-size: .95rem;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lp-cards { display: flex; flex-direction: column; gap: 14px; }

.lp-card {
  display: flex;
  align-items: stretch;
  height: 138px;
  border-radius: 22px;
  background: var(--card);
  color: var(--card-text);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }
.lp-card:focus-visible { outline: 3px solid var(--title); outline-offset: 3px; }
.lp-card--accent { background: var(--accent); color: var(--accent-text); }
.lp-card--soft { background: var(--soft); }
.lp-card--dark { background: var(--card-dark); color: var(--card-dark-text); }
.lp-card--dark .lp-label,
.lp-card--dark .lp-desc { color: var(--card-dark-text); opacity: .72; }
.lp-card--beige_dark { background: var(--card-deep); color: var(--card-deep-text); }
.lp-card--beige_dark .lp-label,
.lp-card--beige_dark .lp-desc { color: var(--card-deep-text); opacity: .80; } /* .74 falhava WCAG AA (4.5:1) no tema sálvia */
.lp-card--outline {
  background: rgba(255, 255, 255, .06);
  color: var(--title);
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.lp-card--outline .lp-label,
.lp-card--outline .lp-desc { color: var(--muted); }
.lp-card--img-left { flex-direction: row-reverse; }

.lp-card-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 20px;
}
.lp-card--has-img.lp-card--img-right .lp-card-text { padding-right: 6px; }
.lp-card--has-img.lp-card--img-left .lp-card-text { padding-left: 6px; }

.lp-label {
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--card-muted);
}
.lp-card--accent .lp-label,
.lp-card--accent .lp-desc { color: var(--accent-text); opacity: .98; } /* .92 falhava WCAG AA (4.5:1) no tema terracota */

.lp-title {
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Quem mantém todos os cards com a mesma altura é o "height" fixo do .lp-card (com
     "overflow:hidden"), não o título — por isso ele NÃO reserva 2 linhas de espaço aqui.
     Título de 1 linha só fica com a altura de 1 linha mesmo, e o bloco inteiro (etiqueta +
     título + descrição) continua centralizado no card, do mesmo jeito, mas sem sobrar um
     vão vazio embaixo do título. */
}

/* Opção de cada página: título do card em caixa normal em vez de maiúsculas
   (a etiqueta pequena acima do título continua maiúscula do mesmo jeito). */
.lp-cards--no-upper .lp-title { text-transform: none; }

.lp-desc {
  font-size: .82rem;
  line-height: 1.25;
  color: var(--card-muted);
  display: -webkit-box;
  /* Até 3 linhas (em vez de 2): com o card mais enxuto, uma descrição maior pode precisar
     de mais linhas pra caber — preferimos deixar ela quebrar mais a cortar cedo demais.
     Card com título de 2 linhas sobra menos espaço, então nesse caso a descrição mostra o
     quanto couber (mesmo comportamento de sempre: o que não cabe corta com "…"). */
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-media { flex: 0 0 38%; position: relative; }
.lp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* "contain" (em vez de "cover") pra imagem inteira sempre caber e ficar centralizada,
     sem cortar partes — importante pra fotos que não são exatamente no formato 900×600
     recomendado (quadradas, stickers, WebP animado, etc.). Pra uma foto já nesse formato
     a diferença visual é praticamente nula, então não muda nada pra quem já manda certo. */
  object-fit: contain;
  object-position: center;
}

.lp-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  border: 1px dashed rgba(255, 255, 255, .4);
  border-radius: 18px;
}

/* Divulgação do plano grátis */
.lp-ads { margin-top: 30px; }
.lp-ads-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-ads .lp-card { height: auto; margin-bottom: 12px; }
.lp-ads .lp-title { font-size: 1.5rem; }

.lp-cta {
  display: block;
  margin: 18px auto 0;
  max-width: 340px;
  padding: 13px 20px;
  text-align: center;
  border-radius: 999px;
  border: 1.5px solid var(--title);
  color: var(--title);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.lp-cta:hover { background: rgba(255, 255, 255, .12); }
.lp-cta:focus-visible { outline: 3px solid var(--title); outline-offset: 3px; }

.lp-foot {
  margin-top: 28px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}
.lp-foot a { color: var(--muted); text-underline-offset: 3px; }
.lp-foot a:focus-visible { outline: 2px solid var(--title); outline-offset: 2px; }
.lp-foot .sep { margin: 0 8px; opacity: .6; }

@media (max-width: 380px) {
  .lp-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-card { transition: none; }
  .lp-card:hover { transform: none; }
}

.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;
}

/* Ícones discretos do topo: criar página (esquerda) e compartilhar (direita). Ficam fixos
   na tela, acima do conteúdo, pra não empurrar nem poluir o cartão de links. */
.lp-utilbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 40;
  pointer-events: none;
}
.lp-icon-btn {
  position: relative; /* para o alvo de toque abaixo */
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  color: var(--title);
  cursor: pointer;
  transition: background .15s ease;
}
/* Alvo de toque de ~44×44px (mínimo recomendado de acessibilidade) sem aumentar o círculo
   visível de 34px — estende a área clicável pra fora do botão, sem mudar a aparência. */
.lp-icon-btn::before { content: ""; position: absolute; inset: -5px; }
.lp-icon-btn:hover { background: rgba(255, 255, 255, .42); }
.lp-icon-btn:focus-visible { outline: 2px solid var(--title); outline-offset: 2px; }
.lp-icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.lp-pop {
  position: fixed;
  top: 56px;
  width: min(280px, calc(100vw - 28px));
  background: var(--card);
  color: var(--card-text);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  padding: 16px;
  z-index: 41;
}
.lp-pop[hidden] { display: none; }
.lp-pop--left { left: 14px; }
.lp-pop--right { right: 14px; }
.lp-pop-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--card-muted);
  cursor: pointer;
}
/* Mesma ideia do .lp-icon-btn: alvo de toque maior sem aumentar o "x" visível. */
.lp-pop-close::before { content: ""; position: absolute; inset: -8px; }
.lp-pop-title { margin: 0 22px 10px 0; font-size: .9rem; font-weight: 600; }
.lp-pop-domain {
  margin: 0 0 5px;
  font-size: .78rem;
  color: var(--card-muted);
  overflow-wrap: anywhere;
}
.lp-pop-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--soft);
  border-radius: 10px;
  padding: 0 12px;
  /* 16px é o mínimo pro iOS não dar zoom automático na tela ao focar o campo. */
  font-size: 16px;
  height: 42px;
  background: #fff;
  color: #2b2b2b;
}
.lp-pop-msg { margin: 7px 0 0; min-height: 1.2em; font-size: .8rem; }
.lp-pop-msg.ok { color: #1f7a44; }
.lp-pop-msg.bad { color: #b3261e; }
.lp-pop-cta {
  display: block;
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.lp-pop-cta[hidden] { display: none; }
.lp-share-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: .88rem;
  color: var(--card-text);
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
}
.lp-share-opt:hover { background: var(--soft); }
.lp-share-opt svg { width: 17px; height: 17px; flex: none; stroke: currentColor; }

@media (max-width: 380px) {
  .lp-utilbar { top: 10px; left: 10px; right: 10px; }
}
