:root {
  --pink: #f841b5;
  --pink-dark: #d4369a;
  --blue: #05b0fa;
  --blue-dark: #0490d0;
  --bg-deep: #0280c4;
  --bg-mid: #05b0fa;
  --bg-light: #32bfff;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --text-dark: #1a1a2e;
  --text-muted: #6b6b80;
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 40%, var(--bg-light) 100%);
  background-color: var(--bg-mid);
  background-attachment: fixed;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ========== BACKGROUND ========== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.bg-glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: #0490d0;
}

.bg-glow-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: var(--pink);
  opacity: 0.2;
}

.bg-glow-3 {
  width: 400px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #038bd4;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.bg-corner-tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.bg-corner-br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

/* ========== BG TEXT ========== */
/* Decorative text sits BEHIND the card via z-index so it can never
   visually cover the interactive form, even when it overlaps. */
.bg-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  font-style: italic;
  color: var(--pink);
  text-shadow:
    0 0 40px rgba(248, 65, 181, 0.5),
    0 0 80px rgba(248, 65, 181, 0.25);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
}

.bg-text-top { top: clamp(0.75rem, 3vh, 2.5rem); }
.bg-text-bottom { bottom: clamp(0.75rem, 3vh, 2.5rem); }

/* ========== MAIN CONTAINER ========== */
.page-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 1rem;
  overflow: hidden;
}

/* ========== CARD ========== */
.card {
  background: var(--white);
  border-radius: 24px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 2.25rem;
  text-align: center;
  position: relative;
  z-index: 2; /* always above .bg-text decorative layer */
  overflow: hidden;
}

/* ========== STEP VISIBILITY ========== */
.step { display: none; }
.step.active {
  display: block;
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== STEP HEADER (CREATE YOUR FREE ACCOUNT) ========== */
.card-header {
  margin-bottom: 1.25rem;
  line-height: 1.15;
  font-weight: 800;
}

.card-header .line {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.card-header .create-your {
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.card-header .free {
  font-size: 2.75rem;
  background: linear-gradient(135deg, var(--pink), #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.card-header .account {
  font-size: 1.75rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.card-header-offset { padding-right: 100px; }

/* ========== STEP 3 HEADER ========== */
.card-header-pitch {
  padding-right: 90px;
  text-align: left;
  margin-bottom: 0.5rem;
}

.card-header-pitch .line {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.card-header-pitch .chat {
  font-size: 1.6rem;
  color: var(--pink);
}

.card-header-pitch .go { font-size: 1.6rem; }
.card-header-pitch .go .blue { color: var(--blue); }
.card-header-pitch .go .pink { color: var(--pink); }

.card-header-pitch .ask { font-size: 1.6rem; }
.card-header-pitch .ask .blue { color: var(--blue); }
.card-header-pitch .ask .pink { color: var(--pink); }

/* ========== LOGO ========== */
.logo {
  display: block;
  margin: 0.75rem auto 0.5rem;
  width: min(200px, 55vw);
  height: auto;
}

.logo-tight { margin-bottom: 1rem; }

/* ========== PLATFORM BADGE ========== */
.platform-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

/* ========== SUBTITLE / BODY TEXT ========== */
.subtitle-fun {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 0.25rem;
}

.subtitle-confirm {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.body-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.body-text-tight { margin-bottom: 1rem; }

.body-text strong { font-weight: 700; }

.body-question {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========== DOB SELECTS ========== */
.dob-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.dob-row select {
  flex: 1;
  max-width: 120px;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b80' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dob-row select:focus {
  outline: none;
  border-color: var(--blue);
}

.dob-row select.error {
  border-color: #ef4444;
}

/* ========== BUTTONS ========== */
.btn-enter {
  display: block;
  width: 70%;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  background: linear-gradient(135deg, #1a1a3e, #2d1b69);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.btn-enter:active { transform: scale(0.98); }

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-pill {
  padding: 0.7rem 2.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  min-width: 100px;
}

.btn-pill:hover { transform: translateY(-1px); }
.btn-pill:active { transform: scale(0.97); }

.btn-no {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(248, 65, 181, 0.35);
}

.btn-yes {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(5, 176, 250, 0.35);
}

.btn-continue {
  width: 70%;
  margin: 0 auto;
  display: block;
}

.btn-start {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), #ff6ec7);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(248, 65, 181, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(248, 65, 181, 0.5);
}

.btn-start:active { transform: scale(0.97); }

/* ========== ERROR MESSAGE ========== */
.error-msg {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #ef4444;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  display: none;
}

.error-msg.visible { display: block; animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ========== DECORATIVE PREVIEW (Step 2) ========== */
.form-preview {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 105px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(2deg);
  pointer-events: none;
}

.form-preview .fp-title {
  font-size: 0.4rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.1rem;
}

.form-preview .fp-subtitle {
  font-size: 0.28rem;
  color: var(--pink);
  text-align: center;
  margin-bottom: 0.4rem;
}

.form-preview .fp-field {
  height: 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin-bottom: 0.2rem;
  background: var(--white);
}

.form-preview .fp-btn {
  height: 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #ff6ec7);
  margin-top: 0.25rem;
}

.form-preview .fp-check {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 0.2rem;
}

.form-preview .fp-check-box {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--pink);
  flex-shrink: 0;
}

.form-preview .fp-check-text {
  font-size: 0.22rem;
  color: #999;
}

/* ========== DECORATIVE CAM PREVIEW (Step 3) ========== */
.cam-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 100px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transform: rotate(2deg);
  border: 3px solid #222;
  background: #000;
}

.cam-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.cam-preview::after {
  content: "LIVE";
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ef4444;
  color: white;
  font-size: 0.4rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* ========== STEP 4: FEATURES ========== */
.features-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.features-list {
  list-style: none;
  text-align: left;
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.features-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.features-list li .check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ========== STEP 5: YOU'RE IN ========== */
.ready-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ready-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.ready-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.ready-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer-bar {
  position: relative;
  z-index: 3;
  padding: 0.35rem 1rem;
  background: var(--white);
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.footer-sprite {
  display: inline-block;
  width: 44px;
  height: 16px;
  background-image: url("https://media.livemediahost.com/assets/img/_footer.gif?cb=20240130");
  background-repeat: no-repeat;
  background-size: 132px auto;
}

.footer-sprite.safelabeling { background-position: 0 0; }
.footer-sprite.rta { background-position: -44px 0; }
.footer-sprite.asacp { background-position: -88px 0; }

.footer-copy {
  font-size: 0.45rem;
  color: #aaa;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-links a {
  font-size: 0.55rem;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* ========== NO-SCRIPT FALLBACK ========== */
.noscript-fallback {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.noscript-fallback .card {
  max-width: 420px;
}

.noscript-fallback .btn-start {
  display: inline-block;
  margin-top: 1rem;
}

/* ========== SHARED SVG DEFS CONTAINER ========== */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .card { padding: 1.5rem 1.25rem 1.75rem; }
  .form-preview { width: 90px; }
  .cam-preview { width: 80px; height: 120px; }
  .card-header .free { font-size: 2.25rem; }
  .card-header .account { font-size: 1.4rem; }
  .card-header-pitch .chat,
  .card-header-pitch .go,
  .card-header-pitch .ask { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step.active { animation: none; }
  .error-msg.visible { animation: none; }
  .btn-enter:hover,
  .btn-pill:hover,
  .btn-start:hover { transform: none; }
}

/* ========== DIVIDER ========== */
.divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius: 2px;
  margin: 1rem auto;
}
