/* OTT App — 05 Try it · Revenue */

@keyframes cw-ott-rev-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-ott-app-revenue {
  background: #cfc4f6;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-ott-app-revenue__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cw-ott-app-revenue__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-ott-app-revenue__eyebrow {
  margin: 0 0 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.cw-ott-app-revenue__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-ott-app-revenue__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #5b3fc4;
}

.cw-ott-app-revenue__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.cw-ott-app-revenue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 18px;
}

.cw-ott-app-revenue__controls {
  background: #f3efe7;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cw-ott-app-revenue__modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #141210;
  border-radius: 999px;
  padding: 4px;
}

.cw-ott-app-revenue__mode {
  border: 0;
  background: transparent;
  color: #141210;
  border-radius: 999px;
  padding: 10px 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.cw-ott-app-revenue__mode.is-active {
  background: #141210;
  color: #f3efe7;
}

.cw-ott-app-revenue__mode:focus-visible {
  outline: 2px solid #5b3fc4;
  outline-offset: 2px;
}

.cw-ott-app-revenue__model-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3a3530;
  min-height: 72px;
}

.cw-ott-app-revenue__model-desc.is-pulse {
  animation: cw-ott-rev-in 0.3s ease both;
}

.cw-ott-app-revenue__slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-ott-app-revenue__slider-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.cw-ott-app-revenue__slider input[type='range'] {
  width: 100%;
  accent-color: #5b3fc4;
}

.cw-ott-app-revenue__result {
  background: #141210;
  color: #f3efe7;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-ott-app-revenue__result-kicker {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #b7a6f5;
}

.cw-ott-app-revenue__total {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.cw-ott-app-revenue__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-ott-app-revenue__bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 84px;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}

.cw-ott-app-revenue__bar-name {
  font-weight: 500;
}

.cw-ott-app-revenue__bar-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(243, 239, 231, 0.08);
  overflow: hidden;
  display: block;
}

.cw-ott-app-revenue__bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.cw-ott-app-revenue__bar-val {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.cw-ott-app-revenue__disclaimer {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(243, 239, 231, 0.55);
}

@media (max-width: 520px) {
  .cw-ott-app-revenue__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .cw-ott-app-revenue__bar-row {
    grid-template-columns: 56px 1fr 72px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-ott-app-revenue__model-desc.is-pulse,
  .cw-ott-app-revenue__bar-fill {
    animation: none;
    transition: none;
  }
}
