@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
}
html, body { margin: 0; background: #010508 !important; color: #d6dbe6; }
#sections, #page { background: #010508 !important; }
::selection { background: #f3ff6c; color: #010508; }
body {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
}
#header, header.header, #footer-sections, footer { display: none !important; }

.euclid {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010508;
  box-sizing: border-box;
  padding: 48px 20px 96px;
}
.os, .gate {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.stack { width: min(680px, 100%); }

.logo-mark {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}
.logo {
  display: block;
  width: clamp(140px, 46vw, 520px);
  height: auto;
  margin: 0 auto clamp(28px, 6vw, 56px);
}
@media (max-width: 700px) {
  .logo { width: min(300px, 62vw); }
}
.kicker {
  margin: 0 0 12px 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7d8799;
}
.panel {
  border: 1.5px solid rgba(243, 255, 108, 0.40);
  border-radius: 10px;
  background: #010508;
  overflow: hidden;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.tabs label {
  text-align: center;
  padding: 13px 8px;
  cursor: pointer;
  color: #7d8799;
  font-size: 15px;
  font-weight: 600;
  border-right: 1px solid rgba(243, 255, 108, 0.40);
  border-bottom: 1px solid rgba(243, 255, 108, 0.40);
  user-select: none;
}
.tabs label:last-child { border-right: 0; }
#os-mac:checked ~ .stack label[for="os-mac"],
#os-linux:checked ~ .stack label[for="os-linux"],
#os-win:checked ~ .stack label[for="os-win"] {
  background: rgba(243, 255, 108, 0.10);
  color: #f3ff6c;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px 12px 18px;
}
.cmd code {
  display: none;
  flex: 1;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  color: #ffffff;
  white-space: nowrap;
  overflow-x: auto;
}
#os-mac:checked ~ .stack .c-mac,
#os-linux:checked ~ .stack .c-linux,
#os-win:checked ~ .stack .c-win { display: block; }
.copy {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #f3ff6c;
  background: rgba(243, 255, 108, 0.10);
  border: 1.5px solid rgba(243, 255, 108, 0.40);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.copy:hover { background: rgba(243, 255, 108, 0.18); border-color: #f3ff6c; }
.copy .i-check { display: none; }
.copy.copied { border-color: #f3ff6c; }
.copy.copied .i-copy { display: none; }
.copy.copied .i-check { display: block; }

.desktop-only { display: none; }
.notice { padding: 16px 18px; }
.notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}
.notice p + p { color: #7d8799; }
/* Keyed to touch input, not width, so narrow desktop windows still get the installer. */
@media (hover: none) and (pointer: coarse) {
  .stack > .kicker, .stack > .panel { display: none; }
  .desktop-only { display: block; margin-top: clamp(32px, 10vh, 88px); text-align: center; }
}

.request {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 20;
  display: block;
  width: fit-content;
  margin: 0;
  padding: 12px 28px;
  color: #f3ff6c;
  background: rgba(243, 255, 108, 0.10);
  border: 1px solid rgba(243, 255, 108, 0.40);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.request:hover {
  background: rgba(243, 255, 108, 0.18);
  border-color: #f3ff6c;
}
.docs { right: auto; left: 28px; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#open-access:checked ~ .modal { display: flex; }
.scrim { position: absolute; inset: 0; background: rgba(1, 5, 8, 0.72); cursor: pointer; }
.card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  box-sizing: border-box;
  margin: 0;
  padding: 22px 22px 18px;
  background: #010508;
  border: 1.5px solid rgba(243, 255, 108, 0.40);
  border-radius: 16px;
  color: #d6dbe6;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
}
.card h2 {
  margin: 0 28px 18px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}
.close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #7d8799;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.close:hover { color: #ffffff; }
.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { display: block; margin: 0 0 14px; min-width: 0; }
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 10pt;
  font-weight: 600;
  color: #d6dbe6;
}
.field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  color: #ffffff;
  background: rgba(243, 255, 108, 0.10);
  border: 1px solid rgba(243, 255, 108, 0.40);
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 11pt;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.field input::placeholder { color: #7d8799; font-weight: 400; }
.field input:focus { outline: none; background: rgba(243, 255, 108, 0.18); border-color: #f3ff6c; }
.submit {
  width: 100%;
  margin-top: 4px;
  padding: 11px 16px;
  color: #f3ff6c;
  background: rgba(243, 255, 108, 0.10);
  border: 1px solid rgba(243, 255, 108, 0.40);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 11pt;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.submit:hover:not(:disabled),
.submit:focus-visible { outline: none; background: rgba(243, 255, 108, 0.18); border-color: #f3ff6c; }
.submit:disabled { cursor: wait; color: #465064; background: #0c101b; border-color: #10151b; }
.send-error {
  margin: 12px 0 0;
  text-align: center;
  color: #fa7b67;
  font-size: 10pt;
}
.sent { display: none; padding: 14px 0 10px; text-align: center; }
.card.is-sent > :not(.sent):not(.close) { display: none; }
.card.is-sent .sent { display: block; animation: sent-in 0.25s ease-out; }
.sent-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: #f3ff6c;
  background: rgba(243, 255, 108, 0.10);
  border: 1.5px solid rgba(243, 255, 108, 0.40);
  border-radius: 50%;
}
.card .sent h2 { margin: 0 0 8px; }
.sent p { margin: 0; color: #7d8799; font-size: 10pt; }
@keyframes sent-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-sent .sent { animation: none; }
}
@media (max-width: 380px) {
  .names { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .modal { padding: 0; align-items: stretch; }
  .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .close { top: max(26px, env(safe-area-inset-top)); }
  body:has(#open-access:checked) { overflow: hidden; }
}
.honey { position: absolute; left: -9999px; }

.powered {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  margin: 0;
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 10pt;
  line-height: 1;
}
.powered img {
  display: block;
  height: 3.5em;
  width: auto;
}
.powered a { display: block; line-height: 0; }
