/* Hallmark · page: the company's door, sign-in, sign-up, the code, an app's consent, an invitation and a site offered (DESIGN.md §22 and §34, 2026-11-08), over the company site's sheet (saas/home/site.css) · split: a photograph from Unsplash with the way home and the headline, then the form alone in its panel · signature: Lake Braies at first light, the page's one picture */

.hm-door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
}

/* — The stage: the photograph, the way home and the headline ————— */
.hm-door-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2xl);
  overflow: clip;
  padding: var(--space-xl);
  background: var(--color-ink);
  color: var(--color-paper);
}

.hm-door-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A veil at the head and the foot keeps the white words legible. */
.hm-door-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--color-ink) 45%, transparent), transparent 30%, transparent 45%, color-mix(in oklch, var(--color-ink) 80%, transparent));
}

.hm-door-home {
  align-self: flex-start;
}

.hm-door-home:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.hm-door-display {
  max-width: 12ch;
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

/* — The panel: the form alone ————————————————————————————————— */
.hm-door-panel {
  display: grid;
  place-items: center;
  padding: var(--space-2xl) var(--gutter);
  background: var(--color-paper);
}

.hm-door-body {
  display: grid;
  gap: var(--space-md);
  width: 100%;
  max-width: 26rem;
}

.hm-door-body h1 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-3xl);
}

.hm-door-note {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-ink-2);
}

.hm-door-note strong {
  color: var(--color-ink);
}

.hm-code {
  font-size: var(--text-2xl);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

.hm-door-google-form {
  margin: 0;
}

.hm-door-google {
  width: 100%;
}

.hm-door-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.hm-door-choice .hm-button {
  margin-top: 0;
}

.hm-door-or,
.hm-door-legal {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-muted);
}

.hm-door-or {
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.hm-door-or a,
.hm-door-legal a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration-color: var(--color-rule);
  transition: text-decoration-color var(--dur-micro) var(--ease-out);
}

.hm-door-or a:hover,
.hm-door-legal a:hover {
  text-decoration-color: var(--color-accent);
}

.hm-door-or a:focus-visible,
.hm-door-legal a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* — A site's address: the name and the tenants' domain as one field ——— */
.hm-address {
  display: flex;
  align-items: center;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 10px;
  background: var(--color-paper);
}

.hm-address:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.hm-form .hm-address input:not([type="hidden"]) {
  flex: 1;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.hm-address-domain {
  padding-right: var(--space-md);
  color: var(--color-muted);
}

/* — The plan step: the interval, the plans, and the terms of the one picked ——— */
.su-change {
  margin-left: var(--space-xs);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.su-interval {
  display: flex;
  gap: var(--space-2xs);
  width: fit-content;
  padding: var(--space-2xs);
  border-radius: var(--radius-pill);
  background: var(--color-paper-3);
}

.su-interval a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: var(--space-md);
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.su-interval a[aria-current] {
  background: var(--color-ink);
  color: var(--color-paper);
}

.su-interval a:focus-visible,
.su-change:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.su-plans {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  border: 0;
}

.su-plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 10px;
  background: var(--color-paper);
  cursor: pointer;
}

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

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

.hm-form .su-plan input {
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--color-ink);
}

.su-plan-name {
  font-weight: 700;
}

.su-plan-price {
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.su-plan-price small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-muted);
}

.su-plan-facts {
  grid-column: 2 / -1;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

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

.su-plan-form:has(input[value="solo"]:checked) .su-terms [data-plan="solo"],
.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"],
.su-plan-form:has(input[value="scale"]:checked) .su-terms [data-plan="scale"],
.su-plan-form:has(input[value="media"]:checked) .su-terms [data-plan="media"],
.su-plan-form:has(input[value="network"]:checked) .su-terms [data-plan="network"] {
  display: block;
}

/* On a phone the photograph is a band over the form. */
@media (max-width: 60rem) {
  .hm-door {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .hm-door-stage {
    min-height: 16rem;
    padding: var(--space-lg) var(--gutter);
  }

  .hm-door-display {
    font-size: var(--text-section);
  }

  .hm-door-panel {
    place-items: start center;
    padding-block: var(--space-xl);
  }
}
