/* The door — sign-up, sign-in and the code (docs/DESIGN.md §22,
   2026-10-12). Linked by saas/shared/_door alone, over the company sheet
   and the landing sheet (the drawn themes, the orb, the spectrum). Light,
   split in two: the stage — the mark, a still collage of what a
   publication is, the headline — and the form in a paper panel behind a
   hairline. Nothing moves: no animation, no transition, no tilt (Ronald:
   the first cut's motion made him sick). No script. */

/* — The page ——————————————————————————————————————————— */
.su {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 31rem);
  min-height: 100svh;
}

.su-header {
  position: absolute;
  top: 2.5rem;
  left: clamp(1.5rem, 6vw, 6rem);
  z-index: 1;
}

.su-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 7rem clamp(1.5rem, 6vw, 6rem) 4rem;
}

.su-display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1rem + 3.4vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--color-ink);
}

.su-display em {
  font-style: italic;
  background: var(--lp-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

/* — The panel: the form, centred, on paper ——————————————————— */
.su-panel {
  display: grid;
  align-content: center;
  padding: 3rem clamp(1.5rem, 3vw, 3.5rem);
  border-left: 1px solid var(--color-line);
  background: var(--color-paper);
}

.su-panel-body {
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

.su-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.su-panel .saas-form {
  margin: 1.25rem 0 0;
}

.su-panel .saas-form input {
  padding: 0.8rem 0.95rem;
}

.su-panel .saas-form .saas-button {
  justify-self: stretch;
  padding: 0.85em 1.3em;
  font-size: 1rem;
}

.su-panel .saas-error {
  font-size: 0.875rem;
}

.su-sent {
  margin-top: 0.5rem;
  color: var(--color-body);
  overflow-wrap: anywhere;
}

.su-sent strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* Six digits, spaced so each reads on its own. */
.su-panel .saas-form .su-code {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  letter-spacing: 0.4em;
  text-align: center;
}

.su-panel .saas-form .su-code::placeholder {
  color: var(--color-line-strong);
}

.su-or {
  margin: 2.5rem 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

.su-secondary {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
}

/* — The plan step ——————————————————————————————————————
   Yearly or monthly as two links in one pill, the plans as a column of
   rows that are radios, the one picked ringed in ink, and the terms of
   the picked one alone under the button. */
.su-change {
  color: var(--color-body);
  font-size: 0.875rem;
  text-underline-offset: 0.15em;
}

.su-interval {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.su-interval a {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--color-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.su-interval a[aria-current] {
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line-strong);
  color: var(--color-ink);
}

.su-plans {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.su-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line-strong);
  cursor: pointer;
}

.su-plan:has(input:checked) {
  box-shadow: 0 0 0 2px var(--color-ink);
}

.su-plan:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.su-panel .saas-form .su-plan input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--color-ink);
}

.su-plan-name {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 600;
}

.su-plan-price {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.su-plan-price small {
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
}

.su-plan-facts {
  grid-column: 2 / -1;
  color: var(--color-body);
  font-size: 0.875rem;
}

.su-terms p {
  display: none;
  color: var(--color-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.su-plan-form:has(input[value="personal"]:checked) .su-terms [data-plan="personal"],
.su-plan-form:has(input[value="publisher"]:checked) .su-terms [data-plan="publisher"],
.su-plan-form:has(input[value="business"]:checked) .su-terms [data-plan="business"] {
  display: block;
}

.su-includes {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-body);
  font-size: 0.875rem;
}

/* — The collage ————————————————————————————————————————
   Everything in em, so one font-size scales the whole picture to its
   stage. Two themes' front pages, a post, a reader in a ring, and three
   stickers over the edges. */
.su-collage {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 34em;
  height: 33em;
  font-size: clamp(0.75rem, 1.15vw, 1rem);
}

.su-c {
  position: absolute;
  margin: 0;
  box-sizing: border-box;
}

.su-c-theme {
  overflow: hidden;
  border-radius: 1.4em;
  background: var(--color-paper-2);
  box-shadow: var(--lp-shadow);
}

/* A theme's front page drawn at three times its card and scaled in. */
.su-c-theme iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 300%;
  border: 0;
  transform: scale(calc(1 / 3));
  transform-origin: 0 0;
}

.su-c-theme.lp-thumb {
  aspect-ratio: auto;
  background: var(--t-bg);
}

.su-c-back {
  top: 5em;
  left: 0;
  width: 15em;
  height: 17em;
}

.su-c-main {
  top: 0;
  left: 12em;
  z-index: 1;
  width: 18em;
  height: 26em;
}

.su-c-post {
  top: 17.5em;
  left: 4em;
  z-index: 2;
  display: grid;
  gap: 0.45em;
  width: 13em;
  padding: 0.75em 0.75em 1em;
  border-radius: 1.25em;
  background: var(--color-paper);
  box-shadow: var(--lp-shadow);
}

.su-c-post img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.75em;
}

.su-c-kicker {
  margin-top: 0.3em;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.65em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.su-c-headline {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.su-c-post i {
  display: block;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

.su-c-post .su-short {
  width: 65%;
}

.su-c-reader {
  top: 23.5em;
  left: 16em;
  z-index: 3;
  width: 8.5em;
  height: 8.5em;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 0.35em var(--color-paper), 0 0 0 0.55em var(--color-accent), var(--lp-shadow);
}

.su-c-agent {
  top: 1.5em;
  left: 1em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em 0.6em 0.7em;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  box-shadow: var(--lp-shadow);
  color: var(--color-ink);
  font-size: 0.95em;
  white-space: nowrap;
}

.su-c-agent code {
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.su-c-time {
  top: 3em;
  left: 27em;
  z-index: 3;
  padding: 0.45em 0.9em;
  border-radius: 0.8em;
  background: var(--lp-violet);
  box-shadow: 0 0 0 0.25em var(--color-paper), var(--lp-shadow);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2em;
  font-weight: 600;
  white-space: nowrap;
}

.su-c-paid {
  top: 18em;
  left: 27.5em;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 5.5em;
  height: 5.5em;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0.3em var(--color-paper), var(--lp-shadow);
  color: #fff;
  text-align: center;
  line-height: 1.05;
}

.su-c-paid span {
  font-family: var(--font-heading);
  font-size: 1.5em;
  font-weight: 700;
}

.su-c-paid small {
  font-size: 0.7em;
}

/* — Under 64rem: the mark, the headline and the form, one column. */
@media (max-width: 63.9375rem) {
  .su {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .su-header {
    top: 1.5rem;
  }

  .su-stage {
    padding: 6rem 1.5rem 0;
  }

  .su-collage {
    display: none;
  }

  .su-panel {
    align-content: start;
    padding: 2rem 1.5rem 4rem;
    border-left: 0;
    background: none;
  }

  .su-panel-body {
    justify-self: start;
  }
}
