/* =========================================================
   Golden Woman Club — tema
   Toda a identidade mora aqui. Quando a logo e os prints da
   Liandra chegarem, troque só os tokens deste bloco :root.
   ========================================================= */
:root {
  /* Cor — padrão do app da LIDERA (osso, bege e dourado) com o MARROM da logo
     no lugar da tinta ameixa (pedido da Liandra, 10/nov/2026: "marrom e beijinho") */
  --linho: #F6F2EC;          /* fundo osso */
  --linho-2: #F1EBE2;        /* faixa osso um tom abaixo */
  --areia: #E0D5C3;          /* bege mais fundo: trilhos, chips, hover */
  --papel: #EBE4DA;          /* CARTÕES: o bege predominante da LIDERA */
  --cafe: #3C2419;           /* tinta principal: chocolate */
  --cafe-2: #5C4033;         /* tinta secundária */
  --espresso: #321909;       /* superfícies escuras: o marrom da logo */
  --taupe: #7A6259;          /* texto de apoio */
  --dourado: #B08D4F;        /* ACENTO dourado: anel, check, fio */
  --dourado-texto: #8A6A33;  /* dourado legível em fundo claro */
  --dourado-claro: #F0E7D3;  /* dourado bem claro (dicas) */
  --nude: #E0D5C3;           /* bege das bordas */
  --caramelo: #A88550;       /* dourado envelhecido */
  --linha: #DDD1BD;          /* bordas e divisórias */
  --sucesso: #8A6A33;        /* positivo: dourado escuro */
  --alerta: #9A6A6A;         /* atenção: rosado queimado da própria LIDERA */
  --sobre-escuro: #F6F2EC;
  --sobre-escuro-2: #D4B87E;
  --sobre-acento: #321909;
  --acento-rgb: 176, 141, 79;
  --sobre-escuro-rgb: 246, 242, 236;
  --couro: linear-gradient(transparent, transparent); /* LIDERA: blocos escuros lisos, sem textura */

  /* Letra */
  --f-display: "Fraunces", Georgia, serif;
  --f-texto: "Karla", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-assinatura: "Pinyon Script", "Snell Roundhand", cursive;

  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-22: 1.375rem;
  --t-28: 1.75rem;
  --t-36: 2.25rem;
  --t-48: 3rem;

  /* Forma */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --sombra: 0 1px 2px rgba(50, 25, 9, .06), 0 8px 24px -12px rgba(50, 25, 9, .18);
  --sombra-alta: 0 24px 60px -20px rgba(50, 25, 9, .38);

  /* Movimento */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --rapido: 180ms;
  --medio: 320ms;
  --lento: 700ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linho: #1C130E; --linho-2: #231811; --areia: #33241B; --papel: #281B14;
    --cafe: #F6F2EC; --cafe-2: #E0D5C3; --espresso: #120C08; --taupe: #C2B0A5;
    --dourado: #D4B87E; --dourado-texto: #D4B87E; --dourado-claro: #3A3020; --nude: #4A3C2A; --caramelo: #C9A66B;
    --linha: #44322A; --sucesso: #D4B87E; --alerta: #E2AD8E; --acento-rgb: 212, 184, 126;
    --sombra: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --linho: #1C130E; --linho-2: #231811; --areia: #33241B; --papel: #281B14;
    --cafe: #F6F2EC; --cafe-2: #E0D5C3; --espresso: #120C08; --taupe: #C2B0A5;
    --dourado: #D4B87E; --dourado-texto: #D4B87E; --dourado-claro: #3A3020; --nude: #4A3C2A; --caramelo: #C9A66B;
    --linha: #44322A; --sucesso: #D4B87E; --alerta: #E2AD8E; --acento-rgb: 212, 184, 126;
  --sombra: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linho);
  color: var(--cafe);
  font-family: var(--f-texto);
  font-size: var(--t-16);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--dourado-claro); }

.icone { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icone.p { width: 18px; height: 18px; }
.icone.g { width: 28px; height: 28px; }

/* ---------- tipografia ---------- */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
.display em { font-style: italic; font-weight: 400; }
.h1 { font-size: clamp(2rem, 6vw, var(--t-48)); }
.h2 { font-size: clamp(1.6rem, 4.4vw, var(--t-36)); }
.h3 { font-size: var(--t-28); }
.h4 { font-size: var(--t-22); }
.olho {
  font-family: var(--f-texto); font-size: var(--t-12); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dourado-texto); margin: 0;
}
.apoio { color: var(--taupe); }
.p { font-size: var(--t-14); }
.assinatura { font-family: var(--f-assinatura); font-size: 2.1rem; color: var(--dourado-texto); line-height: 1; }
.num { font-family: var(--f-display); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- marca: logo oficial do Golden Woman Club ----------
   Duas imagens (chocolate e creme), sem máscara de CSS: máscara não carrega
   quando a página é aberta direto do arquivo (file://). */
.marca-gw { display: inline-block; width: var(--w, 112px); flex: none; line-height: 0; }
.marca-gw img { display: block; width: 100%; height: auto; }
.marca-gw .m-clara { display: none; }
/* fundos escuros (couro) usam a logo creme */
.final-lp .marca-gw .m-escura, .entrar .lado-escuro .marca-gw .m-escura, .p-lateral .marca-gw .m-escura,
.previa-email .topo-email .marca-gw .m-escura, .capa-prod.tom-escuro .marca-gw .m-escura, .loja-item .capa.tom-escuro .marca-gw .m-escura,
.emblema-couro .marca-gw .m-escura { display: none; }
.final-lp .marca-gw .m-clara, .entrar .lado-escuro .marca-gw .m-clara, .p-lateral .marca-gw .m-clara,
.previa-email .topo-email .marca-gw .m-clara, .capa-prod.tom-escuro .marca-gw .m-clara, .loja-item .capa.tom-escuro .marca-gw .m-clara,
.emblema-couro .marca-gw .m-clara { display: block; }
:root[data-theme="dark"] .marca-gw .m-escura { display: none; }
:root[data-theme="dark"] .marca-gw .m-clara { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marca-gw .m-escura { display: none; }
  :root:not([data-theme="light"]) .marca-gw .m-clara { display: block; }
}
.selo-gw { display: inline-grid; place-items: center; width: 34px; height: 38px; position: relative; color: var(--cafe); }
.selo-gw svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--dourado); }
.selo-gw b { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin-top: 8px; }

/* superfícies escuras usam var(--couro) sobre var(--espresso), como o fundo da logo */

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: var(--t-16); letter-spacing: .01em;
  transition: background var(--rapido) var(--ease), color var(--rapido) var(--ease), transform var(--rapido) var(--ease), border-color var(--rapido);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-escuro { background: var(--cafe); color: var(--linho); }
.btn-escuro:hover { background: var(--cafe-2); }
.btn-claro { background: var(--papel); color: var(--cafe); border: 1px solid var(--linha); }
.btn-claro:hover { border-color: var(--dourado); }
.btn-ouro { background: var(--dourado); color: var(--sobre-acento); }
.btn-ouro:hover { filter: brightness(1.05); }
.btn-texto { min-height: 44px; padding: 0 6px; color: var(--cafe); text-decoration: underline; text-decoration-color: var(--dourado); text-underline-offset: 5px; border-radius: 8px; }
.btn-icone { width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; transition: background var(--rapido); }
.btn-icone:hover { background: var(--areia); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.feito { background: transparent; color: var(--sucesso); border: 1px solid currentColor; }

/* ---------- superfícies ---------- */
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--r-l); padding: 22px; box-shadow: var(--sombra); }
.cartao-escuro { background: var(--couro), var(--espresso); color: var(--sobre-escuro); border-radius: var(--r-l); padding: 24px; position: relative; overflow: hidden; }
.cartao-escuro .apoio { color: var(--sobre-escuro-2); }
.cartao-escuro .olho { color: var(--dourado); }
.fio { height: 1px; background: var(--linha); border: 0; margin: 0; }
.fio-ouro { height: 1px; width: 48px; background: var(--dourado); border: 0; margin: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--linha); background: var(--papel);
  font-size: var(--t-14); color: var(--cafe-2); white-space: nowrap; text-decoration: none; transition: all var(--rapido) var(--ease);
}
.chip:hover { border-color: var(--dourado); }
.chip.ativo { background: var(--cafe); color: var(--linho); border-color: var(--cafe); }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--t-12); font-weight: 500; background: var(--areia); color: var(--cafe-2); }
.selo.ouro { background: var(--dourado-claro); color: var(--dourado-texto); }
.selo.ok { background: color-mix(in srgb, var(--sucesso) 14%, transparent); color: var(--sucesso); }
.selo.aviso { background: color-mix(in srgb, var(--alerta) 14%, transparent); color: var(--alerta); }

/* ---------- barra de progresso ---------- */
.barra { height: 4px; border-radius: 4px; background: var(--areia); overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--dourado); border-radius: inherit; transform-origin: left; transition: width var(--lento) var(--ease); }

/* ---------- campos ---------- */
.campo { display: grid; gap: 6px; }
.campo label { font-size: var(--t-14); font-weight: 500; color: var(--cafe-2); }
.campo .dica { font-size: var(--t-12); color: var(--taupe); }
.entrada {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-m);
  border: 1px solid var(--linha); background: var(--papel); transition: border-color var(--rapido);
}
.entrada:focus { outline: none; border-color: var(--dourado); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dourado) 22%, transparent); }
textarea.entrada { min-height: 110px; resize: vertical; line-height: 1.5; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--couro), var(--espresso); color: var(--sobre-escuro); box-shadow: var(--sombra-alta);
  font-size: var(--t-14); animation: toast-in var(--medio) var(--ease);
}
.toast b { font-family: var(--f-display); font-size: var(--t-22); font-weight: 600; color: var(--dourado); line-height: 1; }
.toast .marca-pts { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--dourado); display: grid; place-items: center; }
.toast.saindo { animation: toast-out 220ms var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (min-width: 1024px) { .toasts { bottom: 32px; } }

/* ---------- modal ---------- */
.veu { position: fixed; inset: 0; background: rgba(30, 15, 6, .52); z-index: 80; display: grid; align-items: end; justify-items: center; animation: fade var(--medio) var(--ease); }
.folha {
  width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--linho);
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  animation: sobe var(--medio) var(--ease);
}
@media (min-width: 720px) { .veu { align-items: center; } .folha { border-radius: var(--r-xl); padding: 36px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } }

/* ---------- utilitários ---------- */
.linha-flex { display: flex; align-items: center; gap: 12px; }
.entre { justify-content: space-between; }
.pilha { display: grid; gap: 16px; }
.pilha > *, .pilha-g > * { min-width: 0; }
.pilha-g { display: grid; gap: 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rolar-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rolar-x::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* visual LIDERA (10/nov): cartões bege; campos de texto em osso para não sumirem dentro do cartão */
.entrada { background: var(--linho); }
