/* Área do cliente: entrada, entrega de vídeo, galeria (e peças usadas pelo painel). Depende de tokens.css e site.css. */
.pg-cliente main > section[data-tema] { background: var(--bg); color: var(--fg); }
.pg-cliente .kicker { color: var(--destaque, var(--verde)); }
.exemplo { font: 600 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: var(--espaco-rotulo); text-transform: uppercase; background: rgb(var(--branco-rgb) / .12); padding: .45em .8em; border-radius: var(--pilula); margin-left: .5rem; }

/* topo da área do cliente */
.topo--cliente { background: var(--noite); }
.topo-cliente__rotulo { font: 600 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: var(--espaco-rotulo); text-transform: uppercase; color: var(--verde); margin-right: auto; margin-left: 1.2rem; padding-left: 1.2rem; border-left: 1px solid rgb(var(--branco-rgb) / .2); }
.topo--cliente .topo__cliente span { display: inline; }

/* ---------- Entrada ---------- */
.acesso { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: clamp(7rem, 15vh, 9rem) 0 4rem; }
.acesso__grade { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.acesso h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); font-weight: 800; letter-spacing: -0.03em; }
.acesso .sublinha { color: var(--branco); }
.acesso__sub { margin-top: 1.3rem; font-size: var(--t-3); max-width: 32rem; opacity: .9; }
.acesso__lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.acesso__lista li { display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.acesso__lista li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); flex-shrink: 0; }
.acesso__cartao { background: var(--branco); color: var(--tinta); border-radius: var(--raio); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1rem; box-shadow: var(--sombra-foto); }
.acesso__marca { position: relative; width: 78px; margin-bottom: .4rem; }
.acesso__marca img { width: 100%; height: auto; }
.acesso__pontos { position: absolute; left: 51.3%; top: 38.6%; width: 34.9%; translate: -50% -50%; overflow: visible; fill: var(--roxo); }
.acesso__form { display: grid; gap: 1rem; }
.acesso__cartao > .segmentos { justify-self: start; }
.acesso__erro { min-height: 1.2em; color: var(--erro); font-weight: 700; }
.acesso__exemplos { border-top: 1px dashed rgb(var(--roxo-rgb) / .3); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: var(--t-legenda); }
.acesso__exemplos p { width: 100%; color: var(--texto-3); font-weight: 600; }
.acesso__exemplos a { color: var(--roxo); font-weight: 700; padding-block: .5rem; }


/* ---------- Cabeçalho do projeto ---------- */
.projeto { padding: clamp(6.5rem, 13vh, 8rem) 0 clamp(2rem, 4vw, 3rem); }
.projeto__trilha { font: 600 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: .06em; color: rgb(var(--branco-rgb) / .7); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.projeto__trilha > span:first-child { color: var(--verde); text-transform: uppercase; letter-spacing: .12em; }
.projeto__cabeca { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.projeto h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
.projeto h1 span { display: block; font-weight: 300; font-size: .55em; color: var(--verde); margin-top: .3rem; }
.projeto__meta { margin-top: .8rem; opacity: .8; font-weight: 500; }

.estado { display: inline-flex; align-items: center; gap: .5rem; font: 700 var(--t-mini)/1 var(--f-titulo); padding: .7em 1.1em; border-radius: var(--pilula); white-space: nowrap; }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.estado--aguardando { background: var(--aviso-fundo); color: var(--aviso); }
.estado--aprovado { background: var(--verde); color: var(--roxo); }
.estado--ajustes { background: var(--erro-fundo); color: var(--erro); }
.estado--selecao { background: var(--lavanda); color: var(--roxo); }

/* ---------- Entrega de vídeo ---------- */
.entrega { padding: clamp(2rem, 4vw, 3.5rem) 0 var(--secao); }
.entrega__grade { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.versoes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.versoes button { font: 700 var(--t-mini)/1 var(--f-titulo); color: var(--roxo); background: var(--nevoa); border: 0; padding: .8em 1.1em; border-radius: var(--pilula); cursor: pointer; }
.versoes button small { font-size: var(--t-rotulo); font-weight: 500; opacity: .7; margin-left: .2rem; }
.versoes button[aria-selected="true"] { background: var(--roxo); color: var(--verde); }
/* no site em PHP, cada versão é um endereço (?v=): o mesmo desenho, em link */
.versoes a { font: 700 var(--t-mini)/1 var(--f-titulo); color: var(--roxo); background: var(--nevoa); padding: .8em 1.1em; border-radius: var(--pilula); text-decoration: none; }
.versoes a[aria-selected="true"] { background: var(--roxo); color: var(--verde); }
/* vídeo do YouTube ou Vimeo: só um botão até o clique, nada carrega de fora antes (ENT-18) */
.player iframe { width: 100%; height: 100%; border: 0; }
.player__abrir { display: grid; place-items: center; gap: .6rem; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, rgb(var(--roxo-rgb) / .55), var(--preto) 70%); color: var(--branco); border: 0; cursor: pointer; font: 700 var(--t-legenda)/1 var(--f-titulo); }
.player__abrir svg { width: clamp(3.5rem, 9vw, 5.5rem); height: auto; fill: var(--verde); transition: scale var(--dur); }
.player__abrir:hover svg, .player__abrir:focus-visible svg { scale: 1.08; }
.player { border-radius: var(--raio); overflow: hidden; background: var(--preto); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.player video { width: 100%; height: 100%; object-fit: contain; background: var(--preto); }
.player__nota { font-size: var(--t-mini); color: var(--texto-3); margin-top: .6rem; }
.decisao { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.entrega__lado { display: grid; gap: 1.2rem; }
.bloco, .painel-ajustes { background: var(--nevoa); border-radius: var(--raio); padding: 1.4rem; display: grid; gap: .9rem; }
.painel-ajustes { background: var(--branco); border: 2px solid var(--roxo); }
.entrega__lado h2 { font-size: 1.1rem; color: var(--roxo); }
.dica { font-size: var(--t-legenda); color: var(--texto-2); font-weight: 500; }
.ajuste-form { display: grid; gap: .6rem; }
.ajuste-form textarea { font: inherit; padding: .8em; border-radius: var(--raio-p); border: 2px solid rgb(var(--roxo-rgb) / .2); resize: vertical; }
.ajuste-form__minuto { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.minuto { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--t-mini)/1 var(--f-texto); color: var(--roxo); background: var(--nevoa); padding: .35em .4em .35em .9em; border-radius: var(--pilula); }
.minuto input { width: 6em; font: 700 var(--t-legenda)/1 var(--f-titulo); font-variant-numeric: tabular-nums; color: var(--roxo); background: var(--branco); border: 2px solid rgb(var(--roxo-rgb) / .2); border-radius: var(--pilula); padding: .4em .7em; }
.minuto input[aria-invalid="true"] { border-color: var(--erro); }
.minuto__pegar { font: 700 var(--t-mini)/1 var(--f-texto); color: var(--roxo); background: none; border: 0; padding: .4em 0; text-decoration: underline; cursor: pointer; }
.ajuste-form__erro { color: var(--erro); font-weight: 700; font-size: var(--t-legenda); }
.ajuste-form__erro:empty { display: none; }
.ajustes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ajustes li { display: flex; gap: .6rem; align-items: start; background: var(--nevoa); border-radius: var(--raio-p); padding: .7rem .8rem; font-weight: 500; }
.ajustes--mandados li { display: grid; grid-template-columns: auto 1fr; }
.ajustes--mandados small { display: block; margin-top: .3rem; color: var(--texto-2); }
.ajustes button { font: 700 var(--t-rotulo)/1 var(--f-titulo); background: var(--roxo); color: var(--verde); border: 0; border-radius: 6px; padding: .45em .6em; cursor: pointer; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.arquivos { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.arquivos li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.arquivos span { display: grid; }
.arquivos small { color: var(--texto-3); }
.historico { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; border-left: 2px solid rgb(var(--roxo-rgb) / .25); padding-left: 1rem; }
.historico li { position: relative; font-weight: 500; }
.historico li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--roxo); }
.historico b { color: var(--roxo); margin-right: .4rem; font-family: var(--f-titulo); font-size: var(--t-mini); }
.festa { position: fixed; z-index: var(--z-festa); width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }

/* ---------- Galeria ---------- */
.g-capa { position: relative; height: 62vh; min-height: 420px; overflow: hidden; color: var(--branco); background: var(--noite); display: grid; align-items: end; }
.g-capa__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--tinta-rgb) / .92), rgb(var(--tinta-rgb) / .1) 70%); }
.g-capa__texto { position: relative; z-index: 1; padding-bottom: 2.4rem; }
.g-capa h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); font-weight: 800; letter-spacing: -0.03em; margin-top: .8rem; }
.g-barra { position: sticky; top: 64px; z-index: var(--z-barra); background: rgb(var(--branco-rgb) / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--nevoa); }
.g-barra__grade { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: .8rem; }
.g-barra__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
/* no site em PHP o coração é um botão de formulário (funciona sem JavaScript) */
.g-foto__form { display: contents; }
.g-zips { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; font-weight: 600; color: var(--roxo); }
.modal .qr-exemplo { width: 200px; height: auto; margin-inline: auto; }
.chave { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--texto-3); font-size: var(--t-mini); cursor: not-allowed; }
.chave small { display: block; font-weight: 500; font-size: var(--t-rotulo); }
.chave input { position: absolute; opacity: 0; }
.chave span { width: 40px; height: 22px; border-radius: 22px; background: var(--desligado); position: relative; flex-shrink: 0; }
.chave span::after { content: "🔒"; position: absolute; left: 3px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--branco); font-size: 10px; display: grid; place-items: center; }
.g-grade-sec { padding: clamp(1.5rem, 3vw, 2.5rem) 0 var(--secao); background: var(--branco); }
.g-grade { columns: 4 220px; column-gap: .8rem; }
.g-foto { position: relative; margin: 0 0 .8rem; break-inside: avoid; border-radius: var(--raio-p); overflow: hidden; background: var(--nevoa); }
.g-foto[hidden] { display: none !important; }
.g-foto__abrir { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.g-foto img { width: 100%; height: auto; transition: transform var(--dur-cena) var(--ease); }
.g-foto:hover img { transform: scale(1.04); }
.g-foto__fav, .g-foto__baixar { position: absolute; top: .6rem; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(var(--tinta-rgb) / .55); color: var(--branco); backdrop-filter: blur(6px); transition: transform var(--dur) var(--ease), background-color var(--dur), opacity var(--dur); }
.g-foto__fav { right: .6rem; }
.g-foto__baixar { right: 3.4rem; opacity: 0; }
.g-foto:hover .g-foto__baixar, .g-foto:focus-within .g-foto__baixar { opacity: 1; }
.g-foto__fav svg, .g-foto__baixar svg { width: 20px; }
.g-foto__fav svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.g-foto__fav[aria-pressed="true"] { background: var(--verde); color: var(--roxo); }
.g-foto__fav[aria-pressed="true"] svg path { fill: currentColor; }
.g-foto__fav:active { transform: scale(.85); }
.g-vazio { padding: 3rem 0; font-size: var(--t-3); color: var(--texto-3); text-align: center; }
@media (hover: none) { .g-foto__baixar { opacity: 1; } }

/* tela cheia */
.caixa { position: fixed; inset: 0; z-index: var(--z-modal); background: rgb(var(--veu-rgb) / .96); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4.5rem 1rem; }
.caixa__img { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: var(--raio-p); user-select: none; touch-action: pan-y; }
.caixa__fechar { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(var(--branco-rgb) / .12); color: var(--branco); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.caixa__seta { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(var(--branco-rgb) / .12); color: var(--branco); cursor: pointer; display: grid; place-items: center; }
.caixa__seta svg { width: 24px; }
.caixa__seta--ant { left: 1rem; } .caixa__seta--prox { right: 1rem; }
.caixa__barra { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem; color: var(--branco); padding: .8rem 0; font-weight: 600; }
.caixa__fav { font: 700 var(--t-mini)/1 var(--f-titulo); background: rgb(var(--branco-rgb) / .12); color: var(--branco); border: 0; padding: .8em 1.1em; border-radius: var(--pilula); cursor: pointer; }
.caixa__fav[aria-pressed="true"] { background: var(--verde); color: var(--roxo); }

.g-direitos { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: var(--raio-p); background: var(--nevoa); color: var(--texto-2); font-size: var(--t-legenda); max-width: 70ch; }
.g-direitos b { color: var(--roxo); }
.g-foto img, .caixa__img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.caixa__aviso { margin-left: auto; color: rgb(var(--branco-rgb) / .6); font-weight: 600; font-size: var(--t-mini); }

/* compartilhar */
.modal, .gaveta { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--veu); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; }
.modal__caixa { position: relative; background: var(--branco); color: var(--tinta); border-radius: var(--raio); padding: 2rem; max-width: 440px; width: 100%; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.modal__caixa h2 { color: var(--roxo); font-size: 1.4rem; }
.modal__caixa .caixa__fechar { background: var(--nevoa); color: var(--roxo); }
.modal__qr { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--nevoa); }
.modal__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.copiar { display: flex; gap: .5rem; width: 100%; }
.copiar input { flex: 1; min-width: 0; font: inherit; font-weight: 600; font-size: var(--t-mini); padding: .7em .9em; border-radius: var(--raio-p); border: 2px solid var(--nevoa); color: var(--roxo); }


@media (max-width: 900px) {
  .acesso__grade, .entrega__grade { grid-template-columns: 1fr; }
  .topo-cliente__rotulo { display: none; }
  .topo--cliente .topo__cliente { display: none; }
  .g-barra { top: 60px; }
  .g-barra__grade { flex-direction: column; align-items: stretch; }
  .chave { display: none; }
  .caixa { padding: 3.5rem .5rem 1rem; }
  .caixa__seta { display: none; }
  .campos { grid-template-columns: 1fr; }
}

/* ---------- Conta do cliente ---------- */
.conta { padding: clamp(2rem, 4vw, 3rem) 0 var(--secao); }
.conta__grade { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 1.6rem; align-items: start; }
.acesso__cartao h2 { color: var(--roxo); font-size: 1.6rem; }
@media (max-width: 900px) { .conta__grade { grid-template-columns: minmax(0, 1fr); } }

/* convite: atalhos do protótipo para os estados usado e vencido, sobre o fundo escuro */
.acesso .acesso__prototipo { margin-top: 1.6rem; color: rgb(var(--branco-rgb) / .7); }
.acesso .acesso__prototipo a { color: var(--verde); font-weight: 700; }
