@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/noto-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/static/fonts/source-serif-4.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/static/fonts/noto-naskh-arabic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #f4efe4;
  --background-deep: #e9e0cf;
  --surface: #fffdf7;
  --surface-soft: #f8f3e8;
  --forest: #173f35;
  --forest-deep: #0e2f28;
  --forest-soft: #dce7df;
  --gold: #a7782f;
  --gold-soft: #ead9b9;
  --ink: #23302b;
  --muted: #6d756f;
  --line: #d8cebb;
  --danger: #8b3434;
  --danger-bg: #f7e5df;
  --shadow: 0 24px 70px rgba(48, 39, 25, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(167, 120, 47, 0.12), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(23, 63, 53, 0.09), transparent 28rem),
    var(--background);
  color: var(--ink);
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(167, 120, 47, 0.08) 49%, rgba(167, 120, 47, 0.08) 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(167, 120, 47, 0.08) 49%, rgba(167, 120, 47, 0.08) 51%, transparent 52%);
  background-size: 72px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  opacity: 0.45;
  pointer-events: none;
}

a {
  color: inherit;
}

.site-header {
  min-height: 88px;
  padding: 12px 5vw;
  border-bottom: 1px solid rgba(167, 120, 47, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--forest);
  text-decoration: none;
}

.brand-mark {
  width: 51px;
  height: 58px;
  border: 1px solid rgba(167, 120, 47, 0.58);
  border-radius: 26px 26px 11px 11px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), transparent),
    var(--surface-soft);
  box-shadow: inset 0 0 0 5px rgba(167, 120, 47, 0.07);
}

.brand-mark span {
  color: var(--gold);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.account form {
  margin: 0;
}

.link-button {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
}

.page {
  width: min(1120px, 90vw);
  margin: 72px auto 52px;
}

.site-footer {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-align: center;
}

.site-footer::before {
  width: 44px;
  height: 1px;
  margin: 0 auto 18px;
  display: block;
  background: var(--gold);
  content: "";
  opacity: 0.55;
}

.hero {
  min-height: 430px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(44px, 7vw, 84px);
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--forest-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.card h1,
.narrow h1,
.job-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.intro {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.purpose-note {
  max-width: 590px;
  margin-top: 31px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 253, 247, 0.55);
}

.purpose-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.91rem;
}

.purpose-note strong {
  color: var(--forest);
}

.card,
.upload-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(27px, 5vw, 52px);
  background: rgba(255, 253, 247, 0.94);
}

.upload-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0, rgba(234, 217, 185, 0.17), transparent 16rem),
    var(--forest-deep);
  color: #fffaf0;
}

.upload-card::before {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -112px;
  right: -52px;
  border: 1px solid rgba(234, 217, 185, 0.22);
  border-radius: 50%;
  content: "";
}

.upload-card h2 {
  margin-bottom: 9px;
  color: #fffaf0;
  font-size: 2rem;
}

.upload-card > p {
  color: rgba(255, 250, 240, 0.70);
  font-size: 0.84rem;
}

.upload-heading {
  margin-bottom: 24px;
}

.upload-heading .eyebrow {
  color: var(--gold-soft);
}

.upload-heading > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.70);
}

.narrow {
  width: min(540px, 100%);
  margin: 9vh auto;
}

.narrow::before {
  width: 54px;
  height: 64px;
  margin: -12px auto 28px;
  border: 1px solid rgba(167, 120, 47, 0.45);
  border-radius: 28px 28px 12px 12px;
  display: block;
  content: "";
  background: radial-gradient(circle, var(--gold) 2px, transparent 3px);
  background-size: 12px 12px;
  opacity: 0.7;
}

.stack {
  display: grid;
  gap: 19px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button,
.button {
  border: 1px solid var(--forest);
  border-radius: 10px;
  background: var(--forest);
  color: #fffdf7;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.upload-card button {
  width: 100%;
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--forest-deep);
}

.upload-card button:hover {
  background: #f2e3c8;
}

.file-label {
  margin-bottom: 18px;
  border: 1px dashed rgba(234, 217, 185, 0.58);
  border-radius: 18px;
  padding: 28px;
  color: #fffaf0;
  text-align: center;
}

.file-label > span {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
}

.file-label input {
  margin-top: 13px;
  padding: 9px;
  border-color: rgba(234, 217, 185, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.78rem;
}

.alert {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid #dcb6a8;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-bg);
}

.section-heading {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.job-list {
  display: grid;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.job-row:hover strong {
  color: var(--gold);
}

.job-row span:first-child {
  display: grid;
  gap: 6px;
}

small {
  color: var(--muted);
}

.status {
  border-radius: 999px;
  background: #ece8dd;
  color: #58625d;
  padding: 7px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-completed {
  color: var(--forest);
  background: var(--forest-soft);
}

.status-failed,
.status-expired {
  color: var(--danger);
  background: var(--danger-bg);
}

.job-card {
  width: min(840px, 100%);
  margin: 0 auto;
}

.progress-track {
  height: 7px;
  background: var(--background-deep);
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}

.job-summary {
  margin: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back {
  margin-bottom: 34px;
  display: inline-block;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.downloads {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  min-height: 194px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(71, 55, 28, 0.08);
  transform: translateY(-2px);
}

.percentage {
  margin-bottom: 26px;
  color: var(--gold);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.download-copy {
  display: grid;
  gap: 5px;
}

.download-copy strong {
  color: var(--forest-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.16rem;
}

.download-action {
  margin-top: auto;
  padding-top: 24px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .page {
    margin: 46px auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .download-card {
    min-height: 0;
  }

  .percentage {
    margin-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 78px;
    padding: 10px 5vw;
  }

  .brand-mark {
    width: 43px;
    height: 49px;
  }

  .brand-copy small {
    display: none;
  }

  .account {
    gap: 10px;
  }

  .account > span {
    display: none;
  }

  .page {
    width: min(92vw, 1120px);
  }

  .card,
  .upload-card {
    border-radius: 21px;
  }

  .purpose-note {
    padding: 15px 16px;
  }
}
