/* e2.css | páginas de conta do Organizador Grupo VIP v3 (E2). Desenho do Kauan (04/11/2026), sem o painel de controles do protótipo.
   Tokens e componentes são cópia fiel de app/css/tokens.css e componentes.css; o que é novo está na seção "E2" no fim.
   Nenhum atributo style no HTML (CSP das páginas de conta). Fontes em /conta-assets/fontes/ (licenças OFL ao lado). */

@font-face { font-family: Archivo; src: local("Archivo"), url("fontes/Archivo-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Karla; src: local("Karla"), url("fontes/Karla-VF.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- tokens (tokens.css, só os usados aqui) ---------- */
:root {
  --fl-green-1: #00FE84; --fl-green-2: #00C88B; --fl-green-3: #00A490;
  --fl-gradient: linear-gradient(135deg, #00FE84 0%, #00C88B 50%, #00A490 100%);
  --fl-purple: #100443; --fl-cream: #E6E6DD; --fl-lilac: #F3EFFF;
  --font-display: Archivo, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: Karla, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-28: 1.75rem; --fs-36: 2.25rem;
  --lh-tight: 1.15; --lh-body: 1.5;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 56px;
  --gutter: 16px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --tap: 44px; --btn-h: 48px; --btn-h-lg: 56px; --field-h: 52px; --focus-w: 3px;
  --ease: cubic-bezier(.2, .8, .2, 1); --t-fast: .15s; --t-med: .28s;
  color-scheme: light;
  --bg: #F6F4FB; --surface: #FFFFFF; --surface-2: #EEEAF8;
  --ink: #100443; --ink-2: #4A4470; --ink-3: #6B6592;
  --line: #E2DCF1; --line-strong: #8A83B5;
  --accent-text: #00695C; --on-brand: #100443; --focus: #4A27D0;
  --side-bg: #100443; --side-ink: #F3EFFF; --side-ink-2: #BDB4E6;
  --ok-bg: #DDF8EC; --ok-ink: #00513F; --ok-line: #00A490;
  --warn-bg: #FFF4CC; --warn-ink: #5C4300; --warn-line: #D99A00;
  --err-bg: #FDEDEC; --err-ink: #A8261F; --err-line: #E2544B;
  --pend-bg: #E3EEFF; --pend-ink: #0B3F94; --pend-line: #2F6FDE;
  --priv-bg: #E4DCFF; --priv-ink: #100443; --priv-line: #5B33E6;
  --shadow-1: 0 1px 2px rgba(16, 4, 67, .06), 0 2px 8px rgba(16, 4, 67, .06);
  --shadow-2: 0 8px 28px rgba(16, 4, 67, .16);
}

/* ---------- base (base.css) ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #E9E6F2; color: var(--ink); font: 400 var(--fs-16)/var(--lh-body) var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: var(--lh-tight); letter-spacing: -0.01em; font-weight: 800; text-transform: none; }
h1 { font-size: var(--fs-28); }
h2 { font-size: var(--fs-20); font-weight: 700; }
h3 { font-size: var(--fs-16); font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-14); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }  /* o foco no título é só para o leitor de tela; não é alvo de teclado (tabindex -1) */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-6); }

/* ---------- botões (componentes.css) ---------- */
.btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--btn-h); padding: 0 var(--sp-5); border: 1.5px solid transparent; border-radius: var(--r-md); font: 700 var(--fs-16)/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast), background var(--t-fast), border-color var(--t-fast); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fl-gradient); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 16px rgba(0, 164, 144, .26); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); padding: 0 var(--sp-3); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-link { color: var(--accent-text); padding: 0 var(--sp-2); min-height: var(--tap); text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { min-height: var(--btn-h-lg); font-size: var(--fs-18); border-radius: var(--r-lg); padding: 0 var(--sp-6); }
.btn-sm { min-height: var(--tap); padding: 0 var(--sp-4); font-size: var(--fs-14); }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface-2); color: var(--ink-2); border: 1.5px dashed var(--line-strong); box-shadow: none; cursor: not-allowed; filter: none; transform: none; }

/* ---------- campo (componentes.css) ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-weight: 700; font-size: var(--fs-16); }
.field__label small { font-weight: 500; color: var(--ink-2); font-size: var(--fs-14); margin-left: 6px; }
.field__control { width: 100%; min-height: var(--field-h); padding: 10px 14px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font: 500 var(--fs-16)/1.3 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field__control::placeholder { color: var(--ink-3); opacity: 1; }
.field__control:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(74, 39, 208, .22); }
.field__hint { font-size: var(--fs-14); color: var(--ink-2); }
.field__msg { font-size: var(--fs-14); font-weight: 700; }
.field--error .field__control { border-color: var(--err-line); border-width: 3px; }
.field--error .field__msg { color: var(--err-ink); }
.field--error .field__msg::before { content: "× "; }
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; min-height: var(--tap); padding: 8px 0; font-weight: 700; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--ink); }
.check small { display: block; font-weight: 500; color: var(--ink-2); font-size: var(--fs-14); }
.check a { font-weight: 700; }
.field--error .check input { outline: 3px solid var(--err-line); outline-offset: 2px; }

/* ---------- chip, banner, cartão, vazio, logo (componentes.css) ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 10px; border-radius: var(--r-pill); border: 1.5px solid var(--chip-line, var(--line-strong)); background: var(--chip-bg, var(--surface)); color: var(--chip-ink, var(--ink)); font: 700 var(--fs-13)/1.1 var(--font-body); white-space: nowrap; }
.chip-ok { --chip-bg: var(--ok-bg); --chip-ink: var(--ok-ink); --chip-line: var(--ok-line); }
.chip-ok::before { content: "✓"; }
.chip-priv { --chip-bg: var(--priv-bg); --chip-ink: var(--priv-ink); --chip-line: var(--priv-line); }
.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1.5px solid var(--b-line, var(--line-strong)); background: var(--b-bg, var(--surface)); color: var(--b-ink, var(--ink)); font-size: var(--fs-14); line-height: 1.45; }
.banner .ic { margin-top: 1px; width: 20px; height: 20px; }
.banner__corpo { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; flex: 1; }
.banner__acoes { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.banner .btn-link { padding: 0; min-height: 32px; color: inherit; }
.banner .btn-sm { color: var(--ink); }
.banner-warn { --b-bg: var(--warn-bg); --b-ink: var(--warn-ink); --b-line: var(--warn-line); }
.banner-err { --b-bg: var(--err-bg); --b-ink: var(--err-ink); --b-line: var(--err-line); }
.banner-pend { --b-bg: var(--pend-bg); --b-ink: var(--pend-ink); --b-line: var(--pend-line); }
.banner-ok { --b-bg: var(--ok-bg); --b-ink: var(--ok-ink); --b-line: var(--ok-line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.logo-mini { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--fl-green-1); display: grid; place-items: center; font: 800 15px/1 var(--font-display); flex: none; }
.vazio__ic { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.vazio__ic .ic { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ==========================================================================
   E2 | novo nesta etapa
   ========================================================================== */

/* moldura: o container que faz o papel da janela (container-type); em produção ocupa a janela inteira. */
.moldura { container: pub / inline-size; width: 100%; min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; margin: 0 auto; }

/* casca pública: celular e tablet = uma coluna. Computador (>= 880): lado escuro + coluna do formulário */
.pub { flex: 1; display: flex; flex-direction: column; min-height: inherit; }
.pub__lado { display: none; }
.pub__col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pub__topo { display: flex; align-items: center; padding: var(--sp-4) var(--gutter) var(--sp-2); }
.marca { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1.1 var(--font-display); color: var(--ink); text-decoration: none; }
.marca small { display: block; font: 500 var(--fs-13)/1.2 var(--font-body); color: var(--ink-2); }
.pub__main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-7); display: flex; flex-direction: column; }
.painel { display: flex; flex-direction: column; gap: var(--sp-6); }
.painel__cab { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.painel__cab .lead { color: var(--ink-2); }
.pub__rodape { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-5) var(--gutter) var(--sp-6); color: var(--ink-2); font-size: var(--fs-14); text-align: center; }
.pub__rodape nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.pub__rodape nav a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* "um produto FarLink": logo discreta. ESPAÇO RESERVADO: não há arquivo de logo no projeto; Kevin troca o texto pelo SVG oficial quando o Farley enviar */
.farlink { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-13); color: var(--ink-2); }
.farlink__logo { display: inline-flex; align-items: center; gap: 6px; font: 800 15px/1 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.farlink__logo::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--fl-gradient); }

@container pub (min-width: 600px) {
  .pub__main { padding-top: var(--sp-7); }
  .painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-8); box-shadow: var(--shadow-1); }
}
@container pub (min-width: 880px) {
  .pub { flex-direction: row; }
  .pub__lado { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 38%; min-width: 340px; max-width: 520px; background: var(--side-bg); color: var(--side-ink); padding: var(--sp-9) var(--sp-8) var(--sp-7); }
  .pub__lado .marca { color: #fff; }
  .pub__lado .marca small { color: var(--side-ink-2); }
  .pub__lado .logo-mini { background: var(--fl-gradient); color: var(--on-brand); width: 44px; height: 44px; }
  .pub__lado h2 { font-size: var(--fs-28); color: #fff; max-width: 14ch; margin-top: var(--sp-9); }
  .pub__lado p { color: var(--side-ink-2); margin-top: var(--sp-3); max-width: 32ch; }
  .pub__lado .farlink, .pub__lado .farlink__logo { color: var(--side-ink-2); }
  .pub__lado .farlink__logo { color: #fff; }
  .pub__topo { display: none; }
  .pub__main { justify-content: center; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
  .painel { padding: var(--sp-8) 48px; }
  h1 { font-size: var(--fs-36); }
  .so-estreito { display: none !important; }
}

/* senha com Mostrar/Ocultar dentro do campo (alvo de 44 px) */
.senha { position: relative; }
.senha .field__control { padding-right: 108px; }
.senha__ver { appearance: none; position: absolute; right: 4px; top: 4px; min-height: 44px; min-width: 44px; padding: 0 var(--sp-3); border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 800 var(--fs-14)/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.senha__ver:hover { background: var(--surface-2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.alinha-centro { align-self: center; }
.texto-centro { text-align: center; }

/* campo isca (honeypot): fora da tela e fora do leitor de tela, sem display:none (robô simples preenche o que está no DOM) */
.isca { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* aviso geral: região viva sempre no DOM; vazia não ocupa espaço */
.aviso:empty { display: none; }
.aviso > .banner { margin: 0; }
.aviso__tempo { font-weight: 800; font-variant-numeric: tabular-nums; }

/* bloco de estado (aguardando, confirmando, confirmado, link inválido, e-mail enviado) */
.estado { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); }
.estado .lead { color: var(--ink-2); max-width: 36ch; }
.estado .vazio__ic--ok { background: var(--fl-gradient); color: var(--on-brand); }
.estado .vazio__ic--warn { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 2px var(--warn-line); }
.estado .vazio__ic--err { background: var(--err-bg); color: var(--err-ink); box-shadow: inset 0 0 0 2px var(--err-line); }
.estado__email { padding: 8px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1.5px dashed var(--line-strong); font-weight: 700; overflow-wrap: anywhere; max-width: 100%; }
.estado__email:empty { display: none; }
.estado__acoes { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; align-items: stretch; }
.estado form { width: 100%; text-align: left; }
.rodape-acoes { display: flex; flex-direction: column; gap: var(--sp-1); align-items: center; }
.sep { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-2); font-size: var(--fs-14); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chamada { display: flex; flex-direction: column; gap: var(--sp-2); text-align: center; }

/* carregando */
.gira { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--ink); animation: gira .9s linear infinite; }
.btn.is-enviando::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--ink); animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gira, .btn.is-enviando::before { animation: none; border-top-color: var(--line-strong); } }

/* Minha conta (provisória) */
.logada { flex: 1; display: flex; flex-direction: column; min-height: inherit; }
.topo { flex: none; display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; padding: 0 var(--sp-2) 0 var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.topo .marca { flex: 1; min-width: 0; }
.logada__main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-5); }
.conta-cols { display: flex; flex-direction: column; gap: var(--sp-5); }
.conta-cols > div { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.kv-lista { margin: 0; display: flex; flex-direction: column; }
.kv { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-weight: 600; font-size: var(--fs-14); color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.sessoes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sessao { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.sessao:first-child { border-top: 0; padding-top: 0; }
.sessao__topo { display: flex; gap: var(--sp-2); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sessao b { font-weight: 800; }
@container pub (min-width: 600px) { .logada__main { padding-top: var(--sp-7); } .topo { padding-left: var(--sp-6); } }
@container pub (min-width: 880px) {
  .conta-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
  .topo { padding-left: var(--sp-8); padding-right: var(--sp-6); }
  .logada__main { padding-inline: var(--sp-8); }
}
