/* =====================================================================
   Aven Subscription Manager -- Installer
   Signature: an installation "manifest" -- a torn ledger receipt down
   the left edge that gets a red/green ink stamp next to each item as
   the wizard verifies it, echoing how the product itself will later
   stamp invoices and audit entries.
   ===================================================================== */

:root {
  --ink: #14171c;
  --ink-soft: #2a2f37;
  --paper: #eeece4;
  --paper-raised: #f7f6f1;
  --rule: #cdc7b6;
  --muted: #756f5f;
  --seal: #2f6f5e;
  --seal-soft: #e4ede9;
  --amber: #b5762a;
  --amber-soft: #f4e9d8;
  --red: #a33f3f;
  --red-soft: #f4e2e0;

  --font-display: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --font-body: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
}

.wizard {
  display: flex;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Manifest sidebar ---------- */

.manifest {
  width: 300px;
  flex-shrink: 0;
  background: var(--ink);
  color: #e9e6da;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
}

.manifest-head .mark {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--seal);
  text-transform: uppercase;
}

.manifest-head h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 10px 0 4px;
  font-weight: 600;
}

.manifest-head .sub {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: #a39d8b;
  letter-spacing: .04em;
}

.manifest-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  flex: 1;
}

.manifest-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
  font-size: 13px;
  color: #8f8975;
  transition: color .2s ease;
}

.manifest-list li .entry b {
  font-family: var(--font-display);
  color: #6b6656;
  margin-right: 6px;
  font-weight: 500;
}

.manifest-list li.current { color: #fff; }
.manifest-list li.current .entry b { color: var(--seal); }

.manifest-list li.done { color: #cfc9b8; }
.manifest-list li.done .entry b { color: var(--seal); }

.stamp {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  flex-shrink: 0;
  position: relative;
}

.stamp.pass {
  border-color: var(--seal);
  background: rgba(47, 111, 94, .18);
}
.stamp.pass::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--seal);
  font-weight: 700;
}

.stamp.fail {
  border-color: var(--red);
  background: rgba(163, 63, 63, .18);
}
.stamp.fail::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--red);
  font-weight: 700;
}

.manifest-foot {
  font-family: var(--font-display);
  font-size: 10.5px;
  color: #6b6656;
  letter-spacing: .02em;
  padding-top: 20px;
}

/* ---------- Perforation divider ---------- */

.perforation {
  width: 1px;
  background-image: linear-gradient(var(--rule) 60%, transparent 0%);
  background-position: top;
  background-size: 1px 12px;
  background-repeat: repeat-y;
  flex-shrink: 0;
}

/* ---------- Panel area ---------- */

.panel-area {
  flex: 1;
  padding: 56px 56px 40px;
  display: flex;
  align-items: center;
}

.step { width: 100%; max-width: 640px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 10px;
}

.step h2 {
  font-size: 27px;
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.step .lead {
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 54ch;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.checklist li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--seal);
  border-radius: 50%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.field input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-raised);
}
.field input:focus {
  outline: 2px solid var(--seal);
  outline-offset: 1px;
}

.req-list { margin: 8px 0 24px; }

.req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.req-item .req-stamp {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 1.5px solid var(--rule);
  color: var(--muted);
}
.req-item.pass .req-stamp { border-color: var(--seal); color: var(--seal); background: var(--seal-soft); }
.req-item.fail .req-stamp { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.req-item .req-label { font-weight: 600; }
.req-item .req-detail { color: var(--muted); margin-left: auto; font-family: var(--font-display); font-size: 12px; }

.test-result {
  margin: 6px 0 20px;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 13.5px;
  display: none;
}
.test-result.success { display: block; background: var(--seal-soft); color: var(--seal); }
.test-result.error { display: block; background: var(--red-soft); color: var(--red); }

.actions { display: flex; gap: 12px; margin-top: 8px; align-items: center; }

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-soft); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn.ghost:hover { color: var(--ink); }

.seal-box {
  border: 2px solid var(--seal);
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 24px;
  background: var(--seal-soft);
}
.seal-mark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--seal);
  font-weight: 600;
}
.seal-detail { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .wizard { flex-direction: column; }
  .manifest { width: 100%; }
  .perforation { display: none; }
  .panel-area { padding: 32px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}
