/* ==========================================================================
   Job Matching Platform — global design system
   Stack: Bootstrap 5.3 + custom tokens/components
   Direction: "Bold Minimalism + Glassmorphism" — modern 2024–2025 SaaS
   Palette: electric indigo-violet primary · teal/emerald accent · near-white slate
   Type:    Plus Jakarta Sans (display) + Inter (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   --------------------------------------------------------------------------
   OKLCH equivalents (reference) — hex is the single source of truth for full
   Bootstrap + legacy-browser compatibility, but the palette is derived from
   perceptual OKLCH values:
     --primary  #6366f1 ≈ oklch(0.62 0.22 277)
     --violet   #8b5cf6 ≈ oklch(0.59 0.24 300)
     --accent   #14b8a6 ≈ oklch(0.75 0.15 182)
     --ink      #0f172a ≈ oklch(0.21 0.03 264)
   -------------------------------------------------------------------------- */
:root {
  /* Brand — electric indigo-violet */
  --primary: #6366f1;
  --primary-600: #6366f1;   /* indigo-500 (accent)  */
  --primary-700: #4f46e5;   /* indigo-600 (accessible hover/active) */
  --primary-800: #4338ca;   /* indigo-700 (pressed) */
  --primary-50: #eef2ff;    /* indigo-50  */
  --primary-100: #e0e7ff;   /* indigo-100 */
  --primary-200: #c7d2fe;   /* indigo-200 */
  --primary-300: #a5b4fc;   /* indigo-300 */
  --primary-400: #818cf8;   /* indigo-400 */
  --primary-500: #6366f1;   /* indigo-500 */
  --violet: #8b5cf6;        /* violet-500 (gradient endpoint) */

  /* Accent — teal/emerald (growth / progress / success) */
  --accent: #14b8a6;        /* teal-500   (fills, icons, decorative) */
  --accent-700: #0f766e;    /* teal-700   (accessible text) */
  --accent-50: #f0fdfa;     /* teal-50    */

  /* Neutrals — cool near-white slate */
  --ink: #0f172a;           /* slate-900  */
  --text: #1e293b;          /* slate-800  */
  --text-soft: #475569;     /* slate-600  */
  --muted: #64748b;         /* slate-500  */
  --border: #e2e8f0;        /* slate-200  */
  --border-strong: #cbd5e1; /* slate-300  */
  --hairline: rgba(15, 23, 42, 0.06);
  --surface: #ffffff;
  --surface-alt: #f1f5f9;   /* slate-100  */
  --bg: #f8fafc;            /* slate-50   */

  /* Focus ring (OKLCH-derived, rgb for compat) */
  --ring: rgba(99, 102, 241, 0.35);
  --ring-strong: rgba(99, 102, 241, 0.6);

  /* Semantic */
  --success: #10b981;
  --success-soft: #ecfdf5;
  --success-ink: #047857;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --danger-ink: #b91c1c;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --warning-ink: #b45309;
  --info: #0ea5e9;
  --info-soft: #f0f9ff;
  --info-ink: #0369a1;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  /* Shape — generous radii */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation — soft, diffused */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.08), 0 12px 28px -8px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 6px 20px -4px rgba(15, 23, 42, 0.10), 0 16px 32px -8px rgba(15, 23, 42, 0.14);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-brand-strong: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-brand-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --grad-accent: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);

  /* Spacing rhythm (4/8pt scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --header-height: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 200ms;

  /* Bootstrap theme bridge */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 99, 102, 241;
  --bs-secondary: #64748b;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-success: var(--success);
  --bs-success-rgb: 16, 185, 129;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 239, 68, 68;
  --bs-warning: var(--warning);
  --bs-warning-rgb: 245, 158, 11;
  --bs-info: var(--info);
  --bs-info-rgb: 14, 165, 233;
  --bs-link-color: var(--primary-700);
  --bs-link-hover-color: var(--primary-800);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-secondary-color: var(--muted);
  --bs-focus-ring-color: var(--ring);
}

/* --------------------------------------------------------------------------
   2. Base & typography
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Fluid heading scale — bold-minimalist display rhythm */
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

.text-balance { text-wrap: balance; }

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-muted {
  color: var(--muted) !important;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

code {
  color: var(--primary-700);
}

hr {
  border-color: var(--border);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Accessibility: focus states & skip link
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--ring-strong);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.sidebar-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.page-link:focus-visible,
.btn-close:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid var(--ring-strong);
  outline-offset: 2px;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 0.25rem var(--ring);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. Header / navbar — glassmorphism
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}

.site-header .navbar {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.navbar-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 2px 8px -1px rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 20px;
  height: 20px;
}

.brand-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-header .navbar-nav {
  gap: 0.2rem;
}

.site-header .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  transition: color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.site-header .nav-link:hover {
  color: var(--primary-700);
  text-decoration: none;
  background: var(--primary-50);
}

.site-header .nav-link.active {
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 600;
}

.navbar-toggler {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  min-width: 44px;
  min-height: 44px;
  transition: background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

.navbar-toggler:hover {
  background: var(--surface-alt);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Auth area (inline in _Layout) */
.auth-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: 1rem;
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-fast) ease;
}

.app-user-chip:hover {
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
}

.app-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-brand-strong);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.app-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-user-name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  font-size: 0.86rem;
}

.app-user-role {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. Buttons — pill, gradient, lift
   -------------------------------------------------------------------------- */
.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  transition: transform var(--duration) var(--ease-spring),
    box-shadow var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad-brand-strong);
  border: none;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.35),
    0 8px 20px -6px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.45),
    0 14px 28px -8px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(0.97);
}

.btn-outline-primary {
  color: var(--primary-700);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn-outline-primary:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Ghost button — quiet, text-only action */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--primary-700);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.8rem 1.7rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

/* Icon-only button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  border-color: var(--border-strong);
  min-height: 44px;
  transition: border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.form-control::placeholder {
  color: var(--muted);
}

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

.form-check-input {
  width: 1.15em;
  height: 1.15em;
}

.form-check-input:checked {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

.form-check-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 0.2rem var(--ring);
}

.input-group-text {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--text-soft);
}

/* Validation state — restyled to be friendly + on-brand */
.field-validation-error,
.text-danger.small {
  display: block;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   8. Alerts
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.alert .alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.alert-success {
  background: var(--success-soft);
  color: var(--success-ink);
  border-color: #a7f3d0;
}

.alert-danger {
  background: var(--danger-soft);
  color: var(--danger-ink);
  border-color: #fecaca;
}

.alert-info {
  background: var(--info-soft);
  color: var(--info-ink);
  border-color: #bae6fd;
}

.alert-warning {
  background: var(--warning-soft);
  color: var(--warning-ink);
  border-color: #fde68a;
}

.alert .btn-close {
  margin-left: auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Footer — clean light band
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 0;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.footer-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer-tagline {
  color: var(--muted);
  max-width: 360px;
  margin: 0;
  line-height: 1.65;
}

.footer-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.05rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. Landing page — legacy hero (kept for shared components)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(800px 400px at -10% 10%, rgba(20, 184, 166, 0.12), transparent 55%),
    var(--bg);
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 1.1rem 0;
}

.hero-title .hero-highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.75rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-panel {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.hero-panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--success-ink);
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.hero-panel-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-panel .check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: var(--text-soft);
}

.hero-panel .check-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   11. Landing page — roles overview + features + how-it-works (legacy)
   -------------------------------------------------------------------------- */
.how-it-works-section,
.roles-section,
.features-section {
  padding: 3.75rem 0 4.25rem;
  border-top: 1px solid var(--hairline);
}

.how-it-works-section {
  background: var(--surface);
}

.roles-section {
  background: var(--bg);
}

.features-section {
  background: var(--surface);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-heading .section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-700);
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.role-card {
  position: relative;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.role-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.role-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-700);
  margin-bottom: 1rem;
}

.role-card-icon svg {
  width: 23px;
  height: 23px;
}

.role-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.role-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.role-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.role-card .card-link:hover {
  color: var(--primary-800);
  text-decoration: none;
}

/* How it works */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.step:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Features highlight */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.feature-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-50);
  color: var(--accent-700);
  flex-shrink: 0;
}

.feature-item-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Footer CTA band */
.cta-band {
  padding: 4.5rem 0;
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(139, 92, 246, 0.4), transparent 60%),
    var(--grad-brand-strong);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.cta-band .section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-eyebrow--light {
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--primary-800);
  font-weight: 700;
}

.cta-band .btn-light:hover {
  background: #eef2ff;
  border-color: #eef2ff;
  color: var(--primary-800);
  transform: translateY(-2px);
}

.cta-band .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   12. Auth pages
   -------------------------------------------------------------------------- */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.25rem 2rem;
}

.auth-card .auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-700);
  margin-bottom: 1.1rem;
}

.auth-card .auth-icon svg {
  width: 26px;
  height: 26px;
}

.auth-card h1 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.auth-card .auth-subtitle {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.auth-footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. App shell (areas)
   -------------------------------------------------------------------------- */
.app-container {
  padding-top: 1.75rem;
  padding-bottom: 2.75rem;
  flex: 1 0 auto;
}

.app-shell {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.app-sidebar {
  flex: 0 0 264px;
  width: 264px;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 0.95rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.sidebar-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-brand-strong);
  color: #fff;
  flex-shrink: 0;
}

.sidebar-role-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-role {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.sidebar-role-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Section labels within sidebar */
.sidebar-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0.9rem 0.5rem 0.35rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 500;
  transition: background-color var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.sidebar-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  text-decoration: none;
}

.sidebar-link.active {
  background: var(--primary-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

/* Mobile sidebar toggle button (in topbar) */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  flex-shrink: 0;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-toggle:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* Backdrop for the mobile drawer */
.sidebar-backdrop {
  display: none;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.app-topbar-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-topbar-title {
  font-size: 1.35rem;
  margin: 0;
}

.app-topbar-subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Role badge colors */
.badge-role {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.badge-role-seeker {
  background: var(--primary-50);
  color: var(--primary-700);
}

.badge-role-employer {
  background: var(--accent-50);
  color: var(--accent-700);
}

.badge-role-advisor {
  background: var(--warning-soft);
  color: var(--warning-ink);
}

.badge-role-admin {
  background: var(--danger-soft);
  color: var(--danger-ink);
}

/* --------------------------------------------------------------------------
   14. Dashboard — clean Bento KPI grid
   -------------------------------------------------------------------------- */
.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin-bottom: 0.35rem;
}

.page-intro p {
  color: var(--muted);
  margin: 0;
}

/* Dashboard hero band */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.75rem;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(700px 260px at 100% -20%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-hero-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.dashboard-hero-sub {
  color: var(--text-soft);
  margin: 0;
}

.dashboard-hero-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.dash-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-700);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.dash-card-icon svg {
  width: 24px;
  height: 24px;
}

.dash-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.dash-card h2 a {
  color: var(--ink);
}

.dash-card h2 a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.dash-card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
}

.dash-card .dash-card-link {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Quick stats strip — bento KPI tiles */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.quick-stat:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-brand-soft);
  color: var(--primary-700);
  flex-shrink: 0;
}

.quick-stat-icon svg {
  width: 22px;
  height: 22px;
}

.quick-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.quick-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   15. Page header (generic) & breadcrumbs
   -------------------------------------------------------------------------- */
.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--muted);
  margin: 0;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--border-strong);
  --bs-breadcrumb-item-active-color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}

.breadcrumb-item a {
  color: var(--text-soft);
}

.breadcrumb-item a:hover {
  color: var(--primary-700);
}

/* --------------------------------------------------------------------------
   16. Tables
   -------------------------------------------------------------------------- */
.table {
  --bs-table-hover-bg: var(--surface-alt);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.8rem 0.9rem;
  vertical-align: middle;
}

.table thead th {
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  gap: 0.25rem;
}

.page-link {
  border: 1px solid var(--border);
  color: var(--primary-700);
  border-radius: 12px !important;
  font-weight: 500;
  min-width: 38px;
  text-align: center;
}

.page-link:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.page-item.active .page-link {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.page-item.disabled .page-link {
  color: var(--border-strong);
  background: var(--surface-alt);
}

/* --------------------------------------------------------------------------
   18. Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4em 0.7em;
}

/* Soft badges (job type / level / salary / category) */
.badge-soft {
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.badge-soft--type { background: var(--primary-50); color: var(--primary-700); }
.badge-soft--level { background: var(--accent-50); color: var(--accent-700); }
.badge-soft--salary { background: var(--success-soft); color: var(--success-ink); }
.badge-soft--category { background: var(--surface-alt); color: var(--text-soft); border: 1px solid var(--border); }

/* Bootstrap text-bg-* soft restyle (used by status/content badges) */
.text-bg-primary,
.text-bg-success,
.text-bg-danger,
.text-bg-warning,
.text-bg-info,
.text-bg-secondary {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.text-bg-primary { background: var(--primary-50) !important; color: var(--primary-700) !important; }
.text-bg-success { background: var(--success-soft) !important; color: var(--success-ink) !important; }
.text-bg-danger { background: var(--danger-soft) !important; color: var(--danger-ink) !important; }
.text-bg-warning { background: var(--warning-soft) !important; color: var(--warning-ink) !important; }
.text-bg-info { background: var(--info-soft) !important; color: var(--info-ink) !important; }
.text-bg-secondary { background: var(--surface-alt) !important; color: var(--text-soft) !important; }

/* Status badge with dot (rendered by _StatusBadge) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.status-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge--success { background: var(--success-soft); color: var(--success-ink); }
.status-badge--success .status-badge-dot { background: var(--success); }
.status-badge--info { background: var(--info-soft); color: var(--info-ink); }
.status-badge--info .status-badge-dot { background: var(--info); }
.status-badge--warning { background: var(--warning-soft); color: var(--warning-ink); }
.status-badge--warning .status-badge-dot { background: var(--warning); }
.status-badge--danger { background: var(--danger-soft); color: var(--danger-ink); }
.status-badge--danger .status-badge-dot { background: var(--danger); }
.status-badge--neutral { background: var(--surface-alt); color: var(--text-soft); }
.status-badge--neutral .status-badge-dot { background: var(--border-strong); }

/* Matched / missing skill chips */
.chip-matched,
.chip-missing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
}

.chip-matched { background: var(--success-soft); color: var(--success-ink); }
.chip-missing { background: var(--danger-soft); color: var(--danger-ink); }

/* --------------------------------------------------------------------------
   19. Progress bars
   -------------------------------------------------------------------------- */
.progress {
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.progress-bar {
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   20. Reusable content blocks
   -------------------------------------------------------------------------- */
.section-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-header h2 {
  font-size: 1.12rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-header h2 svg {
  width: 18px;
  height: 18px;
  color: var(--primary-600);
  flex-shrink: 0;
}

/* Profile header card */
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--grad-brand-strong);
  color: #fff;
  flex-shrink: 0;
}

.profile-avatar svg {
  width: 27px;
  height: 27px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}

.profile-summary {
  color: var(--text-soft);
  line-height: 1.65;
  white-space: pre-wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
}

/* Skill chips */
.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem 0.4rem 0.8rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
}

.skill-chip-name {
  font-weight: 600;
  color: var(--text);
}

.skill-chip-proficiency {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-50);
  color: var(--primary-700);
}

.skill-chip-proficiency--beginner { background: var(--surface-alt); color: var(--text-soft); }
.skill-chip-proficiency--intermediate { background: var(--info-soft); color: var(--info-ink); }
.skill-chip-proficiency--advanced { background: var(--accent-50); color: var(--accent-700); }
.skill-chip-proficiency--expert { background: var(--primary-50); color: var(--primary-700); }

.skill-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.skill-chip-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Item cards (education / experience / certification / interest) */
.item-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.item-card:last-child { margin-bottom: 0; }

.item-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.item-card-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.item-card-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.item-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.item-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.item-card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.item-card-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.item-actions {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-soft);
  padding: 0;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
  text-decoration: none;
}

.icon-btn--danger:hover {
  background: var(--danger-soft);
  border-color: #fecaca;
  color: var(--danger);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--border-strong);
  margin-bottom: 0.85rem;
}

.empty-state-icon svg,
.empty-state svg {
  width: 28px;
  height: 28px;
  color: var(--border-strong);
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.empty-state p {
  margin-bottom: 0.85rem;
}

/* Filter panel (job search) */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Job cards */
.job-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.job-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text);
  text-decoration: none;
}

.job-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.job-card-title a {
  color: inherit;
}

.job-card-title a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.job-card:hover .job-card-title { color: var(--primary-700); }

.job-company {
  color: var(--text-soft);
  font-weight: 500;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.job-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Match ring (recommendation cards) */
.match-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  font-weight: 800;
  flex-shrink: 0;
  padding: 0.5rem;
}

.match-ring--high { background: var(--success-soft); color: var(--success-ink); border: 2px solid #a7f3d0; }
.match-ring--mid { background: var(--warning-soft); color: var(--warning-ink); border: 2px solid #fde68a; }
.match-ring--low { background: var(--surface-alt); color: var(--muted); border: 2px solid var(--border); }

.match-ring-value { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; }
.match-ring-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-top: 0.15rem;
}

.skill-group {
  margin-top: 0.6rem;
}

.skill-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Company block (job details) */
.company-block {
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}

/* Key facts list (job details) */
.fact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.fact {
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
}

.fact-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.fact-label svg {
  width: 14px;
  height: 14px;
}

.fact-value {
  font-weight: 600;
  color: var(--text);
}

/* Vertical status timeline */
.status-timeline {
  position: relative;
  padding-left: 1.75rem;
  list-style: none;
  margin: 0;
}

.status-timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-600);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary-200);
}

.timeline-dot--current {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-50);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-note {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* Missing skills notice */
.missing-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Utility: preserve line breaks in long-form text */
.pre-wrap {
  white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   21. Employer area — components
   -------------------------------------------------------------------------- */
.company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  background: var(--surface-alt);
  flex-shrink: 0;
}

.company-logo--placeholder {
  background: var(--grad-brand-strong);
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  user-select: none;
}

/* Skill requirements editor (job create/edit) */
.skill-editor {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.skill-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hairline);
}

.skill-editor-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.skill-editor-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.skill-editor-table {
  width: 100%;
  margin: 0;
}

.skill-editor-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

.skill-editor-table tbody td {
  padding: 0.5rem 1.1rem;
  vertical-align: middle;
}

.skill-editor-table tbody tr + tr {
  border-top: 1px solid var(--hairline);
}

.skill-editor-table tbody tr.is-required {
  background: var(--primary-50);
}

.skill-editor-table tbody tr.is-disabled .skill-editor-name {
  color: var(--muted);
}

.skill-editor-name {
  font-weight: 600;
  color: var(--text);
}

.skill-editor-level {
  min-width: 150px;
}

/* Status workflow pills (candidate details) */
.status-workflow-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill {
  position: relative;
  margin: 0;
}

.status-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-pill-label {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.status-pill-label:hover {
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.status-pill-input:checked + .status-pill-label {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.status-pill-input:focus-visible + .status-pill-label {
  outline: 3px solid var(--ring-strong);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   22. Scroll reveal (progressive enhancement)
   Hidden state only applies when JS has been detected (html.js), so content
   remains visible for users without JavaScript.
   -------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding: 0.75rem 0.5rem 0.9rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--hairline);
  }

  .auth-area {
    margin-left: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hairline);
    width: 100%;
  }

  .site-header .nav-link {
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
  }

  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 1055;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease-out);
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out);
  }

  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.6rem 1.25rem 1.4rem;
  }

  .app-topbar {
    padding: 1rem;
  }

  .section-card,
  .job-card {
    padding: 1.1rem;
  }

  .filter-panel {
    padding: 1.1rem;
  }

  .hero {
    padding: 3rem 0 2.75rem;
  }
}

/* --------------------------------------------------------------------------
   24. Reduced motion
   -------------------------------------------------------------------------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Landing — product-led, editorial redesign (bold minimalism)
   ========================================================================== */

/* --- Shared editorial pieces ------------------------------------------- */
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 1.1rem;
}

.landing-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.landing-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.landing-heading {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.landing-heading .landing-eyebrow {
  margin-bottom: 0.75rem;
}

.landing-heading-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.landing-heading-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* --- Hero ---------------------------------------------------------------- */
.landing-hero {
  position: relative;
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--hairline);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(700px 380px at -10% 15%, rgba(139, 92, 246, 0.10), transparent 55%),
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 0%, transparent 72%);
}

.landing-hero > .row {
  position: relative;
  z-index: 1;
}

.landing-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.landing-hero-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.landing-hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 34rem;
  margin: 0 0 1.9rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.landing-login-hint {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.landing-login-hint a {
  font-weight: 600;
  color: var(--primary-700);
}

/* --- Hero preview (hand-built job card mockup) -------------------------- */
.landing-preview {
  position: relative;
  max-width: 420px;
  margin-left: auto;
}

.landing-job-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.landing-job-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.05rem;
}

.landing-company-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-brand-strong);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.landing-company-line {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.landing-company-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}

.landing-company-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.landing-match-badge {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success-ink);
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.landing-job-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.landing-job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.landing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--primary-50);
  color: var(--primary-700);
  line-height: 1.4;
}

.landing-chip--teal {
  background: var(--accent-50);
  color: var(--accent-700);
}

.landing-learning-card {
  margin-top: 1rem;
  margin-left: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.landing-learning-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

/* --- Roles (asymmetric two-panel) --------------------------------------- */
.landing-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.landing-role-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem 1.9rem 1.75rem;
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.landing-role-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.landing-role-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
}

.landing-role-panel--employer::before {
  background: var(--grad-accent);
}

.landing-role-panel-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.landing-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-700);
  flex-shrink: 0;
}

.landing-role-icon svg {
  width: 22px;
  height: 22px;
}

.landing-role-icon--employer {
  background: var(--accent-50);
  color: var(--accent-700);
}

.landing-role-label {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.landing-role-lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}

.landing-role-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-role-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.landing-role-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--primary-400);
  transform: rotate(45deg);
}

.landing-role-panel--employer .landing-role-list li::before {
  background: var(--accent);
}

.landing-role-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* --- How matching works (editorial horizontal flow) ---------------------- */
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.landing-step {
  position: relative;
  padding-top: 1.4rem;
  border-top: 3px solid var(--border);
}

.landing-step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--accent);
}

.landing-step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 0.5rem;
}

.landing-step-title {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.landing-step-copy {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* --- Footnote ------------------------------------------------------------ */
.landing-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}

.landing-footnote-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

/* --- Closing CTA ---------------------------------------------------------- */
.landing-cta {
  position: relative;
  margin-top: 2.5rem;
  background: var(--grad-brand-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem 3rem 2.75rem;
  color: #fff;
  overflow: hidden;
}

.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(640px 320px at 88% -20%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.landing-cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.landing-cta-copy {
  flex: 1 1 20rem;
  min-width: 0;
}

.landing-cta-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.landing-cta-sub {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.4rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-cta-login {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.landing-cta-login a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-cta .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--primary-800);
  font-weight: 700;
}

.landing-cta .btn-light:hover,
.landing-cta .btn-light:focus {
  background: #eef2ff;
  border-color: #eef2ff;
  color: var(--primary-800);
}

.landing-cta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.landing-cta .btn-outline-light:hover,
.landing-cta .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

/* Ensure focus is visible against the indigo band */
.landing-cta :focus-visible {
  outline-color: #fff;
}

/* --- Scroll-reveal stagger (steps cascade left to right) ----------------- */
html.js .landing-step:nth-child(2) { transition-delay: 60ms; }
html.js .landing-step:nth-child(3) { transition-delay: 120ms; }
html.js .landing-step:nth-child(4) { transition-delay: 180ms; }
html.js .landing-role-panel--employer { transition-delay: 80ms; }

/* --- Landing responsive --------------------------------------------------- */
@media (max-width: 991.98px) {
  .landing-roles {
    grid-template-columns: 1fr;
  }

  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .landing-hero {
    padding: 2rem 0 2.75rem;
  }

  .landing-section {
    padding: 2.75rem 0;
  }

  .landing-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-role-panel {
    padding: 1.5rem 1.35rem 1.4rem;
  }

  .landing-cta {
    padding: 2rem 1.4rem 1.9rem;
  }
}

/* ==========================================================================
   Seeker area — editorial refinement (mirrors the landing language)
   ========================================================================== */

/* --- Eyebrow (dash-mark, echoes landing-eyebrow) ------------------------- */
.seeker-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 0.75rem;
}

.seeker-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Page head: one-line lead + optional actions, hairline-ruled --------- */
.seeker-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.seeker-pagehead-copy {
  max-width: 46rem;
}

.seeker-pagehead-copy .page-intro {
  margin-bottom: 0;
}

.seeker-pagehead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Stat strip: quiet "spec sheet" of numbers with hairline dividers ---- */
.seeker-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.seeker-stat {
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.seeker-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.seeker-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* --- Quick links: hairline-ruled editorial index ------------------------- */
.seeker-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
}

.seeker-quicklinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.seeker-quicklinks a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.seeker-quicklinks a svg {
  width: 16px;
  height: 16px;
  color: var(--border-strong);
  flex-shrink: 0;
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.seeker-quicklinks a:hover svg {
  color: var(--primary-600);
  transform: translateX(2px);
}

/* --- Editorial form lead -------------------------------------------------- */
.seeker-form-lead {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.6rem;
}

/* --- Assessment result ---------------------------------------------------- */
.seeker-result {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 0.5rem 0 1.5rem;
}

.seeker-score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.seeker-score--pass { color: var(--success-ink); }
.seeker-score--fail { color: var(--danger-ink); }

.seeker-result-body {
  flex: 1;
  min-width: 0;
}

.seeker-result-verdict {
  font-weight: 600;
  margin: 1rem 0 1.25rem;
}

/* --- Seeker responsive ---------------------------------------------------- */
@media (max-width: 991.98px) {
  .seeker-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .seeker-stats { grid-template-columns: repeat(2, 1fr); }
  .seeker-quicklinks { grid-template-columns: 1fr; }
  .seeker-result { flex-direction: column; gap: 1.25rem; }
}
