:root {
  --bg: #fff8fa;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #351c29;
  --muted: #78616d;
  --primary: #8f1f4f;
  --primary-soft: #f8dfe8;
  --accent: #25d366;
  --accent-dark: #18b655;
  --shadow: 0 26px 70px rgba(108, 29, 65, 0.12);
  --shadow-soft: 0 14px 30px rgba(108, 29, 65, 0.08);
  --border: rgba(143, 31, 79, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 460px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 25% 25%, rgba(143, 31, 79, 0.03) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 25%, rgba(143, 31, 79, 0.03) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(143, 31, 79, 0.03) 0 18%, transparent 19%),
    radial-gradient(circle at 25% 75%, rgba(143, 31, 79, 0.03) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 75%, rgba(143, 31, 79, 0.03) 0 18%, transparent 19%),
    radial-gradient(circle at top, rgba(214, 129, 161, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 209, 226, 0.45), transparent 22%),
    linear-gradient(180deg, #fffdfd 0%, var(--bg) 48%, #fff3f7 100%);
  background-size:
    auto,
    72px 72px,
    72px 72px,
    72px 72px,
    72px 72px,
    72px 72px,
    auto,
    auto,
    auto;
}

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

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    16px
    max(16px, env(safe-area-inset-bottom));
}

.page-frame {
  width: min(100%, var(--container));
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: 74px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -18px auto auto 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 202, 219, 0.34), rgba(244, 202, 219, 0));
  transform: translateX(-50%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-header,
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero-avatar-wrap {
  display: flex;
  width: fit-content;
  margin: -22px auto 10px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--primary-soft));
  box-shadow: 0 16px 36px rgba(141, 29, 77, 0.14);
}

.hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255, 255, 255, 0.88);
}

.hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.72rem, 4vw, 2.12rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-copy {
  margin: 12px auto 0;
  max-width: 32ch;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 17px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #31de74, var(--accent));
  color: #fff;
  font-size: 0.97rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 20px 30px rgba(37, 211, 102, 0.25);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 34px rgba(37, 211, 102, 0.3);
  background: linear-gradient(180deg, #39e67b, var(--accent-dark));
}

.cta-button:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.2);
  outline-offset: 3px;
}

.cta-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.brand-marquee {
  margin-top: 14px;
}

.brand-marquee__viewport {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(143, 31, 79, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 241, 246, 0.98), rgba(255, 247, 250, 0.98));
  box-shadow: var(--shadow-soft);
}

.brand-marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: brand-scroll 18s linear infinite;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  max-width: 142px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(108, 29, 65, 0.06);
}

.brand-chip__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 24px;
  object-fit: contain;
}

.brand-chip__image--meli {
  height: 22px;
}

.benefits-line {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.join-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 24px), 360px);
  padding: 14px 16px;
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(61, 34, 48, 0.12);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition:
    transform 320ms ease,
    opacity 320ms ease;
}

.join-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.join-toast p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text);
}

.toast-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fade-up 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay {
  animation-delay: 140ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

@media (min-width: 760px) {
  .page-shell {
    padding:
      max(24px, env(safe-area-inset-top))
      24px
      max(24px, env(safe-area-inset-bottom));
  }

  .hero-card {
    padding: 72px 30px 24px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .brand-chip {
    min-width: 154px;
    max-width: 154px;
  }

  .brand-chip__image {
    height: 28px;
  }

  .brand-chip__image--meli {
    height: 24px;
  }

  .join-toast {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: translate(0, 130%);
  }

  .join-toast.is-visible {
    transform: translate(0, 0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-marquee__track {
    transform: translateX(0) !important;
  }
}
