/* How It Works — tabbed layout */

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-link:hover { color: #0f172a; }

/* ── Hero ── */
.how-hero {
  padding: 72px 0 40px;
  background: #fff;
}
.how-hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 14px 0;
  color: #0f172a;
  max-width: 520px;
}
.how-hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #334155;
  margin: 0 0 8px 0;
  line-height: 1.55;
  max-width: 520px;
}
.how-hero-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

/* ── Tabs ── */
.tabs-bar {
  position: sticky;
  top: 57px;            /* below header */
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.tab {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.tab:hover { color: #0f172a; }
.tab.is-active {
  color: #0f172a;
  font-weight: 600;
}
.tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 1px;
}

/* ── Panels ── */
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

/* ── Process panel — two columns ── */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 64px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  background: #fff;
  margin-top: 1px;
  transition: all 0.2s;
}
.process-step:hover .step-number {
  border-color: #0f172a;
  color: #0f172a;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.4;
}
.step-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 4px 0;
  font-weight: 500;
  line-height: 1.55;
}
.step-list {
  margin: 0 0 6px 0;
  padding-left: 0;
  list-style: none;
}
.step-list li {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.step-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #94a3b8;
}
.step-note {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  margin: 6px 0 0 0;
}

/* Diagram (right column) */
.process-diagram {
  position: sticky;
  top: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fafbfc;
  box-shadow: 0 2px 12px rgba(2,6,23,0.06);
}
.diagram-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Platform panel ── */
.platform-content {
  padding: 48px 0 64px;
}
.panel-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 32px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(15,23,42,0.18);
  box-shadow: 0 4px 16px rgba(2,6,23,0.06);
}
.feature-icon {
  color: #475569;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feature-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.feature-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ── Audience panel ── */
.audience-content {
  padding: 48px 0 64px;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  padding: 32px 28px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  border-color: rgba(15,23,42,0.18);
  box-shadow: 0 4px 16px rgba(2,6,23,0.06);
}
.audience-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px 0;
}
.audience-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.audience-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* ── CTA ── */
.demo-section {
  padding: 40px 0;
  background: var(--navy);
}
.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.demo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.demo-description {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}
.btn-large {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .process-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-diagram {
    position: static;
    order: -1;
  }
  .features-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .demo-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .nav-link { display: none; }
  .how-hero { padding: 56px 0 32px; }
  .how-hero-title { font-size: 30px; }
  .tabs-bar { top: 53px; }
  .tab { font-size: 13px; padding: 12px 14px; }
  .process-step {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }
  .step-number { width: 32px; height: 32px; font-size: 13px; }
  .demo-title { font-size: 20px; }
}
