/* ==========================================================================
   BatterySaver — secondary pages
   ==========================================================================
   Story, Support, Privacy, Terms and Contact.

   These pages are not in the artwork, so they have no locked design. Every
   colour here is sampled from Coming_Soon.png so they read as the same site,
   and the type is set at a size that stays comfortable for readers who don't
   want to squint. Nothing here affects the home page.
   ========================================================================== */

:root {
  --ink:      #05141a;   /* page base, from the artwork footer  */
  --panel:    #0c252b;   /* card fill, from the signup panel    */
  --line:     #1a2c33;   /* hairline, from the input border     */
  --text:     #eaf2f1;
  --muted:    #9bb0b1;
  --green:    #51b22d;   /* button green, from "Notify Me"      */
  --bright:   #87f938;   /* accent green, from the headline     */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 50;
  padding: .7em 1.2em;
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--bright);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

a { color: var(--bright); }
a:hover { color: #a5ff63; }

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 46rem;          /* keeps lines under ~75 characters */
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.masthead__mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex: none;
}

.masthead__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--text);
}
.masthead__name span { color: var(--bright); }

.masthead__back {
  margin-left: auto;
  font-size: .95rem;
  text-decoration: none;
}
.masthead__back:hover { text-decoration: underline; }


/* ---------- article ---------- */

.doc { padding: 3rem 0 4rem; }

.doc h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
}

.doc__meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 2.25rem;
}

.doc h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 .75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 2rem; }

.doc h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 .5rem;
}

.doc p, .doc li { color: #d4e2e1; }
.doc p { margin: 0 0 1.1rem; }
.doc ul, .doc ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: .45rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
}

.callout {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.callout p:last-child { margin-bottom: 0; }

.cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .75rem 1.6rem;
  background: var(--green);
  color: #06231a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.cta:hover { background: #5cc633; color: #06231a; }


/* ---------- footer ---------- */

.pagefoot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: .9rem;
  color: var(--muted);
}

.pagefoot__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
}

.pagefoot a { text-decoration: none; }
.pagefoot a:hover { text-decoration: underline; }
