/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand: #1a1a2e;
  --brand-hover: #16213e;
  --bg: #f8f8f6;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e5e5;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Landing Page ===== */
.landing {
  min-height: 100vh;
  padding: 48px 20px 80px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

/* Logo */
.logo-section {
  padding-top: 8px;
}

.logo {
  height: 50px;
  width: auto;
}

/* Headline */
.headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-light);
  max-width: 520px;
  margin-top: -20px;
}

/* VSL */
.vsl-wrapper {
  width: 100%;
  max-width: 640px;
}

.vsl-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.vsl-container iframe,
.vsl-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vsl-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: #ff3366;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cta-button:hover {
  background: #e62d5b;
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}

/* Logo Bar */
.logo-bar {
  width: 100%;
  max-width: 600px;
}

.logo-bar-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.logo-bar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-bar-logos img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.logo-bar-logos img:hover {
  opacity: 1;
}


/* Text Section */
.text-section {
  max-width: 540px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-section p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.text-section strong {
  color: var(--text);
}

/* ===== Form Overlay ===== */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--white);
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.form-overlay.open {
  display: flex;
}

.form-overlay.active {
  opacity: 1;
  transform: translateY(0);
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px;
  position: relative;
}

/* Form Header */
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 16px;
}

.form-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
}

.form-back:hover {
  color: var(--text);
}

.form-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition);
}

.form-close:hover {
  color: var(--text);
}

/* Progress Bar */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Form Steps */
.form-steps-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.form-steps {
  position: relative;
  height: 100%;
}

.form-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
              visibility 0.35s;
  pointer-events: none;
}

.form-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.form-step.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.form-step.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* Step Content */
.step-question {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.3;
}

.step-note {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  max-width: 400px;
  margin-bottom: 4px;
}

.step-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.option-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.option-btn:hover {
  border-color: var(--brand);
}

.option-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* Icon grid layout for platform step */
.step-options--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 420px;
}

.option-btn--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px 12px;
  font-size: 0.85rem;
}

.option-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.option-icon.icon-svg {
  filter: brightness(0);
}

.option-btn.selected .option-icon.icon-svg {
  filter: brightness(0) invert(1);
}

/* Next / Submit Button */
.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 14px 32px;
  background: #ff3366;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}

.next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.next-btn:not(:disabled):hover {
  background: #e62d5b;
  transform: translateY(-1px);
}

.next-btn:not(:disabled):active {
  transform: translateY(0);
}

.next-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Contact Fields */
.step-fields {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field-group input {
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
  background: var(--white);
}

.field-group input:focus {
  border-color: var(--brand);
}

.field-group input::placeholder {
  color: #b0b0b0;
}


/* Thank You */
.thank-you-step {
  gap: 12px;
}

.thank-you-icon {
  margin-bottom: 8px;
}

.thank-you-text {
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  max-width: 360px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .landing {
    padding: 32px 16px 60px;
  }

  .container {
    gap: 32px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .logo-bar-logos {
    gap: 16px;
  }

  .logo-bar-logos img {
    height: 24px;
  }

  .form-wrapper {
    padding: 16px;
  }

  .option-btn {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .next-btn {
    width: 100%;
    justify-content: center;
  }


  .step-question {
    margin-bottom: 24px;
  }

  .step-options--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
