/* Polyment landing v2 · the site's inner pages, the map, lit (canvas Step 21, 20 Oct 2026; built 31 Oct, F-430).
   Copied from the canvas's site-pages.css; the build drops only the canvas's own board marks and placeholder
   posters, lets the Discord hop fill the window rather than the 844 px board, and adds the after-sign-up page's
   retry state (the end of the file).
   How it works, Fields, the FAQ, Privacy, after sign-up, 404 and the Discord hop: the layout of each page.
   Every colour, size, radius, shadow and timing is a system token; every part is the system's ("Site" group). */

/* ---------- the ground --------------------------------------------------------------------------- */
.sp { position: relative; min-height: 100%; box-sizing: border-box; background-color: var(--navy); color: var(--on-navy); font-family: var(--font-sans);
  background-image: radial-gradient(120% 70% at 50% 0%, var(--navy-lift) 0%, var(--navy) 58%); background-size: 100% 760px; background-repeat: no-repeat;
  --sp-sec: clamp(64px, 9vw, 120px); --hh: 64px; }
:where(.sp) :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, fieldset) { margin: 0; }
:where(.sp) :where(ol, ul) { padding: 0; }
:where(.sp) :where(img) { display: block; max-width: 100%; }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp-wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.sp-sec { padding-top: var(--sp-sec); }
.sp main { padding-bottom: var(--sp-sec); }
.sp-h2 { color: var(--on-navy); max-width: 22ch; }
.sp-lead { margin-top: var(--space-3); max-width: 40ch; font-family: var(--font-sans); font-size: var(--fs-site-lead); line-height: 1.5; color: var(--on-navy-soft); text-wrap: pretty; }
.sp-small { font: 500 14px/1.55 var(--font-sans); color: var(--on-navy-soft); }
.sp-eyebrow { display: block; margin-bottom: var(--space-4); color: var(--on-navy-soft); text-transform: uppercase; }
.sp .pm-link { color: var(--link); }
@media (min-width: 641px) { .sp { --hh: var(--header); } }


/* ---------- the page intro ----------------------------------------------------------------------- */
.sp-intro .pm-leo-line { justify-self: start; }
@media (min-width: 981px) { .sp-intro .pm-leo-line { justify-self: end; margin-bottom: 6px; } }

/* ---------- How it works --------------------------------------------------------------------------- */
.sp-how { display: grid; gap: var(--space-12); }
.sp-how__rail { padding-block: var(--space-2) 0; }
.sp-how__steps { display: grid; gap: clamp(72px, 10vw, 128px); }
.sp-step { display: grid; gap: var(--space-8); }
.sp-step__media { display: grid; gap: var(--space-3); min-width: 0; }
.sp-step__media .pm-vplate { gap: var(--space-3); }
@media (min-width: 981px) {
  .sp-how { grid-template-columns: 180px minmax(0, 1fr); column-gap: var(--space-16); align-items: start; padding-top: var(--space-8); }
  .sp-how__rail { position: sticky; top: calc(var(--hh) + 48px); }
  .sp-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-12); align-items: start; }
  .sp-step--text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.sp-principles { display: grid; gap: var(--space-6); }
.sp-cta { display: grid; gap: var(--space-5); max-width: 640px; }
.sp-cta .pm-form__privacy, .sp-cta .sp-small { margin: 0; }

/* Aim's plate: the day-one map, and one line under it */
.sp-aim-plate .pm-plate__screen { padding: 8px 4px 0; }
.sp-aim-cap { max-width: 46ch; }
/* phones: the founding form stacks, the button full width, as on the home page */
@media (max-width: 640px) {
  .sp .pm-form .pm-form__row { flex-direction: column; align-items: stretch; }
  .sp .pm-form .pm-form__row .pm-btn { width: 100%; }
}

/* ---------- Fields --------------------------------------------------------------------------------- */
.sp-fields { display: grid; gap: var(--space-2); }
.sp-ask { display: grid; gap: var(--space-5); max-width: 640px; }

/* ---------- the FAQ -------------------------------------------------------------------------------- */
.sp-faq { display: grid; gap: var(--space-10); }
.sp-faq__index-label { margin: 0 0 var(--space-3); }
.sp-faq__sections { display: grid; gap: var(--space-12); min-width: 0; }
@media (min-width: 981px) {
  .sp-faq { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--space-16); align-items: start; padding-top: var(--space-4); }
  .sp-faq__index { position: sticky; top: calc(var(--hh) + 48px); }
  .sp-faq__index .pm-page-index { display: grid; gap: 8px; }
  .sp-faq__index .pm-page-index a { width: 100%; }
}
.sp-still { display: grid; gap: var(--space-4); max-width: 640px; }
.sp-still__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-2); }

/* ---------- Privacy -------------------------------------------------------------------------------- */
.sp-privacy { display: grid; gap: var(--space-10); }
.sp-privacy__index { display: none; }
@media (min-width: 981px) {
  .sp-privacy { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--space-16); align-items: start; padding-top: var(--space-4); }
  .sp-privacy__index { display: block; position: sticky; top: calc(var(--hh) + 48px); }
  .sp-privacy__index .pm-page-index { display: grid; gap: 8px; }
  .sp-privacy__index .pm-page-index a { width: 100%; }
}
.sp-privacy .pm-leo-line { margin-top: var(--space-6); }

/* ---------- a message page: after sign-up, 404 ----------------------------------------------------- */
.sp-msg__lead { max-width: 44ch; }
.sp-msg .pm-page-intro { align-items: start; }
.sp-msg .pm-message__actions .pm-btn--text { padding-inline: 2px; }
.sp-msg__leo-stage { justify-self: start; }
@media (min-width: 981px) { .sp-msg__leo-stage { justify-self: end; align-self: center; } }
.sp-share { padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--navy-line); margin-top: clamp(48px, 7vw, 88px); }

/* ---------- the Discord hop ------------------------------------------------------------------------ */
.sp-hop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 100vh; min-height: 100svh; padding: 48px 16px; text-align: center; }
.sp-hop .pm-logo { min-height: 44px; }
.sp-hop__title { margin: 0; font: 600 20px/1.3 var(--font-sans); }
.sp-hop__title a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.sp-hop__title a:hover { text-decoration-thickness: 2.5px; }

/* ---------- the link preview, 1200 × 630 (og-home.jpg) --------------------------------------------- */
.sp-og { width: 1200px; height: 630px; }   /* the ground is the system's .pm-surface: navy with the radial */
.sp-og__logo { position: absolute; left: 64px; top: 56px; --mark: 36px; --word: 30px; --gap: 12px; }
.sp-og__line { position: absolute; left: 64px; top: 150px; width: 520px; margin: 0; font-family: var(--font-display); font-size: 60px; font-weight: 700;
  line-height: 1.04; letter-spacing: -0.025em; color: var(--on-navy); }
.sp-og__site { position: absolute; left: 64px; bottom: 52px; font: 600 24px/1 var(--font-sans); color: var(--on-navy-soft); }
.sp-og__map { position: absolute; right: 30px; bottom: 8px; width: 560px; }
.sp-og__map svg { display: block; width: 100%; height: auto; }

/* ---------- motion off ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sp-how__rail, .sp-faq__index { scroll-behavior: auto; }
}

/* ---------- after sign-up: an expired or unreadable link ------------------------------------------
   js/success.js shows "Sign up again" (the primary) and sets the section's data-state; the Discord then
   steps back to the secondary outline, as the board's Expired and Unreadable states draw it. */
.sp-msg[data-state="expired"] .sp-discord, .sp-msg[data-state="invalid"] .sp-discord {
  background: none; border-color: var(--fg); color: var(--fg); box-shadow: none; }
.sp-msg[data-state="expired"] .sp-discord:hover, .sp-msg[data-state="invalid"] .sp-discord:hover { background: var(--hover); }

/* ---------- a jump to a question or a section stops below the sticky header (the build) --------------- */
.sp :is(section, article, details, h2)[id] { scroll-margin-top: calc(var(--hh) + 24px); }
