/* Musora Production Tools — one stylesheet for both the public catalogue and
   the gated install page. Kept in the Deploy Kit so a new app never needs a
   new stylesheet; adding an app is a catalogue entry, not a design job. */
:root {
  --gold: #ffae00;
  --ink: #091119;
  --paper: #fafafb;
  --surface: #0f1a24;
  --hairline: rgba(250,250,251,0.09);
  --muted: rgba(250,250,251,0.62);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
code, .mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffc44d; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
header { border-bottom: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .home { display: flex; line-height: 0; border-radius: 7px; }
.brand .home:hover { opacity: 0.85; }
.mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tag { font-size: 13.5px; color: rgba(250,250,251,0.5); }

.hero { padding: 64px 0 44px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(36px, 5.5vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero p { margin: 0; font-size: clamp(17px, 2.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 620px; }

/* The call-to-action that sends a visitor from the public page to the gate. */
.cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  background: var(--gold); color: var(--ink);
  border: 0; border-radius: 9px; padding: 14px 22px;
  font-family: inherit; font-size: 16.5px; font-weight: 600;
  transition: background 0.15s ease;
}
.cta:hover { background: #ffbe33; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } .wrap { padding: 0 20px; } }

.card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 28px;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.card-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.appicon { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.35); }
.appicon.placeholder { display: inline-flex; align-items: center; justify-content: center; background: #16283A; border: 1px solid #1F3145; color: #8496A8; font-weight: 700; font-size: 18px; }
.role { font-size: 14px; color: rgba(250,250,251,0.5); }
.ver {
  font-size: 13px; color: var(--gold); background: rgba(255,174,0,0.12);
  border-radius: 20px; padding: 5px 12px; white-space: nowrap; font-weight: 500;
}
.blurb { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(250,250,251,0.72); }

.cmd {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ink); border: 1px solid rgba(250,250,251,0.12);
  border-radius: 8px; padding: 14px 15px;
}
.cmd code { flex-grow: 1; font-size: 14px; color: rgba(250,250,251,0.9); white-space: pre-wrap; overflow-wrap: normal; line-height: 1.5; }

button.copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--ink);
  border-radius: 8px; padding: 14px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  transition: background 0.15s ease;
}
button.copy:hover { background: #ffbe33; }
button.copy.done { background: #5ccb85; }

.locked {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--ink); border: 1px dashed rgba(255,174,0,0.4);
  border-radius: 10px; padding: 18px;
}
.locked strong { font-size: 15.5px; color: var(--gold); font-weight: 600; }
.locked p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(250,250,251,0.68); }

/* Screenshot inside a tile. A button so it is keyboard reachable. */
.shot {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden;
  background: var(--ink); cursor: zoom-in; line-height: 0;
}
.shot img { width: 100%; height: auto; display: block; }
.shot:hover { border-color: rgba(255,174,0,0.45); }
.shot .zoom {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(9,17,25,0.82); color: var(--paper);
  border-radius: 6px; padding: 5px 8px; font-size: 12px; line-height: 1;
}

dialog.viewer {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh;
}
dialog.viewer::backdrop { background: rgba(9,17,25,0.92); }
dialog.viewer img { display: block; max-width: 94vw; max-height: 82vh; border-radius: 10px; }
dialog.viewer .cap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 12px; font-size: 14px; color: var(--muted);
}
dialog.viewer .cap button {
  background: transparent; border: 1px solid var(--hairline); color: var(--paper);
  border-radius: 7px; padding: 7px 13px; font-family: inherit; font-size: 14px; cursor: pointer;
}

.help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; }
@media (max-width: 820px) { .help { grid-template-columns: 1fr; } }
.note {
  display: flex; gap: 13px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 20px 22px;
}
.note.accent { border-color: rgba(255,174,0,0.28); }
.note h3 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

footer { margin-top: 72px; border-top: 1px solid var(--hairline); padding: 26px 0 44px; }
footer p { margin: 0; font-size: 14px; color: rgba(250,250,251,0.42); }

/* ── The password gate (tools page only) ───────────────────────────────── */
.gate { max-width: 460px; margin: 0 auto; padding: 84px 0 60px; }
.gate h1 { margin: 0 0 12px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.gate p { margin: 0 0 26px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.gate form { display: flex; flex-direction: column; gap: 12px; }
.gate input {
  width: 100%; background: var(--surface); color: var(--paper);
  border: 1px solid rgba(250,250,251,0.16); border-radius: 9px;
  padding: 15px 16px; font-family: inherit; font-size: 16px;
}
.gate input:focus { outline: 0; border-color: var(--gold); }
.gate button {
  border: 0; cursor: pointer; background: var(--gold); color: var(--ink);
  border-radius: 9px; padding: 15px; font-family: inherit; font-size: 16px; font-weight: 600;
}
.gate button:hover { background: #ffbe33; }
.gate button[disabled] { opacity: 0.6; cursor: default; }
.gate .err { min-height: 22px; margin: 0; font-size: 14.5px; color: #ff8080; }
.gate .back { display: inline-block; margin-top: 18px; font-size: 14.5px; }
