:root {
  --ink: #14181b;
  --ink-soft: #2a3137;
  --ink-muted: #5d666d;
  --paper: #fcfcfa;
  --surface: #eef0ed;
  --surface-2: #f5f6f3;
  --line: #dfe1dc;
  --line-strong: #c4c8c0;
  --brand: #f0a81c;
  --brand-deep: #d18c08;
  --brand-soft: #fdf2dc;
  --brand-ink: #6f4b00;
  --danger: #9c2b2b;
  --danger-soft: #fbecec;
  --danger-line: #efc9c9;
  --success: #246b45;
  --success-soft: #e8f4ed;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Oswald", "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 27, .06);
  --shadow: 0 14px 40px -24px rgba(20, 24, 27, .35);
  --focus: #1d5f8a;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --app-max: 960px;
}

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

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

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

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }

[hidden] { display: none !important; }

::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--brand);
  color: #171a1d;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

.brand-word {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: .95;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.brand-lockup.on-dark { color: #fff; }
.brand-lockup.on-dark .brand-sub { color: rgba(255, 255, 255, .66); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #171a1d;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { background: var(--brand-deep); color: #171a1d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-muted); color: var(--ink); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }

.field { display: grid; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.field-hint { margin: 0; font-size: 13px; color: var(--ink-muted); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder { color: #8b9399; }
.input:hover { border-color: #aeb4ab; }
.input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(29, 95, 138, .16);
  outline: none;
}

.form-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 252, 250, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, 100% - 40px);
  margin: 0 auto;
  padding: 12px 0;
}

.site-header .brand-mark { width: 36px; height: 36px; font-size: 16px; }
.site-header .brand-word { font-size: 20px; }
.site-header .brand-sub { font-size: 9px; }

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.secure-note svg { width: 15px; height: 15px; color: var(--success); }

@media (max-width: 640px) {
  .site-header-inner { width: calc(100% - 28px); }
  .secure-note span { display: none; }
}

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

/* Logo PM Locações */
.brand-logo { display: block; height: 44px; width: auto; flex: 0 0 auto; }
.app-topbar .brand-logo, .site-header .brand-logo { height: 38px; }
.brand-lockup.on-dark .brand-logo { height: 60px; padding: 5px 8px; border-radius: 10px; background: #fff; }
