/*
  Notification Wizard — aalixer.com/notificationwizard/
  Shared by index.php, privacy-policy.html, terms.html and terms-archive/.

  The palette is sampled from the app's own artwork: a wizard mid-cast against a night sky,
  so deep indigo rather than neutral black, violet for structure, and gold reserved for the
  sparks. Gold is the accent precisely because it is rare on the page — the moment it is
  used for ordinary body emphasis it stops reading as a spark.
*/

:root {
  --night:     #080b1e;
  --surface:   #101538;
  --surface-2: #171d4a;
  --violet:    #7c5cf0;
  --violet-hi: #a894ff;
  --violet-dim:#3a3072;
  --gold:      #f5c542;
  --teal:      #4fd6c8;
  --cream:     #e7e9fb;
  --muted:     #8f95c4;

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  line-height: 1.7;
  margin: 0;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

a { color: var(--violet-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

/* An eyebrow is a label, so it is set like one: letterspaced small caps, never a heading. */
.eyebrow {
  color: var(--teal);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  margin-inline: auto;
  max-width: 1080px;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  margin-inline: auto;
  max-width: var(--measure);
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 6rem); }

/*
  The spark trail. Three stacked radial gradients at co-prime spacings — 23px, 37px and
  61px — so the dots never line up into a visible repeat across a viewport of any width,
  which a single repeating gradient does immediately. It stands in for the wand trail in
  the app icon, and it is the page's one ornament: it does all the section dividing and
  nothing else does any.
*/
.track {
  background-image:
    radial-gradient(circle, var(--gold) 0 1.1px, transparent 1.6px),
    radial-gradient(circle, var(--violet-hi) 0 0.9px, transparent 1.4px),
    radial-gradient(circle, var(--violet-dim) 0 0.8px, transparent 1.3px);
  background-position: 0 4px, 11px 9px, 5px 6px;
  background-repeat: repeat-x, repeat-x, repeat-x;
  background-size: 61px 14px, 37px 14px, 23px 14px;
  border: 0;
  height: 14px;
  margin: 0;
  opacity: 0.7;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }

/*
  Two columns on a wide screen, one on a narrow one. `auto-fit` with a 320px floor does
  the switch without a media query, and the mark is ordered second in the markup so the
  single-column stack puts the headline first, which is the order that matters on a phone.
*/
.hero-inner {
  align-items: center;
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-copy { padding-block: clamp(2.5rem, 6vw, 4rem); }

.hero-mark { display: grid; place-items: center; }

/*
  The badge already carries its own glow in the artwork, so the only thing added here is a
  soft violet pool behind it to stop it floating on flat black. Decorative, so the img has
  an empty alt and screen readers skip it.
*/
.hero-mark img {
  background: radial-gradient(circle at 50% 50%, var(--surface-2) 0%, transparent 68%);
  display: block;
  height: auto;
  max-width: 340px;
  width: 100%;
}

.hero-copy h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.lede {
  color: var(--cream);
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  margin: 0 0 2rem;
  max-width: 54ch;
}

.cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.badge {
  border: 1px solid var(--violet);
  border-radius: 6px;
  color: var(--cream);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.85rem 1.6rem;
  text-transform: uppercase;
  text-decoration: none;
}

.badge:hover { background: var(--surface-2); color: var(--gold); }

.cta-note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── Section lede ───────────────────────────────────────────────────────── */

.section-lede {
  color: var(--cream);
  font-size: 1.05rem;
  margin: 0;
  max-width: 56ch;
}

/* ── How it works ───────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.steps li { border-top: 1px solid var(--violet-dim); padding-top: 1.2rem; }

.steps .n {
  color: var(--gold);
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.steps h3 {
  color: var(--violet-hi);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.steps p { color: var(--muted); margin: 0; }

/* ── Feature list ───────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.features li { border-top: 1px solid var(--violet-dim); padding-top: 0.9rem; }

.features strong {
  color: var(--violet-hi);
  display: block;
  font-weight: 700;
}

.features span { color: var(--muted); font-size: 0.94rem; }

/* ── Shots ──────────────────────────────────────────────────────────────── */

.shots {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2.5rem;
}

.shots figure { margin: 0; }

.shots img {
  border: 1px solid var(--violet-dim);
  border-radius: 8px;
  display: block;
  height: auto;
  width: 100%;
}

.shots figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 0.7rem;
}

/* ── Privacy pledge ─────────────────────────────────────────────────────── */

.pledge { background: var(--surface); }

.pledge h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin-bottom: 1.25rem; }

.pledge p { color: var(--cream); margin: 0 0 1rem; max-width: 58ch; }

.pledge strong { color: var(--gold); font-weight: 600; }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }

.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 0.4rem; }

.legal h2 {
  color: var(--violet-hi);
  font-size: 1.15rem;
  margin: 2.5rem 0 0.6rem;
}

.legal p { margin: 0 0 1rem; }

.legal strong { color: var(--cream); font-weight: 700; }

.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.5rem; }

.back {
  color: var(--muted);
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/*
  A superseded set of terms has to be unmistakable at a glance. An archived page that reads
  as current is worse than no archive at all.
*/
.superseded {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  color: var(--cream);
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
}

/* The March 2026 terms were a plain-text file. They are archived as they were set. */
.verbatim {
  background: var(--surface);
  border: 1px solid var(--violet-dim);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  padding: 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { padding-block: 2.5rem 3.5rem; }

.foot-inner {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }

footer small { color: var(--muted); }

/* ── Motion ─────────────────────────────────────────────────────────────── */

.rise {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
