/* SkyGCS subpages: privacy, security, contact, status and error pages.
   Built only from the homepage's own parts (styles.css: tokens, .top, .mark, .btn family, .bar-title, .foot).
   Every rule is scoped by body.page, so none of it can touch the homepage. No script, no motion. */

body.page {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 112px;                      /* clears the fixed top bar */
}
/* styles.css makes <main> a pointer-events:none layer for the homepage's pinned stage; a subpage has no stage. */
body.page main { pointer-events: auto; }

body.page .page-main {
  flex: 1 0 auto;
  width: 100%; max-width: calc(68ch + 2 * var(--gutter));
  padding: 0 var(--gutter);
}

body.page h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.6rem); line-height: .96; letter-spacing: -.02em;
}
body.page h2 {
  margin-top: 56px;
  font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.01em;
}

body.page .page-main p:not(.bar-title):not(.status),
body.page .page-main li {
  color: var(--mid); font-size: 1.1rem; line-height: 1.4; max-width: 68ch;
}
body.page .page-main p:not(.bar-title):not(.status) { margin: 20px 0 0; }
body.page .page-main ul, body.page .page-main ol { margin: 20px 0 0; padding-left: 1.3em; }
body.page .page-main li { margin-top: 8px; }
body.page .page-main strong { color: var(--fg); font-weight: 600; }

body.page .page-main a:not(.btn) { color: var(--fg); text-decoration: underline; text-underline-offset: .18em; }

/* A notice that a feature is not open yet: the same look as the homepage's "Not open yet" label. */
body.page .status {
  margin: 24px 0 0; max-width: 60ch; color: var(--mid);
  font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase;
}

/* Contact form: stacked fields. The inputs are styled by the homepage's .signup rules in styles.css (they are
   flex:1 1 240px there, which would size them by height in a column, so reset that); the textarea matches them. */
body.page .contact-form { max-width: 60ch; }
body.page .contact-form .field { margin-top: 20px; }
body.page .contact-form input,
body.page .contact-form textarea {
  display: block; width: 100%; flex: none; min-height: 48px; padding: 0 16px;
  background: #2D2D2D; color: var(--fg); border: 1px solid #6a6a6a; border-radius: 12px;
  font: 500 1rem "Oxanium", sans-serif;
}
body.page .contact-form textarea { padding: 12px 16px; min-height: 12rem; line-height: 1.4; resize: vertical; }
body.page .contact-form textarea::placeholder { color: #A0A0A0; }
body.page .contact-form textarea:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
body.page .contact-form textarea[aria-invalid="true"] { border-color: #D32F2F; }
body.page .contact-form textarea[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 2px #D32F2F; }
body.page .contact-form .btn { margin-top: 24px; }
/* The note and privacy line keep the homepage's small sizes (the generic subpage paragraph rule is more specific than .form-note/.privacy). */
body.page .page-main .contact-form p.form-note:not(.bar-title):not(.status) { margin: 10px 0 0; min-height: 1.5em; font-size: .92rem; line-height: 1.4; }
body.page .page-main .contact-form p.privacy:not(.bar-title):not(.status) { margin: 6px 0 0; font-size: .84rem; color: var(--dim); }
body.page .page-main .contact-form p.form-note.err:not(.bar-title):not(.status),
body.page .page-main .contact-form p.form-note.ok:not(.bar-title):not(.status) { color: var(--fg); }

/* Phase 7's hidden anti-spam fields: off screen, still in the layout tree (never display:none alone). */
body.page .hp {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* The footer sits in the page's own gutter here (on the homepage it lives inside the beta section). */
body.page .foot { margin: 80px var(--gutter) 0; padding-bottom: 48px; }

@media (max-width: 860px) {
  body.page { padding-top: 96px; }
  body.page h1 { font-size: clamp(1.6rem, 6.8vw, 2.1rem); line-height: 1; }
  body.page h2 { margin-top: 40px; }
  body.page .page-main p:not(.bar-title):not(.status),
  body.page .page-main li { font-size: .98rem; }
  body.page .page-main p:not(.bar-title):not(.status) { margin-top: 12px; }
  body.page .actions { margin-top: 18px; }
}
