:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5b6475;
  --line: #d7dce5;
  --panel: #ffffff;
  --bg: #f5f7fb;
  --primary: #1766e8;
  --primary-dark: #0f4fb8;
  --danger: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.upload-panel,
.job-card,
.content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 40px rgb(23 32 51 / 8%);
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 2px dashed #9aa8bd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  padding: 20px;
}

.drop-zone input {
  display: none;
}

.controls {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

select,
button,
.button {
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

button:hover,
.button:hover {
  background: var(--primary-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background: #edf2f8;
  border-color: #c7d2e2;
  color: var(--ink);
}

.limits,
.upload-note,
.message,
footer {
  color: var(--muted);
  font-size: 14px;
}

.upload-note {
  line-height: 1.5;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 56px;
}

.details h2,
.content h1,
.job-card h1 {
  margin-top: 0;
}

.details p,
.content p,
.content li,
.content-section p,
.content-section li {
  color: var(--muted);
  line-height: 1.65;
}

.job-card,
.content {
  margin: 64px auto;
  max-width: 720px;
}

.wide-content {
  max-width: 920px;
}

.content h2 {
  margin: 28px 0 8px;
}

.content-section {
  padding: 16px 0 56px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2,
.content-section h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.note-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  margin-bottom: 0;
}

.feature-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.steps {
  padding-left: 22px;
}

.steps li + li {
  margin-top: 12px;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin-bottom: 0;
}

.article-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.article-list a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
}

.article-list h2,
.article-list h3 {
  margin: 0 0 8px;
}

.article-list p {
  margin: 0;
}

.article-content h1 {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-grid article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-grid h2 {
  margin-top: 0;
}

.progress {
  width: 100%;
  height: 10px;
  background: #e4e9f2;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0;
}

#progressBar {
  width: 10%;
  height: 100%;
  background: var(--primary);
  transition: width 0.25s ease;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.error {
  color: var(--danger);
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

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

  .feature-grid,
  .feature-grid.compact,
  .split-section {
    grid-template-columns: 1fr;
  }
}
