/* ============================================================
   RoleUp — Modern Design System
   Aesthetic: Clean · Connected · Brand-led
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --brand-navy:   #0f172a;
  --brand-steel:  #334155;
  --brand-blue:   #3b82f6;
  --brand-cyan:   #38bdf8;
  --brand-red:    #ef4444;
  --brand-light:  #dbeafe;

  /* Brand greens */
  --green:        #18c964;
  --green-dark:   #12a952;
  --green-deeper: #0d8040;
  --green-tint:   #f0fdf4;
  --green-ring:   rgba(24,201,100,0.25);

  /* Neutrals */
  --white:        #ffffff;
  --bg:           #f3f6fb;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --surface-3:    #e2e8f0;
  --border:       #e2e8f0;
  --border-focus: #18c964;

  /* Text */
  --text:         #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-4:       #94a3b8;
  --text-inv:     #ffffff;

  /* Accents */
  --blue:         #006fee;
  --blue-tint:    #eff6ff;
  --amber:        #f5a524;
  --amber-tint:   #fffbeb;
  --red:          #f31260;
  --red-tint:     #fff1f2;

  /* Radii — rounded everything */
  --r-xs:  6px;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm:  0 2px 6px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:     0 4px 16px rgba(15,23,42,0.09), 0 1px 4px rgba(15,23,42,0.05);
  --shadow-lg:  0 10px 40px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
  --shadow-green: 0 4px 20px rgba(24,201,100,0.3);

  /* Typography */
  --font:      ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 10% -10%, rgba(59,130,246,0.1), transparent 34%),
    radial-gradient(circle at 90% 2%, rgba(239,68,68,0.08), transparent 26%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 400;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--brand-navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  background: var(--brand-navy);
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Remove the knot divider */
.knot-divider { display: none; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-flag { font-size: 1.1rem; line-height: 1; }
.nav-logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--brand-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  font-weight: 500;
}
.nav-links a:hover {
  color: #f8fafc;
  background: rgba(248, 250, 252, 0.12);
}

.nav-cta {
  background: var(--brand-red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--r-full) !important;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s !important;
  box-shadow: 0 2px 10px rgba(239,68,68,0.3) !important;
}
.nav-cta:hover {
  background: #dc2626 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px rgba(239,68,68,0.34) !important;
}

.scroll-progress {
  position: sticky;
  top: 60px;
  z-index: 180;
  height: 3px;
  width: 100%;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-blue) 45%, var(--brand-red) 100%);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.42);
  transition: transform 0.1s linear;
}

/* Hamburger */
.nav-burger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  margin-left: auto;
  border-radius: var(--r-xs);
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #f8fafc;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger--open span:nth-child(2) { opacity: 0; }
.nav-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main Content ─────────────────────────────────────────── */
.site-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.home-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.connected-section {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 92% -10%, rgba(59,130,246,0.09), transparent 24%),
    radial-gradient(circle at 6% 8%, rgba(239,68,68,0.06), transparent 20%),
    rgba(255,255,255,0.84);
  box-shadow: 0 10px 34px rgba(15,23,42,0.08);
  backdrop-filter: blur(3px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.connected-section:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 2px;
  height: 36px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(59,130,246,0.36), rgba(239,68,68,0.36));
}

.connected-section.is-scroll-active {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.32);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
}

.connected-section--hero {
  border-color: rgba(59,130,246,0.24);
  box-shadow: 0 18px 46px rgba(15,23,42,0.11);
}

@media (min-width: 1024px) {
  .connected-section.is-scroll-inactive {
    opacity: 0.82;
    box-shadow: 0 8px 24px rgba(15,23,42,0.07);
  }

  .connected-section.is-scroll-active {
    opacity: 1;
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 22px 48px rgba(15,23,42,0.18);
  }
}

/* ── Flash Messages ───────────────────────────────────────── */
.messages { margin-bottom: 1.5rem; }
.message {
  padding: 0.85rem 1.1rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.message--error {
  background: var(--red-tint);
  color: #be123c;
  border: 1px solid rgba(243,18,96,0.2);
}
.message--success {
  background: var(--green-tint);
  color: var(--green-deeper);
  border: 1px solid rgba(24,201,100,0.25);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p,
.footer-inner a {
  font-size: 0.8rem;
  color: var(--text-4);
  font-family: var(--font);
}
.footer-inner a:hover { color: var(--green-dark); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.1rem 1rem 3.2rem;
  margin-bottom: 1.25rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: #e0edff;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--r-full);
  padding: 0.38rem 1rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title--brand {
  font-size: clamp(3.2rem, 9.8vw, 7.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: linear-gradient(180deg, #24324a 0%, #1e293b 48%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.42),
    0 12px 30px rgba(15, 23, 42, 0.16);
}

.hero-title em {
  font-style: normal;
  color: var(--brand-blue);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #1e293b;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.45;
  font-weight: 500;
}

/* ── Search Bar ───────────────────────────────────────────── */
.search-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 19, 31, 0.18), 0 0 0 1px rgba(11,31,47,0.15);
  background: var(--surface);
}
.search-form:focus-within {
  box-shadow: 0 16px 40px rgba(6, 19, 31, 0.18), 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1.05rem 1.4rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
}
.search-input::placeholder { color: var(--text-4); }

.search-btn {
  background: linear-gradient(135deg, var(--brand-blue), #2563eb);
  color: var(--white);
  border: none;
  padding: 1.05rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
  transition: background 0.15s var(--ease), transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.search-btn:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); }

.hero-job-count {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #334155;
}
.hero-job-count-num {
  color: #1d4ed8;
  font-weight: 800;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e3a8a;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-link:hover { color: #1d4ed8; }

/* ── Divider ──────────────────────────────────────────────── */
.rule-gold {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.3) 30%, rgba(239,68,68,0.32) 68%, transparent 100%);
  margin: 1.4rem 0 1.8rem;
}

/* ── Job Card ─────────────────────────────────────────────── */
.job-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.1rem 0.9rem;
  min-height: 180px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(24,201,100,0.4);
}

.job-card::before { display: none; }

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.job-card-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.job-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* Company avatar — rounded square */
.company-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--green-tint), rgba(24,201,100,0.15));
  border: 1px solid rgba(24,201,100,0.25);
  color: var(--green-darker, #0d7a3e);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.company-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  border-radius: var(--r);
}

.job-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.job-card-company {
  font-size: 0.82rem;
  color: var(--text-3);
}

.job-card-salary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-deeper);
  background: var(--green-tint);
  border: 1px solid rgba(24,201,100,0.25);
  border-radius: var(--r-full);
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.job-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.job-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.job-card-external {
  font-size: 0.73rem;
  color: var(--text-4);
}

.job-card-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: color 0.15s;
}
.job-card:hover .job-card-cta { color: var(--green); }

/* ── Tags / Chips ─────────────────────────────────────────── */
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--surface-2);
  white-space: nowrap;
}

.tag--remote {
  border-color: rgba(24,201,100,0.35);
  color: var(--green-deeper);
  background: var(--green-tint);
}

.tag--featured {
  border-color: rgba(245,165,36,0.4);
  color: #92400e;
  background: var(--amber-tint);
}

/* ── Grids ────────────────────────────────────────────────── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.jobs-grid--browse {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem;
  text-align: center;
  color: var(--text-4);
  font-style: italic;
}

/* ── Browse Layout ────────────────────────────────────────── */
.browse-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ── Salary Explorer ──────────────────────────────────────── */
.salary-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.salary-sidebar { position: sticky; top: 76px; }
.salary-main { min-width: 0; }

.submit-salary-card {
  background: linear-gradient(135deg, var(--green-deeper) 0%, var(--green-dark) 100%);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  color: var(--white);
}
.submit-salary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.submit-salary-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.submit-salary-form .filter-label { color: rgba(255,255,255,0.65); }
.submit-salary-form .filter-input,
.submit-salary-form .filter-select {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.submit-salary-form .filter-input::placeholder { color: rgba(255,255,255,0.4); }

.salary-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.salary-titles-section { border-top: 1px solid var(--border); padding-top: 2rem; }
.salary-titles-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.salary-title-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.salary-title-chip:hover {
  border-color: var(--green);
  color: var(--green-deeper);
  background: var(--green-tint);
}

/* ── Filter Sidebar ───────────────────────────────────────── */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  position: sticky;
  top: 76px;
}

.filter-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.filter-group { margin-bottom: 1.1rem; }

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.filter-input,
.filter-select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.filter-input:focus,
.filter-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
}

.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.filter-checkbox-row input[type="checkbox"] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.filter-checkbox-row span {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* ── Page titles ──────────────────────────────────────────── */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-4);
  margin-bottom: 2rem;
}

/* ── Job Detail ───────────────────────────────────────────── */
.job-detail-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.job-detail-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.job-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.job-detail-company {
  font-size: 1rem;
  color: var(--text-3);
}
.job-detail-company a { color: var(--green-dark); transition: color 0.15s; }
.job-detail-company a:hover { color: var(--green); }

.job-detail-salary {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deeper);
  background: var(--green-tint);
  border: 1px solid rgba(24,201,100,0.25);
  border-radius: var(--r-full);
  padding: 0.35rem 1rem;
}

.info-callout {
  border-radius: var(--r-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.info-callout--green {
  background: var(--green-tint);
  border-color: rgba(24,201,100,0.3);
  color: var(--green-deeper);
}
.info-callout--blue {
  background: var(--blue-tint);
  border-color: rgba(0,111,238,0.25);
  color: #1a4fa0;
}
.info-callout--amber {
  background: var(--amber-tint);
  border-color: rgba(245,165,36,0.35);
  color: #92400e;
}

.job-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
}
.job-body-content {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-2);
}
.job-body-content p { margin-bottom: 1rem; }

.apply-block {
  text-align: center;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* ── Layout helpers ───────────────────────────────────────── */
.content-sm { max-width: 680px; }
.content-md { max-width: 860px; }
.content-lg { max-width: 980px; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-md > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.lead { font-size: 1.05rem; color: var(--text-3); }
.muted { font-size: 0.82rem; color: var(--text-4); }

.inline-link { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--green); }

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.4rem;
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.badge-pill {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0.8rem; }
.timeline-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 0.45rem;
  flex: 0 0 auto;
}
.timeline-title { margin: 0; color: var(--text); font-size: 0.93rem; font-weight: 500; }
.timeline-meta { margin: 0.1rem 0 0; font-size: 0.75rem; color: var(--text-4); font-family: var(--font-mono); }

.avatar-logo {
  width: 64px; height: 64px;
  border-radius: var(--r);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--text-2);
  border-color: var(--text-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(24,201,100,0.3);
}
.btn-gold:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--surface-3);
}

.btn-lg {
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.925rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
  background: var(--white);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-4); }
.form-textarea { resize: vertical; line-height: 1.6; }

.form-hint {
  font-size: 0.75rem;
  color: var(--text-4);
  margin-top: 0.35rem;
}
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 0.35rem;
}

input[type="file"].form-input { padding: 0.5rem 0.9rem; cursor: pointer; }

/* Form card inputs — inherit */
.form-card input:not([type="checkbox"]):not([type="radio"]),
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.925rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-card input:not([type="checkbox"]):not([type="radio"]):focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
  background: var(--white);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

/* ── Data Tables ──────────────────────────────────────────── */
.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table thead { background: var(--text); }
.data-table th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 0.9rem 1.25rem;
  text-align: left;
}
.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--green-tint); }
.data-table td { padding: 0.85rem 1.25rem; color: var(--text-2); vertical-align: middle; }
.data-table td.mono-cell { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); }
.data-table td.median-cell { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--green-deeper); }
.data-table td:last-child a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.data-table td:last-child a:hover { color: var(--green); }

/* ── Salary Benchmark ─────────────────────────────────────── */
.benchmark-card {
  background: linear-gradient(135deg, var(--green-deeper) 0%, var(--green-dark) 100%);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.benchmark-card::after {
  content: '';
  position: absolute;
  bottom: -24px; right: -24px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.benchmark-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--white); }
.benchmark-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.benchmark-stat-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 0.3rem;
}
.benchmark-stat-value {
  font-family: var(--font-mono); font-size: 1.45rem;
  font-weight: 600; color: var(--white);
}
.benchmark-note { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 0.75rem; text-align: center; }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.pagination-count { font-size: 0.8rem; color: var(--text-4); }
.pagination-links { display: flex; gap: 0.35rem; }
.page-link {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.15s;
  cursor: pointer;
  font-family: var(--font);
}
.page-link:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-tint);
}
.page-link--active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ── Status Badges ────────────────────────────────────────── */
.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: var(--r-full);
}
.status-active   { background: var(--green-tint); color: var(--green-deeper); }
.status-inactive { background: var(--surface-2);   color: var(--text-4); }

/* ── Success Box ──────────────────────────────────────────── */
.success-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.token-display {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  color: var(--text);
  word-break: break-all;
}

/* ── Back Link ────────────────────────────────────────────── */
.back-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-4);
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--text-4); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb span { opacity: 0.4; }

/* ── Social Auth ──────────────────────────────────────────── */
.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-social:hover { background: var(--surface-2); border-color: var(--surface-3); }
.btn-social:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-social:disabled:hover { background: var(--surface); border-color: var(--border); }
.coming-soon-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-full);
  margin-left: auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-4);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Save Job ─────────────────────────────────────────────── */
.job-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.btn-save {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-save:hover { border-color: var(--green); color: var(--green-dark); }
.btn-save--saved { border-color: var(--green); color: var(--green-deep, #12a952); background: var(--green-tint); }

/* ── Application Cards ────────────────────────────────────── */
.application-card { padding: 1.25rem 1.5rem; }
.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.application-name { font-size: 1rem; font-weight: 600; margin: 0 0 0.2rem; }
.application-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cover-message-details { margin: 0.75rem 0 0; }
.cover-message-toggle {
  cursor: pointer;
  color: var(--text-3);
  font-size: 0.875rem;
  user-select: none;
}
.cover-message-toggle:hover { color: var(--text); }
.cover-message-body {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--r);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.application-actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.status-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.status-btn {
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.status-btn:hover { border-color: var(--text-3); color: var(--text); }
.status-btn--active { font-weight: 700; }
.status-btn--viewed.status-btn--active    { border-color: #6b8cff; color: #4b6bf8; background: rgba(107,140,255,0.08); }
.status-btn--shortlisted.status-btn--active { border-color: var(--amber); color: #92400e; background: var(--amber-tint); }
.status-btn--interview.status-btn--active { border-color: var(--green); color: var(--green-deeper); background: var(--green-tint); }
.status-btn--rejected.status-btn--active  { border-color: var(--red); color: #be123c; background: var(--red-tint); }
.status-btn--offered.status-btn--active   { border-color: var(--green); color: var(--green-deeper); background: var(--green-tint); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s var(--ease) both; }
.fade-up-1 { animation-delay: 0.04s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.16s; }
.fade-up-4 { animation-delay: 0.22s; }

/* ── HTMX ─────────────────────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator { opacity: 1; }

/* ── Prose ────────────────────────────────────────────────── */
.prose { color: var(--text-2); font-size: 0.98rem; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.4rem; margin-bottom: 0.7rem; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.prose p, .prose ul { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .browse-layout    { grid-template-columns: 1fr; }
  .salary-layout    { grid-template-columns: 1fr; }
  .salary-sidebar   { position: static; }
  .jobs-grid--browse { grid-template-columns: 1fr; }
  .job-card { min-height: 160px; }
}

@media (max-width: 640px) {
  .nav-inner {
    height: 56px;
    padding: 0 1rem;
  }

  .scroll-progress { top: 60px; }
  .home-flow { gap: 1rem; }
  .connected-section:not(:last-child)::after { display: none; }

  .hero-title { font-size: 2.25rem; }
  .hero-title--brand {
    font-size: clamp(2.9rem, 17vw, 4.8rem);
    letter-spacing: -0.055em;
  }
  .hero-subtitle {
    font-size: 1rem;
    max-width: 34ch;
    margin-bottom: 1.1rem;
  }
  .search-form {
    max-width: 100%;
    flex-direction: column;
    border-radius: var(--r-lg);
    overflow: visible;
    gap: 0.55rem;
    background: transparent;
    box-shadow: none;
  }
  .search-input {
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1rem;
  }
  .search-btn {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  }
  .job-detail-header { padding: 1.25rem; }
  .job-body  { padding: 1.25rem; }
  .benchmark-stats { grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
  .benchmark-stat-value { font-size: 1.1rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .split-row { flex-direction: column; }

  .nav-burger { display: none !important; }
  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 0.12rem;
    box-shadow: none;
    max-height: none;
    overflow-y: visible;
  }
  .nav-links--open { display: flex; }
  .nav-links a {
    width: auto;
    min-height: 0;
    padding: 0.34rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--r-full);
    color: var(--brand-light);
    text-align: center;
    display: inline-flex;
  }
  .nav-links a:hover { background: rgba(248, 250, 252, 0.12); color: #f8fafc; }
  .nav-links a:first-child { border-top: none; }
  .nav-links a.nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .connected-section,
  .connected-section.is-scroll-active {
    transform: none;
  }

  .connected-section.is-scroll-inactive {
    opacity: 1;
  }
}
