/* ══════════════════════════════════════════════
   ClubhouseOS — Visual Design System v2
   ══════════════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
  background: linear-gradient(160deg, #0F2A1D 0%, #1B4332 35%, #2D6A4F 70%, #357A5B 100%);
  padding: 10rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 198, 157, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1, .hero h2, .hero h3, .hero p {
  color: white;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-family: 'DM Sans', 'Inter', sans-serif;
  line-height: 1.5;
}

/* ── Buttons ── */
.btn-cta {
  background-color: #52B788;
  color: #0F2A1D;
  border: none;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(82, 183, 136, 0.25);
}

.btn-cta:hover {
  background-color: #6FCF97;
  color: #0F2A1D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 183, 136, 0.35);
  text-decoration: none;
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  border-radius: 0.6rem;
  font-weight: 500;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Sections ── */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background-color: #1B4332;
  color: white;
}

.section-light {
  background-color: #F7FAF8;
}

.section-white {
  background-color: #FFFFFF;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1B4332;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: white;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #7A8B99;
  margin-bottom: 3rem;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 400;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

/* ── Feature grid (problem cards) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Cards ── */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  border-left: 4px solid #40916C;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.06);
  border-left-color: #2D6A4F;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B4332;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: #7A8B99;
  margin-bottom: 0;
  line-height: 1.55;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F5E9, #D4EDDA);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #2D6A4F;
  font-size: 1.2rem;
}

/* ── Step grid (system overview 1-2-3-4) ── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ── Timeline ── */
.timeline-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.timeline-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: #2D6A4F;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.timeline-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1B4332;
  margin-bottom: 0.3rem;
}

.timeline-step p {
  font-size: 0.85rem;
  color: #7A8B99;
  line-height: 1.5;
}

/* ── Wedge grid ── */
.wedge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── Wedge cards ── */
.wedge-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.wedge-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.wedge-card h4 {
  color: #74C69D;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.wedge-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Tier grid ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Tiers ── */
.tier-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #40916C, #52B788);
}

.tier-card.featured {
  border-color: rgba(27, 67, 50, 0.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
}

.tier-card.featured::before {
  background: linear-gradient(90deg, #1B4332, #2D6A4F);
  height: 5px;
}

.tier-card h3 {
  font-size: 1.3rem;
  color: #1B4332;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.tier-card ul {
  list-style: none;
  padding: 0;
}

.tier-card li {
  padding: 0.5rem 0;
  color: #5A6B7A;
  font-size: 0.95rem;
  line-height: 1.4;
}

.tier-card li::before {
  content: '\2713';
  color: #40916C;
  font-weight: 700;
  margin-right: 0.6rem;
  font-size: 0.9rem;
}

/* ── Exclusions ── */
.exclusion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.exclusion-list li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
}

.exclusion-list li:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(160deg, #0F2A1D, #1B4332 40%, #2D6A4F);
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Rollout timeline grid ── */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tl-card {
  background: #F7FAF8;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.tl-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1B4332;
  margin-bottom: 0.3rem;
}

.tl-card p {
  font-size: 0.88rem;
  color: #7A8B99;
  line-height: 1.5;
}

/* ══════════════════════════════════
   TABLET (≤991px)
   ══════════════════════════════════ */
@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* ══════════════════════════════════
   MOBILE (≤767px)
   ══════════════════════════════════ */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    padding: 5rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Feature cards → single column */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0;
  }

  .feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border-left: 3px solid #40916C;
  }

  .feature-card .feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0;
    border-radius: 10px;
  }

  .feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .feature-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Step grid → single column */
  .step-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline-step {
    padding: 1rem;
  }

  .timeline-badge {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 12px;
  }

  /* Wedge cards → single column */
  .wedge-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .wedge-card {
    padding: 1rem 1.25rem;
  }

  .wedge-card h4 {
    font-size: 1rem;
  }

  .wedge-card p {
    font-size: 0.85rem;
  }

  /* Timeline rollout → single column */
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tl-card {
    padding: 1.25rem 1rem;
  }

  /* Tier cards → single column */
  .tier-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tier-card {
    padding: 1.5rem 1.25rem;
  }

  /* Exclusions → wrap tighter */
  .exclusion-list {
    gap: 0.5rem;
  }

  .exclusion-list li {
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
  }

  /* CTA */
  .cta-section {
    padding: 3.5rem 1.25rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .btn-cta {
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
  }
}

/* ── Footer override ── */
.quarto-footer {
  background-color: #1B4332 !important;
}
