/* Página de links (link na bio). Mesma paleta e movimento do site principal. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Yrsa"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/yrsa.woff2") format("woff2"); }

:root {
  --sage: #A8B5A2;
  --deep: #34483D;
  --sand: #E8DDCE;
  --offwhite: #F8F5EF;
  --terracotta: #B87962;
  --coffee: #4A3B35;
  --sand-soft: #F1E8DC;

  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Yrsa", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--offwhite);
  color: var(--coffee);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* marca de fundo, discreta */
.scene {
  position: fixed;
  right: -18vw;
  bottom: -8vh;
  width: min(80vw, 520px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.scene img { width: 100%; height: auto; }

.card {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 48px) 0 clamp(40px, 8vw, 64px);
}

/* ---------- cabeçalho ---------- */

.banner {
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 34px) 16px;
  border-radius: 28px;
  background: var(--offwhite); /* mesma cor do fundo da logo: a moldura some */
  border: 1px solid rgba(52, 72, 61, 0.12);
}
.signature img {
  display: block;
  width: min(100%, 300px);
  height: auto;
}

.identity { text-align: center; margin-top: 22px; }
.identity h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 1.6rem + 2vw, 2.4rem);
  line-height: 1.1;
  color: var(--deep);
}
.registration {
  margin: 8px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coffee);
}

/* ---------- botões ---------- */

.channels {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 320ms var(--ease-out), background-color 240ms ease, color 240ms ease, box-shadow 320ms ease;
}
.pill svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.pill.primary {
  background: var(--deep);
  color: var(--offwhite);
  box-shadow: 0 10px 24px -12px rgba(52, 72, 61, 0.55);
}
.pill.secondary {
  background: var(--offwhite);
  color: var(--deep);
  border-color: rgba(52, 72, 61, 0.22);
}
.pill.secondary:hover { background: var(--sand-soft); }
.pill.primary:hover { background: #2a3b31; }
.pill:hover { transform: translateY(-2px); }

/* ---------- guia ---------- */

.guide {
  margin-top: 40px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 28px;
  background: var(--sand-soft);
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.cover-slot {
  width: min(100%, 260px);
}
.cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 36px -22px rgba(52, 72, 61, 0.6);
}
.guide h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 1.9rem);
  line-height: 1.15;
  color: var(--deep);
}
.guide p {
  margin: 10px auto 0;
  max-width: 34ch;
  color: var(--coffee);
}
.guide-action {
  margin-top: 18px;
  width: 100%;
  background: var(--terracotta);
  color: var(--offwhite);
}
.guide-action:hover { background: #a86c56; }

/* ---------- compartilhar ---------- */

.share {
  margin-top: 36px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.share-button {
  width: min(100%, 280px);
  background: transparent;
  color: var(--deep);
  border-color: rgba(52, 72, 61, 0.3);
}
.share-button:hover { background: var(--sand-soft); }
#share-status { margin: 0; min-height: 1.4em; font-size: 0.88rem; color: var(--coffee); }
#share-url { font-size: 0.85rem; word-break: break-all; color: var(--deep); }
#qr { margin: 8px 0 0; display: grid; justify-items: center; gap: 8px; }
#qr[hidden] { display: none; } /* o QR só aparece quando houver uma imagem configurada */
#qr figcaption { font-size: 0.82rem; color: var(--coffee); }

/* ---------- movimento (só com JavaScript ativo) ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 900ms var(--ease-out) calc(var(--d, 0) * 110ms),
    translate 900ms var(--ease-out) calc(var(--d, 0) * 110ms),
    scale 900ms var(--ease-out) calc(var(--d, 0) * 110ms),
    transform 320ms var(--ease-out),
    background-color 240ms ease,
    color 240ms ease;
}
.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* a placa do topo cresce ao entrar; a capa do guia desliza da direita */
.js .banner[data-reveal] { scale: 0.94; }
.js .banner[data-reveal].is-in { scale: 1; }
.js .cover-slot[data-reveal] { translate: 14% 0; }
.js .cover-slot[data-reveal].is-in { translate: 0 0; }

/* a marca de fundo flutua devagar */
@keyframes float { 50% { translate: 0 -10px; } }
.js .scene { animation: float 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-in,
  .js .banner[data-reveal],
  .js .cover-slot[data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }
  .js .scene { animation: none; }
  .pill:hover { transform: none; }
}
