/* Conhecer das propagandas da TV (25/11, v136): página do produto na janela de baixo (components/sheet.js) e no painel lateral
   da tela cheia deitada. Código em js/player/conhecer.js. A janela segue o tema do app (tokens do tokens.css); a capa e o botão
   principal usam as cores da peça (--cta e --ctaInk, postas pelo JS). Prefixo .cn-. Medidas: toque 44+, letra 11+, espaços de 4 em 4. */

/* ---------- janela de baixo: o corpo não tem margem, o cabeçalho e a barra grudam ---------- */
.sheet-body.cn-sh { padding: 0; }
.cn-page { display: block; background: var(--bg); color: var(--text); font-family: var(--ui); }
.cn-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 4px 8px 8px 16px; background: var(--bg); touch-action: none; }
.cn-mk { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: block; }
.cn-mk svg { width: 100%; height: 100%; display: block; }
.cn-hd-t { min-width: 0; flex: 1; }
.cn-hd-t b { display: block; font: 700 16px/1.25 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.cn-hd-t small { display: block; font: 500 12px/1.3 var(--ui); color: var(--muted); }
.cn-ibtn { flex: none; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; border: 0; background: var(--s2); color: var(--text); cursor: pointer; transition: transform .1s, background .15s; }
.cn-ibtn:active { transform: scale(.94); }
.cn-ibtn:focus-visible, .cn-btn:focus-visible, .cn-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cn-ibtn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cn-save[aria-pressed='true'] { background: var(--cta); color: var(--ctaInk); }

/* capa 16x9 com o selo */
.cn-hero { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.cn-hero > svg { width: 100%; height: 100%; display: block; }
.cn-pat { position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 12px; background: rgb(0 0 0 / .66); color: #fff; font: 600 11px/1 var(--ui); }

.cn-in { padding: 16px 16px 24px; }
.cn-in h2 { margin: 0; font: 700 22px/1.2 var(--ui); letter-spacing: -.02em; }
.cn-in h3 { margin: 24px 0 0; font: 700 17px/1.25 var(--ui); letter-spacing: -.01em; }
.cn-rt { margin-top: 8px; display: flex; align-items: center; gap: 8px; font: 500 13px/1.2 var(--ui); color: var(--muted); }
.cn-rt b { color: var(--text); font-weight: 700; }
.cn-stars { display: inline-flex; gap: 2px; color: #ffb400; }
.cn-stars svg { width: 16px; height: 16px; }
.cn-stars .off { color: var(--line-2); }
.cn-about { margin: 12px 0 0; font: 400 15px/1.5 var(--ui); }
.cn-facts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cn-facts div { min-width: 0; padding: 12px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.cn-facts small { display: block; font: 500 12px/1.2 var(--ui); color: var(--muted); }
.cn-facts b { display: block; margin-top: 2px; font: 600 15px/1.25 var(--ui); overflow-wrap: anywhere; }

/* opções: lista selecionável (radio de verdade escondido, o desenho vem do :has) */
.cn-opts { margin-top: 12px; display: grid; gap: 8px; }
.cn-opt { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background .15s, box-shadow .15s; }
.cn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cn-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); display: grid; place-items: center; }
.cn-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--cta); background: color-mix(in srgb, var(--cta) 10%, var(--s1)); }
.cn-opt:has(input:checked) .cn-dot { box-shadow: inset 0 0 0 2px var(--cta); }
.cn-opt:has(input:checked) .cn-dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--cta); }
.cn-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cn-on { min-width: 0; }
.cn-on b { display: block; font: 600 15px/1.25 var(--ui); }
.cn-on small { display: block; margin-top: 2px; font: 400 13px/1.3 var(--ui); color: var(--muted); }
.cn-op { text-align: right; }
.cn-op b { display: block; font: 800 16px/1.2 var(--ui); white-space: nowrap; }
.cn-op s { display: block; font: 400 12px/1.2 var(--ui); color: var(--muted); }
.cn-tag { display: inline-block; margin-bottom: 4px; padding: 3px 8px; border-radius: 6px; background: var(--s3); font: 700 11px/1 var(--ui); color: var(--text); }

.cn-perks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cn-perks li { display: flex; align-items: flex-start; gap: 12px; font: 400 15px/1.4 var(--ui); }
.cn-perks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: #1a8a4a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cn-sec-t { margin: 12px 0 0; font: 400 15px/1.5 var(--ui); }
.cn-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.cn-chips span { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 18px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--ui); }
.cn-rv { margin-top: 12px; display: grid; gap: 8px; }
.cn-rv > div { padding: 16px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.cn-rv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cn-rv-top b { font: 600 14px/1.2 var(--ui); }
.cn-rv-top small { font: 400 12px/1.2 var(--ui); color: var(--muted); }
.cn-rv p { margin: 8px 0 0; font: 400 14px/1.45 var(--ui); }
.cn-fine { margin: 24px 0 0; font: 400 12px/1.5 var(--ui); color: var(--muted); }

/* barra fixa no pé: nome e preço da opção marcada + dois botões */
.cn-bar { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line-2); box-shadow: 0 -8px 20px rgb(0 0 0 / .12); }
.cn-bar-p { display: grid; gap: 2px; min-width: 0; max-width: 112px; }
.cn-bar-p small { font: 500 11px/1.15 var(--ui); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-bar-p b { font: 800 18px/1.1 var(--ui); letter-spacing: -.02em; white-space: nowrap; }
.cn-btn { min-height: 48px; padding: 6px 8px; border-radius: 24px; border: 0; font: 700 13px/1.15 var(--ui); text-align: center; cursor: pointer; transition: transform .1s; }
.cn-btn:active { transform: scale(.97); }
.cn-btn.cn-sec { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.cn-btn.cn-pri { background: var(--cta); color: var(--ctaInk); }

/* ---------- painel lateral (tela cheia deitada) ---------- */
.cn-side { position: fixed; z-index: 75; top: 0; bottom: 0; right: 0; width: 44%; display: flex; background: var(--bg); color: var(--text);
  box-shadow: -18px 0 40px -10px rgb(0 0 0 / .5), inset 1px 0 0 var(--line-2); transform: translateX(105%); visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
.cn-side[data-open='true'] { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1); }
.cn-side[data-wide='true'] { width: 100%; }
.cn-side.dragging { transition: none !important; }
.cn-handle { flex: none; width: 44px; display: grid; place-items: center; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.cn-handle i { width: 5px; height: 44px; border-radius: 9px; background: var(--muted); opacity: .6; }
.cn-handle:hover i, .cn-handle:focus-visible i { opacity: .9; }
.cn-side-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-side .cn-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cn-side .cn-head { position: static; padding: max(8px, var(--safe-t)) max(8px, env(safe-area-inset-right, 0px)) 8px 4px; cursor: grab; }
.cn-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-right: env(safe-area-inset-right, 0px); }
.cn-scroll::-webkit-scrollbar { display: none; }
.cn-side .cn-bar { position: static; padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, var(--safe-b)) 16px; grid-template-columns: auto 1fr 1fr; }
.cn-side[data-wide='true'] .cn-main { max-width: 640px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { .cn-side, .cn-side[data-open='true'], .cn-opt, .cn-ibtn, .cn-btn { transition: none; } }
/* no painel lateral o nome da marca pode ocupar 2 linhas (cabeçalho tem 3 botões de 44 px) */
.cn-side .cn-hd-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- página de curso (Indicação MusYou, docs/32) ---------- */
.cn-cmk { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: block; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.cn-cmk svg { width: 100%; height: 100%; display: block; }
.cn-com { margin: 4px 0 0; font: 400 15px/1.35 var(--ui); color: var(--muted); }
.cn-com b { color: var(--text); font-weight: 600; }
.cn-curso .cn-rt { flex-wrap: wrap; margin-top: 12px; }
.cn-st3 { margin-top: 16px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.cn-st3 div { padding: 12px 4px; text-align: center; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.cn-st3 b { display: block; font: 800 18px/1.2 var(--ui); letter-spacing: -.01em; }
.cn-st3 small { display: block; margin-top: 2px; font: 500 12px/1.25 var(--ui); color: var(--muted); }
.cn-cap { margin: 2px 0 0; font: 500 12px/1.3 var(--ui); color: var(--muted); }
.cn-trail { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cn-trail li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.cn-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: var(--ctaInk); font: 800 15px/1 var(--ui); }
.cn-trail small { display: block; font: 500 12px/1.2 var(--ui); color: var(--muted); }
.cn-trail b { display: block; font: 600 15px/1.3 var(--ui); }
.cn-guar { margin-top: 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border-radius: 18px; background: color-mix(in srgb, #1a8a4a 14%, var(--bg)); box-shadow: inset 0 0 0 1.5px #1a8a4a; }
.cn-gi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1a8a4a; color: #fff; }
.cn-gi svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cn-guar b { display: block; font: 700 16px/1.3 var(--ui); }
.cn-guar p { margin: 2px 0 0; font: 400 14px/1.45 var(--ui); }
.cn-faqs { margin-top: 12px; display: grid; gap: 8px; }
.cn-faq { border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.cn-faq summary { min-height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font: 600 15px/1.3 var(--ui); }
.cn-faq summary::-webkit-details-marker { display: none; }
.cn-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.cn-cv { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.cn-cv svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cn-faq[open] .cn-cv { transform: rotate(90deg); }
.cn-faq p { margin: 0; padding: 0 14px 14px; font: 400 14px/1.5 var(--ui); color: var(--muted); }
.cn-bar.cn-bar-c, .cn-side .cn-bar.cn-bar-c { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.cn-bar-c .cn-bar-p { max-width: none; }
.cn-bar-c .cn-btn { white-space: nowrap; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .cn-cv { transition: none; } }
.cn-curso .cn-hd-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
