/* ============ Backlog Desk — Pilot page (pilot.html) ============ */
.pilot-hero { padding: 72px 0 56px; }
.pilot-hero .lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 36rem; margin: 0 0 30px; }
.pilot-hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof {
  list-style: none; display: flex; gap: 22px; flex-wrap: wrap;
  padding: 0; margin: 0;
}
.hero-proof li {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.hero-proof li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.firm-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fef3c7; border: 1px solid #fde68a; color: var(--accent-ink);
  font-size: .85rem; font-weight: 600;
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}

/* Wizard */
.wizard { max-width: 720px; margin: 0 auto; }
.wiz-progress {
  list-style: none; display: flex; justify-content: space-between;
  margin: 0 0 28px; padding: 0; counter-reset: wiz;
}
.wiz-progress li {
  flex: 1; text-align: center; position: relative;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  letter-spacing: .02em;
}
.wiz-progress li::before {
  counter-increment: wiz; content: counter(wiz);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--muted); font-size: .85rem; margin-bottom: 6px;
}
.wiz-progress li::after {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px);
  width: calc(100% - 44px); height: 1.5px; background: var(--line);
}
.wiz-progress li:last-child::after { display: none; }
.wiz-progress li.active { color: var(--ink); }
.wiz-progress li.active::before { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.wiz-progress li.done::before { background: var(--ok); border-color: var(--ok); color: #fff; content: "✓"; }
.wiz-progress li.done { color: var(--ok); }

.wiz-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 40px 38px;
}
.wiz-step { display: none; }
.wiz-step.active { display: block; }
.wiz-step h2 { font-size: 1.6rem; margin-bottom: 6px; }
.wiz-step .step-sub { color: var(--muted); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-deep); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* Quote box */
.quote-box {
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 24px; margin: 18px 0;
}
.quote-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: .98rem; color: var(--ink-soft);
}
.quote-line.total {
  border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 14px;
  font-weight: 700; color: var(--ink); font-size: 1.15rem;
}
.quote-line .amt { font-variant-numeric: tabular-nums; }
.quote-line.discount .amt { color: var(--ok); }
.quote-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: 14px;
  background: var(--paper); padding: 40px 24px; text-align: center;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
  margin-bottom: 16px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent-deep); background: #fffbeb; }
.dropzone .dz-title { font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; }
.dropzone .dz-sub { font-size: .88rem; color: var(--muted); }
.file-list { list-style: none; margin: 0 0 14px; padding: 0; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 8px; font-size: .92rem;
}
.file-list .f-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .f-size { color: var(--muted); font-size: .82rem; flex-shrink: 0; }
.file-list .f-remove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 2px 6px; flex-shrink: 0;
}
.file-list .f-remove:hover { color: #b91c1c; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-soft); margin-top: 14px; }
.check-line input { margin-top: 4px; }

/* Payment */
.pay-option {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pay-option:hover { border-color: var(--ink); }
.pay-option.selected { border-color: var(--accent-deep); background: #fffbeb; }
.pay-option input { margin-top: 4px; }
.pay-option .po-title { font-weight: 600; color: var(--ink); font-size: .98rem; }
.pay-option .po-sub { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.pay-option .po-sub code { background: var(--paper-alt); padding: 1px 6px; border-radius: 5px; font-size: .84rem; }
.terms-box {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-size: .85rem; color: var(--ink-soft); margin: 18px 0;
}
.terms-box ul { margin: 8px 0 0; padding-left: 18px; }
.terms-box li { margin-bottom: 4px; }

/* Wizard nav */
.wiz-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.wiz-nav .spacer { flex: 1; }
.wiz-error {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-top: 14px;
}
.wiz-error.show { display: block; }

/* Done */
.done-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #dcfce7; color: var(--ok); font-size: 1.6rem; font-weight: 700;
  margin-bottom: 18px;
}
.ref-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; font-size: .95rem; color: var(--ink);
}
.next-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.next-steps li {
  position: relative; padding: 0 0 14px 30px; font-size: .97rem;
}
.next-steps li::before {
  content: "→"; position: absolute; left: 4px; color: var(--accent-deep); font-weight: 700;
}

/* Examples table */
.examples-table {
  width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.examples-table th, .examples-table td {
  padding: 14px 18px; text-align: left; font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.examples-table th {
  background: var(--paper-alt); color: var(--ink); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.examples-table tr:last-child td { border-bottom: 0; }
.examples-table td.amt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

/* Proof */
.proof-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 880px; margin: 0 auto;
}
.proof-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow-sm);
}
.proof-card .big {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600;
  color: var(--ink); line-height: 1; margin-bottom: 8px;
}
.proof-card .big span { color: var(--accent-deep); }
.proof-card p { font-size: .92rem; margin: 0; }
.proof-fine {
  text-align: center; font-size: .82rem; color: var(--muted);
  max-width: 640px; margin: 26px auto 0;
}

/* Invoice (opened in a new window) */
.inv-page { font-family: "Inter", system-ui, sans-serif; color: #111827; padding: 48px; max-width: 720px; margin: 0 auto; }
.inv-page h1 { font-size: 1.8rem; margin-bottom: 4px; }
.inv-page .inv-from { color: #6b7280; font-size: .9rem; margin-bottom: 28px; }
.inv-page table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.inv-page th, .inv-page td { padding: 10px 8px; border-bottom: 1px solid #e7e2d9; text-align: left; font-size: .95rem; }
.inv-page th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; }
.inv-page td.amt { text-align: right; font-variant-numeric: tabular-nums; }
.inv-page .inv-total td { font-weight: 700; font-size: 1.05rem; border-bottom: none; }
.inv-page .inv-terms { font-size: .85rem; color: #374151; margin-top: 28px; }
.inv-page .inv-terms li { margin-bottom: 6px; }
.inv-page .inv-pay { background: #f4f1ec; border-radius: 10px; padding: 16px 18px; font-size: .9rem; margin-top: 20px; }
.inv-page .inv-pay code { background: #fff; padding: 1px 6px; border-radius: 5px; }

@media (max-width: 720px) {
  .wiz-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .wiz-progress li { font-size: .68rem; }
}
