/* Careers pages. Builds on styles.css tokens; mobile first. */

.topBar {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px;
}
.topBar .brand img { width: 32px; height: 32px; border-radius: 8px; }
.topBar .brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.topRight { display: flex; align-items: center; gap: 18px; }
.backHome {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 700;
}
.backHome:hover { color: var(--ink); }
.topBar .getapp { padding: 11px 20px; font-size: 15px; border-radius: 999px; }
@media (max-width: 560px) {
  .topBar { padding: 16px 18px; }
  .topBar .getapp { display: none; }
}

.careersHero { text-align: center; padding: 44px 0 10px; }
.careersHero h1 {
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.1;
}
.careersHero .sub { margin: 16px auto 0; }

/* ---------- Role list (careers landing) ---------- */
.rolesList {
  max-width: 720px; margin: 34px auto 0;
  display: flex; flex-direction: column; gap: 14px;
}
.roleCard {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px 24px 22px;
  box-shadow: 0 2px 8px rgba(29, 28, 34, 0.04);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.roleCard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29, 28, 34, 0.08); }
.roleCard h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.roleCard p { color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.roleTags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.roleTag {
  font-size: 13px; font-weight: 600; color: var(--ink2);
  background: var(--bg); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.roleCard .roleGo {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; color: var(--accent); font-weight: 700; font-size: 15px;
}
.roleCard .roleGo .arrow { transition: transform 0.18s var(--ease-out); }
.roleCard:hover .roleGo .arrow { transform: translateX(4px); }

/* ---------- Role page ---------- */
.roleWrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }
.roleHero { padding: 40px 0 10px; }
.roleHero h1 {
  font-size: clamp(26px, 4.2vw, 36px); font-weight: 700;
  letter-spacing: -0.4px; line-height: 1.12;
}
.roleHero p { color: var(--ink2); font-size: 17px; line-height: 1.6; margin-top: 14px; max-width: 620px; }

/* Key facts rail: left column on desktop, stacked list on mobile. */
.roleGrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 861px) {
  .roleGrid { grid-template-columns: 250px 1fr; gap: 64px; align-items: start; }
  .roleRail { position: sticky; top: 24px; padding-top: 54px; }
}
.fact { padding: 15px 0; border-bottom: 1px solid var(--line); }
.roleRail .fact:first-child { padding-top: 0; }
.fact .factLabel {
  font-size: 14px; font-weight: 500; color: var(--ink3); margin-bottom: 6px;
}
.fact .factValue { font-size: 16.5px; font-weight: 400; line-height: 1.45; }
@media (max-width: 860px) {
  .roleRail { margin-top: 8px; }
}

/* ---------- Overview / Apply tab switch ---------- */
.tabSwitch {
  display: flex; gap: 30px;
  border-bottom: 1px solid var(--line);
  width: max-content; padding-right: 8px;
  margin: 14px 0 26px;
}
.tabBtn {
  cursor: pointer;
  font-family: var(--font); font-size: 16.5px; font-weight: 600;
  color: var(--ink3); background: none;
  border: none; border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 10px 2px 11px;
  transition: color 0.18s ease;
}
.tabBtn:hover:not(.on) { color: var(--ink); }
.tabBtn.on { color: var(--accent); border-bottom-color: var(--accent); }

.overviewCta { margin-top: 34px; }
.overviewCta .getapp { width: 100%; font-size: 17px; padding: 16px 28px; border: none; cursor: pointer; font-family: var(--font); }

.roleBody { padding: 4px 0 10px; }
.roleBody h2 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.2px;
  margin: 32px 0 10px;
}
.roleBody h2:first-child { margin-top: 0; }
.roleBody p { color: var(--ink2); font-size: 16px; line-height: 1.65; }
.roleBody p + p { margin-top: 12px; }
.roleBody ul.plain {
  list-style: disc outside; margin-top: 6px; padding-left: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.roleBody ul.plain li {
  color: var(--ink2); font-size: 16px; line-height: 1.6;
  padding-left: 6px;
}
.roleBody ul.plain li::marker { color: var(--ink2); }
.payTable {
  width: 100%; max-width: 440px;
  border-collapse: separate; border-spacing: 0;
  margin: 16px 0 14px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden;
}
.payTable th, .payTable td {
  text-align: left; padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; font-weight: 400; color: var(--ink2);
}
.payTable th { color: var(--ink3); font-weight: 600; font-size: 13.5px; }
.payTable tbody tr:last-child td { border-bottom: none; }

/* ---------- Application form ---------- */
.applySect { padding: 30px 0 60px; scroll-margin-top: 24px; }
.appCard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 30px 26px;
  box-shadow: 0 2px 10px rgba(29, 28, 34, 0.04);
}
.appCard h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.appCard .appIntro { color: var(--ink2); font-size: 15.5px; line-height: 1.6; margin-bottom: 24px; }
.appForm { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-weight: 600; font-size: 15px; }
.req { color: #D64B3F; font-weight: 700; }
.linkGroup { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.subField { display: flex; flex-direction: column; gap: 6px; }
.subField .subLabel { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.field .opt { color: var(--ink3); font-weight: 500; font-size: 13px; }
.field .help { color: var(--ink3); font-size: 13.5px; line-height: 1.5; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355535E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field textarea.bigAnswer { min-height: 190px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 93, 240, 0.16);
}
.pillRow { display: flex; gap: 10px; }
.pillRow label {
  flex: 1; text-align: center; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink2);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 10px;
  transition: all 0.15s ease;
}
.pillRow input { position: absolute; opacity: 0; pointer-events: none; }
.pillRow input:checked + span { color: var(--accent); }
.pillRow label:has(input:checked) {
  color: var(--accent); background: var(--accent-ghost); border-color: var(--accent);
}
.pillRow input:focus-visible + span { outline: 3px solid rgba(109,93,240,0.4); border-radius: 6px; }
.checkField { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checkField input {
  width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.checkField span { font-weight: 600; font-size: 15px; line-height: 1.5; }

/* Honeypot: visually gone, still in the DOM for bots. */
.hpField {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.submitBtn {
  font-family: var(--font); font-size: 17px; font-weight: 800; color: #fff;
  background: var(--accent); border: none; border-radius: 14px;
  padding: 16px 28px; cursor: pointer;
  box-shadow: 0 3px 0 var(--accent-deep);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s ease;
}
.submitBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--accent-deep); }
.submitBtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.submitBtn:disabled { opacity: 0.6; cursor: default; transform: none; }
.formError {
  display: none; color: #C93E33; background: rgba(225, 88, 75, 0.09);
  border: 1px solid rgba(225, 88, 75, 0.3); border-radius: 12px;
  font-size: 14.5px; font-weight: 700; padding: 12px 14px; line-height: 1.5;
}
.formError.show { display: block; }
.successCard { text-align: center; padding: 26px 6px 10px; }
.successCard .bigCheck {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-ghost); color: var(--accent);
  font-size: 24px; font-weight: 800;
}
.successCard h2 { font-size: 22px; margin-bottom: 10px; }
.successCard p { color: var(--ink2); font-size: 16px; line-height: 1.65; max-width: 440px; margin: 0 auto; }
