/* ReelGainz — reelgainz.app
   One stylesheet for every page. The visual direction is the approved design
   canvas in ../design-mockups: violet gradient on #0B0A11, Space Grotesk for
   display, Manrope for text.

   Fonts are self-hosted (variable, latin subset, ~47KB total) rather than
   linked from Google. The privacy page says this site runs no third-party
   requests; a font CDN would make that untrue. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0A11;
  --bg-raised: #0E0D14;
  --card: #17151E;
  --line: #1E1C26;
  --line-strong: #2A2833;
  --text: #F4F3F8;
  --text-2: #B9B6C6;
  --text-3: #9A97A8;
  /* 6.0:1 on --bg (was #706D80 at 3.9:1, under AA for the small print it carries). */
  --text-4: #8F8C9E;
  --violet: #7C5CFF;
  --violet-lite: #9B85FF;
  --magenta: #B15CFF;
  --mint: #19D3A2;
  --grad: linear-gradient(90deg, #7C5CFF, #B15CFF);
  --measure: 46rem;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); }
p { margin: 0; }

a { color: var(--violet-lite); text-decoration: none; }
a:hover { color: var(--magenta); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet-lite);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad-x); }
.stack { display: flex; flex-direction: column; }
.gap-s { gap: 0.75rem; } .gap-m { gap: 1.35rem; } .gap-l { gap: 2.25rem; }
.muted { color: var(--text-3); }
.small { font-size: 0.875rem; }
.gradient-text {
  background: linear-gradient(90deg, #9B85FF, #B15CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.site-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid transparent;
}
.site-head.bordered { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 2.125rem; height: 2.125rem; border-radius: 0.6rem; flex-shrink: 0;
  background: linear-gradient(135deg, #7C5CFF, #B15CFF);
  display: grid; place-items: center;
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-weight: 600; font-size: 0.95rem; }
/* nowrap: "How it works" broke onto three lines at 375px.
   padding-block: text links are ~18px tall, which is a mean target for a thumb. */
.nav a { color: var(--text-3); white-space: nowrap; padding-block: 0.4rem; }
.nav a:hover { color: var(--text); }

.site-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 3rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.6rem;
  font-size: 0.85rem; color: var(--text-4);
}
.site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.85rem 1.6rem; }
.site-foot a { padding-block: 0.4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.9rem 1.6rem;
  border: 0; border-radius: 0.875rem;
  font: inherit; font-weight: 700; color: #fff;
  background: var(--grad);
  cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn[disabled] { opacity: 0.55; cursor: default; filter: none; }
.btn-quiet {
  background: transparent; color: var(--violet-lite);
  border: 1.5px solid var(--line-strong);
}
.btn-quiet:hover { color: var(--magenta); border-color: var(--violet); }

/* ---------- hero ---------- */

.hero { display: flex; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 3.5rem) clamp(3rem, 7vw, 4.5rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; max-width: 39rem; }
.pill {
  align-self: flex-start; padding: 0.45rem 1rem; border-radius: 1rem;
  background: rgba(155, 133, 255, 0.12); color: var(--violet-lite);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.lede { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.25rem); color: var(--text-2); max-width: 33rem; }

/* the phone: decorative, hidden where it would squeeze the copy */
.phone {
  width: 18.75rem; flex-shrink: 0; border-radius: 2.75rem;
  background: var(--bg-raised); border: 3px solid var(--line-strong);
  box-shadow: 0 2.5rem 5.5rem rgba(124, 92, 255, 0.22);
  padding: 1.1rem 0.875rem 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.phone-bars { display: flex; gap: 3px; padding: 1.4rem 0.25rem 0; }
.phone-bars i { height: 3px; flex: 1; border-radius: 2px; background: var(--line-strong); }
.phone-bars i.done { background: var(--mint); }
.phone-bars i.now { background: var(--violet-lite); }
.phone-video {
  position: relative; height: 17rem; border-radius: 1rem;
  background: linear-gradient(160deg, #241E33, #141019 70%);
  display: grid; place-items: center;
}
.phone-play { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; }
.phone-handle { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.25rem 0.55rem; border-radius: 0.6rem; background: rgba(0,0,0,0.45); font-size: 0.6rem; font-weight: 600; }
.phone-stats { display: flex; gap: 0.5rem; }
.phone-stat { flex: 1; background: #1E1E24; border-radius: 0.7rem; padding: 0.5rem; text-align: center; }
.phone-stat span { display: block; font-size: 0.5rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.04em; }
.phone-stat b { font-size: 1.3rem; }
.phone-cta { height: 2.6rem; border-radius: 1.3rem; background: var(--grad); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }

/* ---------- sections & cards ---------- */

.band { padding-block: clamp(2.75rem, 6vw, 4rem); }
.band-raised { background: var(--bg-raised); }
.band-violet { background: linear-gradient(135deg, #201A33, #17131F); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.card { background: var(--card); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.card-outline { background: transparent; border: 1.5px solid #24222C; }
.step-no {
  width: 2.6rem; height: 2.6rem; border-radius: 0.75rem;
  background: rgba(155,133,255,0.14); color: var(--violet-lite);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
}

/* ---------- signup form ---------- */

.signup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.signup input[type="email"] {
  flex: 1 1 18rem; min-width: 0; min-height: 3.25rem;
  padding: 0.9rem 1.15rem; border-radius: 0.875rem;
  background: var(--card); border: 1.5px solid var(--line-strong);
  color: var(--text); font: inherit;
}
.signup input::placeholder { color: var(--text-4); }
.form-note { font-size: 0.8rem; color: var(--text-4); }
/* Reserves a line only once there's something to say — an always-on min-height
   left a visible hole between the button and the note. */
.form-status { font-size: 0.9rem; min-height: 1.4rem; }
.form-status:empty { min-height: 0; }
.form-status.ok { color: var(--mint); }
.form-status.bad { color: #FF8A6A; }

/* ---------- documents (privacy / terms / support / delete) ---------- */

.doc { display: flex; gap: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2.5rem, 6vw, 3.5rem) 1rem; }
.toc {
  width: 15rem; flex-shrink: 0; position: sticky; top: 2rem; align-self: flex-start;
  display: flex; flex-direction: column; gap: 0.85rem;
  font-size: 0.9rem;
}
.toc-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-4); }
.toc a { color: var(--text-3); }
.toc a:hover { color: var(--text); }
.doc-body { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.75rem; }
.doc-body section { display: flex; flex-direction: column; gap: 0.75rem; scroll-margin-top: 2rem; }
.doc-body p, .doc-body li { color: var(--text-2); }
/* Underlined in running text: colour alone does not mark a link (WCAG 1.4.1). */
.doc-body a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.doc-body ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; }
/* Legal text is never set below 16px (Chile Ley 19.496 art. 17 and Honduras
   Acuerdo 084-2021 art. 81.3 ask for at least 2.5 mm): body text inherits the
   body's clamp(1rem, …), and the version line above a policy is body text too.
   web/scripts/legal-pages.test.mjs pins both. */
.updated { font-size: 1rem; color: var(--text-4); }

.callout {
  background: rgba(155,133,255,0.07);
  border: 1px solid rgba(155,133,255,0.25);
  border-radius: 0.875rem; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.callout-title { font-weight: 700; color: var(--violet-lite); }

/* Draft copy that still needs the real thing. Deliberately loud: this must not
   reach a store reviewer unnoticed. */
.todo, .doc-body p.todo {
  border-left: 3px solid #FFB020;
  background: rgba(255, 176, 32, 0.07);
  padding: 0.75rem 1rem; border-radius: 0 0.5rem 0.5rem 0;
  color: #E9C68A; font-size: 0.95rem;
}

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1rem; }
.steps li { color: var(--text-2); }

/* ---------- print (the legal pages get saved as PDF) ---------- */
@media print {
  :root {
    --bg: #fff; --bg-raised: #fff; --card: #fff; --line: #ccc; --line-strong: #999;
    --text: #111; --text-2: #222; --text-3: #444; --text-4: #555;
    --violet-lite: #4a2fd6; --magenta: #4a2fd6;
  }
  body { background: #fff; color: #111; }
  .site-head, .site-foot, .toc { display: none; }
  .doc-body a { color: #4a2fd6; }
  .callout { border-color: #999; background: none; }
  .todo, .doc-body p.todo { color: #7a4a00; background: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .hero { flex-direction: column; align-items: flex-start; }
  .phone { display: none; }          /* decorative; the copy comes first on a phone */
  .doc { flex-direction: column; }
  .toc { position: static; width: auto; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .toc-label { width: 100%; }
}
@media (max-width: 34rem) {
  /* Nav drops to its own row rather than squeezing beside the wordmark. */
  .nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 0.3rem 1.25rem; font-size: 0.9rem; }
  .btn { width: 100%; }
  .signup input[type="email"] { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- real screenshots ---------- */

/* A phone body around a real capture. The capture already carries the app's
   own chrome, so the frame stays thin — bezel, not illustration. */
.device {
  border-radius: 2.2rem;
  padding: 0.45rem;
  background: #17151E;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  line-height: 0;
}
.device img {
  width: 100%; height: auto;
  border-radius: 1.8rem;
}
/* The hero capture and the one line saying what it shows travel together, and
   hide together where the copy needs the room. */
.hero-shot { width: min(19rem, 38vw); flex-shrink: 0; display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 52rem) { .hero-shot { display: none; } }
/* What a capture shows, under it: the videos in them are from the phone, not
   reels, and the page says so beside the picture rather than only at the end. */
.shot-note { font-size: 0.85rem; color: var(--text-3); line-height: 1.5; text-align: center; max-width: 21rem; }

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.screens figcaption { font-size: 0.85rem; color: var(--text-3); line-height: 1.5; }
.screens figcaption b { color: var(--text-2); }
@media (max-width: 60rem) {
  .screens { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 34rem) {
  /* One row you can thumb through beats a long column of phones. */
  .screens {
    display: flex; overflow-x: auto; gap: 1rem;
    scroll-snap-type: x mandatory; padding-bottom: 0.5rem;
  }
  .screens figure { flex: 0 0 70%; scroll-snap-align: start; }
}

/* ---------- small shared bits ---------- */

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--violet-lite); text-transform: uppercase;
}
.lede-sm { font-size: 1.1rem; color: var(--text-2); font-weight: 600; }
.sub-h { margin-top: 1rem; }

/* ---------- the two modes ---------- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.mode {
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: end;
  border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card); border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.mode::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.mode-advanced::before { background: linear-gradient(90deg, var(--mint), var(--violet)); }
.mode-copy { display: flex; flex-direction: column; gap: 0.8rem; align-self: start; }
.mode-kicker {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; color: var(--text-3);
}
.mode-icon {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 0.5rem;
  background: rgba(124, 92, 255, 0.16); color: var(--violet-lite); font-size: 0.7rem;
}
.mode-advanced .mode-icon { background: rgba(25, 211, 162, 0.14); color: var(--mint); }
.mode h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.mode-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; color: var(--text-2); font-size: 0.95rem; }
.mode-list li { padding-left: 1.35rem; position: relative; line-height: 1.45; }
.mode-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em;
  color: var(--violet-lite); font-weight: 800;
}
.mode-advanced .mode-list li::before { color: var(--mint); }
.mode-device { width: clamp(9rem, 12vw, 11.5rem); }
.mode-switch {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px dashed var(--line-strong);
}
.mode-switch-device { width: clamp(8rem, 11vw, 10rem); }
@media (max-width: 60rem) {
  .modes { grid-template-columns: 1fr; }
  .mode-device { width: clamp(10rem, 28vw, 13rem); }
}
@media (max-width: 34rem) {
  .mode { grid-template-columns: 1fr; }
  .mode-device { width: min(14rem, 70%); justify-self: center; }
  .mode-switch { grid-template-columns: 1fr; }
  .mode-switch-device { width: min(11rem, 60%); justify-self: center; }
}

/* ---------- the session: real screens playing like a demo ---------- */

.session { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.session-copy .lede { max-width: none; }
.session-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.player { width: min(21rem, 100%); position: relative; }
.player img { display: block; }
.player img:not(:first-child) { position: absolute; inset: 0.45rem; width: calc(100% - 0.9rem); height: calc(100% - 0.9rem); }
.player img { opacity: 0; transition: opacity 0.5s ease; }
.player img.on { opacity: 1; }
.player img:first-child { position: relative; opacity: 0; }
.player img:first-child.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .player img { transition: none; } }

.moments { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; counter-reset: moment; }
.moments li { counter-increment: moment; }
.moments button {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.35rem 0.85rem; align-items: baseline;
  padding: 0.7rem 0.9rem; border-radius: 1rem;
  background: transparent; border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.moments button::before {
  content: counter(moment); grid-row: 1 / span 2;
  width: 1.9rem; height: 1.9rem; border-radius: 0.6rem;
  display: grid; place-items: center; align-self: start;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem;
  background: var(--card); color: var(--text-3); border: 1px solid var(--line-strong);
}
.moments b { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-2); }
.moments span { display: block; font-size: 0.9rem; color: var(--text-4); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; }
.moments li.on button { background: var(--card); border-color: var(--line-strong); }
.moments li.on button::before { background: var(--grad); color: #fff; border-color: transparent; }
.moments li.on b { color: var(--text); }
.moments li.on span { max-height: 6em; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .moments span { max-height: none; opacity: 1; transition: none; }
}
@media (max-width: 52rem) {
  .session { grid-template-columns: 1fr; }
  .session-stage { order: -1; }
  .player { width: min(17rem, 75%); }
}

/* ---------- a look around: one screen per row ---------- */

.tour { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); }
.tour-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.tour-row:nth-child(even) { grid-template-columns: 1fr auto; }
.tour-row:nth-child(even) .tour-device { order: 2; }
.tour-device { width: clamp(12rem, 20vw, 17rem); }
.tour-copy { max-width: 32rem; }
.tour-row:nth-child(even) .tour-copy { justify-self: end; text-align: right; }
.tour-row:nth-child(even) .tour-copy .stack, .tour-row:nth-child(even) .tour-copy { align-items: flex-end; }
@media (max-width: 44rem) {
  .tour-row, .tour-row:nth-child(even) { grid-template-columns: 1fr; }
  .tour-row:nth-child(even) .tour-device { order: 0; }
  .tour-device { width: min(13rem, 60%); }
  .tour-row:nth-child(even) .tour-copy { justify-self: start; text-align: left; align-items: flex-start; }
}

/* ---------- the add-flow demo ---------- */

.demo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); }
@media (max-width: 44rem) { .demo { grid-template-columns: 1fr; } }

.demo-col { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.demo-label {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.demo-label .chip {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text-3);
}

/* The mini phone: a fixed-height stage the steps cross-fade inside. */
.demo-phone {
  width: min(17rem, 100%);
  border-radius: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 1.1rem 1rem 1.2rem;
  min-height: 21rem;
  position: relative;
  overflow: hidden;
}
.demo-step {
  position: absolute; inset: 1.1rem 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  opacity: 0; transform: translateX(0.75rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.demo-step.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .demo-step { transition: none; transform: none; }
}

.demo-eyebrow {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em;
  color: var(--text-4); text-transform: uppercase;
}
.demo-h { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.demo-sub { font-size: 0.78rem; color: var(--text-3); line-height: 1.45; }
.demo-field {
  border: 1.5px solid var(--line-strong); border-radius: 0.7rem;
  padding: 0.6rem 0.7rem; font-size: 0.8rem; color: var(--text-2);
  background: var(--bg-raised);
}
.demo-field b { color: var(--text); font-weight: 600; }
.demo-btn {
  border-radius: 0.75rem; padding: 0.65rem; text-align: center;
  font-weight: 700; font-size: 0.85rem; color: #fff; background: var(--grad);
}
.demo-btn.ghost {
  background: transparent; color: var(--violet-lite);
  border: 1.5px solid var(--line-strong); font-weight: 600;
}
.demo-quiet { text-align: center; font-size: 0.78rem; color: var(--text-4); }
/* Two buttons side by side, as the app puts "From the library" and "Type my own". */
.demo-pair { display: flex; gap: 0.45rem; }
/* Tighter than a full-width button so each label stays on one line and the
   step still fits the phone (it clips at the bottom). */
.demo-pair .demo-btn { flex: 1; padding-inline: 0.3rem; font-size: 0.76rem; white-space: nowrap; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.demo-chips span {
  font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.6rem;
  border-radius: 0.6rem; border: 1.5px solid var(--line-strong); color: var(--text-3);
}
.demo-chips span.sel { border-color: var(--violet); color: var(--violet-lite); background: rgba(124, 92, 255, 0.12); }
.demo-move {
  display: flex; align-items: center; gap: 0.5rem;
  border-radius: 0.7rem; background: var(--bg-raised); padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
}
.demo-move i {
  font-style: normal; font-size: 0.62rem; font-weight: 700;
  width: 1.3rem; height: 1.3rem; border-radius: 0.4rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.16); color: var(--violet-lite);
}
.demo-move small { margin-left: auto; color: var(--text-4); font-size: 0.68rem; }
.demo-check {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #19D3A2; color: #08221B;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
  margin: 0.4rem auto 0;
}
.demo-done-note {
  text-align: center; font-size: 0.78rem; color: var(--text-3); line-height: 1.5;
}
.demo-rest {
  margin: auto; text-align: center; color: var(--text-4); font-size: 0.8rem; line-height: 1.6;
}
.demo-rest b { color: #19D3A2; display: block; font-size: 0.95rem; }

/* Progress dots double as controls. */
/* The dot is drawn small; the button around it is the 24px WCAG 2.5.8 target. */
.demo-dots { display: flex; gap: 0.15rem; }
.demo-dots button {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: transparent;
  display: grid; place-items: center;
}
.demo-dots button::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--line-strong);
}
.demo-dots button.on::before { background: var(--violet); }
.demo-dots button.rest::before { background: rgba(25, 211, 162, 0.5); }
.demo-caption {
  text-align: center; font-size: 0.85rem; color: var(--text-3);
  min-height: 2.6em; max-width: 21rem; line-height: 1.5;
}

/* ---------- inline-style refugees (CSP: style-src 'self') ---------- */

.center-col { align-items: center; text-align: center; }
.signup-center { justify-content: center; max-width: 34rem; width: 100%; }
.lede-narrow { max-width: 36rem; }
.band-flush { padding-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- beta ↔ live (see assets/launch.js) ----------
   <html data-launch="beta|live"> is stamped before first paint. Elements that
   belong to one state carry data-only; the other state's are removed from
   layout. No JS → no attribute → the beta variant shows. */
html[data-launch="live"] [data-only="beta"] { display: none !important; }
html:not([data-launch="live"]) [data-only="live"] { display: none !important; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: inherit; }
.center-col .store-buttons { justify-content: center; }
.btn-store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 3.25rem; padding: 0.6rem 1.15rem 0.6rem 0.95rem;
  border-radius: 0.875rem; background: var(--text); color: var(--bg);
  font-weight: 700; line-height: 1.1; text-decoration: none;
  border: 1.5px solid var(--text);
}
.btn-store:hover { color: var(--bg); filter: brightness(1.08); }
.btn-store > span { display: flex; flex-direction: column; }
.btn-store small { font-size: 0.68rem; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.btn-store .store-label { font-size: 1.05rem; }
.btn-store.soon { opacity: 0.55; cursor: default; pointer-events: none; }
