/* Hatch deploy wizard — orange/amber on white, matched to the reference
   screenshots: pale-orange info panels with an orange left border and a (?)
   icon, grey "Worth knowing" panels with a dark left border, monospace code
   chips, orange step bar with ticks and strikethrough labels. */

:root {
  --orange: #ffa412;
  --orange-strong: #f59300;
  --orange-deep: #b45309;
  --orange-text: #c47b00;
  --orange-pale: #fef5e7;
  --orange-card: #fffaf1;
  --orange-border: #f6dcae;
  --ink: #1f2328;
  --grey-text: #57606a;
  --quiet: #6b7280;
  --line: #e5e7eb;
  --grey-panel: #f2f3f5;
  --dark-border: #3c4652;
  --note-border: #2c6e7e;
  --error-red: #b3261e;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 320px at 72% -80px, #fff3df 0%, rgba(255, 243, 223, 0) 70%),
    #ffffff;
  line-height: 1.5;
}

/* ---------- header ---------- */
.site-header {
  background: #0d0d0d;
  color: #fff;
}
.header-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--orange);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px 7px 4px 7px;
  background: #fff;
  border-radius: 50% 50% 46% 46% / 62% 62% 40% 40%;
}
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand-tag {
  color: var(--orange);
  font-weight: 600;
  font-size: .85rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 1px;
}
.header-btn {
  background: var(--orange);
  color: #1a1200;
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.header-btn:hover { background: #ffb437; }

/* ---------- page frame ---------- */
.page {
  max-width: 1460px;
  margin: 0 auto;
  padding: 18px 24px 40px;
}

/* ---------- step bar ---------- */
.stepbar {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  color: var(--grey-text);
  white-space: nowrap;
  position: relative;
}
.step.current {
  background: #fafafa;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10), 0 0 0 1px rgba(0, 0, 0, .04);
  color: var(--ink);
  font-weight: 600;
}
.step.done { cursor: pointer; }
.step.done .step-label {
  color: var(--orange-text);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}
.step.done:hover .step-label { color: var(--orange-deep); }
.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-text);
  background: #fff;
  border: 1.5px solid #d0d4da;
  flex: none;
}
.step-circle.current {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.step-circle.done {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.step-line {
  height: 3px;
  background: var(--line);
  width: 26px;
  flex: none;
  border-radius: 2px;
  margin: 0 -6px;
}
.step-line.trailing { flex: 1; margin: 0; }
.step-line.filled { background: var(--orange); }

.stepbar-hint {
  color: var(--quiet);
  font-size: .88rem;
  margin: 4px 0 18px;
}

/* ---------- step head ---------- */
.step-head { margin: 6px 0 18px; }
.step-head.centered { text-align: center; }
.step-head h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.step-sub {
  color: var(--grey-text);
  font-size: 1.06rem;
  margin: 0;
}
.step-head.centered .step-sub {
  max-width: 820px;
  margin: 0 auto;
}
.party { font-size: 2rem; margin-bottom: 4px; }

/* ---------- panels ---------- */
.hint-panel {
  display: flex;
  gap: 14px;
  background: var(--orange-pale);
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  margin: 0 0 22px;
  border-radius: 0 4px 4px 0;
}
.hint-panel.warn { border-left-color: var(--orange-strong); }
.q-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--orange-strong);
  color: var(--orange-strong);
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.hint-body { color: var(--ink); }

.know-panel {
  background: var(--grey-panel);
  border-left: 4px solid var(--note-border);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin: 16px 0;
  color: var(--ink);
}
.know-panel.dark { border-left-color: var(--dark-border); }
.know-panel.note { border-left-color: var(--note-border); }
.know-title { font-weight: 700; margin-bottom: 6px; }
.know-panel ul, .know-panel ol { margin: 6px 0 2px; padding-left: 22px; }
.know-panel li { margin: 4px 0; }

/* ---------- cards ---------- */
.card {
  background: var(--orange-card);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 20px;
}

/* ---------- code chips ---------- */
.chip {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .84em;
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* ---------- dropzone ---------- */
.dropzone {
  border: 2px dashed #ddd8ce;
  border-radius: 8px;
  padding: 56px 20px;
  text-align: center;
  cursor: pointer;
  background: transparent;
}
.dropzone.dragging { border-color: var(--orange); background: var(--orange-pale); }
.dropzone.loaded {
  border: 1.5px solid var(--orange);
  background: #fdf3ec;
  padding: 40px 20px;
}
.drop-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f3f5;
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.drop-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  margin-bottom: 14px;
}
.drop-tick svg { width: 20px; height: 20px; }
.drop-title { font-weight: 700; font-size: 1.2rem; }
.drop-sub { color: var(--grey-text); font-size: 1.05rem; margin-top: 6px; }
.drop-hint { color: var(--quiet); font-size: .9rem; margin-top: 8px; }

/* ---------- disclosure ---------- */
.disclosure {
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  padding: 4px 0;
  margin: 10px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.disc-arrow { font-size: .8rem; }
.leftout-list {
  margin: 8px 0 0;
  padding-left: 24px;
  color: var(--grey-text);
}
.leftout-reason { color: var(--quiet); font-size: .9rem; }

/* ---------- form ---------- */
.field-label {
  display: block;
  font-weight: 700;
  margin: 22px 0 8px;
}
.text-input {
  width: 100%;
  max-width: 780px;
  font: inherit;
  font-size: 1.05rem;
  padding: 13px 16px;
  border: 1.5px solid #d8dbe0;
  border-radius: 8px;
  background: #fff;
  outline: none;
}
.text-input:focus { border-color: var(--orange-strong); }
.field-hint { color: var(--quiet); font-size: .9rem; margin: 8px 0 0; }
.field-hint.bad { color: var(--error-red); }
.field-error { color: var(--error-red); font-size: .95rem; margin: 10px 0 0; }
.privacy-note { color: var(--grey-text); font-size: .95rem; margin: 18px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #231800;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #ffb437; }
.btn:disabled {
  background: #fcd9a0;
  color: #fff;
  cursor: not-allowed;
}
.btn-next { color: #fff; min-width: 96px; }
.btn-wide {
  width: 100%;
  max-width: 650px;
  display: flex;
  margin: 4px 0 4px;
  padding: 14px 24px;
  font-size: 1.05rem;
}
.btn-wide-l { padding: 13px 26px; margin-top: 6px; }
.btn-secondary {
  background: #fff;
  border: 1.5px solid #d8dbe0;
  color: var(--ink);
}
.btn-secondary:hover { background: #f6f6f6; }
.btn-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.next-row {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}
.plain-link {
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0;
}
.centered-link {
  display: block;
  margin: 10px auto 0;
  max-width: 650px;
  text-align: center;
}
.orange-link { color: var(--orange-deep); text-decoration: none; font-weight: 600; }
.orange-link:hover { text-decoration: underline; }
.ext { font-size: .85em; }
.quiet-note { color: var(--grey-text); font-size: .93rem; margin: 14px 0 0; }
.centered-text { text-align: center; }

/* ---------- connected row ---------- */
.connected-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f7f8;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 4px;
}
.avatar { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.avatar-fallback { background: #cfe8ea; display: inline-block; }
.avatar-fallback.cf { background: var(--orange-pale); border: 1px solid var(--orange-border); }
.connected-names { flex: 1; min-width: 0; }
.connected-login { font-weight: 700; }
.connected-sub { color: var(--grey-text); font-size: .92rem; }
.connected-chip {
  background: var(--orange-pale);
  color: var(--orange-deep);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
}

/* ---------- upload progress ---------- */
.upload-card { border: 1.5px solid var(--orange); }
.upload-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.progress-track {
  height: 8px;
  background: #f0e8da;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width .2s ease;
}
.upload-note { color: var(--grey-text); margin: 14px 0 0; }

/* ---------- allow access ---------- */
.word-for-it {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-text);
  margin: 14px 0 4px;
}
.word-for-it svg { color: var(--ink); flex: none; }

/* What to expect before the Cloudflare window opens. */
.expect-note {
  color: var(--ink);
  margin: 16px 0 12px;
  line-height: 1.5;
}
/* Shown while the wizard is watching for Cloudflare's connection record. */
.watching-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--ink);
}

/* ---------- publish checklist ---------- */
.phase-list { margin-bottom: 8px; }
.phase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  font-size: 1.02rem;
}
.phase-row.active {
  background: #f5f5f5;
  border-radius: 8px;
}
.phase-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #d0d4da;
  background: #fff;
  flex: none;
}
.phase-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #c9cdd3;
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  animation: spin 1.2s linear infinite;
}
.phase-cross {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--error-red);
  color: var(--error-red);
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.phase-status {
  text-align: center;
  color: var(--grey-text);
  font-size: 1.02rem;
  margin: 14px 0 4px;
}
.raw-log {
  background: #1f2328;
  color: #e6e8ea;
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: .84rem;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

/* ---------- live ---------- */
.live-url-box {
  background: var(--orange-pale);
  border: 1.5px solid var(--orange);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange-deep);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.live-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}
.centered-actions { margin-top: 22px; }
.feature-btn { color: #fff; padding: 13px 26px; }

/* ---------- status bar ---------- */
.statusbar-wrap {
  position: sticky;
  bottom: 10px;
  margin-top: 26px;
  z-index: 30;
}
.status-bar {
  background: #fffdf7;
  border: 1px solid #efe9dd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  overflow: hidden;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  padding: 13px 18px;
  cursor: pointer;
  text-align: left;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.status-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-text);
  flex: none;
}
.status-text {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-chevron { color: var(--quiet); flex: none; font-size: .85rem; }
.status-log {
  max-height: 210px;
  overflow-y: auto;
  border-top: 1px solid #f0ead9;
  background: #fff;
  padding: 8px 18px 12px;
}
.status-entry {
  padding: 4px 0;
  color: var(--grey-text);
  font-size: .95rem;
}
.status-entry.milestone { color: var(--orange-deep); }

/* ---------- trust footer ---------- */
.trust-footer {
  text-align: center;
  color: var(--grey-text);
  font-size: .95rem;
  margin: 30px 0 8px;
}

@media (max-width: 760px) {
  .stepbar { flex-wrap: wrap; }
  .step-line { display: none; }
  .card { padding: 18px; }
  .header-btn { display: none; }
}
