/* Design Tokens & Theme Variables aligned with Alok's Brand Assets */
:root {
  --bg-dark: #0f172a;
  --bg-deep: #0b0f19;
  --bg-surface: rgba(30, 41, 59, 0.45);
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-highlight: rgba(255, 255, 255, 0.05);
  
  --primary: #f97316; /* Neon Orange */
  --primary-glow: rgba(249, 115, 22, 0.15);
  --accent: #3b82f6; /* Slate Blue */
  --accent-glow: rgba(59, 130, 246, 0.1);
  --orange: #f97316;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-error: #f87171;
  --text-success: #10b981;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #f97316;
  --border-inset: rgba(255, 255, 255, 0.1);
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Page Layout Wrapper - Solves the empty space below the footer */
.funnel-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 20px;
}

/* Logo and navigation header */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-img {
  height: 32px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-text span {
  color: var(--primary);
}

/* Center Top Header Section */
header.funnel-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pre-headline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
  display: inline-block;
}

.main-headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.main-headline span {
  color: var(--primary);
}

.sub-headline {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

/* 2-Column Content Grid */
.funnel-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
  flex: 1; /* Allows middle content to grow and push footer down */
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .funnel-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  header.funnel-header .main-headline {
    font-size: 34px;
  }
}

/* Left Column Styling */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
}

/* Mockup cover image styling: sits directly on background with drop-shadow */
.mockup-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: var(--transition-smooth);
}

.mockup-image:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 30px 50px rgba(249, 115, 22, 0.25));
}

/* Bullets List below Mockup */
.bullets-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 480px;
}

.bullet-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.bullet-item:hover {
  background: var(--bg-highlight);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.bullet-icon {
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.bullet-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

/* Right Column Styling */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Glassmorphic Form Card */
.optin-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 var(--border-inset);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition-smooth);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.01em;
}

.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.btn-submit-funnel {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  border: none;
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-funnel:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

.btn-submit-funnel:active {
  transform: translateY(0);
}

.btn-submit-funnel:disabled {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.privacy-notice {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Coach Card underneath the form */
.coach-profile-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 var(--border-inset);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
}

.coach-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.25);
}

.coach-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coach-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.coach-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.coach-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Compliance Footer */
footer.funnel-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  margin-top: auto; /* Pushes footer to the bottom of the column flow */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.disclaimer-text {
  text-align: center;
  color: rgba(148, 163, 184, 0.5);
}

/* Loading animations */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-msg {
  color: var(--text-error);
  font-size: 13px;
  text-align: center;
  display: none;
}
