/* Identidade do Guilherme Avelino: preto, branco e o azul da logo. */
:root {
  --bg: #000000;
  --surface: #0c0f14;
  --line: #232b38;
  --text: #ffffff;
  --muted: #a9b2c0;
  --faint: #7f8896;
  --blue: #0a60f0;
  /* O azul da logo não tem contraste para texto pequeno sobre preto; textos usam este tom mais claro. */
  --blue-soft: #5b97ff;
  --danger: #ff8a8a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue-soft); }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
h1:focus { outline: none; }
noscript { display: block; padding: 24px; text-align: center; color: var(--muted); }

.page { min-height: 100vh; min-height: 100dvh; max-width: 430px; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 46% at 50% 0%, rgba(10, 96, 240, .20), transparent 62%); }
.brand { display: flex; justify-content: center; margin-bottom: 12px; }
.brand img { width: 62px; height: 57px; object-fit: cover; mix-blend-mode: screen; }
.progress { height: 4px; border-radius: 99px; background: #1a2029; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--blue); border-radius: 99px; transition: width .25s ease; }
.body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.eyebrow { margin: 0 0 20px; color: var(--blue-soft); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.meta { display: flex; justify-content: space-between; margin-bottom: 10px; }
.label { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.label.accent { color: var(--blue-soft); }

/* Capa */
.cover { text-align: center; align-items: center; }
.cover h1 { font-size: 27px; }
.cover .lede { max-width: 320px; margin-inline: auto; }
.portraits { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.portrait { position: relative; width: 118px; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, .92); background: var(--surface); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.solo .portrait { width: 132px; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, .72); font-size: 12px; line-height: 1; font-weight: 700; text-align: center; }
.plus { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: 18px; font-weight: 700; line-height: 1; }

/* Opções: tocar já avança */
.options { display: grid; gap: 10px; margin: 8px 0 4px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); font-size: 15px; line-height: 1.3; cursor: pointer; }
.option-key { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid #4a5567; color: var(--muted); font-size: 12px; font-weight: 700; }
.option.selected { border-color: var(--blue); background: rgba(10, 96, 240, .16); }
.option.selected .option-key { border-color: var(--blue-soft); background: var(--blue); color: #fff; }

/* Campos */
.group { margin-bottom: 14px; }
.group > .label { display: block; margin-bottom: 6px; }
.field { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
textarea.field { resize: vertical; min-height: 112px; line-height: 1.45; }
.field::placeholder { color: #6f7a8a; }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.field-error:empty { display: none; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.prefix .field { padding-left: 34px; }
.notice { margin: 12px 0 0; font-size: 12px; text-align: center; }

/* Botões */
.actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.primary { flex: 1; padding: 15px 18px; border: 0; border-radius: 16px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; text-align: center; text-decoration: none; }
.cover .primary, .block { flex: 0 0 auto; width: 100%; margin-top: 8px; display: block; }
.back { padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line); background: transparent; font-size: 15px; color: var(--muted); cursor: pointer; }
.hint { margin: 12px 0 0; font-size: 12.5px; }

/* Redirecionamento */
.redirect { margin: 6px 0 14px; }
.redirect-bar { display: block; height: 4px; border-radius: 99px; background: #1a2029; overflow: hidden; margin-bottom: 10px; }
.redirect-bar span { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: 99px; transform-origin: left; animation: fill 1.6s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .redirect-bar span { animation: none; } .progress span { transition: none; } }

.footer { margin-top: 22px; display: flex; justify-content: space-between; gap: 14px; }
.footer a { color: var(--faint); text-decoration: none; font-size: 11px; }

/* Páginas legais */
.legal-page { width: min(100% - 40px, 760px); margin: 0 auto; padding: 24px 0 72px; }
.legal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; font-size: 14px; }
.legal-topbar a { color: var(--muted); text-decoration: none; }
.legal-back::before { content: "←"; margin-right: 8px; color: var(--blue-soft); }
.legal-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-header img { width: 62px; height: 57px; object-fit: cover; mix-blend-mode: screen; margin-bottom: 18px; }
.legal-header h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
.legal-summary { max-width: 62ch; margin: 0; font-size: 17px; }
.legal-updated { margin: 12px 0 0; color: var(--faint); font-size: 13px; font-weight: 600; }
.legal-document section { padding-top: 34px; scroll-margin-top: 24px; }
.legal-document section + section { margin-top: 34px; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; }
.legal-document p, .legal-document li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-document p { max-width: 72ch; margin: 0 0 12px; }
.legal-document ul { margin: 0 0 12px; padding-left: 20px; }
.legal-document strong { color: var(--text); }
.legal-footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 14px; }
