/* /careers — open call + application form.
   Same tokens and type as /invite (Ease Rounded headings, Favorit text,
   #efefef ground, dashed cards, blue step chips) so the pages read as one
   family. Sizes are px at 1920 wide, vw between, floor for phones. */

@font-face {
  font-family: "Ease Rounded";
  src: url("/assets/fonts/EaseDoubleRoundedTRIAL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ease Rounded";
  src: url("/assets/fonts/EaseDoubleRoundedTRIAL-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Favorit";
  src: url("/assets/fonts/ABCFavorit-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Favorit";
  src: url("/assets/fonts/ABCFavorit-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #efefef;
  --surface: #f7f7f7;
  --ink: #000;
  --ink-soft: rgba(45, 45, 45, 0.7);
  --ink-muted: #636363;
  --line: #b9b9b9;
  --line-soft: #d6d6d6;
  --blue: #1d74f6;
  --red: #c02626;
  --col: 1152px;
  --narrow: 760px;
  --gutter: clamp(20px, 3.4vw, 64px);
  --arrow: clamp(26px, 2.03vw, 39px);
  --arrow-gap: clamp(12px, 0.8vw, 15px);

  --f-display: "Ease Rounded", "Favorit", system-ui, sans-serif;
  --f-text: "Favorit", "Inter", system-ui, -apple-system, sans-serif;

  /* Type scale */
  --t-display: clamp(44px, 5.2vw, 100px);
  --t-h2: clamp(27px, 2.5vw, 48px);
  --t-h3: clamp(21px, 1.46vw, 28px);
  --t-eyebrow-lg: clamp(16px, 1.15vw, 22px);
  --t-eyebrow-sm: clamp(10px, 0.6vw, 11.5px);
  --t-lede: clamp(18px, 1.35vw, 26px);
  --t-body: clamp(16px, 1.04vw, 20px);
  --t-small: clamp(13px, 0.78vw, 15px);

  --gap-section: clamp(72px, 7.1vw, 137px);
  --gap-title-body: clamp(28px, 2.6vw, 50px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.35;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.col {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.col--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

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

/* ---------- type ---------- */

.display,
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

.display { font-size: var(--t-display); }

h2 { font-size: var(--t-h2); }

h3 { font-size: var(--t-h3); letter-spacing: -0.04em; line-height: 1.05; }

/* Large eyebrow: the line of role titles above / below a headline. */
.eyebrow-lg {
  margin: 0;
  font-weight: 500;
  font-size: var(--t-eyebrow-lg);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

/* Small eyebrow: the blue chip used for "STEP 01" on /invite. */
.eyebrow-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 8px 4px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: var(--t-eyebrow-sm);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow-sm--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
}

.lede {
  margin: 0;
  font-weight: 500;
  font-size: var(--t-lede);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body {
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.small {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.3;
  color: var(--ink-muted);
}

/* ---------- shared bits ---------- */

.site-head { padding-top: clamp(28px, 5.4vw, 103px); }

.site-head .logo { display: inline-block; }

.site-head .logo img { width: clamp(150px, 11.4vw, 219px); }

.sec-head {
  display: flex;
  align-items: flex-start;
  gap: var(--arrow-gap);
}

.sec-arrow {
  flex: 0 0 auto;
  width: var(--arrow);
  margin-top: 0.28em;
}

@media (min-width: 1400px) {
  .sec-arrow { margin-left: calc(-1 * (var(--arrow) + var(--arrow-gap))); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 var(--t-body) / 1 var(--f-text);
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.btn:hover { transform: translateY(-2px); background: #1c1c1c; }

.btn:active { transform: translateY(0); }

.btn[disabled] { cursor: progress; opacity: 0.55; transform: none; }

.btn .arrow { transition: transform 0.25s ease; }

.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--line);
}

.btn--ghost:hover { background: rgba(0, 0, 0, 0.04); }

.btn--ghost:hover .arrow { transform: translateX(-3px); }

/* ---------- open call page ---------- */

.hero { padding-top: clamp(56px, 7vw, 134px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero .display { margin-top: clamp(20px, 1.6vw, 30px); max-width: 15ch; }

.hero .eyebrow-lg { margin-top: clamp(20px, 1.8vw, 34px); }

.hero-copy {
  display: grid;
  gap: clamp(20px, 1.6vw, 30px);
  margin-top: var(--gap-title-body);
  max-width: 760px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: var(--gap-title-body);
}

.section { padding-top: var(--gap-section); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 0.94vw, 18px);
  margin-top: var(--gap-title-body);
}

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.4vw, 26px);
  padding: clamp(22px, 1.67vw, 32px);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.card > .eyebrow-sm { align-self: flex-start; }

.card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 18px;
  font-size: var(--t-body);
  line-height: 1.35;
  color: var(--ink-muted);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 80px);
  margin-top: var(--gap-title-body);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.split .body + .body { margin-top: 1em; }

.closing {
  margin-top: var(--gap-section);
  padding: clamp(32px, 3.6vw, 70px);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.closing h2 { margin-top: 18px; }

.closing .body { margin-top: clamp(18px, 1.4vw, 26px); max-width: 680px; }

.closing .hero-cta { margin-top: clamp(28px, 2.2vw, 42px); }

/* ---------- footer ---------- */

.site-foot {
  margin-top: var(--gap-section);
  padding: clamp(40px, 4vw, 76px) 0 clamp(48px, 5vw, 96px);
  border-top: 1px dashed var(--line);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.foot-brand { display: grid; gap: 14px; }

.foot-brand img { width: clamp(150px, 11.4vw, 219px); }

.foot-site {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.foot-site:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot-follow { margin-bottom: 12px; }

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

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.foot-legal {
  margin-top: clamp(32px, 3vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot-legal a { text-decoration: none; }

.foot-legal a:hover { text-decoration: underline; }

/* ---------- application form ---------- */

.apply { padding-top: clamp(40px, 4.4vw, 84px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-small);
  color: var(--ink-muted);
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(24px, 2vw, 38px) 0 0;
  padding: 0;
  list-style: none;
}

.steps .eyebrow-sm { background: transparent; color: var(--ink-muted); border: 1px dashed var(--line); }

.steps [aria-current="step"] .eyebrow-sm { background: var(--blue); color: #fff; border-color: var(--blue); }

.steps .is-done .eyebrow-sm { color: var(--ink); border-style: solid; border-color: var(--ink); }

.form-card {
  margin-top: 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.step { padding: clamp(24px, 2.6vw, 50px); }

.step[hidden] { display: none; }

.step-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 2.4vw, 44px); }

.step-head h1 { font-size: var(--t-h2); }

.fields { display: grid; gap: clamp(18px, 1.4vw, 24px); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1vw, 18px);
}

@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 8px; }

.field label,
.field .label {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
}

.field .hint { font-size: var(--t-small); color: var(--ink-muted); }

.req { color: var(--blue); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 400 16px / 1.4 var(--f-text);
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: var(--line); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29, 116, 246, 0.18);
}

.field[data-invalid] input,
.field[data-invalid] textarea { border-color: var(--red); }

.field .error { font-size: var(--t-small); color: var(--red); }

.field .error:empty { display: none; }

/* Country combobox */

.combo { position: relative; }

.combo-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.combo-list[hidden] { display: none; }

.combo-list li {
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
}

.combo-list li:hover,
.combo-list li[aria-selected="true"] { background: var(--bg); }

/* Area of expertise */

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices legend { padding: 0; margin-bottom: 8px; }

.choices .hint { flex: 0 0 100%; margin: 0 0 4px; }

.choice { position: relative; cursor: pointer; }

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

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--t-small);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.choice:hover span { border-color: var(--ink); }

.choice input:checked + span {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

.field[data-invalid] .choice span { border-color: var(--red); }

/* Hidden from people, visible to form-filling bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drop[hidden] { display: none; }

.drop.is-over { background: rgba(29, 116, 246, 0.06); border-color: var(--blue); }

.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.drop .btn { min-height: 40px; padding: 0 18px; font-size: var(--t-small); pointer-events: none; }

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  font-size: var(--t-small);
}

.file-chip[hidden] { display: none; }

.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.file-chip button {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 2.6vw, 48px);
  padding-top: clamp(24px, 1.8vw, 32px);
  border-top: 1px dashed var(--line);
}

.step-nav .btn:only-child { margin-left: auto; }

.form-msg { margin-top: 16px; font-size: var(--t-small); color: var(--red); }

.form-msg:empty { display: none; }

/* Preview */

.review { display: grid; gap: 12px; }

.review-block {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.review-head h2 { font-size: var(--t-h3); }

.review-head button {
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: none;
  font: 500 var(--t-small) / 1 var(--f-text);
  color: var(--ink-muted);
  cursor: pointer;
}

.review-head button:hover { color: var(--ink); border-color: var(--ink); }

.review dl { margin: 0; padding: 4px 18px 10px; }

.review dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.review dl > div:last-child { border-bottom: 0; }

@media (max-width: 560px) {
  .review dl > div { grid-template-columns: 1fr; }
}

.review dt { font-size: var(--t-small); color: var(--ink-muted); }

.review dd {
  margin: 0;
  font-size: var(--t-small);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review dd.is-empty { color: #a0a0a0; }

/* Done */

.done { text-align: left; }

.done .display { font-size: clamp(36px, 3.6vw, 68px); margin-top: 18px; }

.done .body { margin-top: 18px; max-width: 520px; }

.done .hero-cta { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
