/* ==========================================================================
   AbleFit Club — styles.css
   Mobile-first. All desktop overrides in single @media block at bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-bg:           #0a0a0a;
  --color-card:         #141414;
  --color-border:       #2a2a2a;
  --color-accent:       #CC1F1F;
  --color-accent-dark:  #a01818;
  --color-accent-glow:  rgba(204, 31, 31, 0.35);
  --color-accent-bg:    rgba(204, 31, 31, 0.08);
  --color-text:         #FFFFFF;
  --color-text-muted:   #A0A0A0;
  --color-text-dim:     rgba(255, 255, 255, 0.6);

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --container-max:  1200px;
  --container-pad:  1.25rem;
  --section-v-pad:  5rem;

  /* Effects */
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.3s ease;
  --nav-height:  72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad {
  padding: var(--section-v-pad) 0;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   5. Shared Button Styles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

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

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-dark);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn-large {
  padding: 1.0625rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-glow:hover:not(:disabled) {
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-accent);
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Loading State */
.btn-label {
  transition: opacity var(--transition);
}

.btn-loading .btn-label {
  opacity: 0;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-loading-text {
  position: absolute;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeIn 0.2s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* CTA Error State */
.cta-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #ff6b6b;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px 10px;
}

.nav-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.nav-logo-placeholder span {
  color: var(--color-accent);
}

/* Desktop nav links (hidden on mobile) */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Desktop nav actions (hidden on mobile) */
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-member-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Hamburger Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--color-text-muted);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav-menu {
  position: fixed;
  top: var(--nav-height);
  right: -100%;
  width: min(300px, 85vw);
  height: calc(100vh - var(--nav-height));
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: right var(--transition);
  overflow-y: auto;
  z-index: 999;
}

.nav-menu.active {
  right: 0;
}

.nav-menu .nav-link {
  font-size: 1.0625rem;
  color: var(--color-text);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-menu .nav-link::after {
  display: none;
}

.nav-menu .nav-member-label {
  margin-top: 1.5rem;
  font-size: 0.75rem;
}

.nav-menu .btn-ghost {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.nav-menu .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Menu Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

.nav-backdrop.active {
  display: block;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(204, 31, 31, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 20%, rgba(204, 31, 31, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-bg);
  border: 1px solid rgba(204, 31, 31, 0.3);
  border-radius: 100px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

@media (min-width: 480px) {
  .cta-wrapper {
    width: auto;
  }
}

.cta-wrapper .btn-large {
  width: 100%;
}

@media (min-width: 480px) {
  .cta-wrapper .btn-large {
    width: auto;
  }
}

.hero-risk {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.coach-photo-wrapper {
  position: relative;
  width: min(320px, 85vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.coach-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,10,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.coach-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  background: var(--color-card);
}

.img-placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.img-placeholder-label {
  font-weight: 500;
  opacity: 0.6;
}

.img-loaded .img-placeholder {
  display: none;
}

.brand-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.badge-placeholder {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.5625rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
  z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-arrow {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  animation: bounce-arrow 2.4s ease infinite;
}

@keyframes bounce-arrow {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   8. Social Proof Bar
   -------------------------------------------------------------------------- */
.social-proof-bar {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.proof-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.proof-item {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.proof-item strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: var(--section-v-pad) 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  min-width: 4rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.step-item:hover .step-number {
  opacity: 0.5;
}

.step-body {
  padding-top: 0.5rem;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. What's Inside
   -------------------------------------------------------------------------- */
.whats-inside {
  padding: var(--section-v-pad) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(20, 20, 20, 0.5) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(204, 31, 31, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
  display: block;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 0.625rem;
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. Why AbleFit Club
   -------------------------------------------------------------------------- */
.why-section {
  padding: var(--section-v-pad) 0;
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.why-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-text.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.why-text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 580px;
}

.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  background: var(--color-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-size: 1.125rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.pull-quote footer cite {
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.why-visual.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.why-photo-wrapper {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.why-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
}

.why-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.why-photo-wrapper .img-placeholder {
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   12. Testimonial
   -------------------------------------------------------------------------- */
.testimonial-section {
  padding: var(--section-v-pad) 0;
}

.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  pointer-events: none;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.75rem;
  quotes: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-detail {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Challenge Preview (was 12)
   -------------------------------------------------------------------------- */
.challenge-preview {
  padding: var(--section-v-pad) 0;
}

.challenge-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.challenge-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.challenge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(204, 31, 31, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.challenge-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.challenge-badge {
  display: inline-block;
  background: var(--color-accent-bg);
  border: 1px solid rgba(204, 31, 31, 0.3);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.challenge-logo-wrapper {
  margin: 0 auto 1.5rem;
  width: 120px;
  height: 120px;
  position: relative;
}

.challenge-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(204, 31, 31, 0.3));
}

.challenge-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-accent-bg);
  border: 1px dashed rgba(204, 31, 31, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 auto;
}

.img-loaded .challenge-logo-placeholder {
  display: none;
}

.challenge-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.challenge-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   13. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--section-v-pad) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-card) 100%);
}

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(204, 31, 31, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-card);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  border-radius: 0;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

.faq-item.open .faq-question {
  color: var(--color-text);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-text {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  background: var(--color-card);
}

/* --------------------------------------------------------------------------
   14. Final CTA Section
   -------------------------------------------------------------------------- */
.final-cta {
  padding: var(--section-v-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(204, 31, 31, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta .section-headline {
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.final-cta-support {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.final-cta .cta-wrapper {
  align-items: center;
  margin-bottom: 1.25rem;
}

.final-cta .cta-wrapper .btn-large {
  width: 100%;
  max-width: 380px;
}

.final-risk {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.final-risk::before {
  content: '🔒';
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 3px 8px;
}

.footer-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-text);
}

.footer-member-link {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.footer-member-link a {
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: underline;
  transition: color var(--transition);
}

.footer-member-link a:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   16. Scroll-triggered Animation Utilities
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   17. Success / Cancel Pages
   -------------------------------------------------------------------------- */
.outcome-page {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.outcome-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 3rem;
}

.outcome-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 3rem;
}

.outcome-logo-placeholder span {
  color: var(--color-accent);
}

.outcome-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.outcome-icon-wrapper.success {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.4);
}

.outcome-icon-wrapper.cancel {
  background: var(--color-card);
  border: 2px solid var(--color-border);
}

.outcome-icon {
  font-size: 2rem;
  line-height: 1;
}

.outcome-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  max-width: 500px;
}

.outcome-body {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.outcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 320px;
}

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

.outcome-support {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.outcome-support a {
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition);
}

.outcome-support a:hover {
  color: var(--color-text);
}

/* Cancel page CTA wrapper */
.outcome-page .cta-wrapper {
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.outcome-page .cta-wrapper .btn {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   18. Desktop Overrides — @media (min-width: 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {

  /* Layout */
  :root {
    --container-pad: 2rem;
    --section-v-pad: 6.5rem;
  }

  /* Navbar */
  .nav-toggle  { display: none; }
  .nav-links   { display: flex; }
  .nav-actions { display: flex; }
  .nav-menu    { display: none; }
  .nav-backdrop { display: none !important; }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 3.5rem);
    padding-bottom: 5rem;
    align-items: center;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

  .hero-content {
    flex: 1;
    max-width: 52%;
  }

  .cta-wrapper .btn-large {
    width: auto;
  }

  .hero-visual {
    flex: 1;
    justify-content: flex-end;
  }

  .coach-photo-wrapper {
    width: min(400px, 42vw);
  }

  /* Social Proof */
  .proof-list {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .proof-item {
    padding: 0 2rem;
    position: relative;
  }

  .proof-item + .proof-item::before {
    content: '·';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-border);
    font-size: 1.5rem;
  }

  /* How It Works */
  .steps-list {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
  }

  .step-item {
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
    position: relative;
    align-items: flex-start;
  }

  .step-item + .step-item {
    border-left: 1px solid var(--color-border);
  }

  .step-number {
    font-size: 4.5rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Why Section */
  .why-grid {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .why-text {
    flex: 1.2;
  }

  .why-visual {
    flex: 0.8;
  }

  /* Challenge Card */
  .challenge-card {
    padding: 4.5rem 3rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer-nav {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Outcome pages */
  .outcome-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .outcome-actions .btn {
    width: auto;
    min-width: 180px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 5 cards: first 2 in row 1 (span wider), last 3 in row 2 */
  .feature-card:nth-child(1),
  .feature-card:nth-child(2) {
    /* Let the last 3 fill row 2 naturally */
  }
}
