/* ============================================
   Features — Analyze Feedback Page
   features-analyze.css
   Uses shared.css design tokens (violet palette)
   ============================================ */

/* --- Hero --- */
.fanalyze-hero {
  padding: calc(72px + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.fanalyze-hero__content {
  max-width: 850px;
  margin-bottom: 3rem;
}

.fanalyze-hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.fanalyze-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
}

.fanalyze-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fanalyze-hero__pill {
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
}

.fanalyze-hero__visual.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: none;
}

.fanalyze-hero__visual.animate-on-scroll.is-visible {
  animation: fanalyze-hero-fade 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: none;
}

.fanalyze-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@keyframes fanalyze-hero-fade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Hero Platform Mockup --- */
.fanalyze-platform {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #FFFFFF;
  font-size: 11px;
  line-height: 1.4;
  max-width: 1134px;
}

.fanalyze-platform__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.fanalyze-platform__chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fanalyze-platform__chrome-url {
  margin-left: 8px;
  font-size: 10px;
  color: #64748B;
  background: #FFFFFF;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  flex: 1;
  max-width: 280px;
}

.fanalyze-platform__topnav {
  display: flex;
  align-items: center;
  padding: 0 15px 0 0;
  height: 38px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  gap: 10px;
  overflow: hidden;
}

.fanalyze-platform__topnav-project {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  flex-shrink: 0;
}

.fanalyze-platform__project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.fanalyze-platform__tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fanalyze-platform__tab {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748B;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: default;
}

.fanalyze-platform__tab--active {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.08);
  font-weight: 600;
}

.fanalyze-platform__tab--outline {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 3px 7px;
}

.fanalyze-platform__topnav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  color: #94A3B8;
}

.fanalyze-platform__topnav-avatar {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fanalyze-platform__main {
  display: flex;
  height: 640px;
  overflow: hidden;
}

.fanalyze-platform__sidebar {
  width: 138px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  overflow: hidden;
}

.fanalyze-platform__sidebar-group {
  padding: 0 10px;
  margin-bottom: 14px;
}

.fanalyze-platform__topnav-overview {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  width: 138px;
  flex-shrink: 0;
  padding: 0 10px 0 16px;
  font-size: 10px;
  font-weight: 600;
  color: #4F46E5;
  border-right: 1px solid #E2E8F0;
  white-space: nowrap;
  box-sizing: border-box;
  background: rgba(79, 70, 229, 0.06);
}

.fanalyze-platform__topnav-overview svg {
  flex-shrink: 0;
  color: #4F46E5;
}

.fanalyze-platform__sidebar-label {
  display: block;
  font-size: 7px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  padding: 0 6px;
}

.fanalyze-platform__sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}

.fanalyze-platform__sidebar-item svg {
  flex-shrink: 0;
  color: #94A3B8;
}

.fanalyze-platform__sidebar-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  border-top: 1px solid #E2E8F0;
  white-space: nowrap;
}

.fanalyze-platform__sidebar-foot svg {
  flex-shrink: 0;
  color: #94A3B8;
}

/* --- Hero Dashboard (replaces board) --- */
.fanalyze-dashboard {
  flex: 1;
  padding: 12px 15px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fanalyze-dashboard__stats {
  display: flex;
  gap: 8px;
}

.fanalyze-stat {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(12px);
}

.fanalyze-hero__visual.is-visible .fanalyze-stat {
  animation: fanalyze-stat-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fanalyze-hero__visual.is-visible .fanalyze-stat:nth-child(1) { animation-delay: 0.8s; }
.fanalyze-hero__visual.is-visible .fanalyze-stat:nth-child(2) { animation-delay: 0.95s; }
.fanalyze-hero__visual.is-visible .fanalyze-stat:nth-child(3) { animation-delay: 1.1s; }
.fanalyze-hero__visual.is-visible .fanalyze-stat:nth-child(4) { animation-delay: 1.25s; }
.fanalyze-hero__visual.is-visible .fanalyze-stat:nth-child(5) { animation-delay: 1.4s; }

@keyframes fanalyze-stat-appear {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fanalyze-stat__icon {
  color: #94A3B8;
  margin-bottom: 2px;
}

.fanalyze-stat__value {
  font-size: 18px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
}

.fanalyze-stat__label {
  font-size: 8px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fanalyze-stat__sub {
  font-size: 7px;
  font-weight: 500;
  color: #10B981;
}

/* --- Hero Chart --- */
.fanalyze-dashboard__chart {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fanalyze-chart__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fanalyze-chart__title {
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
}

.fanalyze-chart__range-btn {
  font-size: 7px;
  font-weight: 600;
  color: #94A3B8;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: default;
}

.fanalyze-chart__range-btn--active {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.08);
}

.fanalyze-chart__svg {
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* SVG chart draw animation */
.fanalyze-chart__line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.fanalyze-hero__visual.is-visible .fanalyze-chart__line {
  animation: fanalyze-chart-draw 2s ease-out 2s forwards;
}

@keyframes fanalyze-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fanalyze-chart__area {
  opacity: 0;
}

.fanalyze-hero__visual.is-visible .fanalyze-chart__area {
  animation: fanalyze-area-fade 0.4s ease-out 3s forwards;
}

@keyframes fanalyze-area-fade {
  to {
    opacity: 0.15;
  }
}

.fanalyze-chart__endpoint {
  opacity: 0;
}

.fanalyze-hero__visual.is-visible .fanalyze-chart__endpoint {
  animation: fanalyze-endpoint-pop 0.3s ease-out 3s forwards;
}

@keyframes fanalyze-endpoint-pop {
  to {
    opacity: 1;
  }
}

/* --- Dashboard Two-Column Grid Layout --- */
.fanalyze-dashboard__columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 0.5fr 0.5fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.fanalyze-dashboard__col-left {
  display: contents;
}

.fanalyze-dashboard__col-right {
  display: contents;
}

.fanalyze-dashboard__col-left > .fanalyze-dashboard__chart {
  grid-column: 1;
  grid-row: 1;
}

.fanalyze-dashboard__col-left > .fanalyze-dashboard__submissions {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
}

.fanalyze-dashboard__col-left > .fanalyze-dashboard__tickets {
  grid-column: 1;
  grid-row: 3;
}

.fanalyze-dashboard__col-right > .fanalyze-dashboard__comments:first-child {
  grid-column: 2;
  grid-row: 1;
}

.fanalyze-dashboard__col-right > .fanalyze-dashboard__comments:last-child {
  grid-column: 2;
  grid-row: 2 / 4;
}

/* --- Comments Panel (Task Comments / Feature Comments) --- */
.fanalyze-dashboard__comments {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fanalyze-comments__header {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #E2E8F0;
}

.fanalyze-comments__title {
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
}

.fanalyze-comments__count {
  font-size: 8px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 10px;
}

.fanalyze-comments__list {
  flex: 1;
  overflow: hidden;
  padding: 6px 0;
}

.fanalyze-comments__item {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
}

.fanalyze-comments__item + .fanalyze-comments__item {
  border-top: 1px solid #F1F5F9;
}

.fanalyze-comments__avatar {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  object-fit: cover;
}

.fanalyze-comments__body {
  min-width: 0;
}

.fanalyze-comments__meta {
  font-size: 8px;
  color: #1E293B;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fanalyze-comments__meta strong {
  font-weight: 700;
}

.fanalyze-comments__meta span {
  color: #94A3B8;
  font-weight: 400;
  margin-left: 4px;
}

.fanalyze-comments__body p {
  font-size: 8px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fanalyze-comments__task-link {
  font-size: 7px;
  color: #94A3B8;
  margin-top: 1px;
  display: block;
}

.fanalyze-comments__task-link em {
  color: #4F46E5;
  font-style: normal;
}

/* --- Feedback Submissions Table --- */
.fanalyze-dashboard__submissions {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.fanalyze-submissions__header {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #E2E8F0;
}

.fanalyze-submissions__title {
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
}

.fanalyze-submissions__count {
  font-size: 8px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 10px;
}

.fanalyze-submissions__table {
  flex: 1;
  overflow: hidden;
}

.fanalyze-submissions__head {
  display: grid;
  grid-template-columns: 2.5fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 4px;
  padding: 5px 10px;
  font-size: 6px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #F1F5F9;
}

.fanalyze-submissions__row {
  display: grid;
  grid-template-columns: 2.5fr 0.8fr 0.8fr 0.8fr 0.8fr;
  gap: 4px;
  padding: 6px 10px;
  font-size: 8px;
  color: #475569;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
}

.fanalyze-submissions__row:last-child {
  border-bottom: none;
}

.fanalyze-submissions__row-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #1E293B;
}

.fanalyze-submissions__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fanalyze-submissions__urgency {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
  vertical-align: middle;
}

/* --- Support Tickets --- */
.fanalyze-dashboard__tickets {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fanalyze-tickets__header {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #E2E8F0;
}

.fanalyze-tickets__title {
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
  flex: 1;
}

.fanalyze-tickets__count {
  font-size: 8px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 10px;
}

.fanalyze-tickets__status-bar {
  display: flex;
  height: 4px;
  margin: 8px 10px 0;
  border-radius: 2px;
  overflow: hidden;
  gap: 1px;
}

.fanalyze-tickets__bar-seg {
  border-radius: 2px;
}

.fanalyze-tickets__legend {
  display: flex;
  gap: 8px;
  padding: 4px 10px 0;
  font-size: 7px;
  color: #64748B;
  flex-wrap: wrap;
}

.fanalyze-tickets__legend strong {
  font-weight: 700;
  color: #1E293B;
  margin-left: 1px;
}

.fanalyze-tickets__legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
  vertical-align: middle;
}

.fanalyze-tickets__table {
  flex: 1;
  overflow: hidden;
}

.fanalyze-tickets__head {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr 0.3fr;
  gap: 4px;
  padding: 5px 10px;
  font-size: 6px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #F1F5F9;
}

.fanalyze-tickets__row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr 0.3fr;
  gap: 4px;
  padding: 5px 10px;
  font-size: 8px;
  color: #475569;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
}

.fanalyze-tickets__row:last-child {
  border-bottom: none;
}

.fanalyze-tickets__id {
  font-weight: 600;
  color: #1E293B;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 7px;
}

.fanalyze-tickets__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Platform Mockup Responsive */
@media (max-width: 1024px) {
  .fanalyze-platform__sidebar { display: none; }
  .fanalyze-platform__topnav-overview { display: none; }
  .fanalyze-platform__main { height: 540px; }
  .fanalyze-dashboard__stats { flex-wrap: wrap; }
  .fanalyze-stat { min-width: calc(33% - 6px); }
  .fanalyze-platform__tabs { display: none; }
  .fanalyze-dashboard__columns { grid-template-columns: 1fr; }
  .fanalyze-dashboard__col-right { display: none; }
  .fanalyze-dashboard__col-right > .fanalyze-dashboard__comments { display: none; }
}

@media (max-width: 768px) {
  .fanalyze-platform__main { height: 440px; }
  .fanalyze-stat { min-width: calc(50% - 4px); }
  .fanalyze-platform__topnav-project span { display: none; }
  .fanalyze-platform__topnav-actions { display: none; }
  .fanalyze-dashboard__submissions { display: none; }
  .fanalyze-dashboard__tickets { display: none; }
}

@media (max-width: 640px) {
  .fanalyze-platform__main { height: 300px; }
  .fanalyze-stat { min-width: 100%; }
  .fanalyze-dashboard { gap: 6px; padding: 6px; }
  .fanalyze-dashboard__columns { display: none; }
}

/* --- Content Sections --- */
.fanalyze-section {
  padding: var(--section-padding) 0;
}

.fanalyze-section--reversed {
  background: var(--bg-secondary);
}

.fanalyze-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fanalyze-section--reversed .fanalyze-section__visual {
  order: -1;
}

.fanalyze-section__number {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.fanalyze-section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fanalyze-section__desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.fanalyze-section__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fanalyze-section__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.fanalyze-section__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.fanalyze-section__bullets li strong {
  color: var(--text-primary);
}

/* --- Placeholder Visuals --- */
.fanalyze-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.fanalyze-placeholder__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.fanalyze-placeholder__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
}

.fanalyze-placeholder__dot--red { background: #EF4444; }
.fanalyze-placeholder__dot--yellow { background: #F59E0B; }
.fanalyze-placeholder__dot--green { background: #10B981; }

.fanalyze-placeholder__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0.25rem;
}

.fanalyze-placeholder__body {
  padding: 1.25rem;
  background: #f4f5f8;
  min-height: auto;
}

/* --- Section 01: Mini KPIs --- */
.fanalyze-mini-kpis {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fanalyze-mini-kpis__cards {
  display: flex;
  gap: 0.625rem;
}

.fanalyze-mini-kpi {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.fanalyze-mini-kpi__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.fanalyze-mini-kpi__value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.fanalyze-mini-kpi__spark {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: #10B981;
  margin-top: 0.125rem;
}

.fanalyze-mini-kpis__chart {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.fanalyze-mini-kpis__chart-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Mini chart line draw animation */
.fanalyze-mini-chart__line {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
}

.is-visible .fanalyze-mini-chart__line {
  animation: fanalyze-mini-chart-draw 1.2s ease-out 0.3s forwards;
}

@keyframes fanalyze-mini-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fanalyze-mini-chart__area {
  opacity: 0;
}

.is-visible .fanalyze-mini-chart__area {
  animation: fanalyze-mini-area-fade 0.4s ease-out 1.5s forwards;
}

@keyframes fanalyze-mini-area-fade {
  to {
    opacity: 0.15;
  }
}

.fanalyze-mini-chart__endpoint {
  opacity: 0;
}

.is-visible .fanalyze-mini-chart__endpoint {
  animation: fanalyze-mini-endpoint-pop 0.3s ease-out 1.5s forwards;
}

@keyframes fanalyze-mini-endpoint-pop {
  to {
    opacity: 1;
  }
}

/* --- Section 02: Feedback Table --- */
.fanalyze-feedback-table {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fanalyze-feedback-table__head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.6fr 0.6fr;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fanalyze-feedback-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.6fr 0.6fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateX(30px);
}

.fanalyze-feedback-table__row:last-child {
  border-bottom: none;
}

.fanalyze-feedback-table__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.fanalyze-feedback-table__badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
  white-space: nowrap;
}

.fanalyze-feedback-table__badge--feature {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.08);
}

.fanalyze-feedback-table__badge--bug {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

.fanalyze-feedback-table__badge--improve {
  color: #0EA5E9;
  background: rgba(14, 165, 233, 0.08);
}

.fanalyze-feedback-table__badge--support {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}

.fanalyze-feedback-table__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.fanalyze-feedback-table__dot--high { background: #EF4444; }
.fanalyze-feedback-table__dot--medium { background: #F59E0B; }
.fanalyze-feedback-table__dot--low { background: #10B981; }

.fanalyze-feedback-table__status {
  font-size: 0.625rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.fanalyze-feedback-table__status--new { color: #0EA5E9; }
.fanalyze-feedback-table__status--open { color: #F59E0B; }
.fanalyze-feedback-table__status--closed { color: #10B981; }

/* Feedback row slide-in animation */
.fanalyze-feedback-table--active .fanalyze-feedback-table__row {
  animation: fanalyze-row-slide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fanalyze-feedback-table--active .fanalyze-feedback-table__row:nth-child(1) { animation-delay: 0.3s; }
.fanalyze-feedback-table--active .fanalyze-feedback-table__row:nth-child(2) { animation-delay: 0.5s; }
.fanalyze-feedback-table--active .fanalyze-feedback-table__row:nth-child(3) { animation-delay: 0.7s; }
.fanalyze-feedback-table--active .fanalyze-feedback-table__row:nth-child(4) { animation-delay: 0.9s; }

@keyframes fanalyze-row-slide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Section 03: Sentiment Gauge --- */
.fanalyze-sentiment {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.fanalyze-sentiment__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.fanalyze-sentiment__gauge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
}

.fanalyze-sentiment__gauge-circle {
  transform: rotate(-90deg);
  transform-origin: center;
}

.fanalyze-sentiment__gauge-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 10;
}

.fanalyze-sentiment__gauge-fill {
  fill: none;
  stroke: #10B981;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.5s ease-out;
}

.fanalyze-sentiment--active .fanalyze-sentiment__gauge-fill {
  stroke-dashoffset: 83;
}

.fanalyze-sentiment__gauge-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  font-weight: 800;
  color: #10B981;
}

.fanalyze-sentiment__gauge-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.fanalyze-sentiment__bars {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 280px;
  margin: 0 auto;
}

.fanalyze-sentiment__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fanalyze-sentiment__bar-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  width: 60px;
  text-align: right;
}

.fanalyze-sentiment__bar-track {
  flex: 1;
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.fanalyze-sentiment__bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.2s ease-out;
}

.fanalyze-sentiment__bar-fill--positive { background: #10B981; }
.fanalyze-sentiment__bar-fill--neutral { background: #94A3B8; }
.fanalyze-sentiment__bar-fill--negative { background: #EF4444; }

.fanalyze-sentiment--active .fanalyze-sentiment__bar-fill--positive { width: 78%; }
.fanalyze-sentiment--active .fanalyze-sentiment__bar-fill--neutral { width: 16%; }
.fanalyze-sentiment--active .fanalyze-sentiment__bar-fill--negative { width: 6%; }

.fanalyze-sentiment__bar-pct {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  width: 32px;
}

/* --- Section 04: Team Performance --- */
.fanalyze-team-perf {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
}

.fanalyze-team-perf__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fanalyze-team-perf__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fanalyze-team-perf__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  object-fit: cover;
}

.fanalyze-team-perf__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  width: 60px;
  flex-shrink: 0;
}

.fanalyze-team-perf__bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fanalyze-team-perf__bar-track {
  flex: 1;
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.fanalyze-team-perf__bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-out;
}

.fanalyze-team-perf__bar-fill--green { background: #10B981; }
.fanalyze-team-perf__bar-fill--yellow { background: #F59E0B; }

.fanalyze-team-perf__pct {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  width: 32px;
}

.fanalyze-team-perf__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fanalyze-team-perf__status--green { background: #10B981; }
.fanalyze-team-perf__status--yellow { background: #F59E0B; }

/* Team perf bar animation */
.fanalyze-team-perf--active .fanalyze-team-perf__row:nth-child(2) .fanalyze-team-perf__bar-fill { transition-delay: 0.3s; }
.fanalyze-team-perf--active .fanalyze-team-perf__row:nth-child(3) .fanalyze-team-perf__bar-fill { transition-delay: 0.6s; }
.fanalyze-team-perf--active .fanalyze-team-perf__row:nth-child(4) .fanalyze-team-perf__bar-fill { transition-delay: 0.9s; }

/* --- PathFox Loading & Bubble Wrapper --- */
.fanalyze-pathfox-wrap {
  position: relative;
}

/* --- PathFox Loading State --- */
.fanalyze-pathfox-loading {
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  animation: none;
  position: absolute;
  top: 0;
  left: 0;
}

.fanalyze-pathfox-loading__text {
  font-size: 12px;
  color: #94A3B8;
  font-style: italic;
}

.fanalyze-team-perf--active .fanalyze-pathfox-loading {
  animation: fanalyze-loading-show 2.2s ease-out 0.5s forwards;
}

@keyframes fanalyze-loading-show {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- PathFox Speech Bubble (in mockups) --- */
.fanalyze-pathfox-bubble {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 0;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fanalyze-team-perf--active .fanalyze-pathfox-bubble {
  opacity: 1;
  transition-delay: 2.5s;
}

.fanalyze-pathfox-bubble__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fanalyze-pathfox-bubble__text {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 0 8px 8px 8px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #1E293B;
}

/* --- Section 05: Report Card --- */
.fanalyze-report-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: 100%;
  opacity: 0;
  transform: translateY(-40px);
}

.fanalyze-report-card--active {
  animation: fanalyze-report-print 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fanalyze-report-print {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fanalyze-report-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-sm);
  color: var(--violet-primary);
  margin-bottom: 1rem;
}

.fanalyze-report-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.fanalyze-report-card__lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.fanalyze-report-card__line {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.fanalyze-report-card__line-label {
  color: var(--text-secondary);
}

.fanalyze-report-card__line-value {
  font-weight: 700;
  color: var(--text-primary);
}

.fanalyze-report-card__line-value--green { color: #10B981; }

.fanalyze-report-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--violet-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: default;
}

/* --- PathFox Section --- */
.fanalyze-pathfox {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.fanalyze-pathfox__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fanalyze-pathfox__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F97316;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.fanalyze-pathfox__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fanalyze-pathfox__desc {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 520px;
}

.fanalyze-pathfox__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.fanalyze-pathfox__pill {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #E0E7FF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-full);
}

.fanalyze-pathfox__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fanalyze-pathfox__img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(249, 115, 22, 0.15));
  transform: scale(0);
  opacity: 0;
  transition: none;
}

.fanalyze-pathfox__visual.is-visible .fanalyze-pathfox__img {
  animation: fanalyze-bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fanalyze-bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  72% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

.fanalyze-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fanalyze-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fanalyze-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.fanalyze-cta__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .fanalyze-section__grid,
  .fanalyze-pathfox__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fanalyze-section--reversed .fanalyze-section__visual {
    order: -1;
  }

  .fanalyze-section__visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .fanalyze-section__bullets {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }

  .fanalyze-pathfox__desc {
    max-width: 100%;
  }

  .fanalyze-pathfox__pills {
    justify-content: center;
  }

  .fanalyze-pathfox__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .fanalyze-hero {
    padding-top: calc(72px + 2rem);
  }

  .fanalyze-feedback-table__head,
  .fanalyze-feedback-table__row {
    grid-template-columns: 2fr 1fr 0.5fr;
  }

  .fanalyze-feedback-table__head > :last-child,
  .fanalyze-feedback-table__row > :last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .fanalyze-pathfox__pills {
    flex-direction: column;
    align-items: center;
  }

  .fanalyze-mini-kpis__cards {
    flex-direction: column;
  }
}
