/* ==========================================================================
   FINRIX INTELLIGENCE - ABOUT PAGE (3-Card Horizontal Workflow Architecture)
   ========================================================================== */

.about-view-container,
#aboutView {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 72px 24px;
  background-color: var(--bg);
  overflow-y: auto;
  font-family: var(--font-family);
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

/* Ensure Chat Footer / Composer & Thread are strictly hidden when About View is active */
body:has(#aboutView:not(.hidden)) .chat-footer,
body:has(#aboutView:not(.hidden)) #main,
body:has(#aboutView:not(.hidden)) #chatView,
.chat-area:has(#aboutView:not(.hidden)) .chat-footer,
.chat-area:has(#aboutView:not(.hidden)) #main,
.chat-area:has(#aboutView:not(.hidden)) #chatView {
  display: none !important;
}

.about-canvas {
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  margin: auto;
}

/* ── 1. HERO SECTION ── */
.about-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  font-family: var(--font-family);
}

.about-hero-title {
  font-family: var(--font-family);
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 18px auto;
  text-wrap: balance;
  text-align: center;
}

.about-hero-desc {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: -0.15px;
  text-align: center;
}

/* ── 2. 3-STEP HORIZONTAL WORKFLOW SECTION (Kompakt & Zarif) ── */
.about-workflow-section {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
}

.workflow-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.workflow-card {
  min-height: auto;
  border-radius: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  box-sizing: border-box;
  box-shadow: none;
}

.workflow-card-badge {
  height: 20px;
  width: 20px;
  padding: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.workflow-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 19px;
  margin: 0;
  letter-spacing: -0.1px;
  text-align: center;
}

.workflow-card-desc {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 16px;
  margin: 0 auto;
  text-align: center;
  max-width: 190px;
}

/* ── 3. TRUST & CTA BUTTON ── */
.about-trust-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.about-start-btn {
  background-color: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand-deep);
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, filter 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px var(--brand-soft);
}

.about-start-btn:hover {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ── LIGHT THEME OVERRIDES ── */
:root[data-theme="light"] .about-view-container {
  background-color: #f7f8fa;
}

:root[data-theme="light"] .workflow-card-title {
  color: #0f172a;
}

:root[data-theme="light"] .workflow-card-desc {
  color: #475569;
}

:root[data-theme="light"] .workflow-card-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .workflow-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .workflow-card {
    min-height: auto;
  }
}
