/* comparison pages and hub */

/* tokens */

:root {
  --brand-gradient: linear-gradient(140deg, #4A5FD5 0%, #B030A8 55%, var(--color-pink) 100%);
}

/* hero */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.breadcrumb li + li::before {
  content: '›';
  content: '›' / '';
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb [aria-current='page'] {
  color: var(--color-text);
}

.compare-updated {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.compare-section .hero-body {
  max-width: 820px;
}

/* a/b player */

.ab-player {
  --progress: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ab-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ab-pill {
  display: flex;
  padding: 3px;
  background-color: #17171a;
  border: 1px solid #25252a;
  border-radius: 20px;
}

.ab-pill-button {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 16px;
  background: none;
  color: var(--color-text-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-pill-button:hover {
  color: var(--color-text);
}

.ab-pill-button[aria-pressed='true'] {
  background-color: #3a3a40;
  color: var(--color-text);
}

.ab-version[data-version='voloco'][aria-pressed='true'] {
  background: var(--brand-gradient);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-pink) 30%, transparent);
}

.ab-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ab-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background-color: var(--color-blue);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.ab-toggle:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.ab-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ab-icon-pause,
.ab-toggle.is-playing .ab-icon-play {
  display: none;
}

.ab-toggle.is-playing .ab-icon-pause {
  display: block;
}

.ab-toggle:focus-visible,
.ab-pill-button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.ab-tracks {
  flex: 1;
  min-width: 0;
}

/* waveform */

.ab-waveforms {
  position: relative;
  height: 70px;
}

.ab-wave {
  display: none;
  position: absolute;
  inset: 0;
}

.ab-player[data-selected='voloco'] .ab-wave[data-version='voloco'],
.ab-player[data-selected='competitor'] .ab-wave[data-version='competitor'] {
  display: block;
}

.ab-wave-base,
.ab-wave-played {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.6%;
}

.ab-wave span {
  flex: 1;
  height: max(3px, calc(var(--h) * 100%));
  border-radius: 2px;
  background-color: #3a3a40;
}

.ab-wave-played {
  clip-path: inset(0 calc((1 - var(--progress)) * 100%) 0 0);
}

.ab-wave-played span {
  background-color: var(--color-text-secondary);
}

.ab-wave[data-version='voloco'] span {
  background: var(--brand-gradient) calc(var(--x) * 100%) 0 / calc(var(--bars) * 100%) 100%;
}

.ab-wave[data-version='voloco'] .ab-wave-base {
  opacity: 0.35;
}

.ab-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--progress) * 100%);
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background-color: var(--color-text);
}

.ab-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #8e8e93;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ab-caption {
  margin: 0.75rem 0 0;
  color: #8e8e93;
  font-size: 0.8rem;
}

/* choose lists */

.compare-choose .feature-heading,
.compare-faq .feature-heading,
.compare-card .feature-heading {
  margin-top: 0;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  position: relative;
  padding-left: 22px;
}

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

.compare-list a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: rgba(176, 48, 168, 0.7);
  text-underline-offset: 3px;
}

/* comparison table */

.compare-table-wrap {
  overflow-x: auto;
  background-color: var(--color-medium-black);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}

.compare-table tbody th {
  width: 22%;
  font-weight: 800;
  color: var(--color-text);
}

.compare-table td {
  color: var(--color-text-tertiary);
}

.compare-table thead th:nth-child(2),
.compare-table td:nth-of-type(1) {
  background-color: rgba(176, 48, 168, 0.06);
}

/* faq */

.compare-faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ask llm and cta */

.compare-ask {
  text-align: center;
}

.compare-ask .hero-body,
.cta .hero-body {
  max-width: 640px;
  margin: 0 auto 32px;
}

.compare-ask .ask-llm {
  justify-content: center;
}

/* hub */

.compare-card {
  display: block;
}

/* mobile */

@media screen and (max-width: 768px) {
  .hero-split .breadcrumb ol {
    justify-content: center;
  }

  .compare-table {
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }

  .compare-table tbody th {
    width: auto;
  }
}

@media screen and (max-width: 600px) {
  .ab-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ab-pill-button {
    flex: 1;
  }

  .ab-body {
    gap: 1rem;
  }
}
