/* ==========================================================================
   AIRA LEARN — FEATURES PAGE DEDICATED STYLESHEET (features.css)
   Mobile-First, Isolated, Zero-Overflow Architecture
   ========================================================================== */

/* ── Reset & Container Safety ── */
.features-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.features-page * {
  box-sizing: border-box;
}

.features-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .features-container {
    padding: 0 2rem;
  }
}

/* ── Hero Section ── */
.feat-hero {
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.12) 0%, rgba(248, 249, 253, 0) 70%),
              linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.feat-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.feat-gradient-text {
  background: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feat-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #4b5563;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.feat-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .feat-hero-actions {
    flex-direction: row;
  }
}

.feat-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #2d1f5f 50%, #1e3a5f 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.feat-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.35);
}

.feat-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  background: #ffffff;
  color: #4b5563 !important;
  border: 1.5px solid rgba(124, 58, 237, 0.18);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 280px;
}

.feat-btn-secondary:hover {
  border-color: #7c3aed;
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.04);
}

/* ── Hero Stat Strip ── */
.feat-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feat-stats-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.feat-stat-card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.04);
  text-align: center;
}

.feat-stat-number {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #6d28d9;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.feat-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Section Headers ── */
.feat-section {
  padding: 4.5rem 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .feat-section {
    padding: 6.5rem 0;
  }
}

.feat-sec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.feat-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.feat-sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.feat-sec-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #4b5563;
  line-height: 1.6;
}

/* ── Bento Grid (Mobile-First 1-col, Desktop 3-col) ── */
.feat-bento {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .feat-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

/* Bento Card Basics */
.feat-card {
  background: #ffffff;
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  border-radius: 20px;
  padding: 1.75rem 1.35rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .feat-card {
    padding: 2.25rem 2rem;
  }
  .feat-card.col-2 {
    grid-column: span 2;
  }
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.1);
}

/* Card Themes / Gradients */
.feat-card-theme-purple {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-purple h3,
.feat-card-theme-purple p {
  color: #ffffff !important;
}

.feat-card-theme-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-blue h3,
.feat-card-theme-blue p {
  color: #ffffff !important;
}

.feat-card-theme-pink {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-pink h3,
.feat-card-theme-pink p {
  color: #ffffff !important;
}

.feat-card-theme-teal {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-teal h3,
.feat-card-theme-teal p {
  color: #ffffff !important;
}

.feat-card-theme-amber {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-amber h3,
.feat-card-theme-amber p {
  color: #ffffff !important;
}

.feat-card-theme-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff !important;
  border-color: transparent;
}
.feat-card-theme-dark h3,
.feat-card-theme-dark p {
  color: #ffffff !important;
}

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feat-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.feat-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.feat-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.feat-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.feat-tag {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

/* ── Workflows Pipeline (Interactive Timeline / Grid) ── */
.feat-workflow-section {
  background: #fcfbff;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.feat-workflow-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .feat-workflow-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
  }
}

.feat-workflow-sidebar {
  text-align: center;
  position: relative;
}

@media (min-width: 1024px) {
  .feat-workflow-sidebar {
    text-align: left;
    position: sticky;
    top: 120px;
  }
}

.feat-workflow-sidebar h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1rem;
}

.feat-workflow-sidebar p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feat-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.feat-step-card {
  background: #ffffff;
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  padding: 1.75rem 1.35rem;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.04);
  position: relative;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .feat-step-card {
    padding: 2.25rem 2rem;
  }
}

.feat-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.08);
}

.feat-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feat-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.feat-step-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Compliance Badges Matrix */
.feat-compliance-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feat-compliance-badge {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* ── Interactive Comparison Table ── */
.feat-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(109, 40, 217, 0.05);
  margin-top: 2rem;
  -webkit-overflow-scrolling: touch;
}

.feat-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.feat-table th,
.feat-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  font-size: 0.95rem;
}

.feat-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feat-table th.feat-highlight,
.feat-table td.feat-highlight {
  background: rgba(124, 58, 237, 0.05);
  color: #5b21b6;
  font-weight: 600;
}

.feat-check {
  color: #10b981;
  font-weight: 800;
  font-size: 1.1rem;
}

.feat-cross {
  color: #9ca3af;
  font-weight: 700;
  font-size: 1rem;
}

/* ── FAQ Section ── */
.feat-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.feat-faq-card {
  background: #ffffff;
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.feat-faq-card[open] {
  border-color: #7c3aed;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.08);
}

.feat-faq-card summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feat-faq-card summary::-webkit-details-marker {
  display: none;
}

.feat-faq-card summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  color: #7c3aed;
  transition: transform 0.2s ease;
}

.feat-faq-card[open] summary::after {
  transform: rotate(45deg);
}

.feat-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── Closing CTA Banner ── */
.feat-cta-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #2d1f5f 50%, #4c1d95 100%);
  border-radius: 24px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.25);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feat-cta-box {
    padding: 5rem 3rem;
  }
}

.feat-cta-box h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.feat-cta-box p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.feat-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: #ffffff;
  color: #6d28d9 !important;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ── Strict Mobile Hardening (≤ 600px) ── */
@media (max-width: 600px) {
  .feat-hero {
    padding: 6.5rem 0 3rem;
  }
  
  .feat-hero-title {
    font-size: 2.1rem;
  }
  
  .feat-hero-desc {
    font-size: 0.98rem;
  }
  
  .feat-btn-primary,
  .feat-btn-secondary {
    max-width: 100%;
  }
  
  .feat-card {
    padding: 1.5rem 1.15rem;
  }
  
  .feat-card h3 {
    font-size: 1.2rem;
  }
  
  .feat-card p {
    font-size: 0.9rem;
  }
  
  .feat-step-card {
    padding: 1.5rem 1.15rem;
  }
  
  .feat-step-title {
    font-size: 1.1rem;
  }
  
  .feat-step-desc {
    font-size: 0.9rem;
  }
  
  .feat-cta-box {
    padding: 2.5rem 1.25rem;
  }
  
  .feat-cta-box h2 {
    font-size: 1.75rem;
  }
  
  .feat-cta-box p {
    font-size: 0.95rem;
  }
}
