/* Conectados pela Fé — design system
   Paleta da marca: azul (uma pessoa) + verde (a outra) sobre azul-noite.
   O dourado sobrevive apenas como cor da moeda (Talentos ⟡), nunca como cor de
   interface — assim o símbolo de crédito nunca compete com a identidade. */

:root {
  --navy-900: #0b1424;
  --navy-800: #111d33;
  --navy-700: #1a2947;
  --navy-600: #253758;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* marca */
  --azul-400: #4ea6ee;
  --azul-500: #2b8ede;
  --azul-600: #1257a5;
  --azul-900: #12306b;
  --verde-400: #7ed957;
  --verde-500: #6cc537;
  --verde-600: #2f8f1f;

  /* moeda */
  --gold-400: #e8b95c;
  --gold-500: #d79f34;
  --gold-600: #b8842a;

  /* semânticas — apontam para a marca para manter um só sistema */
  --rose-400: var(--azul-400);
  --rose-500: var(--azul-600);
  --mint-400: var(--verde-500);
  --red-400: #e2685f;

  --ink: #f4f1ea;
  --ink-2: #c3c9d6;
  --ink-3: #8b93a5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;

  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }

.muted { color: var(--ink-2); }
.tiny { font-size: 0.82rem; color: var(--ink-3); }
.center { text-align: center; }
.gold { color: var(--gold-400); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--azul-500), var(--azul-600));
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 142, 222, 0.30);
}
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-rose { background: linear-gradient(135deg, var(--rose-400), var(--rose-500)); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- cartões / superfícies ---------- */
.card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill-gold { border-color: rgba(232, 185, 92, 0.45); color: var(--gold-400); background: rgba(232, 185, 92, 0.10); }
.pill-mint { border-color: rgba(108, 197, 55, 0.45); color: var(--verde-500); background: rgba(108, 197, 55, 0.10); }
.pill-azul { border-color: rgba(43, 142, 222, 0.50); color: var(--azul-400); background: rgba(43, 142, 222, 0.12); }

/* ---------- formulários ---------- */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-2);
}
.input, select.input, textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--azul-500); }
textarea.input { min-height: 110px; resize: vertical; }
select.input option { background: var(--navy-800); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--azul-500); }
.chip.on {
  background: rgba(43, 142, 222, 0.18);
  border-color: var(--azul-400);
  color: var(--azul-400);
  font-weight: 600;
}

.slider-row { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 16px; }
.slider-row .ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-3); }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--navy-600);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-400), var(--verde-500));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- utilidades ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.stack-sm > * + * { margin-top: 8px; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-700);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  font-size: 0.9rem;
  max-width: 90vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 17, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}
.modal {
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 88vh;
  overflow-y: auto;
}

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.logo-mark { width: 38px; height: 34px; flex: none; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt b { font-weight: 700; letter-spacing: -0.02em; }
.logo-txt i { font-style: normal; font-size: 0.72em; color: var(--verde-400); font-weight: 600; }
