/* Download page: a poster split in two - the app's black with its mark, and
   the key form on white. One family (Archivo), wide for the name. */
:root {
  --brand: #0d0d0d;        /* the app icon (Spectr, 2026-10-28; was red) */
  --brand-deep: #333336;   /* hover / pressed */
  --red: #e5000f;          /* errors only */
  --paper: #ffffff;
  --ink: #1e1e24;
  --grey: #6b6b73;
  --rule: #e4e4e8;
  --focus: #1e1e24;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  height: 100vh;
  height: 100dvh;           /* exactly one screen; never a page scroll */
  overflow: hidden;
}

/* ---- the red half -------------------------------------------------------------- */
.brand {
  position: relative;
  overflow: hidden;
  background: var(--brand);
}
.mark {
  position: absolute;
  top: 50%;
  left: 50%;                /* centred in the red half (the user, 2026-10-27) */
  width: min(40%, 34vh);  /* the user, 2026-10-28: was too big (72%) */
  max-width: none;
  transform: translate(-50%, -50%);
  animation: settle 700ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes settle {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.build {
  position: absolute;
  left: 32px;
  bottom: 24px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* ---- the white half -------------------------------------------------------------- */
.get {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 5vh, 72px) clamp(20px, 5vw, 72px);
  overflow-y: auto;
  min-height: 0;
  width: 100%;
  max-width: 44rem;
  justify-self: center;       /* the column sits in the middle of the white half */
}
h1 {
  margin: 0 0 clamp(8px, 2vh, 20px);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(1.6rem, min(3.2vw, 6vh), 2.9rem);   /* one line; smaller in short windows */
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.get > :first-child { margin-top: auto; }
.get > :last-child { margin-bottom: auto; }
.lede {
  margin: 0 0 clamp(14px, 3.6vh, 36px);
  color: var(--grey);
  font-size: 18px;
}

/* key form */
.key label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
}
.row { display: flex; gap: 10px; }
.row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: .04em;
}
.row input::placeholder { color: #a6a6ae; letter-spacing: .04em; }
.row input[aria-invalid="true"] { border-color: var(--red); }
.row button {
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms;
}
.row button:hover { background: var(--brand-deep); }
.row button:active { background: var(--brand); }
.row input:focus-visible,
.row button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--grey);
  outline-offset: 2px;
}
.err {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 14px 0 0;
  font-weight: 600;
}
.err::before {                 /* a small red diamond, like the mark's points */
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: translateY(-1px) rotate(45deg);
}

/* after a valid key */
.done {
  padding: 18px 20px;
  border-radius: 4px;
  background: #f4f4f6;
}
.done p { margin: 0; }
.done-head { font-weight: 800; font-size: 20px; margin-bottom: 4px !important; }
a { color: var(--ink); text-decoration-color: var(--grey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--grey); }

/* setup, in order */
.steps {
  counter-reset: step;
  list-style: none;
  margin: clamp(16px, 4.4vh, 44px) 0 0;
  padding: clamp(12px, 2.8vh, 28px) 0 0;
  border-top: 1px solid var(--rule);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: clamp(8px, 2vh, 20px);
  color: var(--grey);
  font-size: 15px;            /* the explanation, under its title */
  line-height: 1.5;
}
.steps li b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  color: var(--brand);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}
.note {
  margin: 12px 0 0;
  color: var(--grey);
  font-size: 15px;
}

/* ---- phones: the red becomes a band on top ------------------------------------------ */
@media (max-height: 780px) and (min-width: 761px) {
  body { font-size: 15px; }
  .lede { font-size: 16px; }
  .row input, .row button { padding-top: 11px; padding-bottom: 11px; font-size: 16px; }
  .steps li { font-size: 14px; }
  .steps li b { font-size: 16px; }
  .steps li::before { font-size: 26px; }
  .note { font-size: 14px; }
}

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .brand { height: 16vh; min-height: 96px; }
  /* Sized by the band's height so the whole mark shows, centred. */
  .mark { width: auto; height: 80%; }
  .build { left: 16px; bottom: 12px; font-size: 14px; }
  .get { padding: 14px 16px; }
  h1 { font-size: 7vw; margin-bottom: 6px; }
  body { font-size: 14px; }
  .lede { font-size: 14px; margin-bottom: 12px; }
  .key label { font-size: 13px; margin-bottom: 4px; }
  .row { gap: 6px; }
  .row input, .row button { padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
  .err { font-size: 13px; margin-top: 8px; }
  .steps { margin-top: 12px; padding-top: 10px; }
  .steps li { padding-left: 34px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.4; }
  .steps li b { font-size: 14px; margin-bottom: 0; }
  .steps li::before { font-size: 20px; top: -2px; }
  .note { font-size: 12px; margin-top: 4px; line-height: 1.4; }
  .row { flex-direction: column; }
  .row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; }
  .row button { transition: none; }
}

/* The name centred over the column (the user, 2026-10-28). */
.get h1, .get .lede { text-align: center; }
