body {
  padding: 0 18px 110px;
}

.page {
  padding: 20px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -54px;
  top: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.16) 0%, rgba(47, 91, 255, 0) 70%);
  pointer-events: none;
}

.hero-logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 92px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  filter: drop-shadow(0 6px 12px rgba(50, 32, 12, 0.14));
}

.tagline {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  font-weight: 700;
  max-width: 56ch;
  color: var(--text-strong);
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.beta-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px 12px;
  /* Replaced the hardcoded white/blue RGB with a fade to the theme's background */
  background: linear-gradient(180deg, transparent 0%, var(--bg) 60%, var(--bg) 100%);
  backdrop-filter: blur(3px);
}

.beta-sticky-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: flex;
  justify-content: center;
}

.start-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  
  /* Change this from #fff to var(--bg) */
  color: var(--bg); 
  
  font-weight: 800;
  
  letter-spacing: 0.2px;
  font-size: 0.98rem;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(20, 100, 210, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease;
}


.beta-sticky-cta .start-btn {
  width: min(100%, 360px);
}

.start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(20, 100, 210, 0.28);
}

.section {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  letter-spacing: 0.2px;
}

.section p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  color: var(--muted);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rule-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rule-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 18px rgba(21, 43, 70, 0.12);
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1rem;
}

.points {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.p10 { background: var(--brand-strong); }
.p3 { background: var(--success); }
.p1to3 { background: var(--accent); }

.flow {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.8;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--text-strong);
  font-size: 1rem;
  text-wrap: balance;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.14);
}

.status {
  min-height: 1.25em;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-strong);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

@media (max-width: 760px) {
  body {
    padding: 0 12px 96px;
  }

  .page {
    padding: 10px 0 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 14px;
  }

  .hero-logo {
    max-height: 70px;
    justify-self: center;
  }

  .tagline {
    max-width: none;
  }

  .section {
    padding: 12px;
  }

  .beta-sticky-cta {
    padding: 8px 10px 10px;
  }

  .beta-sticky-cta-inner {
    padding: 8px;
  }

  .beta-sticky-cta .start-btn {
    width: 100%;
  }
}
