/* rsscreen — identidade visual (landing + painel)
   Laranja #FE982A em botões e destaques · menus pretos · telas brancas.
   Texto sobre laranja é preto (contraste AAA), nunca branco. */
:root {
  --brand: #FE982A;
  --brand-600: #F0861A;
  --brand-700: #C96A0C;
  --brand-50: #FFF5EA;
  --brand-100: #FFE6CC;
  --on-brand: #0A0A0A;

  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1E1E1E;
  --ink-line: #2A2A2A;
  --ink-text: #F5F5F5;
  --ink-muted: #A3A3A3;

  --bg: #FFFFFF;
  --bg-soft: #F7F7F8;
  --bg-softer: #FBFBFB;
  --line: #E8E8EB;
  --line-strong: #D4D4D8;
  --text: #0F0F10;
  --text-2: #3F3F46;
  --muted: #6B6B74;

  --ok: #16A34A;
  --danger: #DC2626;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,16,20,.06), 0 1px 1px rgba(16,16,20,.04);
  --shadow: 0 8px 28px rgba(16,16,20,.08), 0 2px 6px rgba(16,16,20,.05);
  --shadow-lg: 0 30px 70px rgba(16,16,20,.16);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--on-brand); }

.ico { width: 20px; height: 20px; flex: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo span { color: #FFFFFF; }
.logo.on-light span { color: var(--text); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(254,152,42,.32); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-dark { background: transparent; color: var(--ink-text); border-color: var(--ink-line); }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-icon { width: 36px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: .01em; }
.input, .select {
  height: 44px; width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--bg); color: var(--text);
  font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }

/* ---------- chips / badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line);
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge-dark { background: var(--ink); color: var(--brand); border-color: var(--ink); }
.badge-ok { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 1000;
  max-width: calc(100vw - 32px);
}
.toast .ico { color: var(--brand); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mockups de tela (TV e totem) ---------- */
.device-tv {
  position: relative; width: 100%;
  background: #111; border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px #2a2a2a;
}
.device-tv .screen { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.device-tv::after {
  content: ''; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: 26%; height: 16px; border-radius: 0 0 10px 10px;
  background: linear-gradient(#1b1b1b, #0c0c0c);
}
.device-totem {
  position: relative; width: 100%;
  background: #111; border-radius: 22px; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px #2a2a2a;
}
.device-totem .screen { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; }
.device-tv iframe, .device-totem iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
