/* Rafaine — tokens e estilos compartilhados (app + site) */
:root {
  --bg: #0e0e10;
  --surface: #161619;
  --surface-2: #1d1d21;
  --surface-3: #25252a;
  --border: #2c2b30;
  --border-strong: #3a3940;
  --gold: #c9955a;
  --gold-2: #e4b67c;
  --gold-soft: rgba(201, 149, 90, 0.14);
  --text: #f2eee8;
  --muted: #a7a29a;
  --faint: #77736d;
  --good: #4cbf8a;
  --good-soft: rgba(76, 191, 138, 0.14);
  --bad: #e2706a;
  --bad-soft: rgba(226, 112, 106, 0.14);
  --warn: #e3ac4f;
  --warn-soft: rgba(227, 172, 79, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: Georgia, "Times New Roman", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold-2); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-brand); letter-spacing: 0.14em; font-size: 17px; line-height: 1; }
.brand-sub { display: block; font-family: var(--font); font-size: 9.5px; letter-spacing: 0.32em; color: var(--gold); margin-top: 4px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; color: var(--text);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; color: #1a1206; }
.btn-primary:hover { background: linear-gradient(180deg, #ecc28d, #d29f63); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { border-color: rgba(226,112,106,.5); color: var(--bad); background: transparent; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
