/* Tokens e base partilhados pelo formulário e pelo painel. Identidade CRIE: preto + dourado #D2B08A, Bricolage Grotesque + Unbounded. */
@import url('/fonts/fonts.css');

:root {
  --bg: #050505;
  --surface: #0f0e0d;
  --surface-2: #171512;
  --line: #2a2621;
  --line-2: #3a342c;
  --text: #f4efe7;
  --muted: #a39b8f;
  --faint: #6f685e;
  --gold: #d2b08a;
  --gold-hi: #e6cba9;
  --gold-lo: #8f7656;
  --gold-soft: rgba(210, 176, 138, 0.1);
  --gold-line: rgba(210, 176, 138, 0.38);
  --danger: #e8806a;
  --ok: #8fc7a0;
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* grão subtil, como nas peças do CRIE */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #000; }

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; display: block; line-height: 1.1; }
.brand span { font-size: 12px; color: var(--muted); display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn-gold { background: var(--gold); color: #0b0a09; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:active { transform: scale(0.98); }
.btn-gold:disabled { opacity: 0.32; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold-line); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.input:hover { border-color: var(--gold-line); }
.input:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }

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