/* Pairyx — /apply
   Same tokens and visual language as the marketing site, but self-contained:
   the homepage's styles.css is built around that page's inline-styled markup,
   so this page carries its own copy of the system rather than depending on it. */

:root {
  --navy: #071023;
  --panel: rgba(255, 255, 255, 0.022);
  --panel-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --gold: #f9d38a;
  --gold-dim: rgba(249, 211, 138, 0.22);
  --blue: #6e8bff;
  --blue-dim: rgba(110, 139, 255, 0.22);
  --ink: #f2f2f4;
  --ink-2: #a6a6b2;
  --ink-3: #6e6e78;
  --warn: #f2938a;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: rgba(249, 211, 138, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- nav pill */

#px-nav { position: sticky; top: 0; left: 0; right: 0; z-index: 50; }
.navwrap { display: flex; justify-content: center; padding: 20px 32px; }

#px-navpill {
  position: relative; display: flex; align-items: center; gap: 3px;
  padding: 7px 8px 7px 6px; border-radius: 100px;
  background: rgba(10, 20, 44, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.34);
}
.px-navlogo {
  position: relative; z-index: 1; display: flex; align-items: center;
  padding: 4px 8px; border-radius: 100px; text-decoration: none; transition: opacity .25s;
}
.px-navlogo:hover { opacity: .8; }
.px-navlogo img {
  height: 27px; width: 25px; object-fit: contain; display: block;
  filter: drop-shadow(0 0 7px rgba(249, 211, 138, .55)) brightness(1.12); margin-left: 8px;
}
.px-navdiv {
  width: 1px; height: 22px; background: rgba(255, 255, 255, .13); margin: 0 5px; flex: none;
}
.px-navlink {
  position: relative; z-index: 1; font-size: 14px; color: #b6b6c0;
  text-decoration: none; padding: 9px 15px; border-radius: 100px; transition: color .25s;
  white-space: nowrap;
}
.px-navlink:hover { color: #fff; }
#px-navcta {
  position: relative; z-index: 1; display: inline-flex; align-items: center; white-space: nowrap;
  margin-left: 4px; padding: 9px 18px; border-radius: 100px; background: #f2f2f4;
  color: var(--navy); font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: transform .3s cubic-bezier(.16,.8,.3,1), box-shadow .3s;
}
#px-navcta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(249, 211, 138, .45); }
/* The `hidden` attribute sets display:none at low specificity, so the rule
   above would win and the signed-out state would still show "Sign out".
   Attribute selectors outrank plain element rules, so this restores it. */
#px-navcta[hidden] { display: none; }
[hidden] { display: none !important; }

@media (max-width: 780px) {
  .px-navlink, .px-navdiv { display: none; }
  .navwrap { padding: 14px 18px; }
}

/* ---------------------------------------------------------------- layout */

.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 24px 90px; }
.view { animation: rise .45s cubic-bezier(.16,.8,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(34px, 6vw, 56px); line-height: 1.02; margin: 0 0 18px; text-wrap: balance;
}
.lede { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 0 34px; }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.mono-note { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; border: none; background: #f2f2f4;
  color: var(--navy); font-family: inherit; font-weight: 600; font-size: 15.5px;
  text-decoration: none; cursor: pointer;
  transition: transform .3s cubic-bezier(.16,.8,.3,1), box-shadow .3s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(249,211,138,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
}
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.05); box-shadow: none; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.stack { display: block; }

/* ---------------------------------------------------------------- role cards */

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .roles { grid-template-columns: 1fr; } }

.rolecard {
  display: block; text-align: left; width: 100%; cursor: pointer; color: inherit;
  font-family: inherit;
  background: linear-gradient(160deg, rgba(110,139,255,.08), rgba(255,255,255,.015));
  border: 1px solid var(--blue-dim); border-radius: 22px; padding: 30px;
  transition: transform .4s cubic-bezier(.16,.8,.3,1), border-color .4s, box-shadow .4s;
}
.rolecard:hover { transform: translateY(-4px); border-color: rgba(110,139,255,.6); box-shadow: 0 22px 60px rgba(110,139,255,.18); }
.rolecard.gold { background: linear-gradient(160deg, rgba(249,211,138,.08), rgba(255,255,255,.015)); border-color: var(--gold-dim); }
.rolecard.gold:hover { border-color: rgba(249,211,138,.6); box-shadow: 0 22px 60px rgba(249,211,138,.18); }
.rolecard .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--blue); margin-bottom: 14px; }
.rolecard.gold .tag { color: var(--gold); }
.rolecard .title { font-family: var(--serif); font-size: 27px; line-height: 1.1; margin-bottom: 10px; }
.rolecard p { color: var(--ink-2); font-size: 15px; margin: 0; }

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

.progress { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 0 0 34px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; transition: width .5s cubic-bezier(.16,.8,.3,1); }

.fieldset {
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  padding: 26px; margin: 0 0 20px;
}
.fieldset > legend, .fieldset > .legend {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 20px; padding: 0;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
/* Direct child only: a checkbox/radio pill's own <label class="check"> lives
   nested inside .field (via .checks), and must keep its inline-flex layout —
   the descendant form of this selector was overriding it on specificity,
   collapsing the checkbox and its text onto each other with no gap. */
.field > label {
  display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 4px;
}
.field .hint { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 9px; }
.field .req { color: var(--gold); margin-left: 2px; }

.field input[type=text], .field input[type=email], .field input[type=number],
.field input[type=url], .field select, .field textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 11px; color: var(--ink); font-family: inherit;
  /* 16px minimum: below that, iOS Safari zooms the viewport on focus. */
  font-size: 16px; padding: 12px 14px; line-height: 1.5;
  transition: border-color .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-dim); background: rgba(255,255,255,.055); outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(1em + 3px), calc(100% - 14px) calc(1em + 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: #0a1226; color: var(--ink); }

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: rgba(242,147,138,.55); background: rgba(242,147,138,.05);
}
.field .err { display: none; font-size: 13px; color: var(--warn); margin-top: 6px; }
.field.invalid .err { display: block; }

/* checkbox group */
.checks { display: flex; flex-wrap: wrap; gap: 9px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px;
  font-size: 14px; color: var(--ink-2); background: var(--panel-2);
  transition: border-color .25s, color .25s, background .25s;
}
.check input { accent-color: var(--gold); width: 15px; height: 15px; margin: 0; }
.check:hover { border-color: var(--line-2); color: var(--ink); }
.check:has(input:checked) {
  border-color: var(--gold-dim); background: rgba(249,211,138,.08); color: var(--ink);
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }

.fineprint { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; max-width: 54ch; }

/* ---------------------------------------------------------------- callouts */

.callout {
  border: 1px solid var(--gold-dim); background: rgba(249,211,138,.06);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; font-size: 14.5px; color: #c2c2cc;
}
.callout.warn { border-color: rgba(242,147,138,.42); background: rgba(242,147,138,.07); }
.callout strong { color: var(--ink); }

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

.foot {
  border-top: 1px solid rgba(255,255,255,.08); padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px; max-width: 1200px; margin: 0 auto; width: 100%;
}
.foot img { height: 52px; width: auto; object-fit: contain; display: block; }
.footlinks { display: flex; gap: 26px; flex-wrap: wrap; }
.footlinks a { font-size: 13.5px; color: #7e7e8a; text-decoration: none; transition: color .25s; }
.footlinks a:hover { color: var(--ink); }
.foot .copy { font-family: var(--mono); font-size: 11.5px; color: #5e5e6a; }

@media (max-width: 620px) {
  .page { padding: 26px 18px 70px; }
  .fieldset { padding: 20px; }
  .foot { justify-content: center; text-align: center; }
}

/* ---------------------------------------------------------------- steps */

.stepcount {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px;
}
.stepnote {
  font-size: 14px; color: var(--ink-2); margin: -8px 0 22px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
/* The required marker has to be legible on its own — colour alone is not a
   signal for anyone who cannot distinguish it. `title` carries the text. */
.field .req { color: var(--gold); margin-left: 3px; cursor: help; }
