/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background:
    radial-gradient(circle at 10% 20%, rgba(225, 6, 0, 0.12) 0, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12) 0, transparent 55%),
    #f3f4f6;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 40px;
  display: block;
}

/* ---------- Shell Layout ---------- */

.signup-shell {
  max-width: 1180px;
  margin: 32px auto 40px;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1.1fr);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.16);
  animation: shell-in 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(16px);
}

@keyframes shell-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Left: Form Panel ---------- */

.signup-form-panel {
  padding: 40px 40px 32px;
  background: linear-gradient(145deg, #f9fafb, #ffffff);
}

.form-card {
  max-width: 420px;
}

.form-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.form-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #ef4444;
  font-weight: 600;
}

.form-subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #6b7280;
}

/* Progress dots & bar */

.form-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.25s ease, transform 0.25s ease;
}

.progress-dot.active {
  background: linear-gradient(135deg, #e10600, #fb7185);
  transform: scale(1.1);
}

.form-progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  margin-bottom: 20px;
  overflow: hidden;
}

.form-progress-bar .bar-active {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 33.33%;
  border-radius: 999px;
  background: linear-gradient(135deg, #e10600, #f97316, #6366f1);
  background-size: 200% 100%;
  animation: bar-flow 4s ease-in-out infinite alternate;
}

@keyframes bar-flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}

/* Banners */

.banner {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.banner-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #b91c1c;
}

.banner-success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #047857;
}

.hidden {
  display: none;
}

/* Form groups */

.form-step {
  display: none;
  animation: fade-step 0.25s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes fade-step {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #111827;
}

.required {
  color: #ef4444;
}

/* Inputs */

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 0.95rem;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 11px 14px 11px 40px;
  font-size: 0.9rem;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

select {
  padding-left: 12px;
}

input::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus {
  background: #ffffff;
  border-color: #e10600;
  box-shadow:
    0 0 0 1px rgba(225, 6, 0, 0.12),
    0 0 0 6px rgba(225, 6, 0, 0.08);
  transform: translateY(-1px);
}

/* Password toggle */

.password-toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
  color: #e10600;
  transform: scale(1.05);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-position 0.25s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.btn.primary {
  width: 100%;
  background-image: linear-gradient(120deg, #e10600, #fb923c, #ec4899);
  background-size: 220% 100%;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(225, 6, 0, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 20px 40px rgba(225, 6, 0, 0.55);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(225, 6, 0, 0.5);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #4b5563;
}

.btn.ghost:hover {
  background: rgba(249, 250, 251, 0.95);
}

/* Step navigation area */

.form-step-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-step-actions.bottom {
  justify-content: flex-start;
}

/* Options, checkboxes */

.form-options {
  margin-top: 10px;
  margin-bottom: 6px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #4b5563;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid #e10600;
  display: inline-block;
  position: relative;
  background: #ffffff;
}

.checkbox-container input:checked + .checkmark {
  background: linear-gradient(135deg, #e10600, #fb7185);
  border-color: transparent;
}

.checkbox-container input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 11px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

/* Footer, links */

.form-footer {
  margin-top: 16px;
  font-size: 0.86rem;
  text-align: center;
  color: #6b7280;
}

.form-footer a {
  color: #e10600;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

.help-section {
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
}

.link {
  color: #e10600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Loading state for form (used by JS) */

.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Right: Hero Panel ---------- */

.signup-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 32px;
  background: radial-gradient(circle at 15% 0, #fee2e2 0, transparent 50%),
              radial-gradient(circle at 85% 100%, #e0e7ff 0, transparent 55%),
              linear-gradient(135deg, #e33019, #1f2937);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abstract pills */

.hero-bg-pill {
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: float-pill 14s ease-in-out infinite alternate;
}

.pill-1 {
  width: 280px;
  height: 80px;
  top: 12%;
  left: 8%;
  background: linear-gradient(120deg, #f97316, #ef4444);
}

.pill-2 {
  width: 220px;
  height: 70px;
  top: 32%;
  right: 6%;
  background: linear-gradient(120deg, #6366f1, #22c55e);
  animation-delay: 2s;
}

.pill-3 {
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: 5%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.9), transparent 60%);
  animation-delay: 4s;
}

.pill-4 {
  width: 140px;
  height: 140px;
  bottom: 18%;
  right: 18%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.9), transparent 60%);
  animation-delay: 6s;
}

@keyframes float-pill {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(8px, -10px, 0);
  }
}

/* Hero text */

.signup-hero-copy {
  position: relative;
  max-width: 360px;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.signup-hero-copy h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.signup-hero-copy h2 .accent {
  color: #f97316;
}

.hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  max-width: 320px;
}

/* ---------- Site footer ---------- */

.site-footer {
  padding: 24px 20px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-logo .accent-red {
  color: #e10600;
}

.footer-sub {
  margin: 2px 0 4px;
  font-size: 0.9rem;
  color: #4b5563;
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .signup-shell {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: calc(100vh - 72px);
  }

  .signup-form-panel {
    order: 2;
  }

  .signup-hero-panel {
    min-height: 260px;
    order: 1;
  }
}

@media (max-width: 640px) {
  .signup-form-panel {
    padding: 24px 18px 24px;
  }

  .form-card {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .signup-hero-copy h2 {
    font-size: 1.9rem;
  }
}
.hero-on2cook {
  position: relative;
  overflow: hidden;
  padding: 72px 6vw 88px;
  /* background: radial-gradient(circle at 0 0, #724a4a 0, transparent 50%),
              radial-gradient(circle at 100% 100%, #e0e7ff 0, transparent 52%),
              #0f172a; */
  background: radial-gradient(circle at 0 0, #410b0b 0, transparent 50%),
              radial-gradient(circle at 100% 100%, #c73636f3 0, transparent 52%),
              #0f172a;
  color: #f9fafb;
}

.hero-on2cook .hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

/* Left copy */
.hero-copy h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero-copy p {
  margin: 0 0 22px;
  font-size: 0.98rem;
  color: #e5e7eb;
}
.hero-cta {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(120deg, #e10600, #fb923c, #ec4899);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.25s ease;
}
.hero-cta:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(225, 6, 0, 0.65);
}

/* Animation container */
.hero-animation {
  position: relative;
  min-height: 260px;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scene.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Device demo scene */
.kitchen-card {
  position: relative;
  height: 100%;
  border-radius: 24px;
  padding: 18px 20px;
  background: radial-gradient(circle at 20% 0, rgba(248, 250, 252, 0.2) 0, transparent 50%),
              rgba(15, 23, 42, 0.8);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-rows: 1.4fr auto;
  gap: 14px;
}

/* On2Cook device */
.device {
  position: relative;
  margin: 0 auto;
  width: 68%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.device-body {
  width: 100%;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #374151);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7);
  position: relative;
}
.device-screen {
  position: absolute;
  inset: 12px 16px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, #0f172a 0, #020617 60%);
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  gap: 6px;
}
.device-pill {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.1);
  color: #e5e7eb;
}
.pill-time {
  border: 1px solid rgba(251, 146, 60, 0.6);
}
.pill-energy {
  border: 1px solid rgba(34, 197, 94, 0.6);
}
.device-top-steam {
  position: absolute;
  top: -24px;
  width: 60%;
  height: 24px;
  left: 20%;
  background: radial-gradient(circle at 50% 0, rgba(248, 250, 252, 0.75) 0, transparent 60%);
  opacity: 0;
  animation: steam 2.6s ease-in-out infinite;
}
@keyframes steam {
  0%, 40% { opacity: 0; transform: translateY(0); }
  60% { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-14px); }
}

/* Characters */
.characters {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 4px;
}
.char {
  width: 38px;
  height: 82px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4b5563, #1f2937);
  position: relative;
}
.char::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
}
.salesperson {
  background: linear-gradient(180deg, #e10600, #7f1d1d);
  animation: sales-gesture 2.2s ease-in-out infinite;
}
@keyframes sales-gesture {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Handshake scene */
.handshake-card {
  position: relative;           /* important so bottom works */
  height: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at 10% 0, rgba(221, 227, 234, 0.712) 0, transparent 60%),
              #0f172ae6;
  box-shadow: 0 22px 60px rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* arms + pulse stay as you had them */
.arm {
  width: 120px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c0c0c, #d5d6d8);
  position: relative;
}
.arm-left {
  transform-origin: right center;
  transform: rotate(8deg) translateX(-10px);
}
.arm-right {
  transform-origin: left center;
  transform: rotate(-8deg) translateX(10px);
}
.handshake-pulse {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.5);
  opacity: 0;
}

/* move badge to full-width bar at bottom */
.deal-badge.referral-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 16px 12px;
  border-radius: 0;                 /* no pill shape */
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* icon on the left */
.deal-icon {
  background: #22c55e;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #0b1120;
}

/* text stacked next to icon */
.deal-text-block {
  display: flex;
  flex-direction: column;
}

.deal-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.deal-main {
  font-size: 0.75rem;
  font-weight: 600;
  color: #bbf7d0;
}


/* Earnings scene */
.earnings-visual {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.earnings-bar-wrapper {
  position: relative;
  width: 32px;
  height: 120px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.9);
}

.earnings-bar-bg {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.earnings-bar-fill {
  width: 100%;
  height: 0%; /* JS will animate this */
  border-radius: 999px;
  background: linear-gradient(180deg, #f6f7f6 0%, #f94706 50%, #170a00 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  transition: height 0.7s ease-out;
}

.earnings-bar-arrow {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: #bbf7d0;
}

/* legend text */

.earnings-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

#earningsSalesLabel {
  font-weight: 600;
}

.earnings-note {
  color: #9ca3af;
  font-size: 0.78rem;
}

.s1 { top: 40%; left: 18%; }
.s2 { top: 28%; right: 24%; }
.s3 { bottom: 28%; right: 12%; }

/* Responsive */
@media (max-width: 900px) {
  .hero-on2cook .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .hero-animation {
    min-height: 240px;
  }
}
.referral-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.00rem;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 40px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6b7280;
}

.step.active {
  opacity: 1;
  transform: translateY(-1px);
}

.step.active .step-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.24);
}

.step-arrow {
  opacity: 0.5;
}
