/* Landing-page styles (index.html only).
   Layered on top of the design-system tokens and site.css. Rules are scoped
   under .lp-page or an lp- prefixed class so the other 28 pages, which load
   only site.css, are unaffected.
   Two deliberate exceptions carry unprefixed names because they are fixed
   contracts with generated or fetched markup: .notes-card* (written by
   tools/notes/build.js) and .news-list/.news-item/.news-ico (rebuilt at
   runtime by the news loader at the bottom of index.html). */

.lp-page {
  --lp-ink: #0E1020;             /* dark panel background (room, CTA, footer) */
  --lp-ink-soft: rgba(255, 255, 255, 0.12);
  --lp-indigo-deep: #312E81;     /* featured note card */
  --lp-radius: 16px;             /* LP cards sit a step rounder than site cards */
  --lp-wrap: 1200px;
  /* 'Noto Serif SC' serves /zh/ only: Klee One lacks the Simplified glyphs of
     the zh closing sentence (measured: 结书桌诚实 fall through), so the zh
     builder loads Noto Serif SC instead of Klee One — and / and /en/ never
     load Noto Serif SC, so the extra family is inert there. */
  --lp-font-hand: 'Klee One', 'Noto Serif SC', 'Noto Serif JP', serif;
  overflow-x: clip;
}

/* The LP runs wider than the rest of the site; widen the shared header to
   match so its content lines up with the sections below. */
.lp-page .site-header-inner { max-width: var(--lp-wrap); }

/* Text-only nav links stand 19-20px tall on their own; give them a 24px
   touch target. The header's height is unchanged either way, since the 32px
   brand logo is what sets it. Scoped to .lp-page: the shared header markup is
   on all 29 pages but only this one loads lp.css. */
.lp-page .site-nav .nav-link { display: inline-flex; align-items: center; min-height: 24px; }

.lp-wrap { width: min(100% - 48px, var(--lp-wrap)); margin: 0 auto; }
@media (max-width: 640px) { .lp-wrap { width: min(100% - 32px, var(--lp-wrap)); } }

/* Japanese text breaks at phrase boundaries where the browser supports it
   (Chrome); elsewhere the pretty/balance fallbacks still apply. */
.lp-page h1, .lp-page h2, .lp-page h3, .lp-lead, .lp-hero-sub,
.lp-closing-copy p { word-break: auto-phrase; }

.lp-section { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--color-border); }

/* In-page anchors must clear the sticky header, or the section heading
   lands underneath it. */
.lp-page main > [id],
.lp-page main { scroll-margin-top: 84px; }
@media (max-width: 640px) { .lp-page main > [id], .lp-page main { scroll-margin-top: 108px; } }

/* ── Language notice (en / zh only; markup in index.html, toggled by app.js) ──
   The outer element deliberately has no `display` of its own: setting one would
   beat the UA stylesheet's rule for [hidden] and the bar would show up in
   Japanese too. The flex layout lives on the inner wrap instead. */
.lp-lang-notice { background: var(--color-accent-soft); border-bottom: 1px solid var(--color-border); }
.lp-lang-notice-inner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.lp-lang-notice-inner > svg { flex: none; margin-top: 3px; color: var(--color-accent); }
.lp-lang-notice p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); }
.lp-lang-notice a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px;
  color: var(--color-accent); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lp-lang-notice a:hover { text-decoration: underline; }

/* ── Shared section furniture ── */
.lp-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--color-accent);
}
.lp-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lp-h2 {
  margin: 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 700;
}
.lp-lead {
  margin: 0; max-width: 560px; font-size: 15px;
  color: var(--color-text-secondary); text-wrap: pretty;
}
.lp-sechead {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px; align-items: end; margin-bottom: 46px;
}

/* Cards that lift on hover. */
.lp-card {
  padding: 26px; border: 1px solid var(--color-border); border-radius: var(--lp-radius);
  background: var(--color-surface); box-shadow: var(--shadow-xs);
  transition: transform 350ms var(--ease-standard), box-shadow 350ms ease;
}
.lp-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12); }

/* ── Fixed chrome: scroll progress + pointer-following ambient glow ── */
.lp-progress {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 3px;
  transform: scaleX(0); transform-origin: left center;
  background: var(--color-accent); pointer-events: none;
}
.lp-ambient {
  position: fixed; z-index: 0; left: 60%; top: 12%;
  width: 46vw; height: 46vw; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.10), rgba(79, 70, 229, 0.03) 42%, transparent 70%);
  filter: blur(14px); pointer-events: none;
}

/* ── Hero ── */
.lp-hero { position: relative; overflow: hidden; }
.lp-hero-orbit {
  position: absolute; right: 5%; top: 2%; width: 300px; height: 300px;
  border: 1px solid rgba(79, 70, 229, 0.14); border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(79, 70, 229, 0.04), 0 0 0 92px rgba(79, 70, 229, 0.02);
  animation: lp-orbit 10s ease-in-out infinite; pointer-events: none;
}
.lp-hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 52px; align-items: center;
  padding: clamp(46px, 7vw, 88px) 0 clamp(58px, 8vw, 100px);
}
.lp-hero-copy { min-width: 0; }
.lp-hero h1 {
  margin: 0 0 22px; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.16;
  letter-spacing: -0.03em; font-weight: 700;
}
.lp-hero h1 em { font-style: normal; color: var(--color-accent); }
.lp-hero-sub {
  max-width: 520px; margin: 0 0 30px; font-size: clamp(15px, 1.3vw, 18px);
  color: var(--color-text-secondary); text-wrap: pretty;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-hero-proofs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp-proof-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); font-size: 12px; color: #374151;
}
.lp-proof-chip svg { color: var(--color-success); flex-shrink: 0; }

/* Buttons. Sized larger than the shared .btn-primary for the hero. */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: var(--radius-control);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--dur-fast), transform 80ms, border-color var(--dur-fast);
}
.lp-btn-primary {
  background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.32);
}
.lp-btn-primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }
.lp-btn-ghost {
  background: var(--color-surface); color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}
.lp-btn-ghost:hover { background: var(--color-surface-sunken); color: var(--color-text-primary); }

/* Hero demo: a mock browser window the visitor can actually type into.
   The intro must settle around 1s after first paint so the hero never looks
   half-empty; all three editions share this timeline (and the copy-column
   stagger below is tuned to land together with it). */
.lp-demo-wrap { animation: lp-intro-up 0.7s var(--ease-standard) both; animation-delay: 160ms; }
.lp-demo { position: relative; transform-style: preserve-3d; transition: transform 250ms var(--ease-standard); }
.lp-demo-tag {
  position: absolute; right: -12px; top: -15px; z-index: 5;
  padding: 7px 11px; border-radius: var(--radius-sm);
  background: var(--color-caution-border); color: #78350F;
  font-family: var(--font-mono); font-size: 10.5px;
  box-shadow: var(--shadow-pop); animation: lp-float-b 5s ease-in-out infinite;
}
.lp-window {
  position: relative; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: var(--lp-radius);
  background: var(--color-surface); box-shadow: 0 26px 64px rgba(17, 24, 39, 0.13);
}
.lp-window-scan {
  position: absolute; z-index: 4; left: 5%; right: 5%; top: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.75), transparent);
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.5);
  animation: lp-scan 7s ease-in-out infinite 1.5s; pointer-events: none;
}
.lp-window-bar {
  display: flex; gap: 7px; align-items: center; padding: 12px 14px;
  border-bottom: 1px solid #EEF0F2; background: var(--color-page-bg);
}
.lp-window-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); flex-shrink: 0; }
.lp-window-url {
  flex: 1; margin-left: 8px; height: 24px; border-radius: var(--radius-sm);
  background: #EDEFF2; color: var(--color-text-disabled);
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--font-mono); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-window-body { position: relative; z-index: 1; padding: 20px; }
.lp-demo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.lp-demo-head strong { font-weight: 600; font-size: 14px; }
.lp-demo-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: var(--color-text-secondary); cursor: pointer; }
.lp-track {
  position: relative; width: 44px; height: 24px; flex: 0 0 44px;
  border: 0; border-radius: var(--radius-pill); padding: 0; cursor: pointer;
  background: var(--color-toggle-off); transition: background var(--dur-base) ease;
}
.lp-track[aria-checked="true"] { background: var(--color-accent); }
.lp-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.28);
  transition: transform var(--dur-base) var(--ease-standard);
}
.lp-track[aria-checked="true"] .lp-knob { transform: translateX(20px); }
.lp-textarea {
  display: block; width: 100%; min-height: 190px; resize: none; padding: 15px;
  border: 1px solid var(--color-border-strong); border-radius: 10px; outline: none;
  background: var(--color-surface); color: #26312d;
  font-family: inherit; font-size: 13.5px; line-height: 1.7;
}
.lp-textarea:focus { border-color: var(--color-accent); box-shadow: var(--focus-ring); }
/* iOS Safari zooms the viewport when a field smaller than 16px takes focus,
   which would throw the hero demo off-screen the moment it is tapped. The
   sample text wraps further at 16px, so the box grows with it — otherwise its
   last line is clipped, which reads as a broken demo. Heights are measured
   from the sample text of ALL THREE editions (ja / en / zh share this file),
   not guessed — re-measure every edition if any sample changes. Measured
   2026-07-26: every edition needs 248px of content at 390px (the original
   389px boundary clipped 20px at exactly 390 — ja and en included), and the
   zh sample stays at 248px up to 400px, so the middle step runs to 404px. */
@media (max-width: 640px) { .lp-textarea { font-size: 16px; min-height: 230px; } }
@media (max-width: 404px) { .lp-textarea { min-height: 250px; } }
@media (max-width: 389px) { .lp-textarea { min-height: 310px; } }
.lp-demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.lp-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--color-text-secondary); }
.lp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); transition: background 200ms ease; }
.lp-live strong { color: var(--color-accent); font-family: var(--font-mono); transition: color 200ms ease; }
/* With nothing detected the row goes quiet through its dot and its count,
   never by fading the text — dimming the label was dropping it below the
   contrast it needs to stay readable. */
.lp-live-empty::before { background: var(--color-text-disabled); }
.lp-live-empty strong { color: var(--color-text-secondary); }
.lp-send {
  border: 0; border-radius: var(--radius-control); background: var(--color-accent); color: #fff;
  height: 38px; padding: 0 18px; font-family: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  transition: background var(--dur-fast);
}
.lp-send:hover { background: var(--color-accent-hover); }

/* Demo result panels. Only one is shown at a time (toggled from lp.js). */
.lp-result { margin-top: 13px; padding: 14px 15px; border-radius: 10px; animation: lp-rise 240ms ease-out; }
.lp-result[hidden] { display: none; }
.lp-result-flagged { border: 1px solid var(--color-caution-border); background: var(--color-caution-bg); display: flex; gap: 11px; align-items: flex-start; }
.lp-result-ok { border: 1px solid #BBF7D0; background: var(--color-success-bg); display: flex; gap: 11px; align-items: flex-start; }
.lp-result-plain { border: 1px solid var(--color-border); background: var(--color-surface-sunken); }
.lp-result svg { flex: 0 0 20px; margin-top: 1px; }
.lp-result strong { display: block; font-size: 13.5px; font-weight: 600; }
.lp-result-flagged strong { color: var(--color-caution); }
.lp-result-ok strong { color: var(--color-success); }
.lp-result-plain strong { color: #374151; }
.lp-result p { margin: 3px 0 0; font-size: 12px; color: var(--color-text-secondary); }
.lp-result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.lp-result-tags li {
  padding: 4px 9px; border: 1px solid var(--color-caution-border);
  border-radius: var(--radius-pill); background: var(--color-surface);
  font-size: 11px; color: #92400E;
}
.lp-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.lp-mini {
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-text-primary);
  height: 34px; padding: 0 14px; font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.lp-mini:hover { background: var(--color-surface-sunken); }
.lp-mini-accent { border: 0; background: var(--color-accent); color: #fff; font-weight: 600; }
.lp-mini-accent:hover { background: var(--color-accent-hover); }
.lp-mini-soft { border-color: #C7D2FE; background: var(--color-accent-soft); color: var(--color-accent); font-weight: 600; }
.lp-mini-soft:hover { background: #E0E7FF; }

/* ── Moments ── */
.lp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.lp-moment { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.lp-moment-top { display: flex; align-items: center; justify-content: space-between; }
.lp-moment-no { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-disabled); letter-spacing: 0.04em; }
.lp-moment-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.lp-moment h3 { margin: auto 0 10px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.lp-moment p { margin: 0 0 16px; color: var(--color-text-secondary); font-size: 13.5px; }
/* The product name is the card's only link, so its accessible name is just
   the product; ::after stretches the hit area across the whole card. */
.lp-moment-tools {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lp-moment-tools::after { content: ""; position: absolute; inset: 0; }
.lp-moment-tools svg { flex-shrink: 0; transition: transform var(--dur-base) var(--ease-standard); }
.lp-moment:hover .lp-moment-tools { text-decoration: underline; }
.lp-moment:hover .lp-moment-tools svg { transform: translateX(3px); }
.lp-moment-tools:focus-visible { outline: 2px solid var(--color-accent-ring); outline-offset: 4px; border-radius: 3px; }

/* ── Tool room (dark) ── */
.lp-room { position: relative; overflow: hidden; background: var(--lp-ink); color: #F3F4F6; padding: clamp(72px, 9vw, 124px) 0; }
.lp-room-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
          mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.lp-room-blob {
  position: absolute; right: -160px; top: -120px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 65%);
  filter: blur(30px); animation: lp-glow 8s ease-in-out infinite; pointer-events: none;
}
.lp-room .lp-wrap { position: relative; z-index: 1; }
.lp-room .lp-kicker { color: #A5B4FC; }
.lp-room .lp-h2 { color: #fff; }
.lp-room .lp-lead { color: rgba(255, 255, 255, 0.6); }
.lp-room .lp-sechead { gap: 36px; margin-bottom: 36px; }

.lp-room-widget {
  display: flex; flex-wrap: wrap; border: 1px solid var(--lp-ink-soft);
  border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.45);
}
.lp-room-aside {
  flex: 1 1 260px; display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.22);
}
.lp-room-aside-head { padding: 22px 22px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.lp-room-aside-head strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: #A5B4FC; }
.lp-room-aside-head span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.44); font-size: 12px; }
.lp-room-pause {
  margin-top: 12px; padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent;
  color: rgba(255, 255, 255, 0.7); font-family: var(--font-mono); font-size: 10.5px;
  cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast);
}
.lp-room-pause:hover { border-color: #A5B4FC; color: #fff; }
.lp-room-pause[hidden] { display: none; }
.lp-room-aside-foot { margin-top: auto; padding: 20px 22px; color: rgba(255, 255, 255, 0.42); font-size: 11px; line-height: 1.65; }

.lp-tab {
  position: relative; display: grid; grid-template-columns: 34px 1fr 10px;
  gap: 10px; align-items: center; width: 100%; min-height: 74px;
  padding: 14px 18px 14px 20px; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent; color: rgba(255, 255, 255, 0.82);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: background var(--dur-base) ease, color var(--dur-base) ease;
}
.lp-tab[aria-selected="true"] { background: var(--color-page-bg); color: var(--color-text-primary); }
.lp-tab-no { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.lp-tab[aria-selected="true"] .lp-tab-no { color: var(--lp-accent, var(--color-accent)); }
.lp-tab-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.lp-tab-moment { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.42); }
.lp-tab[aria-selected="true"] .lp-tab-moment { color: var(--color-text-secondary); }
.lp-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.lp-tab[aria-selected="true"] .lp-tab-dot { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.lp-tab-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lp-accent, var(--color-accent)); opacity: 0; }
.lp-tab[aria-selected="true"] .lp-tab-bar { opacity: 1; }
.lp-tab-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: var(--lp-accent, var(--color-accent));
}
.lp-tab[aria-selected="true"] .lp-tab-progress { animation: lp-progress var(--lp-cycle, 5.6s) linear forwards; }
.lp-room-widget[data-paused="true"] .lp-tab-progress { animation-play-state: paused; }

.lp-stage { flex: 3 1 420px; position: relative; min-width: 0; display: flex; }
.lp-stage-panel {
  position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto;
  min-width: 0; background: var(--lp-tint, var(--color-accent-soft)); color: var(--color-text-primary);
}
.lp-stage-panel[hidden] { display: none; }
.lp-stage-panel:focus-visible { outline: 3px solid var(--color-accent-ring); outline-offset: -3px; }
.lp-stage-ghost {
  position: absolute; right: 26px; top: -16px; font-family: var(--font-mono);
  font-weight: 700; font-size: clamp(120px, 13vw, 210px); line-height: 1;
  color: var(--lp-accent, var(--color-accent)); opacity: 0.09;
  pointer-events: none; user-select: none;
}
.lp-stage-head {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 30px; border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}
.lp-stage-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--color-text-secondary); }
.lp-stage-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--color-success); }
.lp-stage-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lp-stage-body {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px; align-items: center; padding: 38px 30px 30px;
}
.lp-stage-copy { min-width: 0; }
/* Wrapper, not a heading: the h3 inside holds only the product name so a
   screen reader does not read the version and the verb badge as part of it. */
.lp-stage-name { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #374151; }
.lp-stage-name h3 { margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.lp-stage-ver { font-family: var(--font-mono); font-weight: 600; color: var(--color-text-secondary); }
.lp-stage-verb {
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.05); font-size: 11px; font-weight: 600;
  color: var(--lp-accent, var(--color-accent));
}
.lp-stage-line {
  margin: 0 0 18px; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.22;
  letter-spacing: -0.025em; font-weight: 700; max-width: 460px; text-wrap: balance;
}
.lp-stage-desc { margin: 0 0 20px; color: #53605a; font-size: 14px; max-width: 470px; text-wrap: pretty; }
.lp-stage-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.lp-stage-facts li {
  padding: 6px 10px; border: 1px solid rgba(17, 24, 39, 0.16); border-radius: var(--radius-pill);
  font-size: 11px; color: #374151; background: rgba(255, 255, 255, 0.5);
}
.lp-stage-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.lp-stage-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 24px;
  font-size: 13px; font-weight: 600; color: var(--lp-accent, var(--color-accent));
}
.lp-stage-link:hover { text-decoration: underline; }
.lp-stage-art { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lp-stage-art-inner { position: relative; width: min(100%, 410px); animation: lp-float 6.5s ease-in-out infinite; }
.lp-stage-note {
  position: absolute; right: 2px; bottom: -10px; padding: 6px 9px; border-radius: 4px;
  background: var(--color-caution-border); color: #78350F;
  font-family: var(--font-mono); font-size: 9px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14); transform: rotate(-2deg);
}
.lp-stage-meta {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0; border-top: 1px solid rgba(17, 24, 39, 0.1);
}
.lp-stage-meta > div { padding: 16px 22px; }
.lp-stage-meta > div + div { border-left: 1px solid rgba(17, 24, 39, 0.1); }
.lp-stage-meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-disabled); }
.lp-stage-meta dd { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; }

/* Real product screenshots inside the stage. The sources under
   assets/screenshots/lp/ are 4:3 crops of the full captures in the parent
   directory, framed tightly on the part of the UI that carries the point —
   a whole 1280px capture is unreadable at this size. A single fixed ratio
   also keeps the widget from resizing as the visitor moves between tabs. */
.lp-shot {
  margin: 0; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border); border-radius: 14px;
  background: var(--color-surface); box-shadow: 0 20px 46px rgba(17, 24, 39, 0.16);
}
.lp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lp-room-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 22px 0 0; border-top: 1px solid var(--lp-ink-soft); border-bottom: 1px solid var(--lp-ink-soft);
}
.lp-room-stats > div { padding: 18px 0; }
.lp-room-stats > div + div { padding-left: 24px; border-left: 1px solid var(--lp-ink-soft); }
.lp-room-stats dd { margin: 0; font-family: var(--font-mono); font-size: 24px; color: #fff; }
.lp-room-stats dt { color: rgba(255, 255, 255, 0.46); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Concept ── */
.lp-concept-card { padding: 30px; }
.lp-concept-no { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--color-accent); line-height: 1; letter-spacing: -0.02em; }
.lp-concept-card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lp-concept-card p { margin: 0; color: var(--color-text-secondary); font-size: 13.5px; text-wrap: pretty; }

/* ── Notes ── */
/* Cards between the notes-latest markers are generated by
   tools/notes/build.js; the first one is promoted to a featured panel here
   so the generator stays untouched. */
.notes-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.notes-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 1px solid var(--color-border); border-radius: var(--lp-radius);
  background: var(--color-surface); box-shadow: var(--shadow-xs);
  text-decoration: none; color: inherit;
  transition: transform 350ms var(--ease-standard), box-shadow 350ms ease;
}
.notes-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(17, 24, 39, 0.11); }
.notes-card-head { display: flex; align-items: center; gap: 9px; }
.notes-card-ico {
  width: 30px; height: 30px; border-radius: var(--radius-control);
  background: var(--color-accent-soft); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notes-card-cat { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--color-accent); }
.notes-card-head time { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--color-text-disabled); }
.notes-card-title { font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.notes-card-desc { font-size: 13px; line-height: var(--leading-snug); color: var(--color-text-secondary); text-wrap: pretty; }

/* First generated card becomes the dark feature panel of the section. */
.notes-card:first-child {
  position: relative; overflow: hidden; grid-column: span 2; grid-row: span 2;
  min-height: 340px; padding: 40px; justify-content: flex-start;
  border-color: transparent; background: var(--lp-indigo-deep); color: #fff;
  box-shadow: 0 20px 50px rgba(49, 46, 129, 0.28);
}
.notes-card:first-child:hover { box-shadow: 0 30px 66px rgba(49, 46, 129, 0.4); }
.notes-card:first-child::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(129, 140, 248, 0.4), transparent 68%);
  pointer-events: none;
}
.notes-card:first-child > * { position: relative; }
.notes-card:first-child .notes-card-ico { background: rgba(255, 255, 255, 0.14); color: #C7D2FE; }
.notes-card:first-child .notes-card-cat { color: #C7D2FE; }
.notes-card:first-child .notes-card-head time { color: rgba(255, 255, 255, 0.6); }
.notes-card:first-child .notes-card-title { margin-top: auto; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; }
.notes-card:first-child .notes-card-desc { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; max-width: 560px; }

.lp-notes-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.lp-notes-all { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-size: 13px; font-weight: 600; color: var(--color-accent); }
.lp-notes-all:hover { color: var(--color-accent-hover); }

@media (max-width: 1000px) {
  .notes-strip { grid-template-columns: repeat(2, 1fr); }
  .notes-card:first-child { grid-row: span 1; min-height: 300px; padding: 32px; }
}
@media (max-width: 640px) {
  .notes-strip { grid-template-columns: 1fr; }
  .notes-card:first-child { grid-column: span 1; min-height: 0; padding: 26px; }
}

/* ── News (slim strip; rows are re-rendered from news.html by index.html) ── */
.lp-news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.news-list {
  margin: 0; padding: 4px 0; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--lp-radius); box-shadow: var(--shadow-xs);
}
.news-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; padding: 14px 22px; }
.news-item + .news-item { border-top: 1px solid var(--color-border); }
.news-ico {
  width: 26px; height: 26px; border-radius: var(--radius-control);
  background: var(--color-accent-soft); color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.news-item time { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-disabled); flex-shrink: 0; }
.news-item a { display: inline-flex; align-items: center; min-height: 24px; color: var(--color-text-primary); font-weight: 600; }
.news-item a:hover { color: var(--color-accent); }

/* ── Proof ── */
.lp-proof-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  border: 1px solid var(--color-border); border-radius: var(--lp-radius);
  background: var(--color-surface); overflow: hidden; box-shadow: var(--shadow-xs);
}
.lp-proof-copy { padding: 44px; border-right: 1px solid var(--color-border); }
.lp-proof-copy h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 42px); line-height: 1.28; letter-spacing: -0.02em; font-weight: 700; }
.lp-proof-copy > p:not(.lp-kicker) { margin: 0 0 22px; color: var(--color-text-secondary); font-size: 14.5px; max-width: 440px; text-wrap: pretty; }
.lp-proof-tip { padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-page-bg); }
.lp-proof-tip span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--color-accent); }
.lp-proof-tip p { margin: 9px 0 0; font-size: 13px; color: #4B5563; text-wrap: pretty; }
.lp-proof-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; color: var(--color-accent); }
.lp-proof-more:hover { color: var(--color-accent-hover); }
.lp-proof-table { display: flex; flex-direction: column; }
.lp-proof-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 30px; border-bottom: 1px solid var(--color-border); background: #FAFBFC;
}
.lp-proof-table-head strong { font-size: 13px; font-weight: 600; color: #374151; }
.lp-proof-table-head span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--color-text-disabled); }
.lp-proof-rows { margin: 0; padding: 4px 30px 10px; }
.lp-proof-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.lp-proof-row + .lp-proof-row { border-top: 1px solid #EEF0F2; }
.lp-proof-row dt { color: #374151; font-size: 14px; }
.lp-proof-row dd { margin: 0; font-size: 13px; font-weight: 600; color: #374151; }
.lp-proof-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--color-success); }
.lp-proof-code { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-primary); }
.lp-proof-footnote { margin: auto 0 0; padding: 16px 30px 24px; font-size: 12px; line-height: 1.6; color: var(--color-text-secondary); }
.lp-proof-footnote a { color: var(--color-accent); font-weight: 600; }
.lp-proof-footnote a:hover { color: var(--color-accent-hover); }

/* ── Closing CTA (dark) ── */
.lp-cta { position: relative; overflow: hidden; background: var(--lp-ink); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.lp-cta-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 74%);
          mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 74%);
}
.lp-cta-blob-a { position: absolute; left: -120px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 68%); pointer-events: none; }
.lp-cta-blob-b { position: absolute; right: -100px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 70, 229, 0.34), transparent 68%); pointer-events: none; }
.lp-cta-inner { position: relative; z-index: 1; width: min(100% - 48px, 760px); margin: 0 auto; text-align: center; }
.lp-cta .lp-kicker { color: #A5B4FC; margin-bottom: 18px; }
.lp-cta h2 { margin: 0 0 18px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.lp-cta-sub { margin: 0 auto 30px; max-width: 500px; color: rgba(255, 255, 255, 0.82); font-size: 16px; text-wrap: pretty; }
.lp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-btn-invert { height: 52px; padding: 0 26px; background: #fff; color: var(--color-accent); border: 1px solid #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(17, 24, 39, 0.24); }
.lp-btn-invert:hover { background: #fff; color: var(--color-accent-hover); transform: translateY(-1px); }
.lp-btn-outline { height: 52px; padding: 0 24px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.lp-btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lp-cta-fine { margin: 22px 0 0; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* ── Closing image + handwritten note ── */
.lp-closing { position: relative; overflow: hidden; background: var(--lp-ink); }
.lp-closing img { display: block; width: 100%; height: clamp(220px, 30vw, 400px); object-fit: cover; object-position: center 44%; }
.lp-closing-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, #0E1020 2%, rgba(14, 16, 32, 0.55) 30%, rgba(14, 16, 32, 0.18) 68%, rgba(14, 16, 32, 0.5));
}
.lp-closing-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(26px, 5vw, 56px) 0; }
.lp-closing-copy p {
  margin: 0; max-width: 600px; font-family: var(--lp-font-hand); font-weight: 600;
  font-size: clamp(19px, 2.7vw, 31px); line-height: 1.95; color: #F3EDE0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ── Footer (dark variant of the shared footer) ── */
.lp-foot { background: var(--lp-ink); color: rgba(255, 255, 255, 0.68); padding: 52px 0 44px; }
.lp-foot-top { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; justify-content: space-between; }
.lp-foot-brand { max-width: 460px; }
.lp-foot-brand a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.lp-foot-brand img { width: 28px; height: 28px; object-fit: contain; }
.lp-foot-brand p { margin: 16px 0 0; font-size: 13px; line-height: 1.7; }
.lp-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 520px; font-size: 13px; font-weight: 500; }
.lp-foot-nav a { display: inline-flex; align-items: center; min-height: 24px; color: rgba(255, 255, 255, 0.68); transition: color var(--dur-fast); }
.lp-foot-nav a:hover { color: #fff; }
.lp-foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.lp-foot-bottom small { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.04em; }
.lp-foot-tm { flex: 1 1 420px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.4); }

/* ── Modal ── */
.lp-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--color-overlay);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: lp-rise 200ms ease-out;
}
.lp-modal[hidden] { display: none; }
.lp-modal-panel {
  width: min(460px, 100%); padding: 24px; border-radius: var(--radius-card);
  background: var(--color-surface); box-shadow: var(--shadow-dialog);
}
.lp-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lp-modal-head h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.lp-modal-head p { margin: 0; color: var(--color-text-secondary); font-size: 13px; }
.lp-modal-close {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: var(--color-text-disabled); cursor: pointer; padding: 0 4px;
}
.lp-modal-close:hover { color: var(--color-text-primary); }
.lp-modal-list { margin: 18px 0; padding: 0; border-top: 1px solid var(--color-border); }
.lp-modal-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.lp-modal-row dt { color: #374151; }
.lp-modal-row dd { margin: 0; font-family: var(--font-mono); font-weight: 600; color: var(--color-caution); }
.lp-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-modal-actions .lp-mini { height: 44px; font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-orbit { display: none; }
  .lp-proof-copy { border-right: 0; border-bottom: 1px solid var(--color-border); padding: 32px; }
  .lp-proof-rows { padding: 4px 32px 10px; }
  .lp-proof-table-head { padding: 17px 32px; }
  .lp-stage-body { padding: 30px 22px 24px; }
  .lp-stage-head { padding: 20px 22px; }
}
@media (max-width: 640px) {
  .lp-section { padding: clamp(52px, 12vw, 70px) 0; }
  .lp-sechead { gap: 20px; margin-bottom: 30px; }
  .lp-btn { width: 100%; }
  .lp-hero-actions { gap: 10px; }
  .lp-demo-tag { right: 0; font-size: 10px; }

  /* The 300px floor keeps the three cards of a desktop row the same height and
     their headings on one baseline. Stacked there is no row to match, so it
     only leaves ~90px of dead space above each heading — six times over. */
  .lp-moment { min-height: 0; }
  .lp-moment h3 { margin-top: 20px; }

  .lp-room-aside { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

  /* Tool room on a phone. Stacked, the six 74px tabs run ~500px tall, so the
     panel starts below the fold and the tabs are off-screen the whole time it
     is read. Here the list becomes a horizontal chip row sitting directly on
     top of the panel; lp.js switches autoplay off at the same width, so the
     panel never changes under a visitor who is reading it. */
  .lp-room-aside-head { padding: 18px 18px 14px; }
  .lp-room-tablist {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .lp-room-tablist::-webkit-scrollbar { display: none; }
  .lp-tab {
    flex: 0 0 auto; width: auto; min-height: 0;
    grid-template-columns: 1fr; gap: 0; padding: 11px 16px 13px;
    border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
  }
  /* The number, the status dot and the autoplay progress bar all lose their
     job here: there is no column to align to and nothing advances. */
  .lp-tab-no, .lp-tab-dot, .lp-tab-progress { display: none; }
  .lp-tab-name, .lp-tab-moment { white-space: nowrap; }
  .lp-tab-bar { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 3px; }
  /* Stacked, the aside's fine print would sit between the chips and the panel
     and push them 136px apart; reordered, the chip row touches the panel it
     controls. */
  .lp-room-aside-foot { order: 2; margin-top: 0; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .lp-room-tablist { order: 3; }
  /* Stack the meta and stat rows so their dividers stay horizontal. */
  .lp-stage-meta { grid-template-columns: 1fr; }
  .lp-stage-meta > div + div { border-left: 0; border-top: 1px solid rgba(17, 24, 39, 0.1); }
  .lp-stage-ghost { display: none; }
  .lp-room-stats { grid-template-columns: 1fr; }
  .lp-room-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--lp-ink-soft); }
  .lp-modal-actions { grid-template-columns: 1fr; }
  .lp-foot-bottom { margin-top: 28px; }
}

/* ── Keyframes ── */
@keyframes lp-intro-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lp-float-b { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-7px) rotate(-1deg); } }
@keyframes lp-scan {
  0%, 12%, 100% { opacity: 0; transform: translateY(0); }
  18% { opacity: 0.8; }
  46% { opacity: 0.35; transform: translateY(200px); }
  52% { opacity: 0; transform: translateY(200px); }
}
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lp-orbit {
  0%, 100% { transform: scale(0.96) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.05) rotate(9deg); opacity: 1; }
}
@keyframes lp-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@keyframes lp-stage-in { from { opacity: 0.5; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.lp-stage-switching { animation: lp-stage-in 0.5s var(--ease-standard); }

/* Hero intro: staggered entrance for the copy column. Ends together with the
   demo window (~0.85s after first paint) — see .lp-demo-wrap above. */
.lp-hero-copy > * { animation: lp-intro-up 0.6s var(--ease-standard) both; }
.lp-hero-copy > :nth-child(1) { animation-delay: 40ms; }
.lp-hero-copy > :nth-child(2) { animation-delay: 90ms; }
.lp-hero-copy > :nth-child(3) { animation-delay: 140ms; }
.lp-hero-copy > :nth-child(4) { animation-delay: 190ms; }
.lp-hero-copy > :nth-child(5) { animation-delay: 240ms; }

/* Scroll reveal: lp.js adds .lp-in once the element enters the viewport.
   The hidden state is armed only after lp.js sets data-lp-reveal-ready on
   <html>, so a no-JS visitor never gets stuck with invisible content. */
[data-lp-reveal-ready] [data-reveal] {
  transition: opacity 0.85s var(--ease-standard), transform 0.95s var(--ease-standard);
  will-change: opacity, transform;
}
[data-lp-reveal-ready] [data-reveal]:not(.lp-in) { opacity: 0; }
[data-lp-reveal-ready] [data-reveal="up"]:not(.lp-in) { transform: translateY(32px); }
[data-lp-reveal-ready] [data-reveal="left"]:not(.lp-in) { transform: translateX(-30px); }
[data-lp-reveal-ready] [data-reveal="right"]:not(.lp-in) { transform: translateX(30px); }
[data-lp-reveal-ready] [data-reveal="scale"]:not(.lp-in) { transform: scale(0.95); }

/* Narrow viewports: sideways reveals would push their element past the right
   edge while it waits off-screen, so they enter vertically instead. */
@media (max-width: 1000px) {
  [data-lp-reveal-ready] [data-reveal="left"]:not(.lp-in),
  [data-lp-reveal-ready] [data-reveal="right"]:not(.lp-in) { transform: translateY(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-page *,
  .lp-page *::before,
  .lp-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-lp-reveal-ready] [data-reveal]:not(.lp-in) { opacity: 1; transform: none; }
}
