/* BMT Remote public pages. Brand pack colours: navy #07172C, blue #078CF8,
   cyan #24B5FF. Dark navy stage with the brand's connected-screens drawing
   as the backdrop; no grids, dots or glows. */
:root {
  --navy: #07172c;
  --navy-2: #0a2346;
  --deep: #0b3a8c;
  --blue: #078cf8;
  --blue-hover: #2a9dfa;
  --cyan: #24b5ff;
  --ink: #eaf2fb;
  --ink-soft: #a9bdd6;
  --ink-faint: #7f96b3;
  --line: rgba(169, 189, 214, 0.18);
  --panel: rgba(9, 28, 56, 0.72);
  --paper: #f3f7fc;
  --paper-ink: #13243b;
  --paper-soft: #53667e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pub {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--navy); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
}
.pub a { color: var(--cyan); }

/* ── Stage ─────────────────────────────────────────── */
.stage {
  position: relative; overflow: hidden; flex: 1;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, var(--deep) 130%);
  padding: 0 clamp(16px, 5vw, 64px) 26px;
}
.backdrop {
  position: absolute; right: -6%; top: 50%; transform: translateY(-46%);
  width: min(62vw, 980px); height: auto; color: var(--cyan); opacity: 0.32; pointer-events: none;
}
.backdrop .screens rect { fill: none; stroke: var(--cyan); stroke-width: 2; }
.backdrop .screens .pane { fill: rgba(36, 181, 255, 0.07); stroke: rgba(36, 181, 255, 0.45); stroke-width: 1; }
.backdrop .nodes circle { fill: var(--cyan); }

.top {
  position: relative; z-index: 1; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 0;
}
.brand img { display: block; height: 52px; width: auto; margin-left: -13px; }
.ghost {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px;
  border: 1px solid rgba(169, 189, 214, 0.35); color: var(--ink) !important; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: border-color 0.2s, background 0.2s;
}
.ghost:hover { border-color: var(--cyan); background: rgba(36, 181, 255, 0.08); }

.hero { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: clamp(32px, 7vw, 96px) auto 0; }
.panel { max-width: 540px; }
h1 {
  margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08;
  letter-spacing: -0.022em; font-weight: 650; color: #f4f8fd;
}
.lede { margin: 0 0 32px; font-size: 19px; color: var(--ink-soft); max-width: 44ch; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--ink); }

.join { display: flex; gap: 12px; flex-wrap: wrap; }
.join input {
  flex: 1 1 240px; min-width: 0; height: 60px; padding: 0 18px;
  border: 1px solid rgba(169, 189, 214, 0.3); border-radius: 12px;
  background: rgba(4, 14, 30, 0.55); color: #f4f8fd;
  font: 600 26px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.32em; text-transform: uppercase;
}
.join input::placeholder { color: rgba(169, 189, 214, 0.32); }
.join input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 181, 255, 0.22); }
.join input[aria-invalid="true"] { border-color: #ff8a7a; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 30px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  background: var(--blue); color: #f7fbff !important; font-family: inherit; font-weight: 650; font-size: 17px; line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.cta:hover { background: var(--blue-hover); }
.cta:active { transform: translateY(1px); }
.cta.small { height: 44px; padding: 0 18px; font-size: 15px; }
.error { margin: 14px 0 0; color: #ffb3a8; font-size: 15px; }

.how { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; color: var(--ink-soft); font-size: 15px; }
.how li { display: flex; align-items: center; gap: 10px; }
.how span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(36, 181, 255, 0.5); color: var(--cyan); font-size: 13px; font-weight: 700;
}

.alt { margin: 14px 0 0; font-size: 15px; color: var(--ink-faint); }
.steps { margin: 30px 0 0; padding-left: 22px; color: var(--ink-soft); }
.steps li { margin: 0 0 10px; padding-left: 4px; }
.steps b { color: var(--ink); }
.status { margin: 26px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(36, 181, 255, 0.1); border: 1px solid rgba(36, 181, 255, 0.25); color: var(--ink); }
.fallback { margin-top: 18px; font-size: 15px; color: var(--ink-faint); }
.fallback summary { cursor: pointer; }
.fallback form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 12px; }
.fallback label { display: grid; gap: 6px; }
.fallback input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(169, 189, 214, 0.3); background: rgba(4, 14, 30, 0.55); color: var(--ink); font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Technician links and footer: one quiet line each, inside the stage ── */
.stage { display: flex; flex-direction: column; min-height: 100vh; }
.base {
  position: relative; z-index: 1; width: 100%; margin: auto 0 0; padding-top: 56px;
  display: grid; gap: 6px; font-size: 13px; color: var(--ink-faint);
}
.base p { margin: 0; }
.base a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(169, 189, 214, 0.3); }
.base a:hover { color: var(--cyan); border-color: var(--cyan); }

@media (max-width: 760px) {
  .backdrop { width: 140vw; right: -55vw; top: auto; bottom: -10%; transform: none; opacity: 0.18; }
  .brand img { height: 42px; margin-left: -10px; }
  .ghost { padding: 8px 12px; font-size: 14px; }
  .lede { font-size: 17px; }
  .join input { font-size: 22px; height: 56px; }
  .cta { height: 56px; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ── Technician sign-in ────────────────────────────── */
.ms {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px;
  border-radius: 12px; background: #f7f9fc; color: #1b1b1b !important; text-decoration: none;
  font-weight: 600; font-size: 17px; border: 1px solid #d0d7e2; transition: background 0.2s;
}
.ms:hover { background: #e9eef5; }
.signed-out { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }
.small-print { margin: 40px 0 0; font-size: 14px; color: var(--ink-faint); }
