/* Fundamentos visuais compartilhados */
:root {
  color-scheme: dark;
  --ink: #08090d;
  --ink-2: #0d0e13;
  --ink-3: #14151c;
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2f2f5;
  --mute: #9c9ca8;
  --dim: #63636e;
  --sig: #a5b0ff;          /* acento */
  --sig-ink: #060607;
  --acc: #7c86ff;
  --cyan: #7dd3fc;
  --vio: #a78bfa;
  --hot: #fb7185;
  --amber: #fbbf24;
  --ok: #34d399;
  --r: 12px;
  --display: 'Geist', 'Inter', system-ui, sans-serif;
  --body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(124, 134, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: .74em; letter-spacing: .08em; text-transform: uppercase; }
.mute { color: var(--mute); }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.05em; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 500; font-size: .9rem;
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .2s, transform .15s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sig { background: #f4f4f5; color: #09090b; border-color: #f4f4f5; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 0 rgba(165, 176, 255, 0); }
.btn-sig:hover { background: #fff; border-color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 34px -6px rgba(165, 176, 255, .65); }
.btn-sm { padding: .42em .8em; font-size: .82rem; border-radius: 8px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn-ghost:hover { background: var(--panel-2); border-color: transparent; color: var(--text); }

.campo { display: grid; gap: .35rem; }
.campo > span { font-size: .76rem; font-weight: 500; color: var(--mute); }
.in, select.in, textarea.in {
  width: 100%; padding: .6em .8em; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); color: var(--text); transition: border-color .15s, box-shadow .15s; font-size: .9rem;
}
.in::placeholder { color: var(--dim); }
.in:hover { border-color: var(--line-2); }
.in:focus { outline: none; border-color: rgba(165, 176, 255, .7); box-shadow: 0 0 0 3px rgba(124, 134, 255, .16); }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238f8f99' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; padding-right: 2.2em; }
select.in option, select.in optgroup { background: #14151c; color: var(--text); }
select.in optgroup { color: #a5b0ff; font-style: normal; font-weight: 600; }
textarea.in { resize: vertical; min-height: 7em; line-height: 1.5; }

.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .98rem; letter-spacing: -.03em; }
.logo svg { width: 22px; height: 22px; flex: none; }
.logo b { font-weight: 600; color: var(--mute); }

.aviso { padding: .65em .9em; border-radius: 10px; font-size: .86rem; border: 1px solid; }
.aviso.erro { color: #fecdd3; border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .07); }
.aviso.ok { color: #a7f3d0; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06); }
.aviso.info { color: #c7d2fe; border-color: rgba(124, 134, 255, .3); background: rgba(124, 134, 255, .07); }
[hidden] { display: none !important; }

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