/* The sign-up page (/join). Builds on styles.css: same paper, hero and light. */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.join-content { flex: 1; width: min(100% - 2 * var(--gutter), 560px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem 0 5rem; }
/* The slogan set as on the App Store brand image: only "understood," leans. */
.join-slogan { font-style: normal; }
.join-slogan em { font-style: italic; }

.join-step { width: 100%; display: flex; flex-direction: column; align-items: center; }
.join-step h1 { margin-top: 1.25rem; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
.join-step h1 em { font-weight: 400; }
.join-step h1:focus { outline: none; }
.join-lead { max-width: 360px; margin-top: 1.25rem; font-size: 1rem; line-height: 1.8; color: var(--quiet); text-wrap: pretty; }
.join-number { white-space: nowrap; color: var(--ink); }

/* The App's two-tone input: typed digits in ink, the rest of the template in
   pale figure dashes. The real input sits on top with transparent text and
   only supplies the caret, selection and keyboard. */
.digits { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.25rem; padding: .5rem .25rem .75rem; cursor: text; }
.digits-prefix { font-size: 1.875rem; line-height: 2.5rem; font-weight: 600; }
.digits-field { position: relative; display: inline-block; }
.digits-mask, .digits-field input { font-size: 1.875rem; line-height: 2.5rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: pre; }
.digits-mask { display: block; }
.digits-mask .rest { color: #b4afa4; }
/* A few spare pixels on the right keep a full field from scrolling its own
   text sideways under the caret. */
.digits-field input { position: absolute; inset: 0 -4px 0 0; width: calc(100% + 4px); height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ink); -webkit-appearance: none; appearance: none; }
.digits-field input:focus-visible { outline: none; }
.digits-field input:-webkit-autofill { -webkit-text-fill-color: transparent; transition: background-color 600000s 0s; }

.join-error { max-width: 340px; margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: #9b4b37; text-wrap: balance; }
/* No background transition: WebKit styles a <button> once before the sheets
   apply, and from iOS's default blue the glass would fade in on load. */
.join-button { margin-top: 2rem; min-width: 190px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.join-button:disabled { cursor: default; opacity: .65; }
/* Full column width, so a short line of small print starts where the long
   one above it does instead of centring on its own. */
.join-consent { width: 100%; max-width: 330px; margin-top: 1.75rem; font-size: .75rem; line-height: 1.6; color: var(--quiet); text-align: left; }
.join-consent a { color: #79614c; text-decoration-color: #8a735e70; }
.join-consent + .join-eligibility { margin-top: .75rem; }
.join-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; margin-top: 1.5rem; }
.join-text-button { padding: .6rem 0; border: 0; background: transparent; font-size: .875rem; color: #79614c; cursor: pointer; text-decoration: underline; text-decoration-color: #8a735e70; text-underline-offset: .3em; }
.join-text-button:disabled { color: var(--quiet); text-decoration: none; cursor: default; }
.join-status { min-height: 1.4em; margin-top: .5rem; font-size: .8125rem; line-height: 1.6; color: var(--quiet); }

@media (max-width: 720px) {
  .join-content { padding-block: 2rem 3.5rem; }
  /* The same size as the homepage's lines on a phone. */
  .join-lead { font-size: .9rem; line-height: 1.75; }
}
