/*
 * Design tokens, reset and base typography.
 * Loaded first — the remaining stylesheets build on what is here.
 */

:root {
  --bg: #fbfaf8;
  --bg-tint: #f4f2ee;
  --surface: #ffffff;
  --ink: #15151a;
  --ink-soft: #57575f;
  --ink-faint: #8b8b96;
  --line: #e9e5de;
  --line-soft: #f1eee8;

  --accent: #4b3be8;
  --accent-ink: #2e21b8;
  --accent-tint: #edeaff;
  --warm: #ff6b4a;
  --danger: #c0392b;
  --danger-tint: #fdecea;
  --success: #0f766e;
  --success-tint: #d7f5ef;

  --sistema: #4b3be8;      --sistema-tint: #edeaff;
  --auditoria: #a05a00;    --auditoria-tint: #fdf0d8;
  --site: #0f766e;         --site-tint: #d7f5ef;
  --aplicativo: #b8185d;   --aplicativo-tint: #fde8f1;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .05), 0 2px 10px rgba(20, 20, 30, .04);
  --shadow-md: 0 18px 40px -18px rgba(20, 20, 30, .28);

  --wrap: 1140px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.section-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: .75rem;
}

.prose { color: var(--ink-soft); font-size: 1.0625rem; }
.prose p { margin-bottom: 1rem; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: .6rem 1.15rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button:active { transform: translateY(1px); }

.button--primary { background: var(--ink); color: #fff; }
.button--primary:hover { background: var(--accent); color: #fff; }

.button--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.button--danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.button--danger:hover { background: var(--danger-tint); }

.button--small { padding: .45rem .85rem; font-size: .82rem; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .8rem;
  color: var(--ink-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--danger); }

form.button_to { display: inline; }
