/* ==========================================================================
   HUNTER CLOUD — design system base
   Tokens, reset, tipografia, botões, formulários, cards, estados e utilitários
   ========================================================================== */

/* Tipografia: pilha local (sem dependência externa, zero requisição bloqueante) */

@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'MonoLocal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* superfícies em camadas: página < card < popover */
  --bg: #04060c;
  --bg-soft: #070b14;
  --surface: #0b111d;
  --surface-2: #0e1728;
  --surface-3: #131f34;
  --line: #1b2842;
  --line-soft: rgba(148, 170, 210, 0.12);
  --line-strong: rgba(148, 170, 210, 0.24);

  /* texto */
  --text: #eef3fb;
  --text-2: #b6c3da;
  --muted: #93a2bd;
  --dim: #8194b4;

  /* acento (Hunter ember) + apoio */
  --accent: #ff7a18;
  --accent-2: #ffb347;
  --accent-soft: rgba(255, 122, 24, 0.14);
  --accent-line: rgba(255, 122, 24, 0.38);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.12);

  /* estados */
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --err: #f87171;
  --err-soft: rgba(248, 113, 113, 0.14);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.14);

  /* raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* sombras */
  --sh-1: 0 1px 2px rgba(2, 5, 12, 0.5), 0 4px 16px -8px rgba(2, 5, 12, 0.75);
  --sh-2: 0 18px 48px -22px rgba(2, 6, 16, 0.9), 0 2px 10px -6px rgba(2, 6, 16, 0.8);
  --sh-glow: 0 20px 60px -28px rgba(255, 122, 24, 0.55);

  /* espaçamento (escala 4) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --wrap: 1200px;
  --font: 'InterLocal', system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: 'MonoLocal', ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --t-fast: 140ms ease-out;
  --t: 200ms ease-out;
}

/* o atributo hidden tem de vencer QUALQUER display de classe (evita bloco vazando na tela) */
[hidden] {
  display: none !important;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}

a:hover {
  color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-3);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
}
h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}
h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.15em;
}

li {
  margin-bottom: var(--s-2);
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 700;
}

small,
.small {
  font-size: 0.8125rem;
}

code,
kbd,
pre,
.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

code {
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.38em;
  color: var(--accent-2);
}

pre {
  margin: 0;
  overflow-x: auto;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

::selection {
  background: rgba(255, 122, 24, 0.32);
  color: #fff;
}

/* foco visível em TODO elemento interativo */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 300;
  background: var(--accent);
  color: #0a0f1c;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 12px;
}

/* ---------------------------------- layout --------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.wrap.narrow {
  max-width: 840px;
}

.section {
  padding: var(--s-8) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 17, 29, 0) 0%, rgba(11, 17, 29, 0.72) 18%, rgba(11, 17, 29, 0.72) 82%, rgba(11, 17, 29, 0) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7);
  align-items: start;
}

.center {
  text-align: center;
}

.center .hero-cta {
  justify-content: center;
}

/* --------------------------------- tipografia ------------------------------ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 68ch;
}

.grad-text {
  background: linear-gradient(100deg, #ffd39b 0%, var(--accent) 42%, #ff5d3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
  min-height: 32px;
}

/* Em telas estreitas o chip perde o nowrap: texto longo quebra em duas
   linhas em vez de empurrar a pagina para o lado (overflow horizontal). */
@media (max-width: 560px) {
  .chip {
    white-space: normal;
    align-items: flex-start;
    text-align: left;
    line-height: 1.3;
    max-width: 100%;
  }
  .chip .dot {
    margin-top: 6px;
    flex: 0 0 auto;
  }
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

/* ---------------------------------- botões --------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t-fast), opacity var(--t-fast);
}

.btn svg {
  flex: none;
}

.btn:hover {
  color: var(--btn-fg);
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  --btn-fg: #140a02;
  background: var(--accent);
  border-color: rgba(255, 170, 90, 0.45);
  box-shadow: 0 14px 34px -14px rgba(255, 122, 24, 0.55);
}

.btn-primary:hover {
  background: #ff8a33;
  border-color: rgba(255, 190, 120, 0.7);
  box-shadow: 0 20px 46px -18px rgba(255, 122, 24, 0.65);
  color: #140a02;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
  color: var(--text);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.875rem;
  border-radius: var(--r-sm);
}

.btn-block {
  width: 100%;
}

.btn-danger {
  --btn-fg: #fff;
  background: linear-gradient(135deg, #d42424, #8f1414);
  border-color: rgba(248, 113, 113, 0.45);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #e02d2d, #a01818);
  color: #fff;
}

.btn-icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--r-sm);
}

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(10, 14, 26, 0.3);
  border-top-color: #0a0e1a;
  animation: spin 0.7s linear infinite;
}

.btn-outline.loading::after,
.btn-ghost.loading::after {
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------- cards ---------------------------------- */
.card {
  position: relative;
  background: linear-gradient(170deg, rgba(19, 31, 52, 0.9), rgba(11, 17, 29, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--s-5);
}

.card h3 {
  margin-bottom: var(--s-3);
}

.side-card {
  padding: var(--s-6);
  position: sticky;
  top: 96px;
}

.side-card .btn-block {
  margin: var(--s-5) 0 var(--s-3);
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
}

.mini-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s-3);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.mini-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.mini-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* --------------------------------- badges ---------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
  text-transform: capitalize;
}

.badge-novo {
  color: #cfe0ff;
  background: var(--info-soft);
  border-color: rgba(96, 165, 250, 0.32);
}
.badge-contatado,
.badge-reuniao {
  color: #ffe6c2;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.badge-proposta {
  color: #d9ccff;
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
}
.badge-ganho,
.badge-quente {
  color: #bff7e0;
  background: var(--ok-soft);
  border-color: rgba(52, 211, 153, 0.34);
}
.badge-perdido,
.badge-frio {
  color: #ffd0d0;
  background: var(--err-soft);
  border-color: rgba(248, 113, 113, 0.34);
}
.badge-arquivado,
.badge-morno {
  color: #ffeec2;
  background: var(--warn-soft);
  border-color: rgba(251, 191, 36, 0.32);
}

/* -------------------------------- formulários ------------------------------ */
.form-grid {
  display: grid;
  gap: var(--s-4);
}

/* botão dentro de formulário acompanha a altura dos campos (46px) */
.form-grid .btn,
.form-grid button[type='submit'] {
  min-height: 46px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.field .req {
  color: var(--accent-2);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(4, 7, 14, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dim);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--line-strong);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
  background: rgba(6, 10, 20, 0.94);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.error-text {
  font-size: 0.78rem;
  color: var(--err);
  min-height: 0;
}

.hint {
  font-size: 0.78rem;
  color: var(--dim);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}

.form-note {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 122, 24, 0.05);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: none;
}

.form-note strong {
  color: var(--text);
}

.form-note a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------- estados/loading --------------------------- */
.skeleton-card {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.skeleton-line {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skeleton-line.short {
  width: 55%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent-2);
  animation: spin 0.75s linear infinite;
}

.empty-state {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(11, 17, 29, 0.55);
}

.empty-state h3 {
  margin-bottom: var(--s-2);
}

.empty-state p {
  margin-bottom: var(--s-4);
}

/* ---------------------------------- modal ---------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(10px);
  animation: fadeIn 180ms ease-out;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #101a2c 0%, #080c16 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2), var(--sh-glow);
  animation: modalIn 220ms cubic-bezier(0.2, 0.9, 0.25, 1);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-head p {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.modal-close {
  margin-left: auto;
  flex: none;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.modal-close:hover {
  background: var(--err-soft);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--s-5) var(--s-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: flex-end;
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 7, 14, 0.6);
}

.modal-foot .left {
  margin-right: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

/* ---------------------------------- toast ---------------------------------- */
.toast-stack {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  gap: var(--s-3);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(13, 20, 34, 0.97);
  box-shadow: var(--sh-2);
  animation: toastIn 220ms ease-out;
}

.toast.leaving {
  animation: toastOut 200ms ease-in forwards;
}

.toast-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #05110c;
  background: var(--ok);
}

.toast.error .toast-icon {
  background: var(--err);
  color: #180404;
}
.toast.warn .toast-icon {
  background: var(--warn);
  color: #1a1302;
}
.toast.info .toast-icon {
  background: var(--info);
  color: #04121f;
}

.toast-body {
  min-width: 0;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.toast-text {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

/* -------------------------------- utilidades -------------------------------- */
.hidden {
  display: none !important;
}

.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;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.full { width: 100%; }
.nowrap { white-space: nowrap; }
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.divider {
  height: 1px;
  background: var(--line-soft);
  margin: var(--s-5) 0;
  border: 0;
}
.mono-sm {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* acessibilidade: respeitar redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .side-card {
    position: static;
  }
  .section {
    padding: var(--s-7) 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }
  .wrap {
    padding: 0 var(--s-4);
  }
  .row-2 {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card {
    max-height: 94vh;
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .modal-foot .btn {
    flex: 1 1 auto;
  }
  .toast-stack {
    right: var(--s-3);
    left: var(--s-3);
    bottom: var(--s-3);
    width: auto;
  }
}
