/* ===========================================================================
   Lobby — marketing site

   Palette is taken from the app's own stylesheet: neutral near-black greys,
   with #7c5cff used sparingly. Roughly 90% greyscale, 10% purple — the accent
   marks the active thing, the primary action, and nothing else.
   =========================================================================== */

:root {
  /* ── Surfaces: COPIED FROM THE APP, not matched by eye ──────────────────────
     These were #1a1a1a and #202020, which is the app's OLD ramp - the one it
     abandoned. Lobby item 8.13: "the chat page itself is the same color as
     sidebar top bar and everything else ... its hard to separate whats what".
     Measured then rather than eyeballed: #131313 -> #1a1a1a -> #202020 is seven
     RGB points between a page and a panel sitting on it, a contrast ratio of
     1.068, which for two large flat areas is below what most people can see on
     an uncalibrated screen. The app moved to ~1.18 per step and the site kept
     the old numbers, so it has literally been showing a pre-fix Lobby.
     --bg is deliberately unchanged: it is the app's identity and every
     screenshot is that colour. ───────────────────────────────────────────── */
  --bg:            #131313;   /* --color-bg           page background */
  --bg-alt:        #1a1a1a;   /* between page and panel, for banded sections */
  --surface:       #232323;   /* --color-bg-surface   panel */
  --surface-2:     #2f2f2f;   /* --color-bg-elevated  raised */
  --surface-3:     #3b3b3b;   /* --color-bg-hover     hover / active rows */
  --line:          #4f4f4f;   /* --color-border       a border must stay lighter
                                                      than the surface it outlines,
                                                      and #3a3a3a is now DARKER
                                                      than a raised panel */
  --line-soft:     #3f3f3f;   /* --color-border-subtle */
  --line-strong:   #656565;   /* --color-border-strong  hover and open states */

  /* Text. Ratios are against --bg and were recomputed after the surfaces moved,
     because a fix to one contrast problem must not quietly create another. */
  --text:          #efefef;   /* --color-text-primary    16.2:1 */
  --text-muted:    #b0b0b0;   /* --color-text-secondary   8.6:1 */
  --text-dim:      #9a9a9a;   /*                          6.6:1 smallest copy */
  --text-faint:    #767676;   /* --color-text-muted       4.1:1 decorative only */

  /* Brand */
  --accent:        #7c5cff;   /* fills, active states, borders, chart lines */
  --accent-text:   #9d86ff;   /* 6.5:1 — purple used AS text or a link */
  --accent-btn:    #6d4ae6;   /* button fill: white on this is 5.6:1 */
  /* The app's own tints, so a highlighted area on the site is the same wash as
     one in the app rather than a near miss. */
  --accent-soft:   rgba(124, 92, 255, .10);  /* --color-brand-subtle */
  --accent-edge:   rgba(124, 92, 255, .20);  /* --color-brand-glow */
  --accent-hover:  #8d73ff;                  /* --color-brand-hover */

  --ok:            #22c55e;
  --warn:          #f4b942;
  --err:           #ef4444;

  /* Shape - the app's actual scale: --radius-md 8, --radius-lg 10, --radius-xl 12.
     The site was a step rounder throughout (10/12/16), which is small per element
     and reads as a different product once a page is full of them. */
  --radius-sm: 8px;
  --radius:    10px;
  --radius-lg: 12px;

  --shadow: 0 20px 50px -22px rgba(0, 0, 0, .9);

  --wrap: 1160px;
  --pad: clamp(1rem, 4vw, 2rem);

  --font: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1rem; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b8a6ff; }

img, svg { max-width: 100%; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}

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

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; background: var(--accent-btn); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 760px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  background: var(--btn-bg);
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { --btn-bg: var(--accent-btn); color: #fff; }
.btn-primary:hover { --btn-bg: #7c5cff; color: #fff; }

.btn-ghost { --btn-bg: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: var(--line-strong); color: var(--text); }

.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .95rem; font-size: .92rem; }
.btn-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 19, 19, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.01em;
}
/* The app's own open-door mark: monochrome, no backing plate, inherits
   currentColor exactly as LobbyLogo.tsx does in-app. */
.brand-mark { width: 30px; height: 30px; display: block; flex: none; color: var(--text); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-handle { fill: var(--bg); }
.brand:hover .brand-mark { color: var(--accent-text); }

.site-nav ul {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 64px 0 auto 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    display: none; padding: 1rem var(--pad) 1.4rem;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav li:last-child { border: 0; padding-top: .9rem; }
  .site-nav a:not(.btn) { display: block; padding: .8rem .2rem; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .32rem .78rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: .84rem; font-weight: 600;
}

.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--text-muted); max-width: 56ch; }

/* "what it is not" — stated early, not buried in the FAQ */
.notlist {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 1.2rem 0 0; padding: 0;
}
.notlist li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .8rem;
  color: var(--text-muted); font-size: .85rem;
}
.notlist li::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border-radius: 50%; border: 2px solid var(--text-faint);
}

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 .8rem; }
.cta-note { color: var(--text-dim); font-size: .92rem; margin-bottom: 1.2rem; }
.disclaimer-inline { color: var(--text-dim); font-size: .84rem; margin: 0; }

[data-placeholder] {
  border-bottom: 1px dashed var(--accent);
  color: var(--accent-text);
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-muted); margin: 0 0 .8rem; }
.section-head p:last-child { margin-bottom: 0; }

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.notice strong { color: var(--text); }

/* Lobby Plus tag — one look, used everywhere those features are named */
.plus-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--accent-soft); border: 1px solid var(--accent-edge);
  color: var(--accent-text);
  border-radius: 999px; padding: .1rem .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; vertical-align: middle;
}

/* ---------------------------------------------------------------- features */
.feature {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 940px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .feature-reverse .feature-copy { order: 2; }
  .feature-reverse .feature-shot { order: 1; }
}

.kicker {
  color: var(--text-dim);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 .6rem;
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ticks li {
  position: relative; padding-left: 1.9rem;
  color: var(--text-muted); font-size: 1rem;
}
.ticks li b { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(-45deg);
}
.ticks li.is-plus::before { border-color: var(--accent); }

/* =========================================================================
   App shots
   Each .shot is a fixed 16:10 slot. A real screenshot dropped in as
   <img class="shot-img"> fills the same box, so nothing reflows.
   The mockups inside are deliberately abstract: they show Lobby's real
   shape — 232px sidebar, 56px header — not invented screen content.
   ========================================================================= */
.shot {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .45rem .7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--text-dim); font-size: .74rem;
}

/* --- the app frame ------------------------------------------------------ */
.mock { position: absolute; inset: 0; display: grid; grid-template-columns: 18.1% 1fr; }
/* 232 / 1280 = 18.1%  ·  56 / 800 = 7% */

.mock-side {
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  padding: 3% 5%;
  gap: 3.2%;
  min-width: 0;
}
.mock-side-brand { display: flex; align-items: center; gap: 6%; margin-bottom: 4%; }
.aw-mark { display: block; flex: none; color: var(--text); }
.aw-mark svg { display: block; width: 100%; height: 100%; }
.mock-side-brand .aw-mark { width: 14px; height: 14px; }
.mock-side-brand b {
  color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: -.01em;
}

.mock-nav { display: flex; flex-direction: column; gap: 4.5%; flex: 1; min-height: 0; }
.mock-nav i {
  display: block; height: 7px; border-radius: 4px;
  background: var(--surface-2);
  width: var(--w, 80%);
}
.mock-nav i.is-active { background: var(--accent); width: 92%; }
.mock-nav .mock-nav-gap { height: 10px; background: none; }

.mock-side-user { display: flex; align-items: center; gap: 8%; padding-top: 4%; border-top: 1px solid var(--line-soft); }
.mock-side-user span { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); flex: none; }
.mock-side-user i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); flex: 1; }

.mock-main { display: flex; flex-direction: column; min-width: 0; }
.mock-head {
  height: 7%; min-height: 26px; flex: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  display: flex; align-items: center; gap: 3%;
  padding: 0 3%;
}
.mock-search {
  flex: 0 1 46%; height: 55%; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.mock-head-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.mock-head-right i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); display: block; }
.mock-head-right i.is-accent { background: var(--accent); }

.mock-body { flex: 1; padding: 3.5%; display: flex; flex-direction: column; gap: 3%; min-height: 0; }
.mock-title { display: block; height: 12px; width: 34%; border-radius: 5px; background: var(--surface-2); flex: none; }
.mock-sub   { display: block; height: 7px;  width: 22%; border-radius: 4px; background: var(--surface-2); opacity: .65; flex: none; }

/* generic building blocks */
.mock-grid { display: grid; gap: 2.5%; flex: 1; min-height: 0; }
.mock-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mock-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mock-panel {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 4%;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0; overflow: hidden;
}
.mock-line { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); width: var(--w, 100%); flex: none; }
.mock-line.accent { background: var(--accent); }
.mock-row { display: flex; align-items: center; gap: 8px; }
.mock-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); flex: none; }
.mock-avatar.sq { border-radius: 5px; }
.mock-stack { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.mock-btn { height: 16px; width: 62px; border-radius: 6px; background: var(--accent-btn); flex: none; }
.mock-chip { height: 14px; width: 46px; border-radius: 999px; background: var(--surface-2); flex: none; }

.mock-bars { display: flex; align-items: flex-end; gap: 5px; flex: 1; min-height: 24px; }
.mock-bars i { flex: 1; background: var(--accent); opacity: .85; border-radius: 3px 3px 0 0; display: block; }
.mock-bars i:nth-child(even) { opacity: .5; }

.mock-spark { flex: 1; min-height: 26px; color: var(--accent); }
.mock-spark svg { width: 100%; height: 100%; display: block; }

.mock-thumb { border-radius: 8px; background: var(--surface-2); flex: 1; min-height: 0; }
.mock-scroll { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; overflow: hidden; }

/* light-theme variant, in case a light shot is ever shown alongside */
.mock.is-light {
  --bg: #f7f7f7; --surface: #ffffff; --surface-2: #e9e9e9;
  --line-soft: #dcdcdc; --text: #1a1a1a;
  background: #f7f7f7;
}

@media (max-width: 560px) {
  .mock-side { padding: 4% 4%; }
  .mock-side-brand b { display: none; }
}

/* ---------------------------------------------------------------- reviews */
.marquee {
  position: relative;
  overflow: hidden;
  padding: .5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; }

.review-row { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0 .55rem; }

.marquee.is-running .marquee-track { animation: marquee var(--marquee-duration, 45s) linear infinite; }
.marquee.is-running:hover .marquee-track,
.marquee.is-running:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee.is-static {
  overflow: visible;
  -webkit-mask-image: none; mask-image: none;
  padding-inline: var(--pad);
}
.marquee.is-static .marquee-track { width: auto; display: block; }
.marquee.is-static .review-row {
  display: grid; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--wrap); margin-inline: auto;
}
.marquee.is-static .review-card { width: auto; }
.marquee.is-static .review-row-clone { display: none; }

.marquee-controls { margin-top: 1.4rem; }
.marquee-controls [hidden] { display: none; }

.review-card { width: 340px; flex: none; display: flex; }
.review-card-inner {
  position: relative;
  display: flex; flex-direction: column; gap: .85rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .18s ease, transform .18s ease;
}
.review-card-inner::before {
  content: ""; position: absolute; left: -1px; top: 1.25rem; bottom: 1.25rem;
  width: 2px; border-radius: 2px; background: var(--accent);
}
.review-card:hover .review-card-inner { border-color: var(--line-strong); transform: translateY(-2px); }

.review-head { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  object-fit: cover;
}
.review-who { min-width: 0; }
.review-name {
  display: flex; align-items: center; gap: .35rem;
  margin: 0; font-weight: 700; font-size: 1rem; color: var(--text);
}
.review-display { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-verified { color: var(--accent-text); display: inline-flex; flex: none; }
.review-verified svg { width: 17px; height: 17px; }
.review-username { margin: 0; color: var(--text-dim); font-size: .85rem; }

.review-stars { display: flex; gap: .15rem; margin: 0; }
/* An UNFILLED star has to be visible or a 4-of-5 rating reads as four stars and a gap.
   #3a3a3a was drawn against the old #1a1a1a panel and measures 1.38 against the new one,
   which is below what is reliably visible. This is 2.42 - clearly a star, still clearly off. */
.star { color: #5e5e5e; display: inline-flex; }
.star.is-on { color: var(--warn); }
.star svg { width: 17px; height: 17px; }

.review-text { margin: 0; color: var(--text-muted); font-size: .96rem; }
.review-text p { margin: 0; }

.review-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: auto; padding-top: .3rem;
}
.review-label {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 999px; padding: .22rem .7rem;
  font-size: .78rem; font-weight: 600;
}
.review-sample-tag {
  border: 1px dashed var(--text-dim);
  color: var(--text-dim);
  border-radius: 999px; padding: .2rem .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

.review-empty { color: var(--text-dim); padding: 1rem; }

@media (max-width: 480px) { .review-card { width: 100%; } }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 600; font-size: 1.05rem; color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); border-color: var(--accent-text); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-body { padding: 0 1.2rem 1.15rem; color: var(--text-muted); }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.faq-body b { color: var(--text); }

/* ---------------------------------------------------------------- download */
.download { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.download-inner { text-align: center; }
.download-inner .lede { margin-inline: auto; }
.download-inner .btn { margin-top: .6rem; }

.send-link {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: left;
}
.send-link h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.send-link p { color: var(--text-muted); font-size: .95rem; }
.send-link-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.send-link-row input {
  flex: 1 1 220px; min-width: 0;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .9rem; font: inherit; font-size: .95rem;
}
.send-link-status { margin: .7rem 0 0; color: var(--accent-text); font-size: .9rem; min-height: 1.2em; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
}
.footer-brand p { color: var(--text-dim); font-size: .92rem; margin-top: .8rem; max-width: 34ch; }
.footer-col h2 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }

.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.footer-legal p { color: var(--text-dim); font-size: .82rem; margin: 0 0 .6rem; max-width: 80ch; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- changelog page */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }
.log { display: grid; gap: 1.1rem; padding-bottom: 4rem; }
.log-entry {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem;
}
.log-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.log-version { font-size: 1.2rem; margin: 0; }
.log-date { color: var(--text-dim); font-size: .85rem; }
.log-tag {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-muted); border-radius: 999px;
  padding: .12rem .6rem; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.log-tag.is-latest { background: var(--accent-soft); border-color: var(--accent-edge); color: var(--accent-text); }
.log-summary { color: var(--text-muted); font-size: .96rem; margin: -.3rem 0 1rem; }
.log-group { margin: 0 0 .9rem; }
.log-group:last-child { margin-bottom: 0; }
.log-group h3 {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .45rem;
}
.log-group ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); display: grid; gap: .4rem; font-size: .96rem; }

/* ---- Long-form pages: privacy, terms -------------------------------------
   These two are GENERATED by scripts/build-legal-pages.mjs in the app repo, from
   docs/legal/*.md. Style them here; do not edit the html, it is overwritten.

   Measure matters more than usual on a legal page. wrap-narrow is 760px, and the
   type below keeps a line at roughly 75 characters, which is the width people
   actually finish reading rather than skim and give up on. */
.prose { padding-bottom: 4.5rem; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1rem; }

.prose h2 {
  color: var(--text); font-size: 1.35rem; line-height: 1.3;
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { color: var(--text); font-size: 1.05rem; margin-top: 1.9rem; }

.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); }
.prose a:hover { text-decoration: underline; }

/* A url that cannot wrap pushes the whole page sideways on a phone, and most first
   visits are on a phone even though the app is Windows-only. */
.prose a, .prose code { overflow-wrap: anywhere; }

.prose code {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: .1em .35em; font-size: .9em;
}

.prose ul { margin-left: 0; padding-left: 1.25rem; display: grid; gap: .55rem; }
.prose li::marker { color: var(--text-dim); }

/* The retention table is the most quoted part of the privacy policy, so it gets to
   scroll inside its own box rather than making the page scroll sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden;
}
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--text); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
