:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --error: #b91c1c;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrap {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.hero {
  padding: 3.5rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero .btn {
  margin-top: 1.5rem;
}

.lede {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.jobs {
  padding: 2rem 0 4rem;
}

.jobs h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.job-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.job-card h3 {
  font-size: 1.25rem;
}

.job-card p {
  margin: 0;
}

.job-facts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.job-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.job-card p:not(.job-meta):not(.job-pay) {
  flex: 1;
  color: var(--muted);
}

.job-card p.job-pay {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn:focus-visible,
.close:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.brand:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.job-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: inherit;
}

.steps {
  padding: 0 0 4rem;
}

.steps h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.step-list li::before {
  content: counter(step);
  counter-increment: step;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-weight: 700;
}

.step-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.step-list p {
  margin: 0;
  color: var(--muted);
}

.steps-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.apply-dialog {
  width: min(440px, calc(100% - 2rem));
  margin: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.apply-dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
}

.apply-dialog h2 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  background: #f3f4f6;
}

form,
#success {
  display: flex;
  flex-direction: column;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

input,
select {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin: -0.5rem 0 0.85rem;
  color: var(--error);
  font-size: 0.8125rem;
}

form .btn,
#success .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.success-copy {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.assessment {
  padding: 2.5rem 0 4rem;
}

.wrap.assessment-card {
  width: min(720px, calc(100% - 2rem));
}

.form-frame {
  width: 100%;
  height: 2600px;
  margin-top: 1.25rem;
  border: 0;
}

.form-frame-done {
  height: 720px;
}

#received {
  text-align: center;
}

#received .lede {
  margin-inline: auto;
}

.received-mark {
  margin: 0.5rem 0 1.25rem;
}

#received .btn {
  margin-top: 1.25rem;
}

.assessment input:not([type="radio"]),
.assessment textarea {
  width: 100%;
  max-width: 100%;
}

.entry-block,
.entry-block label {
  min-width: 0;
}

.assessment h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.assessment h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.instruction {
  margin-bottom: 1.5rem;
}

.table-scroll {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  font-variant-numeric: tabular-nums;
}

.entry-block {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.row-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.entry-block label {
  margin-bottom: 0;
}

caption {
  padding: 0.75rem 1rem 0;
  caption-side: top;
  text-align: left;
}

.audio-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.audio-player .btn {
  width: auto;
  min-width: 5.75rem;
  margin-top: 0;
}

.audio-track {
  flex: 1 1 8rem;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.audio-progress {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.audio-time {
  min-width: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.playback-note {
  margin: -0.25rem 0 1rem;
}

textarea {
  min-height: 9rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.question {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.question legend {
  margin-bottom: 0.75rem;
  padding: 0;
  font-weight: 600;
}

.choice {
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  font-weight: 400;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: 0.15rem;
  padding: 0;
}

.link-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.4rem;
}

.link-list a {
  color: var(--blue);
  font-weight: 600;
}

.processing p {
  margin: 0;
}

.status-panel {
  min-height: 14rem;
  padding-top: 1.5rem;
}

.processing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: var(--blue);
  }
}

.apply-grid {
  display: grid;
  gap: 0 1rem;
}

.prompt {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.prompt p {
  margin: 0.35rem 0 0;
}

.part {
  margin: 0 0 1.75rem;
}

.part h2 {
  margin-bottom: 0.35rem;
}

.part .hint {
  margin: 0 0 1rem;
  color: var(--muted);
}

@media (min-width: 720px) {
  .apply-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .entry-block.data-row {
    grid-template-columns: 1.2fr 0.9fr 0.8fr 0.9fr;
  }
}

@media (min-width: 720px) {
  .entry-block {
    grid-template-columns: 1.4fr 1fr 0.8fr;
  }

  .row-label {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .hero {
    padding-top: 4.5rem;
  }

  .job-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .job-card {
    padding: 1.5rem;
  }

  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.exam-body {
  background: #fff;
  color: #111827;
}

.exam-wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.exam-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.exam-top h1,
#results h1,
#invalid h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  letter-spacing: -0.03em;
}

.exam-timer {
  margin: 0;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.exam-progress {
  margin: 1.25rem 0 1.5rem;
}

.exam-progress p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--blue);
}

.exam-question {
  margin: 0;
  padding: 0;
  border: 0;
}

.exam-question legend,
.exam-written {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
}

.option input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.15rem;
  padding: 0;
}

.exam-written {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-body textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.exam-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn.secondary:hover {
  background: #eff6ff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.exam-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.exam-notes {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.exam-notes li + li {
  margin-top: 0.45rem;
}

#intro .exam-email {
  max-width: 28rem;
  margin-top: 1.25rem;
}

#intro .btn {
  margin-top: 0.5rem;
}

#results,
#already {
  text-align: center;
}

#results .exam-copy,
#already .exam-copy {
  margin-inline: auto;
  max-width: 36rem;
}

@media (max-width: 640px) {
  .exam-nav {
    flex-direction: column;
  }

  .exam-nav .btn {
    width: 100%;
  }
}
