/* Página pública. Mobile-first: a base é o celular, breakpoints só com min-width. */

@font-face {
  font-family: "Inter";
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbf6f3;
  --ink: #251a1b;
  --muted: #66575b;
  --rosa: #f1e0e6;
  --lilas: #bfa3bc;
  /* Cores amostradas do mockup. Texto branco no lilás tem contraste ~2:1; para acessibilidade escureça --lilas (ex.: #8c6a8b). */
  --lilas-ink: #fff;
  --bege: #e6d3c4;
  --banner-from: #efd9dc;
  --banner-to: #e2c3c9;
  --cta: #6e5960;
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Topo */
.profile { display: grid; justify-items: center; gap: 14px; text-align: center; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.name .icon { width: 0.85em; height: 0.85em; }
.socials { display: flex; gap: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.3s var(--ease-spring);
}
.social-icon { width: 26px; height: 26px; }
.cut { fill: var(--bg); }
.cut-stroke { stroke: var(--bg); }
.tagline { color: var(--muted); font-size: 1rem; }

/* Banner */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 184px;
  padding: 24px 12px 24px 22px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--banner-from), var(--banner-to));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.banner-text { position: relative; z-index: 1; flex: 1 1 58%; display: grid; justify-items: start; gap: 10px; }
.banner-title { font-size: clamp(1rem, 4.6vw, 1.375rem); font-weight: 500; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; }
.banner-copy { font-size: 0.9375rem; line-height: 1.4; }
.banner-cta {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding: 12px 18px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.banner-image { flex: 0 1 44%; width: 44%; height: auto; }

/* Botões */
.links { display: grid; gap: 12px; padding: 0; list-style: none; }
.link {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--rosa);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.link--lilas { background: var(--lilas); color: var(--lilas-ink); }
.link--bege { background: var(--bege); }
.link-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 600; }
.link-sub { color: var(--muted); font-size: 0.875rem; }
.link--lilas .link-sub { color: inherit; opacity: 0.9; }
.icon { flex: none; width: 1em; height: 1em; }

.footer { padding-top: 8px; color: var(--muted); font-size: 0.875rem; text-align: center; }
.footer a { display: inline-block; padding: 8px 12px; color: inherit; text-decoration: none; }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

/* Ripple criado pelo page.js no ponto do toque. */
.ripple {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.5);
  pointer-events: none;
  animation: ripple 0.6s var(--ease-out) forwards;
}

/* Movimento: só transform/opacity, e só se a pessoa não pediu menos movimento. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.52s var(--ease-out) backwards; }
  .banner.reveal { animation-delay: 60ms; }
  .links li:nth-child(1) { animation-delay: 120ms; }
  .links li:nth-child(2) { animation-delay: 170ms; }
  .links li:nth-child(3) { animation-delay: 220ms; }
  .links li:nth-child(4) { animation-delay: 270ms; }
  .links li:nth-child(5) { animation-delay: 320ms; }
  .links li:nth-child(6) { animation-delay: 370ms; }
  .links li:nth-child(7) { animation-delay: 420ms; }
  .links li:nth-child(8) { animation-delay: 470ms; }
  .links li:nth-child(9) { animation-delay: 520ms; }
  .links li:nth-child(10) { animation-delay: 570ms; }
  .links li:nth-child(n + 11) { animation-delay: 620ms; }
  .footer.reveal { animation-delay: 680ms; }

  .link:active, .banner:active { transform: scale(0.97); transition-duration: 0.12s; }
  .socials a:active { transform: scale(0.88); transition-duration: 0.12s; }

  .link--lilas .icon--sparkle { animation: twinkle 4s var(--ease-out) 1.4s infinite; }
  .name .icon { animation: beat 3.6s ease-in-out 1s infinite; }
  .banner-image { animation: float 6s ease-in-out infinite; }
  .banner-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.35) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: shine 5s var(--ease-out) 1.2s infinite;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .link:hover, .banner:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgb(59 42 44 / 0.45); }
  .socials a:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes twinkle {
  0%, 82%, 100% { transform: scale(1) rotate(0); }
  90% { transform: scale(1.3) rotate(25deg); }
}
@keyframes beat {
  0%, 70%, 100% { transform: scale(1); }
  76% { transform: scale(1.18); }
  82% { transform: scale(1); }
  88% { transform: scale(1.1); }
}
@keyframes float { 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes shine { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

@media (min-width: 600px) {
  .page { padding-top: 48px; }
  .name { font-size: 1.75rem; }
}
