/* ================================================================
   Onboarding Climb - estilos base
   Identidade: preto profundo + verde (#0dff7f) + tipografia limpa.
   Mobile-first. Sem travessoes. Alto contraste.
   ================================================================ */
:root {
  --bg: #0a0a0f;
  --surface: #12131a;
  --surface-2: #1b1d26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #f5f6f8;
  --muted: #9aa0ad;
  --accent: #0dff7f;
  --accent-ink: #052b17;
  --danger: #ff5c7a;
  --warn: #ffc857;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code, kbd, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: rgba(10, 10, 15, 0.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; font-size: 1.05rem; }
.brand-logo { width: 28px; height: 28px; }
.brand small { color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.topbar .user { color: var(--muted); font-size: 0.88rem; display: flex; gap: 10px; align-items: center; }

/* ---- layout ---- */
.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.narrow { max-width: 720px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { flex: 1 1 260px; min-width: 240px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { margin-top: 0; font-size: 1.2rem; }
.card h3 { margin-top: 0; font-size: 1.0rem; color: var(--accent); letter-spacing: 0.01em; }
h1 { font-size: 1.8rem; letter-spacing: -0.01em; margin: 0 0 10px; }
h1 .accent { color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill.ok { background: rgba(13, 255, 127, 0.12); color: var(--accent); border-color: rgba(13, 255, 127, 0.4); }
.pill.warn { background: rgba(255, 200, 87, 0.12); color: var(--warn); border-color: rgba(255, 200, 87, 0.4); }
.pill.err { background: rgba(255, 92, 122, 0.12); color: var(--danger); border-color: rgba(255, 92, 122, 0.4); }
.pill.muted { color: var(--muted); }

/* ---- formularios ---- */
.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--fg); font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; padding: 10px 12px; background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 255, 127, 0.18); }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; }
.choice input[type="radio"] { accent-color: var(--accent); }

/* ---- botoes ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--fg); cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255, 92, 122, 0.4); }
.btn.small { padding: 6px 10px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---- painel ---- */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
table.list th { color: var(--muted); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.72rem; }
table.list tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.list a { color: var(--fg); }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--fg); word-break: break-word; }

/* ---- briefing (cliente) ---- */
.pbar-wrap { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.08); z-index: 100; }
.pbar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #51ffb1); transition: width .4s ease; }

.step-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(13,255,127,0.12); color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.bloco { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
.bloco h2 { margin: 0 0 6px; font-size: 1.35rem; }
.bloco .bloco-intro { color: var(--muted); margin: 0 0 18px; font-size: 0.98rem; }
.pergunta { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.pergunta:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pergunta label.main { font-weight: 700; font-size: 1.02rem; display: block; margin-bottom: 10px; }
.toggle-audio { display: inline-flex; gap: 6px; font-size: 0.88rem; color: var(--muted); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; cursor: pointer; margin-top: 6px; }
.toggle-audio:hover { color: var(--accent); border-color: var(--accent); }

.audio-box { margin-top: 10px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.audio-box .status { font-size: 0.85rem; margin-top: 8px; color: var(--muted); }
.audio-box audio { width: 100%; margin-top: 8px; }

.saved-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-left: 8px; vertical-align: middle; transition: background .2s; }
.saved-dot.ok { background: var(--accent); }
.saved-dot.pending { background: var(--warn); }
.saved-dot.err { background: var(--danger); }

.nav-briefing { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.conclusao { padding: 30px; text-align: center; background: linear-gradient(180deg, var(--surface) 0%, rgba(13,255,127,0.08) 100%); border: 1px solid rgba(13,255,127,0.3); }

/* ---- utilidades ---- */
.muted { color: var(--muted); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.space-y > * + * { margin-top: 10px; }
.text-sm { font-size: 0.88rem; }

/* ---- responsivo ---- */
@media (max-width: 640px) {
  .wrap { padding: 16px 12px 48px; }
  .card { padding: 16px; }
  h1 { font-size: 1.4rem; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 8px; }
  table.list th, table.list td { padding: 10px 6px; font-size: 0.85rem; }
}
