.performer {
  --gutter: 16px;
  background-color: var(--color-background);
}

.performer .container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.performer h1,
.performer h2,
.performer h3,
.performer p {
  margin: 0;
}

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

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.performer .header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark img {
  display: block;
  width: 100px;
  object-fit: contain;
}

.header .buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header .button.help {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-pink-light);
  padding: 8px 0 8px 16px;
}

.performer .button {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.performer .button:hover {
  opacity: 0.85;
}

.performer .button.white {
  background-color: white;
  color: black;
}

.performer .button.outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--color-text);
}

.performer .download {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.performer .download .this-os,
html[data-os] .performer .download .any-os,
html[data-os='mac'] .performer .download [data-os='windows'],
html[data-os='windows'] .performer .download [data-os='mac'] {
  display: none;
}

html[data-os] .performer .download .this-os {
  display: inline;
}

.performer .section {
  padding-bottom: 48px;
}

.performer .section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.performer .section-title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.performer .section-subtitle {
  max-width: 620px;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.performer .dot-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.85);
}

.performer .dot-list li {
  position: relative;
  padding-left: 16px;
}

.performer .dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-pink);
}

.performer .dot-list.white li::before {
  background-color: white;
}

.performer .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.performer .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.performer .hero-icon {
  width: 96px;
  height: 96px;
  margin-left: -10px;
}

.performer .hero-title {
  font-size: 40px;
  line-height: 46px;
  font-weight: 800;
  letter-spacing: -1px;
}

.performer .hero-subtitle {
  max-width: 480px;
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.performer .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.performer .hero-actions .button {
  height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.performer .hero-formats {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.performer .hero-formats a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.performer .hero-formats a:hover {
  color: var(--color-text);
}

.performer .hero-screenshot {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 10px;
  background-color: black;
}

.performer .clips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.performer .clip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  background-color: var(--color-card);
}

.performer .clip-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.performer .clip-art {
  flex: none;
  width: 48px;
  height: 48px;
}

.performer .clip-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.performer .clip-name {
  font-size: 16px;
  font-weight: 800;
}

.performer .clip-author {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.performer .clip-play {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
}

.performer .clip-play .play {
  width: 14px;
  height: 16px;
  background-color: black;
  -webkit-mask: url('../images/plugin/play.svg') center / contain no-repeat;
  mask: url('../images/plugin/play.svg') center / contain no-repeat;
}

.performer .clip-play .play.pause {
  -webkit-mask-image: url('../images/plugin/pause.svg');
  mask-image: url('../images/plugin/pause.svg');
}

/* the waveform is the scrubber. Two copies of the bars: muted underneath, bright on top,
   cut off at the playhead (--progress, 0 to 1, set by plugin.js). Pink with Voloco on,
   white with it off */

.performer .clip-wave {
  --progress: 0;
  position: relative;
  height: 36px;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.performer .clip-wave:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.performer .clip-wave-base,
.performer .clip-wave-played {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.performer .clip-wave span {
  flex: 1;
  min-width: 0;
  height: max(4px, calc(var(--h) * 100%));
  border-radius: 1px;
  background-color: rgba(230, 0, 95, 0.55);
}

.performer .clip-wave-played span {
  background-color: var(--color-pink);
}

.performer .clip[data-source='dry'] .clip-wave-base span {
  background-color: rgba(255, 255, 255, 0.35);
}

.performer .clip[data-source='dry'] .clip-wave-played span {
  background-color: white;
}

.performer .clip-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.performer .clip-bottom .status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.performer .clip-switch {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background-color: black;
}

.performer .clip-switch button {
  height: 28px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.performer .clip-switch button.on {
  background-color: white;
  color: black;
}

.performer .community {
  margin-bottom: 48px;
  padding: 48px 0;
  background-color: var(--color-card);
}

.performer .community .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.performer .community-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.performer .community-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-pink-light);
}

.performer .community-title {
  font-size: 30px;
  line-height: 38px;
  font-weight: 800;
}

.performer .community-body {
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.8);
}

.performer .community-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.performer .community-media {
  display: block;
  width: 100%;
  max-width: 684px;
  height: auto;
  aspect-ratio: 760 / 480;
  border-radius: 10px;
  background-color: black;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.performer .cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.performer .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 10px;
  background-color: var(--color-card);
}

.performer .card-title {
  font-size: 18px;
  font-weight: 800;
}

.performer .card-text {
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.75);
}

.performer .plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.performer .plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 12px;
  background-color: var(--color-card);
}

.performer .plan.premium {
  border: 1.5px solid var(--color-pink);
}

.performer .plan-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}

.performer .plan-name {
  font-size: 22px;
  font-weight: 800;
}

.performer .plan-price {
  font-size: 28px;
  font-weight: 800;
}

.performer .plan-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-pink-light);
}

.performer .plan-note {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.performer .plan .download {
  margin-top: 6px;
}

.performer .plan .button {
  flex: 1 1 auto;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

@media screen and (min-width: 640px) {
  .performer .clips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 768px) {
  .performer {
    --gutter: 32px;
  }

  .wordmark img {
    width: 140px;
  }

  .performer .section {
    padding-bottom: 64px;
  }

  .performer .section-title {
    font-size: 34px;
    line-height: 42px;
  }

  .performer .hero {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .performer .hero-title {
    font-size: 52px;
    line-height: 58px;
  }

  .performer .hero-subtitle {
    font-size: 19px;
    line-height: 28px;
  }

  .performer .community {
    margin-bottom: 72px;
    padding: 72px 0;
  }

  .performer .community-title {
    font-size: 40px;
    line-height: 48px;
  }

  .performer .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .performer .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1024px) {
  .performer .clips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1200px) {
  .performer {
    --gutter: 56px;
  }

  .performer .section.listen,
  .performer .section.last {
    padding-bottom: 72px;
  }

  .performer .hero {
    grid-template-columns: minmax(0, 1fr) 580px;
    gap: 48px;
  }

  .performer .community .container {
    grid-template-columns: minmax(0, 1fr) 684px;
    gap: 56px;
  }
}
