/* XignSys: careers site, applicant status page, HR review and the
   employee dashboard. Brand assets from Assets/SCCON Demo Assets; font is
   Niveau Grotesk from the project's Adobe Fonts kit. Light and dark theme:
   the system setting by default, overridable with the header toggle
   (stored as data-theme on <html>, see js/xs-theme.js). */

:root {
  --xs-bg: #fff;
  --xs-surface: #f5f8fa;
  --xs-card: #fff;
  --xs-text: #0b0b0c;
  --xs-muted: #5b636b;
  --xs-line: #e2e7ec;
  --xs-accent: #1179b6;
  --xs-accent-soft: #e3f1fa;
  --xs-accent-text: #0d6496;
  --xs-primary: #0b0b0c;
  --xs-primary-hover: #2a2e33;
  --xs-on-primary: #fff;
  --xs-disabled: #d1d1d1;
  --xs-disabled-text: #a3abb2;
  --xs-warn-bg: #fff3d6;
  --xs-warn-text: #7a5200;
  --xs-bad-bg: #fbe5e5;
  --xs-bad-text: #9e1f1f;
  --xs-footer: #0b0b0c;
  /* Black logos and grey line icons flip to light in the dark theme. */
  --xs-invert: none;
  --xs-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
  --xs-radius: 12px;
  --font: "niveau-grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1184px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --xs-bg: #0c0f12;
    --xs-surface: #14191e;
    --xs-card: #171d23;
    --xs-text: #edf1f4;
    --xs-muted: #9ba6b0;
    --xs-line: #28313a;
    --xs-accent: #4fa7de;
    --xs-accent-soft: #12324a;
    --xs-accent-text: #8cc8ee;
    --xs-primary: #f2f5f7;
    --xs-primary-hover: #d5dce2;
    --xs-on-primary: #0b0b0c;
    --xs-disabled: #2b333b;
    --xs-disabled-text: #5e6973;
    --xs-warn-bg: #3a2e10;
    --xs-warn-text: #f3c969;
    --xs-bad-bg: #3b1717;
    --xs-bad-text: #f2a0a0;
    --xs-footer: #000;
    --xs-invert: invert(1) hue-rotate(180deg);
    --xs-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --xs-bg: #0c0f12;
  --xs-surface: #14191e;
  --xs-card: #171d23;
  --xs-text: #edf1f4;
  --xs-muted: #9ba6b0;
  --xs-line: #28313a;
  --xs-accent: #4fa7de;
  --xs-accent-soft: #12324a;
  --xs-accent-text: #8cc8ee;
  --xs-primary: #f2f5f7;
  --xs-primary-hover: #d5dce2;
  --xs-on-primary: #0b0b0c;
  --xs-disabled: #2b333b;
  --xs-disabled-text: #5e6973;
  --xs-warn-bg: #3a2e10;
  --xs-warn-text: #f3c969;
  --xs-bad-bg: #3b1717;
  --xs-bad-text: #f2a0a0;
  --xs-footer: #000;
  --xs-invert: invert(1) hue-rotate(180deg);
  --xs-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root {
  --wf-accent: var(--xs-accent);
  --wf-text: var(--xs-text);
  --wf-muted: var(--xs-muted);
  --wf-border: var(--xs-line);
  --wf-surface: var(--xs-surface);
  --wf-radius: var(--xs-radius);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--xs-bg);
  color: var(--xs-text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--xs-accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

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

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.invert-dark {
  filter: var(--xs-invert);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--xs-primary);
  color: var(--xs-on-primary);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* --- Buttons and small parts ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--xs-primary);
  color: var(--xs-on-primary);
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--xs-primary-hover);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--xs-text);
  box-shadow: inset 0 0 0 1.5px var(--xs-line);
}

.btn-secondary:hover {
  background: var(--xs-surface);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn[aria-disabled="true"] {
  background: var(--xs-disabled);
  color: var(--xs-disabled-text);
  box-shadow: none;
  cursor: default;
}

.btn-danger {
  background: transparent;
  color: var(--xs-bad-text);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn-danger:hover {
  background: var(--xs-bad-bg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--xs-accent-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--xs-surface);
  color: var(--xs-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.badge--pending { background: var(--xs-warn-bg); color: var(--xs-warn-text); }
.badge--approved,
.badge--onboarded,
.badge--verified { background: var(--xs-accent-soft); color: var(--xs-accent-text); }
.badge--rejected { background: var(--xs-bad-bg); color: var(--xs-bad-text); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--xs-accent-soft);
  color: var(--xs-accent-text);
  font-size: 15px;
  font-weight: 500;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("/assets/icons/check.svg") center / contain no-repeat;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.facts dt {
  color: var(--xs-muted);
}

.facts dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

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

.small {
  font-size: 14px;
}

/* --- Header ---------------------------------------------------------------- */

.xs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--xs-bg) 92%, transparent);
  border-bottom: 1px solid var(--xs-line);
  backdrop-filter: blur(10px);
}

.xs-header__row {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 80px;
}

.xs-brand {
  display: block;
  line-height: 0;
}

.xs-brand img {
  height: 40px;
  width: auto;
}

.xs-nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
}

.xs-nav a,
.xs-nav span {
  padding: 6px 0;
  color: var(--xs-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.xs-nav a:hover {
  color: var(--xs-text);
}

.xs-nav [aria-current="page"] {
  color: var(--xs-text);
  border-bottom-color: currentColor;
}

.xs-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--xs-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--xs-surface);
}

.theme-toggle img {
  width: 18px;
  height: 18px;
  filter: var(--xs-invert);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--xs-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* --- Sections -------------------------------------------------------------- */

.xs-hero {
  padding: 72px 0;
  background: var(--xs-surface);
}

.xs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.xs-hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
}

.xs-hero .lead {
  margin: 20px 0 28px;
  max-width: 34em;
  color: var(--xs-muted);
  font-size: 19px;
}

.xs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.xs-meta li {
  padding: 6px 14px;
  border: 1.5px solid var(--xs-line);
  border-radius: 999px;
  background: var(--xs-card);
  font-size: 15px;
}

.xs-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--xs-shadow);
}

.xs-section {
  padding: 80px 0;
}

.xs-section > .wrap > h2 {
  margin-bottom: 32px;
  font-size: clamp(28px, 3vw, 38px);
}

.xs-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xs-card {
  padding: 32px;
  background: var(--xs-card);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
}

.xs-card h3 {
  margin-bottom: 18px;
  font-size: 21px;
}

/* The application block: explanation left, wallet panel right. */
.xs-apply {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 56px;
  padding: 48px;
  background: var(--xs-card);
  border: 1px solid var(--xs-line);
  border-radius: 20px;
  box-shadow: var(--xs-shadow);
}

.xs-apply h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.xs-steps {
  display: grid;
  gap: 20px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.xs-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  counter-increment: step;
}

.xs-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--xs-primary);
  color: var(--xs-on-primary);
  font-weight: 700;
}

.xs-steps strong {
  display: block;
  font-weight: 700;
}

.xs-steps p {
  margin: 2px 0 0;
  color: var(--xs-muted);
  font-size: 16px;
}

.xs-panel {
  padding: 28px;
  background: var(--xs-surface);
  border-radius: var(--xs-radius);
}

.xs-panel h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.xs-panel > p {
  margin: 0 0 20px;
  color: var(--xs-muted);
  font-size: 16px;
}

.xs-section--flush {
  padding-top: 0;
}

.xs-shared-label {
  margin: 0 0 10px;
}

.xs-shared-label--next {
  margin-top: 18px;
}

.xs-panel h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.xs-card > h2 {
  margin-bottom: 16px;
  font-size: 21px;
}

.xs-error {
  margin-top: 16px;
}

.xs-login__hint {
  margin: 20px 0 0;
}

/* --- Applicant status page ------------------------------------------------- */

.xs-status {
  padding: 64px 0 96px;
}

.xs-status__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.xs-status h1 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 4vw, 48px);
}

.xs-status .lead {
  margin: 0 0 32px;
  color: var(--xs-muted);
  font-size: 19px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 22px 40px;
  color: var(--xs-muted);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--xs-line);
  border-radius: 50%;
  background: var(--xs-bg);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--xs-line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.is-done {
  color: var(--xs-text);
}

.timeline li.is-done::before {
  border-color: var(--xs-accent);
  background: var(--xs-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.timeline li.is-current {
  color: var(--xs-text);
  font-weight: 700;
}

.timeline li.is-current::before {
  border-color: var(--xs-accent);
  box-shadow: inset 0 0 0 4px var(--xs-bg), inset 0 0 0 11px var(--xs-accent);
}

.xs-proof {
  margin-bottom: 32px;
}

.xs-proof h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 19px;
}

/* Beats .xs-card h3; the label column is fixed so the three lists align. */
.xs-proof .xs-proof__sub {
  margin: 20px 0 10px;
  color: var(--xs-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xs-proof .facts {
  grid-template-columns: 150px 1fr;
}

.xs-proof__check {
  margin: 16px 0 0;
}

.xs-proof dd .badge {
  margin-left: 6px;
  vertical-align: 1px;
}

.xs-success-photo {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 0 24px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--xs-shadow);
}

.xs-check {
  width: 64px;
  height: 64px;
}

.presenter-link {
  font-size: 14px;
}

/* --- HR review ------------------------------------------------------------- */

.xs-table-wrap {
  overflow-x: auto;
  background: var(--xs-card);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
}

.xs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.xs-table th,
.xs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--xs-line);
  text-align: left;
  vertical-align: middle;
}

.xs-table th {
  color: var(--xs-muted);
  font-size: 14px;
  font-weight: 500;
}

.xs-table th:last-child {
  text-align: right;
}

.xs-table tr:last-child td {
  border-bottom: 0;
}

.xs-table .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.xs-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--xs-muted);
}

/* --- Dashboard ------------------------------------------------------------- */

.xs-dash {
  padding: 56px 0 96px;
}

.xs-dash__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.xs-dash h1 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.xs-dash__intro p {
  margin: 10px 0 0;
  color: var(--xs-muted);
}

.xs-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xs-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--xs-card);
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  box-shadow: var(--xs-shadow);
}

.xs-tile__icon {
  display: grid;
  place-items: center;
  height: 152px;
  margin-bottom: 24px;
  background: var(--xs-surface);
  border-radius: 8px;
}

.xs-tile__icon img {
  height: 88px;
  width: auto;
  filter: var(--xs-invert);
}

.xs-tile h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.xs-tile p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--xs-muted);
  font-size: 16px;
}

.xs-tile.is-disabled {
  box-shadow: none;
}

.xs-tile.is-disabled h2,
.xs-tile.is-disabled p {
  color: var(--xs-disabled-text);
}

.xs-tile.is-disabled .xs-tile__icon img {
  opacity: 0.45;
}

.xs-credential {
  margin-bottom: 40px;
}

.xs-credential__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.xs-credential__head h2 {
  font-size: 22px;
}

.xs-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 64px;
  align-items: center;
  padding: 72px 0 96px;
}

.xs-login h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 50px);
}

.xs-login .lead {
  margin: 0 0 32px;
  color: var(--xs-muted);
  font-size: 19px;
}

.xs-login__icon {
  height: 112px;
  width: auto;
  margin-bottom: 32px;
  filter: var(--xs-invert);
}

.xs-login__panel {
  padding: 36px;
  background: var(--xs-card);
  border: 1px solid var(--xs-line);
  border-radius: 20px;
  box-shadow: var(--xs-shadow);
}

.xs-login__panel h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.xs-login__panel > p {
  margin: 0 0 24px;
  color: var(--xs-muted);
  font-size: 16px;
}

/* --- Footer ---------------------------------------------------------------- */

.xs-footer {
  padding: 48px 0 32px;
  background: var(--xs-footer);
  color: #d9dee2;
  font-size: 15px;
}

.xs-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.xs-footer__logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.xs-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xs-footer a {
  color: #fff;
  text-decoration: none;
}

.xs-footer a:hover {
  text-decoration: underline;
}

.xs-social {
  display: flex;
  gap: 16px;
}

.xs-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.xs-footer__demo {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #9aa3ab;
  font-size: 13px;
}

.xs-footer__demo a {
  color: #d9dee2;
  text-decoration: underline;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .xs-hero__grid,
  .xs-apply,
  .xs-status__grid,
  .xs-login {
    grid-template-columns: 1fr;
  }
  .xs-cols,
  .xs-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .xs-hero__grid > :last-child {
    max-width: 440px;
  }
}

@media (max-width: 720px) {
  .xs-header__row {
    gap: 16px;
    min-height: 64px;
  }
  .xs-brand img {
    height: 32px;
  }
  .xs-nav,
  .user-chip span,
  .hide-sm {
    display: none;
  }
  .xs-hero,
  .xs-section {
    padding: 48px 0;
  }
  .xs-cols,
  .xs-tiles {
    grid-template-columns: 1fr;
  }
  .xs-apply,
  .xs-login__panel {
    padding: 24px 20px;
  }
  .xs-table th:nth-child(1),
  .xs-table td:nth-child(1) {
    display: none;
  }
}
