:root {
  --navy: #1a2b3c;
  --navy-deep: #0f1b28;
  --gold: #c4a46c;
  --gold-hover: #d4b67e;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --line: #d9d0c2;
  --ink: #1a2b3c;
  --muted: #5c6670;
  --err: #8b2e2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 7px;
  background: var(--navy);
  border-radius: 50%;
}
.mark span {
  display: block;
  width: 5px;
  background: var(--gold);
  border-radius: 1px;
}
.mark span:nth-child(1) { height: 10px; }
.mark span:nth-child(2) { height: 16px; }
.mark span:nth-child(3) { height: 22px; }

.firm {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.sub { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  margin: 6px 0 10px;
  line-height: 1.15;
}
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  margin: 0 0 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.lead { color: var(--muted); max-width: 58ch; line-height: 1.55; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(26, 43, 60, 0.04);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
input[type="password"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  margin-bottom: 14px;
}

button, .btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  padding: 11px 20px;
  text-decoration: none;
  display: inline-block;
}
.gold {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}
.gold:hover { background: var(--gold-hover); }
.gold:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hidden { display: none !important; }
.error { color: var(--err); font-size: 14px; margin-top: 10px; }

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 36px 18px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  margin-bottom: 16px;
}
.dropzone strong { display: block; margin-bottom: 6px; }
.dropzone span { color: var(--muted); font-size: 14px; }
.dropzone.drag { border-color: var(--gold); background: #faf6ee; }
.file-label { font-size: 14px; margin: 0 0 12px; }

.steps ol { margin: 0; padding-left: 18px; color: var(--muted); }
.steps li { margin-bottom: 10px; line-height: 1.45; }

.status {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}
.status p { margin: 4px 0 0; color: var(--muted); }

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done { margin-top: 18px; }
.done .btn { margin-right: 10px; margin-top: 8px; }

footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
