@import url("brand.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wizard {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: max-width 0.25s ease;
}

.wizard:has(.paywall) { max-width: 480px; }

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #4f46e5;
  transition: width 0.3s ease;
}

.step { display: none; }
.step.active { display: block; }

h1 { font-size: 22px; margin: 0 0 6px; }
.subtitle { color: #6b7280; margin: 0 0 20px; font-size: 14px; }

/* Center question content, but not the paywall step (which sets its own left alignment) */
.step > h1,
.step > .subtitle,
.step > .error,
.step > .step-preamble {
  text-align: center;
}

.step-preamble {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 6px;
}

.privacy-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 10px 0 0;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  margin: 16px 0 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  margin-top: 14px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.option-group.multi { flex-direction: column; }

.option-btn {
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.option-btn.selected {
  border-color: #4f46e5;
  background: #eef2ff;
  font-weight: 600;
}

.wizard-home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.85;
}
.wizard-home-link img { width: 24px; height: 24px; border-radius: 6px; }
.wizard-home-link:hover { opacity: 1; }

.paywall { text-align: left; }

.trial-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-light, #dcfce7);
  color: var(--color-accent, #16a34a);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.plan-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.plan-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.plan-btn.selected,
.plan-btn:hover {
  border-color: var(--color-primary, #4f46e5);
}

.plan-btn--featured {
  border-color: var(--color-primary, #4f46e5);
  background: var(--color-primary-light, #eef2ff);
  padding-top: 26px;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--color-primary, #4f46e5);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-btn-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.plan-name { font-size: 17px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 4px; font-size: 22px; font-weight: 800; color: var(--color-accent, #16a34a); }
.plan-price small { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.02em; }
.plan-sub { font-size: 12.5px; color: #6b7280; margin-top: 6px; }

.plan-select {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--color-primary-light, #eef2ff);
  color: var(--color-primary, #4f46e5);
}
.plan-btn--featured .plan-select {
  background: var(--color-primary, #4f46e5);
  color: #fff;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary, #4f46e5);
  background: var(--color-primary-light, #eef2ff);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 4px 0 0;
}

.feature-checklist {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}
.feature-checklist .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent-light, #dcfce7);
  color: var(--color-accent, #16a34a);
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}

.building-screen {
  text-align: center;
  padding: 12px 0 4px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary, #4f46e5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.building-checklist {
  list-style: none;
  margin: 24px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 280px;
  text-align: left;
}
.building-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s ease;
}
.building-checklist li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #d1d5db;
}
.building-checklist li.done { color: #111827; font-weight: 600; }
.building-checklist li.done::before {
  content: "✓";
  color: var(--color-accent, #16a34a);
  font-weight: 800;
}

.plan-teaser { text-align: center; }
.teaser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 24px;
}
.teaser-tag {
  background: var(--color-primary-light, #eef2ff);
  color: var(--color-primary, #4f46e5);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}


.next-btn, #createAccountBtn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.next-btn:disabled, #createAccountBtn:disabled { opacity: 0.85; cursor: default; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.back-btn {
  width: 100%;
  padding: 12px;
  margin-top: 2px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
}

.error {
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin: 4px 0 0;
}

.thank-you {
  text-align: center;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.steps-list {
  text-align: left;
  margin: 20px 0;
  padding-left: 20px;
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

.steps-list li {
  margin-bottom: 10px;
}

.app-store-badge {
  display: inline-block;
  margin: 20px 0 8px;
}

.app-store-badge img {
  width: 200px;
  height: auto;
}

.support-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
}

.support-note a {
  color: #4f46e5;
}