:root {
  --bg: #0d0f14;
  --surface: #13161e;
  --surface-input: #1a1e28;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #41aec7;
  /* Salesforce ecosystem blues */
  --sf-blue: #0176d3;
  --sf-blue-bright: #1b96ff;
  --sf-blue-muted: rgba(1, 118, 211, 0.1);
  --sf-blue-border: rgba(1, 118, 211, 0.28);
  --sf-blue-glow: rgba(1, 118, 211, 0.18);
  --cta: #f97316;
  --cta-hover: #ea580c;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-blue-bright);
  margin-bottom: 0.75rem;
}

.sf-accent {
  color: var(--sf-blue-bright);
}

/* Subtle Salesforce-tinted section bands */
.section--sf {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(1, 118, 211, 0.07) 0%,
    transparent 45%,
    rgba(1, 118, 211, 0.04) 100%
  );
}

.section--sf::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(27, 150, 255, 0.35) 50%,
    transparent 95%
  );
  pointer-events: none;
}

.section--sf > .container {
  position: relative;
  z-index: 1;
}

.hero--sf {
  position: relative;
}

.hero--sf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 55% at 50% -15%,
    var(--sf-blue-glow),
    transparent 68%
  );
  pointer-events: none;
}

.hero--sf > .container {
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--cta);
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--cta-hover);
}

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

.btn-cta--lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1, 118, 211, 0.18);
  box-shadow: 0 1px 0 rgba(1, 118, 211, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo {
  display: block;
  height: 3.25rem;
  width: 3.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Scarcity banner */
.banner {
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    90deg,
    rgba(1, 118, 211, 0.12) 0%,
    rgba(27, 150, 255, 0.08) 45%,
    rgba(249, 115, 22, 0.06) 100%
  );
  border-bottom: 1px solid rgba(1, 118, 211, 0.15);
}

.banner__highlight {
  color: var(--cta);
  font-weight: 600;
}

.banner__rest {
  color: var(--muted);
}

/* Surface card */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.surface-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sf-blue-bright);
  margin-bottom: 0.5rem;
}

.surface-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  margin-bottom: 0.375rem;
}

.surface-card__subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.surface-card__fine {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo {
  display: block;
  height: 2.5rem;
  width: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

.footer a:hover {
  color: var(--sf-blue-bright);
}

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

/* Progress steps (checkout flow) */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.flow-step__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-input);
}

.flow-step--done {
  color: var(--text);
}

.flow-step--done .flow-step__dot {
  background: var(--sf-blue-muted);
  border-color: var(--sf-blue-border);
  color: var(--sf-blue-bright);
}

.flow-step--active {
  color: var(--text);
}

.flow-step--active .flow-step__dot {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--cta);
}

.flow-step--pending {
  color: var(--muted);
  opacity: 0.7;
}

.flow-step__connector {
  width: 3rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--sf-blue-border),
    var(--border),
    var(--sf-blue-border)
  );
  margin: 0 0.75rem;
}

/* Shared form (signup + checkout) */
.signup-form,
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-form__field,
.checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.signup-form__label,
.checkout-form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.signup-form__input,
.checkout-form__input {
  background: var(--surface-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form__input:focus,
.checkout-form__input:focus {
  border-color: var(--sf-blue-border);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.18);
  outline: none;
}

.signup-form__input[readonly],
.checkout-form__input[readonly] {
  cursor: default;
  opacity: 0.92;
}

.signup-form__submit,
.checkout-form__submit {
  width: 100%;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--cta);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.signup-form__submit:hover:not(:disabled),
.checkout-form__submit:hover:not(:disabled) {
  background: var(--cta-hover);
}

.signup-form__submit:active:not(:disabled),
.checkout-form__submit:active:not(:disabled) {
  transform: scale(0.99);
}

.signup-form__submit:disabled,
.checkout-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signup-form__banner-error,
.checkout-form__error {
  display: none;
  font-size: 0.875rem;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.45;
}

.signup-form__price-note {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  opacity: 0.85;
}

.signup-form__banner-error.is-visible,
.checkout-form__error.is-visible {
  display: block;
}

/* Enrollment paused — coming soon */
.enrollment-soon {
  text-align: center;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.enrollment-soon__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 0.5rem;
}

.enrollment-soon__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.enrollment-soon__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}

.enrollment-soon--page {
  padding: 2rem 1.5rem;
  margin: 0 0 1.5rem;
}

.enrollment-soon__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.signup-form--paused {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.signup-form--paused .signup-form__input,
.signup-form--paused .signup-form__submit {
  cursor: not-allowed;
}

.enrollment-soon__link-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.enrollment-soon__link-secondary:hover {
  border-color: var(--sf-blue-bright);
  background: var(--sf-blue-muted);
  color: #fff;
}

.checkout-form__hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -0.25rem 0 0;
}

.checkout-form__status {
  display: none;
  font-size: 0.8125rem;
  color: var(--sf-blue-bright);
  line-height: 1.45;
  padding: 0.625rem 0.875rem;
  background: rgba(1, 118, 211, 0.1);
  border: 1px solid rgba(1, 118, 211, 0.25);
  border-radius: var(--radius-sm);
}

.checkout-form__status.is-visible {
  display: block;
}

.checkout-form__after-pay {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
  margin: 0;
}

.checkout-form__after-pay strong {
  color: var(--text);
  font-weight: 600;
}

.checkout-form__submit.is-processing {
  opacity: 0.85;
  cursor: wait;
}

.checkout-form__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.checkout-form__total-label {
  color: var(--text);
  font-weight: 500;
}

.checkout-form__total-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.checkout-page {
  padding: 1.75rem 0 4rem;
  position: relative;
}

.checkout-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 40% at 50% 0%,
    var(--sf-blue-glow),
    transparent 65%
  );
  pointer-events: none;
}

.checkout-wrap {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0 auto;
}

.checkout-card {
  padding: 2rem;
  border-color: rgba(1, 118, 211, 0.22);
  box-shadow:
    0 0 0 1px rgba(1, 118, 211, 0.06),
    0 12px 40px rgba(1, 118, 211, 0.08);
}

.checkout-includes-block {
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.checkout-includes__lead {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.checkout-includes-group {
  margin-bottom: 1.35rem;
}

.checkout-includes-group:last-child {
  margin-bottom: 0.5rem;
}

.checkout-includes-group--live {
  padding: 1rem 1rem 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(1, 118, 211, 0.08);
  border: 1px solid rgba(1, 118, 211, 0.2);
}

.checkout-includes__group-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.checkout-includes__group-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.checkout-includes {
  list-style: none;
  margin-bottom: 0;
}

.checkout-includes-group .checkout-includes {
  margin-bottom: 0.75rem;
}

.checkout-includes li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.checkout-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sf-blue-bright);
  font-weight: 600;
}

.whop-checkout-shell {
  overflow: hidden;
  min-height: 12rem;
}

/* Initial embed load only — never during payment submit */
.whop-checkout-shell.is-bootstrapping:not(:has(iframe)) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}

.whop-checkout-shell.is-bootstrapping:not(:has(iframe))::after {
  content: "Loading payment form…";
  font-size: 0.875rem;
  color: var(--muted);
  animation: checkout-loading-pulse 1.4s ease-in-out infinite;
}

@keyframes checkout-loading-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

#whop-checkout {
  --whop-footer-mask: 3.25rem;
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  border-radius: var(--radius-sm);
}

/* Cover Whop's built-in "Secured by Whop" footer inside the iframe */
#whop-checkout::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--whop-footer-mask);
  background: linear-gradient(to bottom, transparent, var(--surface) 55%);
  pointer-events: none;
  z-index: 2;
}

.whop-checkout-shell.is-bootstrapping:not(:has(iframe)) #whop-checkout {
  min-height: 10rem;
}

#whop-checkout iframe {
  display: block;
  width: 100%;
  min-height: 28rem;
  height: 31rem;
  border: 0;
}

@media (max-width: 768px) {
  .nav__inner .btn-cta {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .flow-step__connector {
    width: 1.5rem;
    margin: 0 0.5rem;
  }

  .checkout-card {
    padding: 1.5rem;
  }
}
