/* PURPLE OPTIMIZER — Download page layout overrides */

.po-dl-page {
  --po-dl-max: 960px;
  --po-dl-gap: 18px;
  --po-dl-radius: 0;
}

.po-dl-hero {
  padding: 20px 16px 48px;
}

.po-dl-inner {
  max-width: var(--po-dl-max);
}

.po-dl-back {
  margin-bottom: 16px;
  font-size: 12px;
}

/* ── Hero grid: painel fixo + vídeo flexível, mesma altura ── */
.po-dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: var(--po-dl-gap);
  align-items: stretch;
  width: 100%;
}

.po-dl-col-panel,
.po-dl-col-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.po-dl-col-panel {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.po-dl-col-visual {
  position: relative;
  z-index: 1;
}

.po-dl-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 22px 20px;
  text-align: left;
}

.po-dl-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  text-align: left;
}

.po-dl-logo {
  width: 130px;
  max-width: 42vw;
}

.po-dl-badge {
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.po-dl-title {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.05;
  margin: 0 0 10px;
  text-align: left;
}

.po-dl-lead {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.po-dl-ver {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 14px;
  font-size: 11px;
}

.po-dl-actions {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
}

.po-dl-btn,
.po-dl-btn-ghost {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 12px;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-dl-btn {
  box-shadow: 0 4px 18px rgba(124, 58, 237, .35);
}

.po-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, .45);
}

.po-dl-btn-ghost {
  padding: 11px 16px;
  font-size: 12px;
}

.po-dl-note {
  margin-top: 14px;
  font-size: 11px;
  text-align: left;
}

.po-dl-features {
  margin-top: 18px;
  padding-top: 16px;
  gap: 8px;
}

.po-dl-feat {
  font-size: 9px;
  padding: 10px 6px;
  background: rgba(124, 58, 237, .06);
  border: 1px solid rgba(124, 58, 237, .12);
}

.po-dl-feat strong {
  font-size: 17px;
  margin-bottom: 2px;
}

/* ── Showcase: preenche coluna, HUD proporcional ── */
.po-dl-showcase {
  flex: 1;
  min-height: 300px;
  max-height: none;
  height: 100%;
  aspect-ratio: unset;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.po-dl-showcase-hud {
  top: 10px;
  right: 10px;
}

.po-dl-showcase-fps-num {
  font-size: 28px;
  text-shadow: 0 0 16px rgba(255, 68, 68, .35);
}

.po-dl-showcase-fps-num.is-boosted {
  text-shadow: 0 0 18px rgba(34, 229, 106, .4);
}

.po-dl-showcase-fps-unit {
  font-size: 9px;
}

.po-dl-showcase-state {
  font-size: 9px;
  margin-top: 2px;
}

.po-dl-showcase-bar-wrap {
  left: 10px;
  right: 10px;
  bottom: 52px;
  height: 3px;
}

.po-dl-showcase-tag {
  left: 10px;
  bottom: 38px;
  font-size: 9px;
}

.po-dl-corner {
  width: 14px;
  height: 14px;
}

/* Boost integrado no rodapé do vídeo */
.po-dl-boost-card {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  background: rgba(3, 5, 8, .88);
  border-top: 1px solid rgba(124, 58, 237, .25);
  backdrop-filter: blur(8px);
}

.po-dl-boost-item {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.po-dl-boost-label {
  font-size: 9px;
}

.po-dl-boost-val {
  font-size: 22px;
}

.po-dl-boost-arrow {
  opacity: .55;
}

.po-dl-boost-arrow svg {
  width: 18px;
  height: 18px;
}

/* ── Compare: mais compacto ── */
.po-dl-compare {
  padding: 48px 16px 56px;
}

.po-dl-compare-inner {
  max-width: var(--po-dl-max);
}

.po-dl-compare-head {
  margin-bottom: 28px;
}

.po-dl-compare-title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 8px;
}

.po-dl-compare-sub {
  font-size: 13px;
  max-width: 460px;
}

.po-dl-compare-grid {
  gap: 14px;
}

.po-dl-compare-vid-wrap {
  aspect-ratio: 16 / 9;
  max-height: 200px;
}

.po-dl-compare-vid-fps {
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  font-size: 20px;
}

.po-dl-compare-vid-fps small {
  font-size: 8px;
}

.po-dl-compare-meta {
  font-size: 11px;
  gap: 6px;
}

.po-dl-compare-divider span {
  font-size: 9px;
}

.po-dl-compare-div-line {
  height: 28px;
}

/* ── Steps ── */
.po-dl-steps {
  padding: 48px 16px 88px;
}

.po-dl-steps-inner {
  max-width: var(--po-dl-max);
}

.po-dl-steps-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 24px;
}

.po-dl-steps-list {
  gap: 10px;
}

.po-dl-steps-list li {
  padding: 14px 12px;
  gap: 4px;
}

.po-dl-step-n {
  font-size: 18px;
}

.po-dl-steps-list strong {
  font-size: 12px;
}

.po-dl-steps-list li > span:last-child {
  font-size: 11px;
}

.po-dl-steps-cta {
  padding: 14px 28px;
  font-size: 12px;
}

/* ── Social fixo menor ── */
.po-dl-canvas {
  opacity: .28;
  max-height: 100%;
}

.po-fixed-social a {
  width: 40px;
  height: 40px;
}

.po-fixed-social svg {
  width: 18px;
  height: 18px;
}

/* ── Responsivo ── */
@media (max-width: 860px) {
  .po-dl-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .po-dl-col-visual {
    order: -1;
  }

  .po-dl-showcase {
    min-height: 220px;
    max-height: 280px;
  }

  .po-dl-panel {
    text-align: center;
  }

  .po-dl-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .po-dl-title,
  .po-dl-note {
    text-align: center;
  }

  .po-dl-compare-vid-wrap {
    max-height: 160px;
  }

  .po-dl-steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .po-dl-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .po-dl-steps-list {
    grid-template-columns: 1fr;
  }

  .po-dl-showcase-fps-num {
    font-size: 24px;
  }
}
