/* unsocial.events: one stylesheet, no build step.
   Black-and-white identity in both colour schemes (owner brief, 2026-11-23).
   Every colour, size and radius used below comes from these tokens. */

/* Display face: DM Sans, the logo's typeface (SIL OFL 1.1, licence in web/fonts/),
   self-hosted so the page makes no third-party font requests. Headings only; body text
   stays in the system sans. The fun comes from the logo's details: a slight tilt and sparkles. */
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  /* Colour */
  --bg: #000;
  --surface: #0d0d0d;
  --fg: #fff;
  --muted: #b8b8b8;          /* 10.6:1 on --bg */
  --line: #333;              /* decorative dividers only */
  --line-strong: #8f8f8f;    /* control borders, 6.5:1 on --bg (needs 3:1) */
  --accent: #ff9b8a;         /* errors only, 10.3:1 on --bg */
  --focus: #fff;

  /* Type */
  --font-display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.2rem + 2.6vw, 3rem);

  /* Space (4px scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* Shape */
  --radius-control: 0.5rem;
  --radius-card: 1rem;
  --radius-pill: 999px;
  --border: 1px solid var(--line-strong);
  --target: 2.75rem;         /* 44px touch target */
  --measure: 34rem;
  --page: 64rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fg); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.display,
.hero h1,
.section-title,
.card h3,
.step-time,
.prose h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* The logo's little sparkle, used next to a few headings. */
.spark {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  vertical-align: 0.55em;
  fill: currentColor;
}
/* Two sparkles, big and small, as in the logo (twinkle with the logo; see the motion rules). */
.spark-pair {
  display: inline-block;
  width: 0.62em;
  height: 0.58em;
  margin-left: 0.08em;
  vertical-align: 0.5em;
  fill: currentColor;
}

/* A word tipped up at the same angle as the "un" in the logo. */
.tilt {
  display: inline-block;
  transform: rotate(-6deg);
  transform-origin: 50% 70%;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -10rem;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-control);
}
.skip:focus { top: var(--space-2); }

.hide-narrow,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: var(--space-2) var(--space-4);
  border: var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { background: var(--surface); }
.btn[disabled] { cursor: progress; opacity: 0.6; }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--muted); border-color: var(--muted); }
.btn-primary:focus-visible { outline-color: var(--fg); }

.btn-block { width: 100%; }

.btn-small {
  gap: var(--space-1);
  font-size: var(--step--2);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
}
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--fg); border-color: var(--line-strong); }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-2) var(--space-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-mark { width: 1.75rem; height: 1.75rem; }
.wordmark-logo { width: auto; height: 2.75rem; }

.topbar-actions {
  display: flex;
  gap: var(--space-2);
}

/* ---------- Layout ---------- */

main,
.footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero {
  max-width: 30rem;
  margin: 0 auto;
  padding-top: var(--space-5);
  padding-bottom: var(--space-7);
}

.hero-copy { margin-bottom: var(--space-5); text-align: center; }
.hero-copy .sub { margin-left: auto; margin-right: auto; }

.hero h1 {
  font-size: clamp(2.6rem, 1.9rem + 3.4vw, 3.6rem);
  line-height: 1;
  margin: 0 0 var(--space-4);
}

.sub {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--step-0);
}



/* The form as a ticket stub: notched sides and a perforated tear line. */
.stub {
  --notch-y: 2.95rem;        /* centre of the tear line, measured from the padding box */
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-5);
  border: 2px solid var(--fg);
  border-radius: var(--radius-card);
  background: var(--surface);
}
/* Half-circle notches where the tear line meets the edges: a page-coloured circle sits on
   each border, with only its inner half outlined, so the border appears bitten. */
.stub::before,
.stub::after {
  content: "";
  position: absolute;
  top: calc(var(--notch-y) + 2px - 0.75rem);
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--bg);
  transform: rotate(45deg);
}
.stub::before { left: calc(-0.75rem - 1px); border-top-color: var(--fg); border-right-color: var(--fg); }
.stub::after { right: calc(-0.75rem - 1px); border-bottom-color: var(--fg); border-left-color: var(--fg); }
.stub-top {
  display: flex;
  justify-content: space-between;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px dashed var(--line-strong);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.signup { position: relative; }

/* ---------- Battery slider ---------- */

.battery { margin: 0; }

.battery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--step--1);
}

.battery-readout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.batt {
  position: relative;
  width: 1.6rem;
  height: 0.8rem;
  border: 2px solid var(--fg);
  border-radius: 3px;
  padding: 1px;
}
.batt::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 3px;
  height: 0.35rem;
  transform: translateY(-50%);
  background: var(--fg);
  border-radius: 0 2px 2px 0;
}
.batt-fill {
  display: block;
  height: 100%;
  width: calc(var(--level, 23) * 1%);
  background: var(--fg);
  border-radius: 1px;
}

input[type="range"] {
  width: 100%;
  height: var(--target);
  margin: 0;
  accent-color: var(--fg);
  background: transparent;
  cursor: pointer;
}

.battery-line {
  margin: calc(-1 * var(--space-2)) 0 0;
  min-height: 3em;          /* two lines, so the button does not jump as the text changes */
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ---------- Form ---------- */

.signup-intro { margin: 0 0 var(--space-3); text-align: center; }
.signup-title { margin: 0 0 var(--space-2); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); }
.signup-note { margin: 0 auto; max-width: 22rem; color: var(--muted); font-size: var(--step--1); }

.form { display: grid; gap: var(--space-3); }

.field { display: grid; gap: var(--space-1); }
.field[hidden] { display: none; }

label {
  font-size: var(--step--1);
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  min-height: var(--target);
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: var(--step-0); /* 16px stops iOS zooming on focus */
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: var(--space-6);
}

input:focus-visible,
select:focus-visible {
  outline-offset: 1px;
  border-color: var(--fg);
}

[aria-invalid="true"] { border-color: var(--accent); }

/* A small "i" beside a label: the note shows on hover or keyboard focus, and on tap (app.js). */
.label-row { display: flex; align-items: center; gap: var(--space-2); }
.info { position: relative; display: inline-flex; }
.info-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: italic 700 0.7rem/1 var(--font-display);
  cursor: pointer;
  touch-action: manipulation;
}
.info-btn::before { content: ""; position: absolute; inset: -0.85rem; } /* 44px tap area */
.info-btn:hover,
.info-btn[aria-expanded="true"] { border-color: var(--fg); color: var(--fg); }
.info-tip {
  display: none;
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  width: 15rem;
  transform: translateX(-35%);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--fg);
  font-size: var(--step--2);
  line-height: 1.45;
}
.info:hover .info-tip,
.info-btn:focus-visible + .info-tip,
.info-btn[aria-expanded="true"] + .info-tip { display: block; }

.field-error,
.form-error {
  margin: 0;
  color: var(--accent);
  font-size: var(--step--1);
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--2);
  line-height: 1.5;
}

/* ---------- Confirmation card ---------- */

.done[hidden] { display: none; }

.ticket {
  --notch-y: 3.95rem;        /* centre of the tear line under the brand row, from the padding box */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  aspect-ratio: 9 / 16;      /* Instagram Story shape; grows if content needs it */
  max-width: 22rem;
  margin: 0 auto var(--space-4);
  padding: var(--space-5);
  border: 2px solid var(--fg);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0;
  font-size: var(--step--2);
  font-weight: 700;
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: calc(var(--notch-y) + 2px - 0.75rem);
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--bg);
  transform: rotate(45deg);
}
.ticket::before { left: calc(-0.75rem - 1px); border-top-color: var(--fg); border-right-color: var(--fg); }
.ticket::after { right: calc(-0.75rem - 1px); border-bottom-color: var(--fg); border-left-color: var(--fg); }
.ticket-brand {
  padding-bottom: var(--space-4);
  border-bottom: 2px dashed var(--line-strong);
}
.ticket-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.ticket-logo { display: block; width: auto; height: 2.25rem; }
.ticket-kind {
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-title {
  margin: 0;
  font-size: var(--step-2);
}
/* Focus lands here programmatically after sign-up so screen readers start at the
   headline; it is not in the tab order, so no ring (keeps the card screenshot clean). */
.ticket-title:focus,
.ticket-title:focus-visible { outline: none; }
.ticket-aside {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.ticket-handle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: -0.01em;
}
/* A button that reads as a link inside a sentence ("Send them the link"). */
.link-btn {
  display: inline;
  padding: 0.6rem 0.1rem;   /* taller tap area without moving the text */
  margin: -0.6rem 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.ticket-body { margin: 0; font-size: var(--step--1); }
.ticket-repeat { margin-top: var(--space-2); color: var(--muted); }

.receipt {
  margin: 0;
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  font-size: var(--step--2);
}
.receipt div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-2); }
.receipt div + div { margin-top: var(--space-2); }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; }

.nightmare { margin-top: auto; }
.nightmare-q {
  margin: 0 0 var(--space-2);
  font-size: var(--step--2);
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.chip {
  min-height: var(--target);
  padding: var(--space-1) var(--space-3);
  border: var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--step--1);
  cursor: pointer;
  touch-action: manipulation;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nightmare-hint { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--step--2); opacity: 0.8; }

.nightmare-status,
.share-status {
  margin: var(--space-2) 0 0;
  min-height: 1.5em;
  font-size: var(--step--1);
}

.share-status { text-align: center; }

.refer {
  margin: var(--space-4) auto 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}

/* ---------- How it works ---------- */

.section-title {
  font-size: var(--step-3);
  margin: 0 0 var(--space-5);
}

.section-sub { margin: calc(-1 * var(--space-4)) 0 var(--space-5); color: var(--muted); }

.how { padding: var(--space-7) 0; border-top: 1px solid var(--line); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.card {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.card h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--step-2); line-height: 1.1; }
.card p { margin: 0; color: var(--muted); }
.card-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--fg);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

/* ---------- Timeline strip: stacked on phones, one row when wide ---------- */

.timeline { padding: var(--space-7) 0; border-top: 1px solid var(--line); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.step {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-5);
  border-left: 2px dashed var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  left: calc(-0.4rem - 1px);
  top: 0.15rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--fg);
}
.step:last-child { padding-bottom: 0; border-left-color: transparent; }
.step-time { font-size: var(--step-2); font-variant-numeric: tabular-nums; line-height: 1; }
.step p { margin: var(--space-2) 0 0; }
.step-what { font-weight: 600; }
.step-note { color: var(--muted); font-size: var(--step--1); }

/* ---------- FAQ ---------- */

.faq { padding: var(--space-7) 0; border-top: 1px solid var(--line); max-width: 44rem; }

/* ---------- Last call and the phone sticky button ---------- */

.last-call {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.last-call-title { margin: 0 0 var(--space-3); font-size: var(--step-3); }
.last-call p { margin: 0 0 var(--space-5); color: var(--muted); }
.btn-big { min-height: 3.25rem; padding: var(--space-3) var(--space-6); font-size: var(--step-1); }

.sticky-cta {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 4px var(--bg);
}
.sticky-cta[hidden] { display: none; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--target);
  padding: var(--space-3) 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: var(--step-1);
}
details[open] summary::after { content: "-"; }
details p { margin: 0 0 var(--space-4); color: var(--muted); max-width: var(--measure); }
details strong { color: var(--fg); }

/* ---------- Footer ---------- */

.footer {
  padding-top: var(--space-6);
  padding-bottom: calc(var(--space-8) + var(--space-4)); /* room for the phone sticky button */
  border-top: 1px solid var(--line);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-list a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--fg); }
.footer-list li { display: flex; align-items: center; }
.footer-brand { color: var(--fg); font-weight: 700; }

/* ---------- Privacy page ---------- */

.prose { max-width: 44rem; padding-bottom: var(--space-7); }
.prose h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-size: var(--step-3); margin: var(--space-5) 0 var(--space-4); }
.prose h2 { font-size: var(--step-0); margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose li { color: var(--muted); max-width: var(--measure); }
.prose strong { color: var(--fg); }
.prose-lede { font-size: var(--step-1); }
.prose-meta { font-size: var(--step--2); margin-top: var(--space-6); }

/* ---------- Emergency exit dialog ---------- */

.exit {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: var(--space-5);
  border: 0;
  background: var(--bg);
  color: var(--fg);
}
.exit[open] { display: grid; place-items: center; }
.exit::backdrop { background: var(--bg); }

.exit-inner {
  max-width: 24rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}
.exit-inner h2 { margin: 0; font-size: var(--step-3); }
.ticket-title { letter-spacing: -0.03em; }
.exit-inner p { margin: 0; }
.exit-mark { width: 5.5rem; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .exit[open] { animation: fade-in 240ms ease-out; }
  .done:not([hidden]) .ticket { animation: fade-in 320ms ease-out; }
}

/* The disco ball turns on its string and the sparkles twinkle, in the header and on the exit screen.
   The ball's columns flip through 12 frames (drawn by brand/logo-final/build.mjs); delays are offset
   by half a frame so exactly one frame ever shows. Still, on frame 0, for reduced motion. */
.logo-live .spin { opacity: 0; }
.logo-live .spin-0 { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .logo-live .spin { animation: spin-frame 1.6s step-end infinite; }
  .logo-live .spin-0 { animation-delay: -1.667s; }
  .logo-live .spin-1 { animation-delay: -1.533s; }
  .logo-live .spin-2 { animation-delay: -1.400s; }
  .logo-live .spin-3 { animation-delay: -1.267s; }
  .logo-live .spin-4 { animation-delay: -1.133s; }
  .logo-live .spin-5 { animation-delay: -1.000s; }
  .logo-live .spin-6 { animation-delay: -0.867s; }
  .logo-live .spin-7 { animation-delay: -0.733s; }
  .logo-live .spin-8 { animation-delay: -0.600s; }
  .logo-live .spin-9 { animation-delay: -0.467s; }
  .logo-live .spin-10 { animation-delay: -0.333s; }
  .logo-live .spin-11 { animation-delay: -0.200s; }
  .logo-live .sparkles path {
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkle 2.6s ease-in-out infinite;
  }
  .logo-live .sparkles path:nth-child(2) { animation-delay: -1.3s; }
  .spark-pair path {
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkle 2.6s ease-in-out infinite;
  }
  .spark-pair path:nth-child(2) { animation-delay: -1.3s; }
}

@keyframes spin-frame {
  0% { opacity: 1; }
  8.3333% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.55); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 30rem) {
  .hide-narrow {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

@media (min-width: 48rem) {
  .topbar { padding: var(--space-4) var(--space-5); }
  main, .footer { padding-left: var(--space-5); padding-right: var(--space-5); }
  .wordmark-logo { height: 3.25rem; }
  .hero { padding-top: var(--space-7); }
  .sub { font-size: var(--step-1); }
  .stub { --notch-y: 3.45rem; padding: var(--space-5); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
  .footer { padding-bottom: var(--space-7); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step,
  .step:last-child {
    padding: var(--space-5) var(--space-4) 0 0;
    border-left: 0;
    border-top: 2px dashed var(--line-strong);
  }
  .step::before { left: 0; top: calc(-0.4rem - 1px); }
}

@media (forced-colors: active) {
  .btn, .chip, input, select, .ticket, .card { border: 1px solid CanvasText; }
  .batt-fill { background: CanvasText; }
}
