/* --- RESET & UTILITIES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  /* ERA Brand Blue Background */
  background: linear-gradient(135deg, #004b87 0%, #00274c 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* --- AMBIENT BACKGROUND BLOBS --- */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.blob-1 {
  top: -10%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.25) 0%, transparent 70%);
}
.blob-2 {
  bottom: -10%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(0, 110, 183, 0.3) 0%, transparent 70%);
}
.blob-3 {
  top: 40%; left: 50%; width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

/* --- LAYOUT --- */
.site-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* --- HEADER --- */
.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.header-logo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.header-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.text-gradient {
  background: linear-gradient(135deg, #a3d95d, #8dc63f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.website-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  background: rgba(0, 110, 183, 0.4);
  backdrop-filter: blur(12px);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  letter-spacing: 0.02em;
}

.website-link-pill:hover {
  background: rgba(0, 110, 183, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: rgba(255, 255, 255, 0.5);
}


/* --- MAIN CARD --- */
.main-content {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  padding: 48px;
  width: 100%;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.3), 
    0 0 0 1px rgba(255,255,255,0.1);
  color: #0f172a;
  position: relative;
}

/* Graphic Floating Above Card */
.graphic-image-wrapper {
  position: absolute;
  top: -20px;
  right: -25px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  z-index: 20;
  animation: float 6s ease-in-out infinite;
}

.graphic-pulse {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: rgba(141, 198, 63, 0.3);
  z-index: 1;
  animation: pulseRing 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.floating-graphic {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  z-index: 2;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 600px) {
  .graphic-image-wrapper {
    top: -15px;
    right: -10px;
    width: 85px;
    height: 85px;
  }
  .hero-card {
    padding: 40px 24px;
    border-radius: 24px;
  }
}

/* --- FORMS & INPUTS --- */
.form-group {
  margin-bottom: 20px;
}

input[type="email"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  height: 60px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 0 20px;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder {
  color: #94a3b8;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: #006eb7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 110, 183, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
}

.btn-primary {
  width: 100%;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8dc63f 0%, #7ebd32 100%);
  color: #fff;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(141, 198, 63, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(141, 198, 63, 0.4);
  background: linear-gradient(135deg, #99d248 0%, #83c337 100%);
}

.btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

.error-msg {
  background: #fef2f2;
  color: #b91c1c;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid #fecaca;
}

.status-box {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 16px 32px;
  border-radius: 16px;
  margin-bottom: 40px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* --- SHARE STATE --- */
.success-header {
  text-align: center;
  margin-bottom: 32px;
}

.success-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.5;
}

.share-box {
  margin-bottom: 24px;
}

.share-box input {
  text-align: center;
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  font-size: 1rem;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .share-actions {
    grid-template-columns: 1fr;
  }
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgba(0,0,0,0.15);
}

.btn-li { background: #0077b5; }
.btn-fb { background: #1877f2; }
.btn-x { background: #000000; }
.btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.btn-copy { 
  background: #e2e8f0; 
  color: #334155; 
  grid-column: 1 / -1; 
}
.btn-copy:hover { 
  background: #cbd5e1; 
  color: #1e293b; 
}

/* Progress Bar */
.progress-section {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 35px;
  border: 1px solid #e2e8f0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-text {
  color: #004b87;
}

.progress-target {
  color: #64748b;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 5%; /* starts small to show it's active */
  background: linear-gradient(90deg, #004b87, #006eb7, #8dc63f);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 1s ease-out;
  animation: shimmerProgress 2s infinite linear;
}

@keyframes shimmerProgress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Leaderboard Preview */
.leaderboard-preview {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.lb-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 700;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lb-item:hover {
  transform: translateX(4px);
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.lb-item.top-spot {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}

.lb-item.top-spot .lb-score {
  color: #166534;
  font-weight: 800;
}

.lb-user { color: #334155; }
.lb-score { color: #8dc63f; }


/* --- HOW IT WORKS SECTION --- */
.how-it-works {
  margin-top: 60px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.how-title {
  text-align: center;
  font-family: 'Sora', sans-serif;
  margin-bottom: 32px;
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.step {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(141, 198, 63, 0.2);
  color: #a3d95d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.step-text strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- FOOTER / POWERED BY --- */
#wbx-powered-by-slot {
  margin-top: 60px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}