/* rNexa shared design tokens, base, buttons and theme switch - used by every page */
:root {
  --night: #050a16;
  --white: #ffffff;
  --bg: #ffffff;
  --ink: #0d0d0f;
  --ink-2: #5c5f66;
  --ink-3: #8a8d94;
  --line: #e8e9ec;
  --surface: #f5f6f8;
  --pill-bg: #0d0d0f;
  --pill-ink: #ffffff;
  --pill-hover: #2a2c31;
  --bar: rgba(255, 255, 255, 0.86);
  --ok: #1a7f37;
  --logo-filter: brightness(0);
  --card: #ffffff;
  --field-line: #dcdde1;
  --danger: #c4314b;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
/* Dark mode uses Onyx, the app's default dark base (#08080a). */
html[data-theme="dark"] {
  --bg: #08080a;
  --ink: #f3f3f5;
  --ink-2: #a3a3ab;
  --ink-3: #74747c;
  --line: rgba(255, 255, 255, 0.08);
  --surface: #111114;
  --pill-bg: #f3f3f5;
  --pill-ink: #08080a;
  --pill-hover: #d9d9de;
  --bar: rgba(8, 8, 10, 0.8);
  --ok: #4ade80;
  --logo-filter: none;
  --card: #0f0f12;
  --field-line: rgba(255, 255, 255, 0.12);
  --danger: #ff6b81;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn[hidden] { display: none; }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 3px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--white); color: #0d0d0f; }
.btn-light:hover { background: #e9edf4; }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn-dark { background: var(--pill-bg); color: var(--pill-ink); }
.btn-dark:hover { background: var(--pill-hover); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { background: var(--surface); }

.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(127, 127, 127, 0.16); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-theme="dark"] .theme-sun, html:not([data-theme="dark"]) .theme-moon { display: none; }

/* Price ledger with seats left (landing pricing and dashboard plan) */
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.ledger li:first-child { border-top: 0; padding-top: 0; }
.rung { display: flex; justify-content: space-between; align-items: baseline; }
.rung b { font-size: 17px; font-weight: 500; }
.rung span { font-size: 13px; }
.bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--ink-3); transition: width 0.6s var(--ease); }
.ledger small { font-size: 13px; }
.ledger .now { color: var(--ink); }
.ledger .now .rung span { color: var(--ok); font-weight: 500; }
.ledger .now .bar i { background: var(--ink); }
.ledger .done b { text-decoration: line-through; }

/* Licence quantity stepper (landing pricing and dashboard) */
.qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.qty > span { display: grid; font-size: 14px; font-weight: 500; }
.qty small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 28px; font-size: 15px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
