:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #68736b;
  --line: #d8ddd6;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --accent: #126b55;
  --accent-strong: #0b4c3d;
  --warn: #9b421c;
}

* {
  box-sizing: border-box;
}

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

.landing-body {
  background:
    linear-gradient(180deg, rgba(18, 107, 85, .09), rgba(18, 107, 85, 0) 38%),
    var(--paper);
}

.hub {
  width: min(1120px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 70px 0;
}

.hub-hero {
  display: grid;
  align-content: end;
  min-height: min(58svh, 560px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.hub-hero h1 {
  max-width: 920px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: .92;
}

.hub-copy {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}

.module-list {
  padding-top: 30px;
}

.module-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.module-row:hover {
  color: var(--accent-strong);
  transform: translateX(4px);
}

.module-index {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
}

.module-row strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.module-row em {
  display: block;
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.module-action,
.back-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.workspace,
.progress-panel,
.results {
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 26px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.status-pill {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 28px 0;
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: start;
  gap: 26px;
  padding: 42px;
  border: 2px dashed #aeb9b0;
  background:
    linear-gradient(135deg, rgba(18, 107, 85, .08), transparent 34%),
    var(--panel);
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.dropzone.is-dragging {
  border-color: var(--accent);
  transform: translateY(-2px);
  background-color: #f0f6f1;
}

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

.drop-copy {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.drop-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.drop-copy strong {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.drop-copy span:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background .16s ease, transform .16s ease, opacity .16s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.queue {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 14px;
  padding: 4px 0;
}

.file-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 200px;
  max-height: 330px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.file-list li,
.downloads a,
.downloads span {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.muted {
  color: var(--muted) !important;
}

.progress-panel,
.results {
  padding: 24px 0;
}

.progress-head,
.results-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.progress-head p,
.results-head p {
  margin-top: 6px;
  color: var(--muted);
}

#jobMeta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.meter {
  height: 10px;
  margin-top: 22px;
  overflow: hidden;
  background: #dfe5de;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .24s ease;
}

.downloads {
  margin-top: 18px;
  columns: 2 280px;
  column-gap: 32px;
}

.downloads a {
  break-inside: avoid;
}

@media (max-width: 820px) {
  .hub {
    padding: 34px 0;
  }

  .hub-hero {
    min-height: auto;
    padding: 44px 0 32px;
  }

  .module-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workspace,
  .topbar,
  .progress-head,
  .results-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dropzone {
    min-height: 300px;
    padding: 26px;
  }
}
