/*
 * onboard.omnyx.co.il: the Omnyx brand as the marketing site defines it (omnyx-website src/styles/global.css,
 * src/lib/button.ts, the demo form's inputs, the header Logo). Copied values, no dependency on that repository.
 * Fonts: Heebo Variable (Hebrew) and Geist Variable (Latin, the wordmark), self-hosted (SIL OFL 1.1, fonts/LICENSE-*).
 */
@font-face {
  font-family: "Heebo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/heebo-hebrew-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/heebo-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Omnyx palette: Nyx ink, Omnyx violet (brand), Signal mint (small accent only), violet tint, Slate, Mist. */
  --brand: #5b3df5;
  --brand-hover: #4a2ee0;
  --brand-text: #4a2ee0;
  --violet-tint: #e9e5ff;
  --sky-tint: #f3f1ff;
  --mint: #2de3b0;
  --mint-tint: #d5f8ec;
  --ink: #0b0d1a;
  --body: #3b4157;
  --muted: #5a6178;
  --canvas: #f8f8fc;
  --canvas-2: #f3f4f9;
  --surface: #ffffff;
  --line: #e3e5ee;
  --danger: #b42318;

  --font-sans: "Heebo Variable", "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-latin: "Geist Variable", ui-sans-serif, system-ui, sans-serif;

  --radius-button: 16px;
  --radius-card: 24px;
  --radius-input: 10px;
  --radius-chip: 10px;
  --shadow-card: 0 1px 2px 0 rgb(11 13 26 / 0.05), 0 10px 28px 0 rgb(11 13 26 / 0.07);
  --shadow-brand: 0 8px 28px 0 rgb(91 61 245 / 0.35);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
p {
  margin: 0;
}

/* ---- header: white bar with the lockup (the site's Logo: x tile + Latin wordmark, always LTR) ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.wordmark {
  font-family: var(--font-latin);
  font-size: 22px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---- one column ---- */
.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 3rem 1.5rem 4rem;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

h1 {
  font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}
.lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5556;
  margin-top: 0.5rem;
}
.hello {
  padding: 0.5rem 0.25rem 0;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 13px;
  line-height: 17px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.login .stack {
  margin-top: 1.5rem;
}
.label {
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  color: var(--ink);
}

/* ---- inputs: the demo form's field ---- */
.input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.input:hover {
  border-color: rgb(11 13 26 / 0.25);
}
.input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgb(91 61 245 / 0.12);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgb(180 35 24 / 0.1);
}
.input-code,
.input-pin {
  height: 64px;
  font-family: var(--font-latin);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.input-code::placeholder {
  color: #c3c7d6;
  letter-spacing: 0.12em;
}
.input-pin {
  max-width: 14rem;
  letter-spacing: 0.4em;
}

/* ---- buttons: src/lib/button.ts (grow to 102% with a soft spring, press to 97%) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    box-shadow 300ms ease,
    scale 450ms var(--spring);
}
.btn:hover {
  scale: 1.02;
}
.btn:active {
  scale: 0.97;
  transition-duration: 100ms;
}
.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.5;
  pointer-events: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 10px 32px 0 rgb(91 61 245 / 0.45);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  background: var(--canvas-2);
}
.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
  line-height: 24px;
  margin-top: 0.75rem;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.error {
  min-height: 1.5em;
  color: var(--danger);
  font-size: 15px;
}
.error:empty {
  min-height: 0;
}

/* ---- channel cards ---- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-ok {
  background: var(--mint-tint);
  color: #0b5a45;
}
.badge-wait {
  background: var(--violet-tint);
  color: var(--brand-text);
}
.badge-act {
  background: var(--brand);
  color: #fff;
}
.badge-todo {
  background: var(--canvas-2);
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.problem {
  background: #fdf0ef;
  border-radius: var(--radius-chip);
  color: var(--danger);
  padding: 0.75rem 1rem;
  font-size: 15px;
}
.done-line {
  font-weight: 500;
}
.live {
  color: var(--brand-text);
  font-size: 15px;
}
.live:empty {
  display: none;
}

.progress {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--sky-tint);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 15px;
}
.progress .stage {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 13px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  flex: none;
}
[data-stage="done"] .dot {
  background: var(--mint);
}
[data-stage="current"] .dot {
  background: var(--brand);
  animation: pulse-soft 2s ease-in-out infinite;
}
[data-stage="problem"] .dot {
  background: var(--danger);
}
[data-stage="problem"] .stage {
  color: var(--danger);
}
@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.snippet {
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  padding: 1rem;
  background: var(--ink);
  color: #e6e7f0;
  border-radius: 16px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: left;
  white-space: pre;
}

.help {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* biome-ignore-start lint/complexity/noImportantStyles: "reduce motion" must win over every component's own timing */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .btn:active {
    scale: 1;
  }
}
/* biome-ignore-end lint/complexity/noImportantStyles: see above */
