/* ============================================================
   OrdemIA · brand.css — tokens da marca e elementos base
   Regra 60/30/10: clareza (off-white/branco) / autoridade
   (marinho/petróleo) / progresso (verde, só para ação e avanço)
   ============================================================ */

:root {
  --bg: #f5f8f6;
  --paper: #ffffff;
  --ink: #102126;
  --muted: #5d7076;
  --line: #dce7e4;
  --green: #00b978;
  --green-strong: #008d63;
  --lime: #a6e84c;
  --navy: #0b2e59;
  --petrol: #0e4d58;
  --petrol-dark: #072a30;
  --violet: #6747ff;
  --gold: #c59738;
  --red: #c75d5d;
  --soft-green: #e5f8f0;
  --soft-blue: #edf4fb;
  --soft-lime: #f0fadf;
  --soft-red: #faecec;
  --soft-gold: #faf3e3;
  --soft-violet: #f0edff;
  --shadow: 0 18px 48px rgba(8, 39, 45, 0.08);
  --shadow-card: 0 10px 24px rgba(8, 39, 45, 0.05);
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --display: Montserrat, Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 185, 120, 0.08), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Tipografia ===== */

h1, h2, h3, h4 {
  margin: 0;
  color: var(--petrol-dark);
  font-family: var(--display);
}

h1 { max-width: 740px; font-size: 52px; line-height: 1; font-weight: 900; }
h2 { font-size: 36px; line-height: 1.08; font-weight: 900; }
h3 { font-size: 19px; line-height: 1.2; font-weight: 900; }
h1 span, h2 span, .green { color: var(--green); }

.lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 8px;
  background: var(--green);
}

/* ===== Topbar e marca ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 231, 228, 0.9);
  background: rgba(245, 248, 246, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand-lock {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 194px;
}

.mark { width: 38px; height: 38px; flex: 0 0 auto; color: var(--navy); }
.mark path { stroke: currentColor; }
.mark .speed { fill: var(--green); }

.brand-word {
  display: block;
  color: var(--navy);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand-word .ia { color: var(--green); }

.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.step-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }

.step-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--petrol-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.step-nav a:hover,
.step-nav a.active {
  border-color: var(--line);
  background: var(--paper);
  color: var(--green-strong);
}

.account-zone { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }

.account-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--petrol-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.account-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 185, 120, 0.12);
}

.logout-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.logout-btn:hover { border-color: var(--red); color: var(--red); background: var(--soft-red); }
.logout-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

body:not(.admin) .admin-only { display: none !important; }

/* ===== Botões ===== */

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--petrol-dark); }
.button.secondary:hover { border-color: var(--green); color: var(--green-strong); }
.button.dark { border-color: var(--petrol-dark); background: var(--petrol-dark); color: #ffffff; }
.button.slim { min-height: 36px; padding: 0 12px; font-size: 13px; }

.count-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 900;
  padding: 0 5px;
}

/* ===== Status ===== */

.status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status.active, .status.done {
  border-color: rgba(0, 185, 120, 0.35);
  background: var(--soft-green);
  color: var(--green-strong);
}

.status.pending {
  border-color: rgba(197, 151, 56, 0.36);
  background: var(--soft-gold);
  color: #9a7320;
}

.status.locked { background: #f4f6f5; color: #829098; }

/* ===== Formulários ===== */

.form-grid { display: grid; gap: 13px; margin-top: 18px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--petrol-dark); font-size: 13px; font-weight: 900; }

.field input,
.field select,
.field textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.field textarea { padding: 10px 12px; min-height: 80px; resize: vertical; font: inherit; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 185, 120, 0.12);
}
