/* LYVR careers site (higher.lyvrapp.com) - same brand as info.lyvrapp.com */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --ink: #16202c;
  --muted: #5b6b7c;
  --line: #dbe3ec;
  --brand: #2b6ff0;
  --brand-soft: #eaf1ff;
  --teal: #0d9488;
  --good: #0f8a5f;
  --good-soft: #e3f6ee;
  --warn: #a16207;
  --warn-soft: #fdf3dc;
  --bad: #c2410c;
  --bad-soft: #fdeee6;
  --brand-gradient: linear-gradient(135deg, #4e8cfb 0%, #1e97c4 55%, #0fae9c 100%);
  --navy: #0a2540;
  --shadow: 0 1px 2px rgba(16, 32, 44, .06), 0 8px 24px rgba(16, 32, 44, .08);
  --radius: 14px;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.brand-word { font-size: 18px; font-weight: 800; letter-spacing: 4px; }
.brand-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--teal);
  background: #e2f5f2;
  padding: 3px 9px;
  border-radius: 999px;
}
.topnav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 6px 16px rgba(43, 111, 240, .28); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c9b5; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
input, select, textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(43, 111, 240, .35); border-color: var(--brand); }
input[type="file"] { padding: 8px; background: var(--bg); }
.form-error {
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 0 14px;
}
.form-ok {
  background: var(--good-soft);
  color: var(--good);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 0 14px;
}

/* ---------- cards & layout ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  background-image: radial-gradient(1000px 400px at 85% -10%, rgba(15, 174, 156, .35), transparent 60%),
                    radial-gradient(800px 380px at 0% 110%, rgba(78, 140, 251, .35), transparent 60%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8fe3d6;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; max-width: 760px; }
.hero h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: #c9d6e6; max-width: 620px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--display); font-size: 30px; }
.hero-stat span { font-size: 13px; color: #9fb2c8; }

/* ---------- job list ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input { flex: 1 1 240px; }
.filters select { flex: 0 1 200px; width: auto; }
.job-list { display: grid; gap: 12px; }
.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.job-row:hover { border-color: #b9cdf7; box-shadow: var(--shadow); transform: translateY(-1px); }
.job-row-main { flex: 1; min-width: 0; }
.job-row h3 { font-size: 19px; margin-bottom: 6px; }
.job-row p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.job-arrow { color: var(--brand); font-weight: 800; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-brand { color: var(--brand); background: var(--brand-soft); border-color: #cfdcfb; }

/* ---------- events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.event-card { display: flex; gap: 16px; align-items: flex-start; }
.event-date {
  flex: 0 0 64px;
  text-align: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 8px 0;
}
.event-date .m { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.event-date .d { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 18px; margin-bottom: 4px; }
.event-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.event-body p { margin: 0 0 10px; font-size: 14.5px; }
.event-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- job detail ---------- */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 32px 0 56px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; margin: 24px 0 0; }
.job-head { margin-bottom: 22px; }
.job-head h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 10px 0 12px; }
.job-head .lead { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.apply-card { position: sticky; top: 84px; }
.apply-card h2 { font-size: 22px; margin-bottom: 6px; }
.apply-card > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.fact-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; }
.fact-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.fact-list li span:first-child { color: var(--muted); }
.fact-list li span:last-child { font-weight: 600; text-align: right; }

/* ---------- auth ---------- */
.auth-wrap { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 32, 44, .12); }

/* ---------- account / dashboards ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 36px 0 8px; flex-wrap: wrap; }
.dash-head h1 { font-size: 34px; }
.dash-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab .count { font-size: 12px; background: var(--bg); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }

.app-card { margin-bottom: 14px; }
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.app-card h3 { font-size: 19px; }
.app-card .meta { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }

.status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--brand-soft);
  color: var(--brand);
}
.status-hired, .status-offer { background: var(--good-soft); color: var(--good); }
.status-interview { background: #ecebff; color: #5b4fd6; }
.status-rejected { background: var(--bad-soft); color: var(--bad); }
.status-withdrawn, .status-closed, .status-draft { background: var(--bg); color: var(--muted); }
.status-open { background: var(--good-soft); color: var(--good); }

/* progress stepper */
.stepper { display: flex; list-style: none; margin: 20px 0 6px; padding: 0; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.stepper li::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  position: relative;
  z-index: 1;
}
.stepper li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(-50% + 9px);
  right: calc(50% + 9px);
  height: 2px;
  background: var(--line);
}
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--ink); }
.stepper li.done::before { background: var(--brand); border-color: var(--brand); }
.stepper li.done::after, .stepper li.current::after { background: var(--brand); }
.stepper li.current { color: var(--brand); }
.stepper li.current::before { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 111, 240, .18); }
.stepper.ended li.current::before { border-color: var(--muted); box-shadow: none; }
.stepper.ended li.current { color: var(--muted); }
.ended-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }

.timeline { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li:last-child { border-bottom: none; }
.timeline .when { color: var(--muted); font-size: 12.5px; }
.timeline .note { margin: 6px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; white-space: pre-wrap; }
details.more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--brand); margin-top: 12px; }

/* team tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: #f7f9fc; }
tr:last-child td { border-bottom: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f7f9fc; }
td .sub { display: block; font-size: 12.5px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.notice {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 18px;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 37, 64, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-card {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(10, 37, 64, .3);
  position: relative;
}
.modal-card h2 { font-size: 24px; margin-bottom: 18px; padding-right: 36px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; margin: 0 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.letter { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; font-size: 13.5px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer a:first-child { margin-left: 0; }

@media (max-width: 860px) {
  .job-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
}
@media (max-width: 640px) {
  .wrap, .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .brand-tag { display: none; }
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
  .hero { padding: 48px 0 44px; }
  .hero p { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .job-row { padding: 16px; }
  .job-arrow { display: none; }
  .stepper li { font-size: 10.5px; }
  .tab { padding: 10px 10px; font-size: 14px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .modal { padding: 16px 10px; }
  .modal-card { padding: 20px 16px; }
  .hide-sm { display: none; }
}
