:root {
  /* Swagbucks blues + orange accent (var names kept for minimal churn) */
  --pg-green-deep: #0a2a6e;
  --pg-green: #1450f5;
  --pg-green-mid: #1a4fd4;
  --pg-green-soft: #3166f6;
  --pg-mint: #54b5d2;
  --pg-mint-light: #7ec8e8;
  --pg-gold: #fc8019;
  --pg-gold-soft: #ffc48a;
  --pg-lime: #ffd56a;
  --pg-dark: #1f1b39;
  --pg-dark-alt: #1e1a38;
  --pg-text: #ffffff;
  --pg-text-muted: rgba(255, 255, 255, 0.82);
  --pg-btn-text: #1a1a1a;

  --playful-bg: #0d0618;
  --playful-purple: #7b3ff2;
  --playful-purple-light: #a78bfa;
  --playful-border: rgba(139, 92, 246, 0.35);
  --playful-yellow: #f5c518;
  --playful-green: #22c55e;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-pill: 999px;
  --radius-card: 16px;
  --max-w: 420px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  min-height: 100%;
  min-height: 100dvh;
  color: var(--pg-text);
  background: linear-gradient(
    180deg,
    var(--pg-green-deep) 0%,
    var(--pg-green) 48%,
    var(--pg-mint) 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
}

.page--center {
  justify-content: center;
}

.shell {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: auto;
  height: 40px;
  object-fit: contain;
  margin-bottom: 18px;
  /* Wordmark is dark; force white on the brand gradient */
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.logo--float {
  animation: logo-float 3.2s ease-in-out infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.logo--sm {
  height: 34px;
  margin-bottom: 14px;
}

.accent {
  color: var(--pg-gold);
  position: relative;
  display: inline-block;
}

.accent--shimmer {
  background: linear-gradient(
    105deg,
    var(--pg-gold) 0%,
    var(--pg-gold) 40%,
    #fff6d0 50%,
    var(--pg-gold) 60%,
    var(--pg-gold) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 1.8s ease-out 0.3s both;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.btn--soft-pulse {
  animation: btn-in 0.55s ease-out both, soft-pulse 2.4s ease-in-out 0.7s infinite;
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(252, 128, 25, 0.45);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 34px rgba(252, 128, 25, 0.7);
  }
}

.headline {
  font-size: clamp(1.6rem, 6.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sub {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--pg-text-muted);
  max-width: 320px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  width: 100%;
  max-width: 340px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--pg-gold);
  color: var(--pg-btn-text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(252, 128, 25, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: btn-in 0.55s ease-out both;
}

@keyframes btn-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost-link {
  background: transparent;
  box-shadow: none;
  color: var(--pg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  margin-top: 14px;
  width: auto;
  max-width: none;
  padding: 10px 12px;
  animation: none;
}

.brand-word {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--pg-gold);
  text-shadow: 0 2px 12px rgba(252, 128, 25, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(252, 128, 25, 0.55);
  color: var(--pg-gold);
}

.micro {
  font-size: 0.8rem;
  color: var(--pg-text-muted);
  margin-top: 12px;
}
