/* =========================================================
   PIQUE — compra e Área da família (usa os tokens do style.css)
   ========================================================= */
.painel [hidden] { display: none !important; }
.top__link {
  font: 700 1rem/1 var(--f-body); color: var(--ink);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  border-bottom: 2.5px solid var(--ink);
  text-decoration: none;
}
.top__link:hover { color: var(--red-deep); border-color: var(--red-deep); }

.folha-painel {
  max-width: 620px; margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--gutter) 96px;
}
.painel__titulo {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); line-height: .95;
}
.painel__sub { margin-top: 14px; max-width: 40ch; }

/* passos 1 · 2 · 3 */
.passos { display: flex; gap: 8px; margin: 28px 0 22px; }
.passos li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .92rem; color: var(--ink-2);
  padding-bottom: 10px; border-bottom: 3px solid rgba(42,22,15,.18);
}
.passos span {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid currentColor; font-family: var(--f-led); font-weight: 400;
}
.passos .is-atual { color: var(--ink); border-color: var(--red); }
.passos .is-atual span { background: var(--red-deep); border-color: var(--ink); color: #fff; }
.passos .is-feito { color: var(--ink); border-color: var(--ink); }
.passos .is-feito span { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.aviso {
  margin: 0 0 18px; padding: 12px 16px;
  background: #fff; border: 2.5px solid var(--red-deep); border-radius: 10px;
  color: var(--red-deep); font-weight: 600;
}

/* cartão: papel de convite */
.cartao {
  position: relative;
  background: var(--card);
  border: 2.5px solid var(--ink); border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(22px, 5vw, 34px);
  margin-bottom: 26px;
}
.cartao h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.05; margin-bottom: 12px; }
.cartao > p + p, .cartao p + form, .cartao p + .google { margin-top: 12px; }
.pequeno { font-size: .9rem; color: var(--ink-2); margin-top: 14px; }
.pequeno a { font-weight: 700; }
.quem { font-family: var(--f-type); font-size: .9rem; color: var(--ink-2); }

.google { margin-top: 20px; min-height: 44px; }
#loginTeste { margin-top: 16px; }

/* formulário */
form { display: grid; gap: 16px; margin-top: 18px; }
form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 700; font-size: .95rem; }
form label > input:not([type=radio]):not([type=checkbox]), form label > textarea, form label > select { flex-basis: 100%; }
/* caixa de texto; rádio e checkbox ficam no tamanho nativo (no Safari do iPhone o width: 100% esticava a bolinha e jogava o texto pra fora) */
form input:not([type=radio]):not([type=checkbox]) {
  font: 500 1.1rem/1.2 var(--f-body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  padding: 13px 14px; width: 100%;
}
form input:focus { outline: 3px solid var(--g-yellow); outline-offset: 1px; }
form .btn { justify-self: start; margin-top: 4px; }

/* resumo do pagamento: canhoto de ingresso */
.resumo {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
  margin: 18px 0; padding: 18px 20px;
  background: var(--red); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 8px;
  border-right-style: dashed;
}
.resumo__plano { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; }
.resumo__valor { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem); line-height: 1; }
.resumo__det { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; }

.arrependimento {
  padding: 14px 16px; border-left: 4px solid var(--g-green);
  background: rgba(47,179,107,.1); border-radius: 0 8px 8px 0;
  font-size: .97rem;
}
.aceite { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-weight: 600; cursor: pointer; }
.aceite input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red-deep); flex: none; }

/* Pix */
.pix__qr {
  display: block; margin: 20px auto 6px; width: 240px; height: 240px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 8px;
}
.pix__cc { display: grid; gap: 6px; margin: 16px 0 12px; font-weight: 700; font-size: .95rem; }
.pix__cc textarea {
  font: .85rem/1.35 var(--f-type); color: var(--ink); word-break: break-all;
  background: #fff; border: 2px dashed var(--ink); border-radius: 10px; padding: 10px; resize: none; width: 100%;
}
.pix__espera { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; }
.pontinho { width: 12px; height: 12px; border-radius: 50%; background: var(--g-yellow); border: 2px solid var(--ink); animation: pisca 1.2s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: .25; } }
#simular { margin-top: 16px; }

.pago__selo {
  display: inline-block; font-family: var(--f-display); font-size: 1.6rem; color: var(--red);
  border: 3px solid var(--red); border-radius: 8px; padding: 4px 14px; transform: rotate(-6deg);
  margin-bottom: 14px;
}
#pago .btn { margin-top: 18px; }

/* Área da família */
.dados { display: grid; gap: 8px; margin-top: 4px; }
.dados div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(42,22,15,.3); }
.dados dt { font-family: var(--f-type); color: var(--ink-2); font-size: .9rem; }
.dados dd { font-weight: 600; overflow-wrap: anywhere; }
.link-btn {
  font: 700 .95rem/1.3 var(--f-body); color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
.link-btn--perigo { color: var(--red-deep); }
.cartao > .btn { margin-top: 16px; }

.compras { display: grid; gap: 0; }
.compra { padding: 14px 0; border-bottom: 1px dashed rgba(42,22,15,.35); }
.st { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.st--ok { background: var(--g-green); color: #fff; }
.st--espera { background: var(--g-yellow); }
.st--off { background: transparent; color: var(--ink-2); border-color: rgba(42,22,15,.4); }
.confirma { padding: 12px 14px; background: #fff; border: 2px solid var(--red-deep); border-radius: 10px; }
.confirma div { margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .pontinho { animation: none; } }

/* ---------- festa (Área da família) ---------- */
.cartao { scroll-margin-top: 70px; }
.opc { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
form textarea {
  font: 500 1.05rem/1.35 var(--f-body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical;
}
form textarea:focus { outline: 3px solid var(--g-yellow); outline-offset: 1px; }


.presentes { margin-top: 16px; }
.convidado { padding: 14px 0; border-bottom: 1px dashed rgba(42,22,15,.35); }
.presente { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(42,22,15,.35); font-weight: 600; }
.presente a { overflow-wrap: anywhere; }

/* escolha do jogo: capas em grade */
.jogos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .jogos { grid-template-columns: repeat(3, 1fr); } }
.jogo {
  position: relative; display: grid; align-content: start; text-align: left;
  padding: 0; overflow: hidden; cursor: pointer;
  font: inherit; color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink); border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.jogo:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.jogo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-bottom: 2.5px solid var(--ink); }
.jogo { width: 100%; }
.jogo.is-escolhido { outline: 4px solid var(--red-deep); outline-offset: 2px; }
.convidado { padding: 14px 0; }
.acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.confirma { margin-top: 10px; }
.abertura { position: relative; margin: 0 auto; width: min(100%, 280px); background: var(--ink); border-radius: 36px; padding: 10px; }
.abertura__foto {
  position: relative; width: 78%; margin: 16px auto 0; aspect-ratio: 1;
  border: 5px solid var(--paper); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink), 5px 7px 0 3px var(--ink);
  background: var(--g-yellow); touch-action: none;
}
.abertura__foto img, .abertura__foto canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.abertura__foto canvas { cursor: grab; }
.abertura__foto canvas:active { cursor: grabbing; }
.abertura__nome { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin-top: 14px; text-shadow: .05em .05em 0 var(--ink); overflow-wrap: anywhere; }
.abertura__idade { font-family: var(--f-display); font-size: 1.05rem; }
.abertura__idade span { font-size: 1.8em; line-height: .8; vertical-align: -.12em; color: var(--g-yellow); text-shadow: 2px 2px 0 var(--ink); }

.abertura { user-select: none; -webkit-user-select: none; }
.artigo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.artigo legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.artigo label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.artigo input { width: 20px; height: 20px; padding: 0; accent-color: var(--red-deep); }

/* =========================================================
   Área da família: Início com o passo a passo; cada parte numa tela
   ========================================================= */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--ic { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--ic .ic { width: 19px; height: 19px; stroke-width: 2.4; }

/* aviso flutuante (vale também pro comprar.html) */
.aviso {
  position: fixed; z-index: 60; left: 50%; top: max(14px, env(safe-area-inset-top));
  transform: translateX(-50%); width: min(calc(100vw - 32px), 520px); margin: 0;
  box-shadow: 4px 4px 0 var(--ink); animation: aviso-entra .25s ease both;
}
@keyframes aviso-entra { from { opacity: 0; transform: translate(-50%, -12px); } }

.cartao > p:first-child { margin-top: 0; }
.jogos { margin-top: 0; }
.convidado { padding: 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; }
.acoes { display: grid; grid-template-columns: 1fr 1fr 46px; gap: 8px; margin-top: 12px; }

.resumo__festa { display: block; width: 100%; margin-top: 8px; font: 600 1rem var(--f-body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 10px; }
.ja-tem { margin: 0 0 18px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #FFF6D6; font-weight: 500; line-height: 1.45; }
.ja-tem a { color: var(--red-deep); font-weight: 700; }
/* celular estreito: o valor desce pra baixo do nome do plano em vez de vazar do canhoto */
.resumo { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 400px) {
  .resumo { grid-template-columns: 1fr; padding: 16px; }
  .resumo__valor { white-space: nowrap; }
}

/* cupom de desconto (comprar.html) */
.cupom { margin: -4px 0 18px; }
.cupom summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.cupom__linha { display: flex; gap: 8px; margin-top: 10px; }
.cupom__linha input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  font: 700 1rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.cupom__linha .btn { flex: none; }
.cupom__ok { margin: 10px 0 0; font-weight: 700; color: #1C7A45; }
/* cupom menor que a promoção: aviso pra comparar, não erro */
.cupom__ok--aviso { padding: 10px 12px; border-radius: 10px; background: #FFF4D6; border: 1.5px solid #E8B93A; color: #5A3B00; font-weight: 500; line-height: 1.45; }
.cupom__ok--aviso b { display: block; margin-bottom: 2px; font-weight: 700; }
.resumo__cheio { display: block; font-size: .5em; opacity: .7; margin-bottom: 2px; }
.promo-ok { margin: -6px 0 14px; }

/* ---------- leitura (comprar.html) ---------- */
/* canhoto: tijolo com texto creme, como o ingresso da página inicial */
.resumo { background: var(--red-fundo); color: var(--paper); }
.resumo__cheio { font-family: var(--f-body); font-weight: 700; font-size: .42em; opacity: .9; }
.passos .is-atual span { background: var(--red-fundo); }
.quem { font-family: var(--f-body); font-size: .95rem; }

/* ---------- aceite dos termos (comprar) ---------- */
.termos-pontos { margin: 18px 0 4px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: .95rem; }
.termos-pontos ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.termos-pontos summary { cursor: pointer; font-weight: 700; color: var(--red-titulo); }
.termos-pontos[open] summary { margin-bottom: 4px; }
.recebedor { margin: 16px 0 4px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-size: .95rem; }
.recebedor__tit { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.aceite a { color: var(--red-titulo); }

/* ---------- páginas legais (termos.html, privacidade.html) ---------- */
.legal { max-width: 760px; line-height: 1.6; }
.legal__versao { color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.legal h2 { font-family: var(--f-body); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 32px 0 8px; scroll-margin-top: 80px; }
.legal p, .legal li { font-size: 1rem; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.legal a { color: var(--red-titulo); text-underline-offset: 2px; }
.legal__resumo { margin: 20px 0 8px; padding: 16px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.legal__destaque { padding: 14px 16px; border-left: 5px solid var(--red-fundo); background: rgba(158,32,24,.07); border-radius: 0 10px 10px 0; }
.legal__destaque p + ul { margin-top: 6px; }
.legal__tabela { overflow-x: auto; margin: 10px 0; border: 1.5px solid rgba(42,22,15,.25); border-radius: 10px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9rem; line-height: 1.4; background: #fff; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid rgba(42,22,15,.15); }
.legal th { background: var(--ink); color: var(--paper); font-weight: 700; }
.legal__rodape { margin-top: 36px; padding-top: 16px; border-top: 1.5px solid rgba(42,22,15,.2); font-weight: 600; }
.legal-links { margin: 28px 0 0; text-align: center; font-size: .9rem; color: var(--ink-2); }
.legal-links a { color: inherit; }
.legal ul, .termos-pontos ul { list-style: disc; }
.legal li::marker, .termos-pontos li::marker { color: var(--red-fundo); }
/* tabela de dados no celular: cada linha vira um cartão com o rótulo antes do valor */
@media (max-width: 640px) {
  .legal__tabela { overflow: visible; border: 0; }
  .legal table { min-width: 0; background: none; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { display: block; margin-bottom: 10px; padding: 10px 12px; background: #fff; border: 1.5px solid rgba(42,22,15,.25); border-radius: 10px; }
  .legal td { display: block; padding: 3px 0; border: 0; }
  .legal td::before { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
  .legal td:nth-child(1) { font-weight: 700; font-size: 1rem; }
  .legal td:nth-child(2)::before { content: "Dados"; }
  .legal td:nth-child(3)::before { content: "Para quê"; }
  .legal td:nth-child(4)::before { content: "Base legal"; }
}
