/* =====================================================================
   BROADMIND — backers block
   Extends the site's own modal + form classes (.modal, .wl-form, .wl-input,
   .wl-label, .wl-msg, .wl-note). Only the few elements the site has no
   pattern for live here: the attestation checkbox, the six-digit code input
   and the resend control.
   ===================================================================== */

/* attestation checkbox — same muted register as .wl-note */
.bk-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  cursor: pointer;
  margin-top: 2px;
}
.bk-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(245, 245, 247, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.bk-check input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.bk-check input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 10px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg) translate(-1px, -1px);
}
.bk-check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.bk-check span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-4);
}
.bk-check b,
.bk-check strong {
  color: var(--ink-2);
  font-weight: 500;
}

/* six-digit code — mono, tracked, centred, inherits .wl-input chrome */
.bk-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.42em;
  text-align: center;
  text-indent: 0.42em;
}

/* resend + secondary action row inside the form */
.bk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.bk-linkbtn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  border-bottom: 1px solid rgba(245, 245, 247, 0.24);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.bk-linkbtn:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.bk-linkbtn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* local-test only: shows the code that dev mode returns instead of emailing.
   Rendered only when the API sends `dev_code`, which cannot happen on a live
   host unless broadmind-data/dev.flag exists. */
.bk-dev {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed rgba(245, 245, 247, 0.28);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--ink-4);
}

/* =====================================================================
   Roadmap on the backer pages
   A compact Gantt, monochrome, using the site's own type scale. Shown
   inside the private status page and expanded on /roadmap.
   ===================================================================== */
.rkm { margin-top: clamp(28px, 3.5vw, 44px); }
.rkm__axis {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0 20px;
  border-bottom: 1px solid rgba(245, 245, 247, 0.2);
  padding-bottom: 8px;
}
.rkm__months {
  grid-column: 2;
  position: relative;
  height: 16px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.rkm__months span { position: absolute; top: 0; transform: translateX(-1px); }
.rkm__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0 20px;
  align-items: center;
  margin-top: 10px;
}
.rkm__label {
  text-align: right;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--ink-2);
}
.rkm__label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-top: 2px;
}
.rkm__track {
  position: relative;
  height: 30px;
  border-radius: 7px;
  background: rgba(245, 245, 247, 0.035);
}
.rkm__bar {
  position: absolute;
  top: 4px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.rkm__bar--done { background: rgba(245, 245, 247, 0.22); color: var(--ink); }
.rkm__bar--now { background: var(--ink); color: var(--black); }
.rkm__bar--next { background: rgba(245, 245, 247, 0.14); color: var(--ink-2); }
.rkm__bar--later { background: transparent; color: var(--ink-4); border: 1px solid rgba(245, 245, 247, 0.16); }

.rkm__miles {
  margin-top: clamp(26px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.rkm__mile {
  border-top: 1px solid rgba(245, 245, 247, 0.16);
  padding-top: 10px;
}
.rkm__mile b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}
.rkm__mile span {
  display: block;
  margin-top: 5px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-4);
}
.rkm__note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.7;
  color: var(--ink-5);
}
@media (max-width: 640px) {
  .rkm__axis, .rkm__row { grid-template-columns: 96px 1fr; gap: 0 12px; }
  .rkm__months span:nth-child(even) { display: none; }
}

/* three short panels under the expanded roadmap */
.rkm__panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
}
@media (max-width: 860px) { .rkm__panels { grid-template-columns: 1fr; } }
.rkm__panel {
  border: 1px solid rgba(245, 245, 247, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.rkm__panel h3 {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 400;
}
.rkm__panel p {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}
