:root {
  --font-sans: Geist, Arial, system-ui, -apple-system, sans-serif;
  --color-brand: #1a1a1a;
  --color-brand-dark: #292929;
  --color-accent: #839aff;
  --color-text: #1a1a1a;
  --color-secondary: #525252;
  --color-hint: #737373;
  --color-surface: #f2f2f2;
  --color-card: #ffffff;
  --color-border: #e6e6e6;
  --color-error: #b42318;
  --gradient: linear-gradient(90deg, #c9aaff, #feffbc 25%, #ffcdfd 50%, #b3e2ff 75%, #839aff);
  --gradient-reverse: linear-gradient(270deg, #c9aaff, #feffbc 25%, #ffcdfd 50%, #b3e2ff 75%, #839aff);
  --radius-shell: 40px;
  --radius-card: 28px;
  --radius-input: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 450px;
  padding: 16px 20px 28px;
  background: #b8b8b8;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.48) 62%, rgba(0, 0, 0, 0.16) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(rgba(184, 184, 184, 0), #b8b8b8 82%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 52px;
  left: 50%;
  width: min(620px, calc(100% - 80px));
  aspect-ratio: 1280 / 626;
  height: auto;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  mask-composite: intersect;
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-logo,
.nav-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.nav-logo img { height: 24px; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 4px 4px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: #fff; }

.hero-copy {
  position: relative;
  max-width: 640px;
  margin: 88px auto 0;
}

.hero-copy .eyebrow,
.hero-copy p {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.eyebrow-light {
  background: var(--color-surface);
  border-color: transparent;
  color: var(--color-text);
}

.eyebrow-light .eyebrow-dot { background: var(--color-text); }
.eyebrow-num { color: var(--color-hint); font-weight: 500; }

.hero-heading {
  position: relative;
  z-index: 2;
  margin: 14px 0 10px;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  mix-blend-mode: hard-light;
}

.hero-copy p {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.45;
}

body.in-role .hero { padding-bottom: 64px; }
body.in-role .hero { min-height: 263px; background: #141414; }
body.in-role .hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}
body.in-role .hero::after { display: none; }
body.in-role .hero-media { display: none; }
body.in-role .hero-copy { margin-top: 44px; }
body.in-role .hero-heading { margin-bottom: 0; font-size: clamp(30px, 4.6vw, 42px); }
body.in-role .hero-copy p { display: none; }

/* Layout */

.page {
  width: min(1000px, calc(100% - 32px));
  margin: 36px auto 88px;
}

body.in-role .page { margin-top: -32px; position: relative; z-index: 2; }

.shell {
  padding: 20px;
  border-radius: var(--radius-shell);
  background: var(--color-surface);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 18px;
  line-height: 1.45;
}

/* Role cards */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.role-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(23, 23, 23, 0.35);
}

.role-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.role-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.role-icon-orb {
  background: radial-gradient(circle at 50% 50%, #839aff 0%, #b3e2ff 30%, #ffcdfd 62%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.role-icon-dot {
  background: linear-gradient(#5a5a5a, #1a1a1a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.role-icon-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-reverse) border-box;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.role-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.role-desc {
  margin: 0 0 22px;
  color: var(--color-secondary);
  font-size: 16px;
  line-height: 1.45;
}

.role-type {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.role-type span { color: var(--color-hint); font-size: 18px; letter-spacing: -0.03em; }

.role-card hr {
  width: 100%;
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.list-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

/* Application card */

.form-shell { max-width: 720px; margin: 0 auto; }

.role-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 16px;
}

.back {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.back:hover { border-color: var(--color-text); }

.card {
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

.panel { padding: 36px 36px 40px; }
.panel[hidden] { display: none; }

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.lede {
  margin: -12px 0 26px;
  color: var(--color-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.result p {
  margin: 0 0 24px;
  color: var(--color-secondary);
  font-size: 17px;
  line-height: 1.5;
}

form { display: grid; gap: 20px; }

.field, fieldset.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > span,
.field > label,
legend,
.split span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

legend {
  padding: 0;
  margin-bottom: 4px;
}

.question {
  display: flex;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.qnum {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
  height: 50px;
  padding: 0 14px;
}

select { padding-right: 36px; }

textarea {
  min-height: 150px;
  padding: 14px;
  border-radius: 18px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #a3a3a3; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 4px rgba(131, 154, 255, 0.22);
}

.hint {
  color: var(--color-hint);
  font-size: 13px;
}

.error {
  min-height: 0;
  color: var(--color-error);
  font-size: 13px;
}

.error:empty { display: none; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split label { display: grid; gap: 8px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.check input { width: 18px; height: 18px; accent-color: var(--color-brand); }

.choices, .shifts { display: grid; gap: 8px; }

.choices { grid-template-columns: 1fr 1fr; }

.choice,
.shifts .check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.choice:hover,
.shifts .check:hover { border-color: #bdbdbd; }

.choice:has(input:checked),
.shifts .check:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-surface);
}

.choice input { accent-color: var(--color-brand); }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 4px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(#1f1f1f, #000) padding-box, var(--gradient-reverse) border-box;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px -12px rgba(131, 154, 255, 0.9);
}

.primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.linkish {
  justify-self: center;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-secondary);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

#calendar-note { margin: 12px 0 0; text-align: center; }

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 20px;
  background: #141414;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer img { height: 18px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero { min-height: 430px; padding: 14px 14px 20px; }
  .nav-pill { gap: 10px; padding-left: 16px; font-size: 14px; }
  .nav-cta { height: 44px; padding: 0 14px; font-size: 14px; }
  .nav-logo { width: 54px; height: 54px; }
  .hero-media { top: 58px; width: calc(100% - 28px); }
  .hero-copy { margin-top: 86px; }
  .hero-copy p, .section-head p { font-size: 16px; }
  .page { width: calc(100% - 20px); margin-top: 56px; }
  .shell { padding: 10px; border-radius: 30px; }
  .roles { grid-template-columns: 1fr; gap: 10px; }
  .role-card { padding: 22px; border-radius: 22px; }
  .role-bar { padding: 4px 4px 10px; }
  .card { border-radius: 22px; }
  .panel { padding: 26px 20px 30px; }
  .choices { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; gap: 8px 14px; }
}
