/* WidPlayer — landing page. Carrega depois da base.css e só traz o que é dela.
   A paleta não é fixa: --c1, --c2, --c3 e --acc seguem a capa da faixa tocando na demo do
   herói (assets/demo.js), como o vidro do app segue a capa de verdade. Os valores iniciais
   (na base.css e nos @property abaixo) são os da primeira faixa, para a página nascer igual
   com ou sem JavaScript. */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #2b1e4a; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #b8456b; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #f29a5c; }
@property --acc { syntax: '<color>'; inherits: true; initial-value: #ffb38a; }
:root { transition: --c1 1.2s ease, --c2 1.2s ease, --c3 1.2s ease, --acc 1.2s ease; }
/* ───── Herói: a mesa ───── */
.heroi {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 900px); padding: 120px 0 84px;
  display: grid; align-items: center;
  background: var(--c1);
}
.papel, .papel::after, .onda { position: absolute; pointer-events: none; }
.papel {
  z-index: -2;
  background:
    radial-gradient(42% 52% at 76% 40%, var(--c3) 0%, transparent 68%),
    radial-gradient(60% 70% at 62% 88%, var(--c2) 0%, transparent 70%),
    radial-gradient(50% 60% at 98% 6%, var(--c2) 0%, transparent 65%),
    linear-gradient(160deg, var(--c1), #0b0b0f 120%);
}
.papel::after {
  background:
    linear-gradient(90deg, rgba(9,8,14,.84) 0%, rgba(9,8,14,.6) 36%, rgba(9,8,14,.08) 64%, transparent 78%),
    linear-gradient(180deg, transparent 62%, var(--fundo) 100%);
}
.onda {
  z-index: -1; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c3) 75%, #fff) 0%, var(--c3) 38%, transparent 70%);
  opacity: 0; transform: scale(0);
}
.onda.vai { animation: onda 1.25s cubic-bezier(.2,.7,.2,1); }
@keyframes onda { 0% { opacity: .75; transform: scale(0); } 100% { opacity: 0; transform: scale(60); }; }
.heroi__grade { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.heroi h1 {
  margin-top: 18px; font-size: clamp(46px, 6.6vw, 92px); line-height: .97; letter-spacing: -.045em; font-weight: 720; color: #fff;
  text-wrap: balance;
}
.heroi h1 em { display: block; }
.heroi__sub { margin-top: 26px; max-width: 33em; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.5; color: #e9e6ee; }
.requisito { margin-top: 18px; font-size: 14px; color: #cfcbd8; }
/* ───── Palco + widget ───── */
.demo { display: grid; justify-items: center; gap: 22px; }
.palco { container-type: inline-size; width: min(100%, 500px); display: grid; justify-items: center; }
.w {
  --p: calc(100cqw / 348);
  position: relative; width: calc(348 * var(--p)); height: calc(168 * var(--p));
  border-radius: calc(27 * var(--p)); color: #17161b;
  background: rgba(255,255,255,.72);
  background: color-mix(in srgb, var(--c2) 26%, rgba(255,255,255,.6));
  -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    inset 0 1.5px 0 rgba(255,255,255,.85),
    inset 0 -14px 26px -18px rgba(255,255,255,.55),
    0 34px 70px -22px rgba(0,0,0,.6), 0 8px 20px -8px rgba(0,0,0,.35);
  transition: width .55s cubic-bezier(.3,.9,.3,1), background-color 1.2s ease;
  overflow: hidden; user-select: none; -webkit-user-select: none;
  --mx: 50%; --my: 0%;
}
.w::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(calc(150 * var(--p)) circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 70%);
  opacity: 0; transition: opacity .35s ease; mix-blend-mode: soft-light;
}
.w:hover::after { opacity: 1; }
.w > * {
  position: absolute;
  transition: left .55s cubic-bezier(.3,.9,.3,1), top .55s cubic-bezier(.3,.9,.3,1), width .55s cubic-bezier(.3,.9,.3,1), height .55s cubic-bezier(.3,.9,.3,1), font-size .55s;
}
.w .marca-dagua {
  left: calc(228 * var(--p));
  top: calc(48 * var(--p));
  width: calc(116 * var(--p));
  height: calc(116 * var(--p));
  opacity: .13;
}
.w .capa {
  left: calc(15 * var(--p)); top: calc(30 * var(--p)); width: calc(108 * var(--p)); height: calc(108 * var(--p));
  border-radius: 16%; overflow: hidden; box-shadow: 0 calc(6 * var(--p)) calc(16 * var(--p)) rgba(0,0,0,.28);
  background: var(--c1);
}
.w .capa svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.w .capa svg.sai { opacity: 0; }
.w .titulo, .w .artista {
  left: calc(135 * var(--p));
  width: calc(165 * var(--p));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w .titulo {
  top: calc(15 * var(--p));
  font-size: calc(15.5 * var(--p));
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.w .artista { top: calc(38 * var(--p)); font-size: calc(13 * var(--p)); color: rgba(23,22,27,.74); line-height: 1.3; }
.barra {
  left: calc(135 * var(--p));
  top: calc(108 * var(--p));
  width: calc(162 * var(--p));
  height: calc(16 * var(--p));
  cursor: pointer;
  touch-action: none;
  border-radius: 99px;
}
.barra::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(3.5 * var(--p));
  margin-top: calc(-1.75 * var(--p));
  border-radius: 99px;
  background: rgba(23,22,27,.2);
}
.barra i {
  position: absolute;
  left: 0;
  top: 50%;
  height: calc(3.5 * var(--p));
  margin-top: calc(-1.75 * var(--p));
  border-radius: 99px;
  background: rgba(23,22,27,.78);
  width: calc(var(--v, 0) * 100%);
  min-width: calc(3.5 * var(--p));
}
.barra b {
  position: absolute;
  top: 50%;
  left: calc(var(--v, 0) * 100%);
  width: calc(11 * var(--p));
  height: calc(11 * var(--p));
  margin: calc(-5.5 * var(--p)) 0 0 calc(-5.5 * var(--p));
  border-radius: 50%;
  background: #17161b;
  transform: scale(0);
  transition: transform .2s ease;
}
.barra:hover b, .barra:focus-visible b, .barra.arrasta b { transform: scale(1); }
.barra[aria-disabled="true"] { cursor: default; }
.barra[aria-disabled="true"] b { display: none; }
.w button {
  appearance: none; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  width: calc(34 * var(--p)); height: calc(34 * var(--p)); margin: calc(-17 * var(--p)) 0 0 calc(-17 * var(--p));
  transition: left .55s cubic-bezier(.3,.9,.3,1), top .55s cubic-bezier(.3,.9,.3,1), background-color .15s, transform .12s, opacity .3s;
}
.w button svg { width: calc(22 * var(--p)); height: calc(22 * var(--p)); fill: currentColor; }
.w button:hover { background: rgba(23,22,27,.1); }
.w button:active { transform: scale(.9); }
.w button[aria-disabled="true"] { opacity: .28; cursor: not-allowed; }
.w button[aria-disabled="true"]:hover { background: transparent; }
.w :focus-visible { outline: calc(2 * var(--p)) solid #17161b; outline-offset: 1px; }
.b-prev { left: calc(173 * var(--p)); top: calc(139 * var(--p)); }
.b-play { left: calc(216 * var(--p)); top: calc(139 * var(--p)); }
.b-next { left: calc(259 * var(--p)); top: calc(139 * var(--p)); }
.b-mudo { left: calc(321 * var(--p)); top: calc(140 * var(--p)); }
.w .b-mudo svg { width: calc(15 * var(--p)); height: calc(15 * var(--p)); opacity: .78; }
.b-play .i-play, .tocando .b-play .i-pause { display: block; }
.b-play .i-pause, .tocando .b-play .i-play { display: none; }
.vol {
  left: calc(313 * var(--p));
  top: calc(18 * var(--p));
  width: calc(16 * var(--p));
  height: calc(104 * var(--p));
  cursor: pointer;
  touch-action: none;
  border-radius: 99px;
}
.vol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: calc(5 * var(--p));
  margin-left: calc(-2.5 * var(--p));
  border-radius: 99px;
  background: rgba(23,22,27,.2);
}
.vol i {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(5 * var(--p));
  margin-left: calc(-2.5 * var(--p));
  border-radius: 99px;
  background: #2f7bf6;
  height: calc(var(--v, .5) * 100%);
}
.vol b {
  position: absolute;
  left: 0;
  width: calc(16 * var(--p));
  height: calc(20 * var(--p));
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  bottom: calc(var(--v, .5) * (100% - 20 * var(--p)));
}
.w.mudo .vol i { background: rgba(23,22,27,.4); }
/* 1×1 */
.palco[data-tam="1x1"] .w { width: calc(168 * var(--p)); }
.palco[data-tam="1x1"] .marca-dagua { left: calc(48 * var(--p)); top: calc(50 * var(--p)); }
.palco[data-tam="1x1"] .capa { left: calc(14 * var(--p)); top: calc(14 * var(--p)); width: calc(52 * var(--p)); height: calc(52 * var(--p)); }
.palco[data-tam="1x1"] .titulo, .palco[data-tam="1x1"] .artista { left: calc(74 * var(--p)); width: calc(82 * var(--p)); }
.palco[data-tam="1x1"] .titulo { top: calc(22 * var(--p)); font-size: calc(13 * var(--p)); }
.palco[data-tam="1x1"] .artista { top: calc(40 * var(--p)); font-size: calc(12 * var(--p)); }
.palco[data-tam="1x1"] .barra { left: calc(14 * var(--p)); top: calc(81 * var(--p)); width: calc(140 * var(--p)); }
.palco[data-tam="1x1"] .b-prev { left: calc(42 * var(--p)); top: calc(114 * var(--p)); }
.palco[data-tam="1x1"] .b-play { left: calc(84 * var(--p)); top: calc(114 * var(--p)); }
.palco[data-tam="1x1"] .b-next { left: calc(126 * var(--p)); top: calc(114 * var(--p)); }
.palco[data-tam="1x1"] .b-mudo { left: calc(25 * var(--p)); top: calc(146 * var(--p)); }
.palco[data-tam="1x1"] .vol { left: calc(43 * var(--p)); top: calc(138 * var(--p)); width: calc(111 * var(--p)); height: calc(16 * var(--p)); }
.palco[data-tam="1x1"] .vol::before {
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  width: auto;
  height: calc(5 * var(--p));
  margin: calc(-2.5 * var(--p)) 0 0;
}
.palco[data-tam="1x1"] .vol i {
  left: 0;
  bottom: auto;
  top: 50%;
  margin: calc(-2.5 * var(--p)) 0 0;
  height: calc(5 * var(--p));
  width: calc(var(--v, .5) * 100%);
}
.palco[data-tam="1x1"] .vol b {
  bottom: 0;
  width: calc(20 * var(--p));
  height: calc(16 * var(--p));
  left: calc(var(--v, .5) * (100% - 20 * var(--p)));
}
/* Painel da demonstração */
.painel {
  width: min(100%, 500px); padding: 16px 18px 18px; border-radius: 22px;
  background: rgba(10,9,15,.58); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.painel__linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.painel__rotulo { font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #cdc9d6; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip, .seg button {
  appearance: none; font: 600 13.5px/1 var(--sans); color: #f1eff5; cursor: pointer;
  min-height: 34px; padding: 0 13px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover, .seg button:hover { background: rgba(255,255,255,.16); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { background: #fff; color: #121116; border-color: #fff; }
.seg { display: inline-flex; gap: 5px; }
.seg button { min-height: 30px; padding: 0 11px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.status {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 14.5px;
  line-height: 1.45;
  color: #e7e4ec;
  min-height: 7.4em;
}
.status strong { color: #fff; }
.status .vol-info { display: block; margin-top: 4px; color: #c5c1cf; font-size: 13.5px; }
.status .aviso { display: block; margin-top: 6px; color: var(--acc); font-weight: 600; font-size: 13.5px; }
.demo__nota { font-size: 12.5px; color: #c9c5d2; text-align: center; max-width: 34em; }
.faixa { padding: clamp(72px, 9vw, 128px) 0; }
.titulo-secao { margin-top: 14px; font-size: clamp(32px, 4.3vw, 56px); line-height: 1.03; max-width: 17em; }
.corpo { margin-top: 20px; max-width: 40em; color: var(--suave); font-size: 18px; }
.corpo strong { color: var(--texto); }
.saiba { margin-top: 28px; font-weight: 600; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; padding: 0; }
.bento > li {
  grid-column: span 2; padding: 26px; border-radius: 24px; border: 1px solid var(--linha);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.bento h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.bento p { margin-top: 9px; color: var(--suave); font-size: 16px; }
.bento > li.foto { grid-column: span 4; grid-row: span 2; padding: 0; overflow: hidden; position: relative; min-height: 340px; }
.bento > li.foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bento > li.foto figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(10,9,15,.72); color: #fff; font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bento > li.foto figure { margin: 0; position: absolute; inset: 0; }
.bento > li.larga { grid-column: span 3; }
.bento .n { display: block; font: italic 500 15px var(--serif); color: var(--acc); margin-bottom: 14px; }
.apps { margin-top: 44px; list-style: none; padding: 0; border-top: 1px solid var(--linha); }
.apps li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--linha);
  align-items: baseline;
}
.apps strong { font-size: 19px; letter-spacing: -.02em; }
.apps span { color: var(--suave); font-size: 16px; }
.apps .nivel {
  display: inline-block;
  margin-right: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acc);
}
.formatos { margin-top: 44px; display: grid; grid-template-columns: 964fr 604fr; gap: 16px; }
.formatos figure, .duo figure { margin: 0; }
.formatos img { border-radius: 24px; border: 1px solid var(--linha); width: 100%; }
.duo { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cartao {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--linha);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.cartao h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.15; }
.cartao p { margin-top: 10px; color: var(--suave); font-size: 16.5px; }
.cartao p strong { color: var(--texto); }
.cartao p.cartao__nota { font-size: 14.5px; }
.cartao img { margin-top: 22px; border-radius: 16px; width: 100%; max-width: 420px; }
.teclas { margin-top: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
kbd {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px;
  font: 600 19px var(--sans); color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 3px 0 rgba(0,0,0,.45);
}
.teclas span { margin-left: 8px; color: var(--suave); font-size: 14.5px; }
.alerta {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: 15px; color: #f1eff5;
}
.alerta span:last-child {
  flex: none;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  color: #121116;
  font-weight: 650;
  font-size: 13.5px;
}
.trio { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; list-style: none; padding: 0; }
.trio li { padding-top: 20px; border-top: 2px solid var(--acc); }
.trio h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.trio p { margin-top: 9px; color: var(--suave); font-size: 16px; }
.perguntas { margin-top: 36px; max-width: 800px; border-top: 1px solid var(--linha); }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  list-style: none;
  position: relative;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--acc);
  transition: transform .25s ease;
}
.perguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.perguntas p { padding: 0 40px 22px 0; color: var(--suave); }
.final { padding: clamp(90px, 12vw, 160px) 0; }
.final h2 { font-size: clamp(48px, 8vw, 104px); }
.final p { margin: 22px auto 0; max-width: 31em; color: #ebe8f0; font-size: 18.5px; }
@media (max-width: 900px) {
  .heroi { padding: 96px 0 64px; }
  .heroi__grade { grid-template-columns: 1fr; gap: 44px; }
  .papel {
    background:
      radial-gradient(85% 34% at 50% 68%, var(--c3) 0%, transparent 70%),
      radial-gradient(110% 40% at 40% 92%, var(--c2) 0%, transparent 72%),
      linear-gradient(180deg, var(--c1), #0b0b0f 130%);
  }
  .papel::after {
    background: linear-gradient(180deg, rgba(9,8,14,.82) 0%, rgba(9,8,14,.62) 38%, rgba(9,8,14,.05) 58%, transparent 80%, var(--fundo) 100%);
  }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > li, .bento > li.larga { grid-column: span 1; }
  .bento > li.foto { grid-column: span 2; grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .trio { grid-template-columns: 1fr; gap: 26px; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(1120px, 100% - 32px); }
  .bento { grid-template-columns: 1fr; }
  .bento > li.foto { grid-column: span 1; }
  .apps li { grid-template-columns: 1fr; gap: 4px; }
  .formatos { grid-template-columns: 1fr; }
  .formatos figure:last-child { max-width: 62%; }
  .alerta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  :root, .w, .w > *, .w button, .botao, .barra b, .w .capa svg, .perguntas summary::after { transition: none !important; }
  .onda { display: none; }
}
