/* ===========================================================================
   landing.css — marketing landing page ONLY.
   Scoped styles. The dashboard (main.css) and chat surfaces (chat.css) are
   intentionally not loaded on this page; the landing page must paint with
   the fastest possible first paint (pure HTML+CSS, no JS).

   Visual direction: bold dark (Option C, 2026-08-03 brainstorming session).
   Reference mockup: .superpowers/brainstorm/1424296-1785735655/content/style-directions.html
   =========================================================================== */

:root {
  --lw-bg:        #0a0a0b;
  --lw-fg:        #f5f5f5;
  --lw-muted:     #a1a1a6;
  --lw-faint:     #6a6a6f;
  --lw-accent:    #c6ff3a;
  --lw-card:      #131316;
  --lw-border:    #1d1d20;
  --lw-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --lw-mono:      ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --lw-maxw:      1080px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--lw-bg);
  color: var(--lw-fg);
  font-family: var(--lw-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

/* Hero CTA anchors down to the closing signup form (the click-check lives
   there, once). Landing-page stylesheet only. */
html { scroll-behavior: smooth; }

a { color: var(--lw-fg); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--lw-accent); outline-offset: 3px; }

::selection { background: var(--lw-accent); color: var(--lw-bg); }

/* Lazy captcha mounts (landing + campaign signup forms): hidden until the
   first submit click reveals them. See captcha-click.js. */
.captcha-hidden { display: none; }

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

.lw-wrap { max-width: var(--lw-maxw); margin: 0 auto; padding: 0 32px; }

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

.lw-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--lw-border);
}
.lw-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.lw-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lw-fg);
}
.lw-brand .dot { color: var(--lw-accent); }
.lw-topbar-actions { display: flex; align-items: center; gap: 18px; }
.lw-topbar-signin {
  font-size: 13px;
  color: var(--lw-fg-muted, rgba(255, 255, 255, 0.55));
  text-decoration: none;
  transition: color 120ms ease;
}
.lw-topbar-signin:hover { color: var(--lw-accent); }
.lw-topbar-cta-form { margin: 0; }
.lw-topbar-cta {
  display: inline-block;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lw-fg);
  background: transparent;
  padding: 8px 14px;
  border: 1px solid var(--lw-border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.lw-topbar-cta:hover { border-color: var(--lw-accent); color: var(--lw-accent); }

/* --- Hero ----------------------------------------------------------------- */

.lw-hero {
  padding: 120px 0 96px;
  position: relative;
  /* Clip the decorative ::after (720px radial-gradient glow) which is wider
   * than the parent on narrow viewports. Without this, the pseudo-element
   * expands the document's layout viewport on Android Chrome, which in turn
   * pulls position:fixed elements (embed launcher, greeting bubble) off the
   * visible screen — they attach to the wider layout viewport, not the
   * visual one. Mirrors the overflow:hidden already on .lw-closing for the
   * same reason. */
  overflow: hidden;
}

/* Subtle background grid + radial accent — atmosphere, not flat black. */
.lw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}
.lw-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(198, 255, 58, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.lw-hero > * { position: relative; z-index: 1; }

.lw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-muted);
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.012);
}
.lw-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lw-accent);
  box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.55);
  animation: lw-pulse 2.4s ease-out infinite;
}
@keyframes lw-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(198, 255, 58, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(198, 255, 58, 0); }
  100% { box-shadow: 0 0 0 0   rgba(198, 255, 58, 0); }
}

.lw-hero h1 {
  font-size: 60px;
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 16ch;
}
.lw-hero h1 .strike {
  position: relative;
  color: var(--lw-faint);
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--lw-accent);
}
.lw-hero h1 .accent { color: var(--lw-accent); }

.lw-subhead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--lw-muted);
  max-width: 50ch;
  margin: 0 0 44px;
}

.lw-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.lw-cta-form {
  margin: 0;
  display: inline-block;
}
.lw-cta {
  display: inline-block;
  padding: 16px 28px;
  background: var(--lw-accent);
  color: var(--lw-bg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 0 0 0 rgba(198, 255, 58, 0.45);
}
.lw-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px rgba(198, 255, 58, 0.55);
}
.lw-cta-secondary {
  font-size: 14px;
  color: var(--lw-muted);
  transition: color 120ms ease;
}
.lw-cta-secondary:hover { color: var(--lw-accent); }
.lw-cta-secondary .arrow { display: inline-block; transition: transform 160ms ease; }
.lw-cta-secondary:hover .arrow { transform: translateX(3px); }
.lw-hero-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lw-faint);
  margin: 16px 0 0;
}

/* --- Section primitives --------------------------------------------------- */

.lw-section { padding: 88px 0; border-top: 1px solid var(--lw-border); }
.lw-section-head { margin-bottom: 56px; max-width: 720px; }
.lw-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-accent);
  margin: 0 0 16px;
}
.lw-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--lw-fg);
}

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

.lw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.lw-step {
  padding-top: 28px;
  border-top: 1px solid var(--lw-border);
  position: relative;
}
.lw-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 56px; height: 2px;
  background: var(--lw-accent);
}
.lw-step .num {
  font-family: var(--lw-mono);
  font-size: 13px;
  color: var(--lw-accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
}
.lw-step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--lw-fg);
}
.lw-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--lw-muted);
  margin: 0;
}

/* --- Features grid -------------------------------------------------------- */

.lw-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lw-feature {
  padding: 24px;
  background: var(--lw-card);
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  transition: border-color 160ms ease, transform 160ms ease;
  display: flex;
  flex-direction: column;
}
.lw-feature:hover {
  border-color: #2a2a30;
  transform: translateY(-2px);
}
.lw-feature .ico {
  font-family: var(--lw-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--lw-accent);
  margin-bottom: 18px;
  line-height: 1;
}
.lw-feature h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--lw-fg);
}
.lw-feature p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lw-muted);
  margin: 0;
}

/* --- For senders / For creators ------------------------------------------- */

.lw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lw-card);
}
.lw-col {
  padding: 40px;
  position: relative;
}
.lw-col + .lw-col { border-left: 1px solid var(--lw-border); }
.lw-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 56px;
  background: var(--lw-accent);
}
.lw-col-label {
  font-family: var(--lw-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-accent);
  margin: 0 0 12px;
}
.lw-col-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--lw-fg);
}
.lw-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lw-col li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lw-col li .glyph {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--lw-border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lw-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--lw-accent);
  background: rgba(198, 255, 58, 0.04);
  margin-top: 2px;
}
.lw-col li .body { font-size: 14px; line-height: 1.55; color: var(--lw-muted); }
.lw-col li .body strong { color: var(--lw-fg); font-weight: 600; }

/* --- Closing CTA ---------------------------------------------------------- */

.lw-closing {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--lw-border);
  position: relative;
  overflow: hidden;
}
.lw-closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px; height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(198, 255, 58, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.lw-closing > * { position: relative; }
.lw-closing h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 36px;
  max-width: 14ch;
}
.lw-closing h2 .accent { color: var(--lw-accent); }
.lw-closing .lw-cta { padding: 18px 36px; font-size: 14px; }
.lw-closing .lw-cta-form { display: block; }
.lw-closing .lw-cta-secondary { margin-top: 18px; display: inline-block; }

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

.lw-footer {
  padding: 36px 0;
  border-top: 1px solid var(--lw-border);
}
.lw-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--lw-faint);
  letter-spacing: 0.01em;
}
.lw-footer p .accent { color: var(--lw-muted); }

/* --- Embed section -------------------------------------------------------- */

.lw-embed-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--lw-card);
}
.lw-embed-code {
  padding: 40px;
  position: relative;
  border-right: 1px solid var(--lw-border);
}
.lw-embed-code::before {
  content: ""; position: absolute;
  top: 0; left: 0;
  width: 3px; height: 56px;
  background: var(--lw-accent);
}
.lw-embed-code .lede {
  font-size: 18px; line-height: 1.55;
  color: var(--lw-fg);
  margin: 0 0 24px;
  font-weight: 500;
}
.lw-embed-code .lede strong { color: var(--lw-accent); font-weight: 600; }
.lw-embed-code .body {
  font-size: 14px; line-height: 1.6;
  color: var(--lw-muted);
  margin: 0 0 28px;
}
.lw-embed-code .codeblock {
  background: #0a0a0b;
  border: 1px solid var(--lw-border);
  border-radius: 6px;
  padding: 16px 18px;
  font-family: var(--lw-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lw-fg);
  overflow-x: auto;
  white-space: pre;
}
.lw-embed-code .codeblock .tag { color: #ff79c6; }
.lw-embed-code .codeblock .attr { color: #8be9fd; }
.lw-embed-code .codeblock .str { color: var(--lw-accent); }
.lw-embed-code .codeblock .comment { color: var(--lw-faint); }
.lw-embed-code .code-copy {
  margin-top: 14px;
  font-family: var(--lw-mono);
  font-size: 11px;
  color: var(--lw-faint);
  letter-spacing: 0.04em;
}
.lw-embed-preview {
  padding: 40px;
  background: linear-gradient(180deg, #0f0f12 0%, #0a0a0b 100%);
  position: relative;
  min-height: 380px;
  overflow: hidden;
}
.lw-embed-preview .preview-label {
  font-family: var(--lw-mono);
  font-size: 11px;
  color: var(--lw-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.fake-site {
  background: #18181c;
  border: 1px solid var(--lw-border);
  border-radius: 6px;
  height: 280px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.fake-site .browser-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.fake-site .browser-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a2a30;
}
.fake-site .fake-content {
  height: 8px;
  background: #2a2a30;
  border-radius: 2px;
  margin-bottom: 8px;
}
.fake-site .fake-content.w70 { width: 70%; }
.fake-site .fake-content.w50 { width: 50%; }
.fake-site .fake-content.w90 { width: 90%; }
.fake-site .fake-content.short { height: 6px; }
.fake-site .fake-block {
  margin-top: 22px;
  height: 80px;
  background: repeating-linear-gradient(45deg, #1a1a1f, #1a1a1f 8px, #18181c 8px, #18181c 16px);
  border: 1px solid var(--lw-border);
  border-radius: 4px;
}
.launcher {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 52px; height: 52px;
  background: var(--lw-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lw-bg);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 8px 24px -4px rgba(198, 255, 58, 0.45);
  z-index: 3;
}
.launcher-glow {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--lw-accent);
  opacity: 0.18;
  filter: blur(8px);
  z-index: 1;
}
.chat-panel {
  position: absolute;
  bottom: 80px; right: 16px;
  width: 220px;
  background: var(--lw-card);
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  padding: 12px;
  z-index: 2;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5);
}
.chat-panel .cp-head {
  font-size: 11px; font-weight: 600;
  color: var(--lw-fg);
  border-bottom: 1px solid var(--lw-border);
  padding-bottom: 6px;
  margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.chat-panel .cp-head .live {
  color: var(--lw-accent);
  font-family: var(--lw-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.chat-panel .cp-msg {
  font-size: 10px;
  color: var(--lw-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}
.chat-panel .cp-msg .who { color: var(--lw-accent); font-weight: 600; }
.chat-panel .cp-input {
  margin-top: 8px;
  height: 18px;
  border: 1px solid var(--lw-border);
  border-radius: 3px;
  font-size: 9px;
  color: var(--lw-faint);
  padding: 4px 6px;
  font-family: var(--lw-mono);
}

/* --- Standards strip ------------------------------------------------------ */

.lw-standards {
  padding: 56px 0;
  border-top: 1px solid var(--lw-border);
  background: linear-gradient(180deg, transparent 0%, rgba(198, 255, 58, 0.018) 100%);
}
.lw-standards-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.lw-standards-title {
  font-family: var(--lw-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lw-accent);
  line-height: 1.4;
  max-width: 14ch;
}
.lw-standards-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lw-muted);
  max-width: 60ch;
}
.lw-standards-body strong { color: var(--lw-fg); font-weight: 600; }
.lw-standards-body a.connect-link {
  color: var(--lw-accent);
  text-decoration: underline;
  text-decoration-color: rgba(198, 255, 58, 0.4);
  text-underline-offset: 3px;
}
.lw-standards-clients { display: flex; gap: 10px; align-items: center; }
.client-pill {
  font-family: var(--lw-mono);
  font-size: 11px;
  color: var(--lw-muted);
  padding: 5px 10px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.012);
}

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

.lw-faq-list { border-top: 1px solid var(--lw-border); }
.lw-faq-item { border-bottom: 1px solid var(--lw-border); }
.lw-faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  transition: color 120ms ease;
}
.lw-faq-item > summary::-webkit-details-marker { display: none; }
.lw-faq-item > summary:hover { color: var(--lw-accent); }
.lw-faq-q {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lw-fg);
  line-height: 1.4;
  flex: 1;
}
.lw-faq-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--lw-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lw-accent);
  font-family: var(--lw-mono);
  font-size: 16px;
  font-weight: 700;
  transition: transform 200ms ease, border-color 120ms ease, background 120ms ease;
}
.lw-faq-item[open] > summary .lw-faq-toggle {
  transform: rotate(45deg);
  background: var(--lw-accent);
  color: var(--lw-bg);
  border-color: var(--lw-accent);
}
.lw-faq-a {
  padding: 0 60px 32px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--lw-muted);
  max-width: 70ch;
}
.lw-faq-a strong { color: var(--lw-fg); font-weight: 600; }
.lw-faq-a code {
  font-family: var(--lw-mono);
  font-size: 13px;
  color: var(--lw-accent);
  background: rgba(198, 255, 58, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
}
.lw-faq-a a { color: var(--lw-accent); border-bottom: 1px solid rgba(198, 255, 58, 0.4); }

/* --- Entrance animations (CSS-only, staggered on load) -------------------- */

@keyframes lw-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lw-hero .lw-eyebrow { animation: lw-rise 480ms ease 60ms both; }
.lw-hero h1          { animation: lw-rise 560ms ease 120ms both; }
.lw-hero .lw-subhead { animation: lw-rise 560ms ease 200ms both; }
.lw-hero .lw-cta-row { animation: lw-rise 560ms ease 280ms both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 880px) {
  .lw-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .lw-wrap { padding: 0 20px; }
  .lw-hero { padding: 72px 0 56px; }
  .lw-hero h1 { font-size: 38px; max-width: 100%; }
  .lw-subhead { font-size: 16px; margin-bottom: 36px; }
  .lw-steps { grid-template-columns: 1fr; gap: 28px; }
  .lw-split { grid-template-columns: 1fr; }
  .lw-col + .lw-col { border-left: none; border-top: 1px solid var(--lw-border); }
  .lw-col { padding: 32px 28px; }
  .lw-closing h2 { font-size: 32px; }
  .lw-closing { padding: 80px 0; }
  .lw-section { padding: 64px 0; }
  .lw-section-title { font-size: 26px; }
  .lw-embed-grid { grid-template-columns: 1fr; }
  .lw-embed-code { border-right: none; border-bottom: 1px solid var(--lw-border); }
  .lw-standards-inner { grid-template-columns: 1fr; gap: 20px; }
  .lw-faq-q { font-size: 16px; }
  .lw-faq-a { padding-right: 0; }
}

@media (max-width: 480px) {
  .lw-features { grid-template-columns: 1fr; }
  .lw-topbar-cta { display: none; }
  .lw-hero h1 { font-size: 34px; }
}

/* ---- /changelog (public) ---- */
.lw-changelog { padding: 72px 24px 96px; }
.lw-changelog .lw-wrap { max-width: 720px; margin: 0 auto; }
.lw-changelog h1 { font-size: 32px; margin: 12px 0 8px; }
.cl-entry { margin-top: 40px; }
.cl-date {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg-faint);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.cl-topic { margin-top: 24px; }
.cl-topic h3 { font-size: 17px; margin-bottom: 10px; }
.cl-topic ul { list-style: none; padding: 0; margin: 0; }
.cl-topic li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 6px 0; font-size: 14.5px; line-height: 1.55;
}
.cl-tag {
  flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 1px 8px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--fg-muted);
}
.cl-tag-new { color: #4ade80; border-color: #2f6b44; }
.cl-tag-improved { color: #7dd3fc; border-color: #2d5f7d; }
.cl-tag-fixed { color: #f0d68a; border-color: #6b541a; }
.cl-text { flex: 1; min-width: 240px; }
/* Topic titles link to their detail page when one exists; the arrow + green
 * underline signal "there's more" without shouting. */
.cl-topic-link {
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid #4ade80;
}
.cl-topic-link:hover { color: #4ade80; }
.cl-arrow { color: #4ade80; font-size: 14px; margin-left: 2px; }
/* Detail page (changelog-detail.html): back-links, extended prose, figures. */
.cl-back {
  display: inline-block; font-size: 13px; color: var(--fg-muted);
  text-decoration: none; margin-bottom: 20px;
}
.cl-back:hover { color: var(--fg); }
.cl-back-end { display: block; margin-top: 48px; }
.cl-prose { font-size: 15.5px; line-height: 1.65; margin: 16px 0; }
.cl-fig { margin: 32px 0; }
.cl-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 10px; background: #0f0f12;
}
.cl-fig figcaption {
  margin-top: 10px; font-size: 13px; color: var(--fg-muted); line-height: 1.5;
}
  flex: none; font-size: 11px; color: var(--fg-faint);
  border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px;
}

/* --- Click captcha (landing signup forms) --------------------------------
   Mirrors the .captcha-* rules in main.css using the lw- token set. */
.captcha-mount { margin: 12px 0 8px; }
.lw-captcha-hint { margin: 0 0 8px; font-size: 13px; color: var(--lw-muted); }
.captcha-thumb {
  display: block; width: auto; height: 44px;
  border: 1px solid var(--lw-border); border-radius: 6px; background: var(--lw-card);
  margin-bottom: 8px;
}
.captcha-main-wrap { position: relative; display: inline-block; max-width: 100%; }
.captcha-main {
  display: block; width: 300px; max-width: 100%; height: auto;
  border: 1px solid var(--lw-border); border-radius: 6px;
  background: var(--lw-card); cursor: crosshair;
}
.captcha-marker {
  position: absolute; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border: 2px solid var(--lw-accent);
  background: rgba(198, 255, 58, 0.25); border-radius: 50%;
  pointer-events: none;
}
.lw-captcha-meta { margin: 8px 0 0; font-size: 13px; color: var(--lw-muted); }
.captcha-refresh {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--lw-accent); cursor: pointer; text-decoration: underline;
}
