/* =====================================================================
   The Collectorium — Static + error pages (v3)
   ---------------------------------------------------------------------
   Two surfaces, one file, because they share a shape: a single centred
   column on an otherwise empty page.

     .sp-prose  — the reading column (privacy, about/FAQ/contact,
                  account deletion). Capped at a readable measure rather
                  than the shell's 1480px, which is a catalogue width, not
                  a prose one.
     .sp-error  — the 404/403/500 composition: translucent glyph, terse
                  heading, one line of body, one primary button.
     .sp-hero   — the iOS app page's pitch.

   These pages carry no cards, so they sit on the themed page background
   and take their colours straight from the tokens.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Reading column
   --------------------------------------------------------------------- */
.sp-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-9);
  text-align: left;
}

/* Each anchor target (#privacy, #cookies, #about, #faq, #contact) is one of
   these — the footer and the account-deletion page link straight to them, so
   scroll-margin keeps the heading clear of the sticky header on arrival. */
.sp-section {
  margin-bottom: var(--space-10);
  scroll-margin-top: var(--space-9);
}

.sp-section:last-child {
  margin-bottom: 0;
}

.sp-section > h1,
.sp-section > h2 {
  margin-bottom: var(--space-5);
}

/* Sub-headings inside a section. Kept at h3 deliberately: the static-page
   heading levels are asserted by DefaultControllerFunctionalTest. */
.sp-prose h3 {
  margin: var(--space-7) 0 var(--space-3);
}

.sp-prose p {
  margin: 0 0 var(--space-4);
  color: var(--fg-secondary);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--tracking-normal);
}

/* The opening paragraph of a section reads as the summary of it. Selector is
   `.sp-prose .sp-lede` rather than a bare `.sp-lede` so it out-specifies the
   `.sp-prose p` colour above without reaching for !important. */
.sp-prose .sp-lede {
  font-size: 19px;
  color: var(--fg);
}

.sp-prose ul,
.sp-prose ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  color: var(--fg-secondary);
  line-height: var(--lh-relaxed);
}

.sp-prose li {
  margin-bottom: var(--space-2);
}

.sp-prose li strong,
.sp-prose p strong {
  color: var(--fg);
  font-weight: var(--weight-semibold);
}

.sp-prose a {
  color: var(--accent-blue);
  text-decoration: none;
}

.sp-prose a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

/* A question/answer pair in the FAQ. The question is the h3 above it. */
.sp-faq-q {
  margin-top: var(--space-7);
}

/* Contact rows: label + value on one line. */
.sp-contact {
  list-style: none;
  padding: 0;
}

.sp-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sp-contact .k {
  min-width: 96px;
  color: var(--fg);
  font-weight: var(--weight-semibold);
}

/* ---------------------------------------------------------------------
   Feature walkthrough — the captioned clips on the About page
   --------------------------------------------------------------------- */
.sp-feature {
  margin-bottom: var(--space-9);
}

.sp-feature video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

/* ---------------------------------------------------------------------
   iOS app hero
   --------------------------------------------------------------------- */
.sp-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-9);
  text-align: center;
}

/* Same treatment as the header's brand mark: the glyph is a white cut-out, so
   it needs its own tile to survive the light theme. */
/* Self-contained brand art, so no blue tile behind it — see the note on
   .v3-brand .mark in shell.css. */
.sp-hero-mark {
  height: 84px;
  margin: 0 auto var(--space-6);
  display: grid;
  place-items: center;
}

.sp-hero-mark .v3-logo {
  height: 84px;
  width: auto;
  display: block;
}

.sp-hero h1 {
  font-size: var(--type-display);
  margin-bottom: var(--space-4);
}

.sp-hero-sub {
  margin: 0 auto var(--space-7);
  max-width: 30em;
  color: var(--fg-secondary);
  line-height: var(--lh-relaxed);
}

/* The App Store badge is a supplied lockup — it keeps its own artwork, so it
   gets a link, not a .v3-button. */
.sp-hero-badge {
  display: inline-block;
}

.sp-hero-badge img {
  width: 180px;
  height: auto;
  display: block;
}

.sp-hero-shot {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: var(--space-9);
  border-radius: var(--radius-xl);
}

/* ---------------------------------------------------------------------
   Error pages — 404 / 403 / 500
   ---------------------------------------------------------------------
   Deliberately the leanest thing on the site: no JS, no images, no data.
   The glyph is a sprite <use>, already inlined at the top of <body>, so a
   500 caused by a dead database still renders exactly like this.
   --------------------------------------------------------------------- */
.sp-error {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-10) 0;
  text-align: center;
}

.sp-error-glyph {
  color: var(--fg-quaternary);
  margin-bottom: var(--space-6);
}

.sp-error h1 {
  font-size: var(--type-display);
  margin-bottom: var(--space-3);
}

.sp-error p {
  margin: 0 0 var(--space-7);
  color: var(--fg-secondary);
  line-height: var(--lh-relaxed);
}

@media (max-width: 720px) {
  .sp-error {
    padding: var(--space-8) 0;
  }

  .sp-hero h1,
  .sp-error h1 {
    font-size: var(--type-title);
  }
}
