/*
 * Public landing page template (docs/landing-template.md). Outside the admin: no component
 * library, no remote font, script or image. Everything is scoped under `.lp`; colours are
 * tokens under `[data-theme]` (dark is the default, set on <html> by the server from the
 * `lp_theme` cookie). Shape lock: buttons and inputs 10px, cards 14px, pills full. Motion
 * animates transform and opacity only and is switched off by `prefers-reduced-motion`.
 * Nothing in this file names an app: the text comes from the content files.
 */

/* 1. Fonts: self-hosted variable faces, latin and latin-ext; other scripts fall back (section 20) */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens */

:root {
  --lp-sans:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --lp-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lp-tight: -0.03em;
  --lp-snug: -0.02em;
  --lp-h1-min: 2.5rem;
  --lp-h1-fluid: 4.2vw + 1rem;
  --lp-h1-max: 4.25rem;
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-gutter: 24px;
  --lp-section: clamp(72px, 9vw, 128px);
  --lp-radius-control: 10px;
  --lp-radius-card: 14px;
  --lp-radius-pill: 999px;
  --lp-header: 64px;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #111316;
  --raised: #16191d;
  --tint: #1d1614;
  --ink: #edeef0;
  --muted: #9aa0a6;
  --accent: #ff6a33;
  --accent-text: #ff9466;
  --on-accent: #0b0c0e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --wash: rgba(255, 106, 51, 0.08);
  --veil: rgba(11, 12, 14, 0.78);
  --logo-ground: #16191d;
  --logo-ink: #edeef0;
  --elevation: 0 40px 80px -48px rgba(255, 106, 51, 0.32);
  --frame-shadow: 0 28px 56px -36px rgba(2, 3, 4, 0.9);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f9;
  --surface: #fdfdfd;
  --raised: #f0f2f4;
  --tint: #f8efe9;
  --ink: #0e1013;
  --muted: #5b616a;
  --accent: #b23a0b;
  --accent-text: #b23a0b;
  --on-accent: #fdfdfd;
  --line: rgba(12, 14, 18, 0.1);
  --line-strong: rgba(12, 14, 18, 0.18);
  --wash: rgba(178, 58, 11, 0.07);
  --veil: rgba(247, 248, 249, 0.82);
  --logo-ground: #0e1013;
  --logo-ink: #f7f8f9;
  --elevation: 0 40px 80px -48px rgba(178, 58, 11, 0.28);
  --frame-shadow: 0 28px 56px -36px rgba(12, 14, 18, 0.35);
}

/* 3. Base */

html[data-theme] {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lp-header) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-theme] body {
  margin: 0;
  background: var(--bg);
}

.lp {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--lp-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: normal;
  hyphens: manual;
}

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

.lp [lang] {
  font-family: var(--lp-sans);
}

/* `:where()` keeps the reset at the weight of one class, so any component class overrides it. */
.lp :where(h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address) {
  margin: 0;
  padding: 0;
}

.lp :where(ul, ol) {
  list-style: none;
}

.lp h1,
.lp h2,
.lp h3 {
  color: var(--ink);
  text-wrap: balance;
}

.lp h1 {
  font-size: clamp(var(--lp-h1-min), var(--lp-h1-fluid), var(--lp-h1-max));
  line-height: 1.04;
  letter-spacing: var(--lp-tight);
  font-weight: 620;
}

.lp h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--lp-snug);
  font-weight: 600;
}

.lp h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.lp p {
  text-wrap: pretty;
}

.lp :where(a) {
  color: inherit;
  text-decoration: none;
}

.lp img,
.lp svg {
  display: block;
  max-width: 100%;
}

.lp fieldset {
  min-width: 0;
  border: 0;
}

.lp address {
  font-style: normal;
}

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

.lp ::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* 4. Utilities */

.lp-wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--lp-gutter));
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lp-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--lp-radius-control);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.lp a.lp-skip {
  color: var(--bg);
}

.lp-skip:focus {
  transform: none;
}

.lp-icon {
  flex: none;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.lp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--lp-radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--lp-ease);
}

.lp a.lp-button {
  color: var(--on-accent);
}

.lp-button:hover {
  transform: translateY(-1px);
}

.lp-button:active {
  transform: scale(0.98);
}

.lp-button-icon {
  flex: none;
  transition: transform 180ms var(--lp-ease);
}

.lp-button:hover .lp-button-icon {
  transform: translateX(2px);
}

.lp-button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.lp-button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.lp a.lp-button-quiet {
  color: var(--ink);
}

.lp-button-quiet:hover {
  background: var(--raised);
}

.lp-button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.lp-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--lp-radius-control);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms var(--lp-ease);
}

.lp a.lp-icon-button {
  color: var(--muted);
}

.lp-icon-button:hover {
  background: var(--raised);
  color: var(--ink);
}

.lp a.lp-icon-button:hover {
  color: var(--ink);
}

.lp-icon-button:active {
  transform: scale(0.94);
}

.lp-theme {
  flex: none;
}

[data-theme="dark"] .lp-theme-sun,
[data-theme="light"] .lp-theme-moon {
  display: none;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-pill);
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-off,
.lp-off dd {
  color: var(--muted);
}

/* 5. Header */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--lp-header);
}

.lp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: var(--veil);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.lp-header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp a.lp-brand {
  color: var(--ink);
}

.lp-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-logo {
  flex: none;
  border-radius: 7px;
}

.lp-logo-ground {
  fill: var(--logo-ground);
}

.lp-logo-ink {
  fill: var(--logo-ink);
}

.lp-logo-accent {
  fill: var(--accent);
}

.lp-nav {
  margin-inline-end: auto;
}

.lp-nav-list {
  display: flex;
  gap: 4px;
}

.lp-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--lp-radius-control);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.lp-nav-list a:hover {
  color: var(--ink);
}

.lp-header-end {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lp-header-end > .lp-button {
  margin-inline-start: 8px;
}

.lp-menu {
  position: relative;
}

.lp-menu > summary {
  list-style: none;
}

.lp-menu > summary::-webkit-details-marker {
  display: none;
}

.lp-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--lp-radius-control);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.lp-menu-button:hover,
.lp-menu[open] > .lp-menu-button,
.lp-menu[open] > .lp-icon-button {
  background: var(--raised);
  color: var(--ink);
}

.lp-menu-chevron {
  transition: transform 180ms var(--lp-ease);
}

.lp-menu[open] .lp-menu-chevron {
  transform: rotate(180deg);
}

.lp-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 200px;
  max-height: min(70vh, 520px);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-card);
  background: var(--raised);
}

.lp-menu-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.lp-menu-list a:hover,
.lp-menu-list a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.lp-lang .lp-menu-list:has(li:nth-child(9)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 360px;
}

.lp-more {
  display: none;
}

/* 6. Hero and the sync diagram */

.lp-hero {
  padding-block: clamp(48px, 6.5vw, 96px) clamp(56px, 6vw, 88px);
  overflow: clip;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}

.lp-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-hero-text h1 {
  margin-top: 20px;
}

.lp-lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.lp-hero-text .lp-actions {
  margin-top: 36px;
}

.lp-hero-visual {
  position: relative;
  isolation: isolate;
}

.lp-hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--wash), transparent);
  pointer-events: none;
}

.lp-visual {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-card);
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: var(--elevation);
}

.lp-dg {
  position: relative;
  aspect-ratio: 480 / 470;
  container-type: inline-size;
}

.lp-dg-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lp-dg-wire {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.lp-dg-wave {
  pointer-events: none;
}

.lp-dg-packet {
  fill: var(--accent);
  opacity: 0;
}

.lp-dg-node,
.lp-dg-gate {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--raised);
}

.lp-dg-node {
  gap: 0.2em;
  padding: 0 1.1em;
  border-radius: var(--lp-radius-control);
  font-size: clamp(0.625rem, 2.9cqw, 0.875rem);
  line-height: 1.25;
}

.lp-dg-role {
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-dg-name {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp-dg-source {
  top: 0;
  left: 18.75%;
  width: 62.5%;
  height: 31.9%;
}

.lp-dg-flows {
  display: grid;
  gap: 0.25em;
  margin-top: 0.7em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86em;
}

.lp .lp-dg-flows {
  margin-top: 0.7em;
  padding-top: 0.7em;
}

.lp-dg-flows li {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.lp-dg-flows li::before {
  content: "";
  flex: none;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--accent);
}

.lp-dg-gate {
  top: 45.96%;
  left: 31.25%;
  width: 37.5%;
  height: 9.36%;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
  border-color: var(--accent);
  border-radius: var(--lp-radius-pill);
  color: var(--ink);
  font-size: clamp(0.625rem, 2.9cqw, 0.875rem);
  font-weight: 600;
}

.lp-dg-gate .lp-icon {
  color: var(--accent-text);
}

.lp-dg-gate::after,
.lp-dg-dest::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.lp-dg-gate::after {
  inset: -5px;
}

.lp-dg-dest {
  top: 79.15%;
  width: 29.17%;
  height: 19.15%;
  padding: 0 0.7em;
}

.lp-dg-dest-a {
  left: 0;
}

.lp-dg-dest-b {
  left: 35.42%;
}

.lp-dg-dest-c {
  left: 70.83%;
}

/* 7. Fact strip */

.lp-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.lp-strip-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 28px 24px;
  border-inline-start: 1px solid var(--line);
}

.lp-strip-item:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.lp-strip dd {
  color: var(--ink);
  font-family: var(--lp-mono);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lp-strip dt {
  max-width: 22ch;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* 8. Sections */

.lp-section {
  padding-block: var(--lp-section);
  --cell: var(--surface);
}

.lp-section-raised {
  border-block: 1px solid var(--line);
  background: var(--surface);
  --cell: var(--bg);
}

.lp-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.lp-head .lp-eyebrow {
  margin-bottom: 20px;
}

.lp-answer {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
}

.lp .lp-answer {
  margin-top: 20px;
}

.lp-statement {
  max-width: 62ch;
}

.lp-statement h2 {
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp .lp-statement-text {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem);
  line-height: 1.28;
  letter-spacing: var(--lp-snug);
  font-weight: 500;
}

.lp .lp-statement-more {
  margin-top: 20px;
  color: var(--muted);
}

/* 9. Screenshot showcase: radio group and CSS switching */

.lp-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.lp-seg {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-pill);
  background: var(--raised);
}

.lp-seg label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--lp-radius-pill);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--lp-ease);
}

.lp-seg label:hover {
  color: var(--ink);
}

.lp-seg label:active {
  transform: scale(0.97);
}

.lp-radio:nth-of-type(1):checked ~ .lp-seg > :nth-child(1),
.lp-radio:nth-of-type(2):checked ~ .lp-seg > :nth-child(2),
.lp-radio:nth-of-type(3):checked ~ .lp-seg > :nth-child(3),
.lp-radio:nth-of-type(4):checked ~ .lp-seg > :nth-child(4) {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lp-radio:nth-of-type(1):focus-visible ~ .lp-seg > :nth-child(1),
.lp-radio:nth-of-type(2):focus-visible ~ .lp-seg > :nth-child(2),
.lp-radio:nth-of-type(3):focus-visible ~ .lp-seg > :nth-child(3),
.lp-radio:nth-of-type(4):focus-visible ~ .lp-seg > :nth-child(4),
.lp-radio:nth-of-type(1):focus-visible ~ .lp-pills > :nth-child(1),
.lp-radio:nth-of-type(2):focus-visible ~ .lp-pills > :nth-child(2),
.lp-radio:nth-of-type(3):focus-visible ~ .lp-pills > :nth-child(3),
.lp-radio:nth-of-type(4):focus-visible ~ .lp-pills > :nth-child(4),
.lp-radio:nth-of-type(5):focus-visible ~ .lp-pills > :nth-child(5),
.lp-radio:nth-of-type(6):focus-visible ~ .lp-pills > :nth-child(6),
.lp-radio:nth-of-type(7):focus-visible ~ .lp-pills > :nth-child(7),
.lp-radio:nth-of-type(8):focus-visible ~ .lp-pills > :nth-child(8) {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.lp-shots {
  display: flow-root;
}

.lp-shot-stack {
  margin-top: 24px;
}

.lp-shot,
.lp-plan {
  display: none;
}

.lp-radio:nth-of-type(1):checked ~ .lp-shot-stack > :nth-child(1),
.lp-radio:nth-of-type(2):checked ~ .lp-shot-stack > :nth-child(2),
.lp-radio:nth-of-type(3):checked ~ .lp-shot-stack > :nth-child(3),
.lp-radio:nth-of-type(4):checked ~ .lp-shot-stack > :nth-child(4) {
  display: block;
}

.lp-frame {
  aspect-ratio: 1616 / 838;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-card);
  background: var(--raised);
  box-shadow: var(--frame-shadow);
}

.lp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.lp-shot figcaption {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* 10. Features: bento grid */

.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.lp-cell {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-card);
  background-color: var(--cell);
  transition: transform 220ms var(--lp-ease);
}

.lp-cell::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--lp-ease);
}

.lp-cell:hover {
  transform: translateY(-2px);
}

.lp-cell:hover::after {
  opacity: 1;
}

.lp-cell:nth-child(n + 7):nth-child(-n + 9),
.lp-cell:nth-child(n + 14):nth-child(-n + 16) {
  grid-column: span 4;
}

.lp-cell-large {
  grid-column: span 6;
  gap: 32px;
  padding: 32px;
}

.lp-cell:nth-child(7) {
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 7px 7px;
}

.lp-cell:nth-child(9),
.lp-cell:nth-child(11) {
  background-color: var(--tint);
}

.lp-cell:nth-child(15) {
  background-image: repeating-linear-gradient(
    135deg,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent 12px
  );
}

.lp-cell-icon {
  color: var(--accent-text);
}

.lp-cell-text h3 {
  margin-top: 16px;
}

.lp-cell-text p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lp .lp-cell-text h3 {
  margin-top: 16px;
}

.lp .lp-cell-text p {
  margin-top: 8px;
}

.lp-cell-large .lp-cell-text h3 {
  font-size: 1.3125rem;
  letter-spacing: var(--lp-snug);
}

.lp-cell-large .lp-cell-text p {
  max-width: 44ch;
  font-size: 1rem;
}

.lp-cell-visual {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-control);
  background: var(--raised);
}

.lp-diff {
  display: grid;
}

.lp-diff-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-size: 0.875rem;
}

.lp-diff-row + .lp-diff-row {
  border-top: 1px solid var(--line);
}

.lp-diff-mark {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.lp-diff-new .lp-diff-mark {
  border-color: var(--accent);
  background: var(--accent);
}

.lp-diff-changed .lp-diff-mark {
  border-color: var(--accent);
}

.lp-diff-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-diff-state {
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
}

.lp-diff-new .lp-diff-state,
.lp-diff-changed .lp-diff-state {
  color: var(--accent-text);
}

.lp-map {
  display: grid;
  gap: 10px;
}

.lp-map-modes {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-pill);
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
}

.lp-map-modes span {
  padding: 3px 10px;
  border-radius: var(--lp-radius-pill);
}

.lp-map-modes span:first-child {
  background: var(--cell);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lp-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.lp-map-chip {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--cell);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-map-arrow {
  width: 48px;
  height: 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 11. How it works: rail */

.lp-rail {
  position: relative;
}

.lp-rail-line {
  position: absolute;
  top: 5px;
  inset-inline: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--line-strong);
}

.lp-rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
}

.lp-rail-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.lp-rail-steps li {
  position: relative;
  padding-top: 40px;
}

.lp .lp-rail-steps li {
  padding-top: 40px;
}

.lp-rail-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.lp-rail-steps h3 {
  font-size: 1.1875rem;
  letter-spacing: var(--lp-snug);
}

.lp-rail-steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp .lp-rail-steps p {
  margin-top: 10px;
}

/* 12. Use cases: two by two, hairlines only */

.lp-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.lp-cases li {
  padding: 36px 40px 36px 0;
}

.lp .lp-cases li {
  padding: 36px 40px 36px 0;
}

.lp .lp-cases li:nth-child(even) {
  padding: 36px 0 36px 40px;
  border-inline-start: 1px solid var(--line);
}

.lp-cases li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.lp-cases h3 {
  font-size: 1.1875rem;
  letter-spacing: var(--lp-snug);
}

.lp-cases p {
  max-width: 48ch;
  margin-top: 10px;
  color: var(--muted);
}

.lp .lp-cases p {
  margin-top: 10px;
}

/* 13. Pricing: capacity pills, one plan panel, comparison table */

.lp-plans > legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-pills label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-pill);
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--lp-ease);
}

.lp-pills label:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.lp-pills label:active {
  transform: scale(0.97);
}

.lp-radio:nth-of-type(1):checked ~ .lp-pills > :nth-child(1),
.lp-radio:nth-of-type(2):checked ~ .lp-pills > :nth-child(2),
.lp-radio:nth-of-type(3):checked ~ .lp-pills > :nth-child(3),
.lp-radio:nth-of-type(4):checked ~ .lp-pills > :nth-child(4),
.lp-radio:nth-of-type(5):checked ~ .lp-pills > :nth-child(5),
.lp-radio:nth-of-type(6):checked ~ .lp-pills > :nth-child(6),
.lp-radio:nth-of-type(7):checked ~ .lp-pills > :nth-child(7),
.lp-radio:nth-of-type(8):checked ~ .lp-pills > :nth-child(8) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.lp-radio:nth-of-type(1):checked ~ .lp-plan-grid .lp-plan:nth-child(1),
.lp-radio:nth-of-type(2):checked ~ .lp-plan-grid .lp-plan:nth-child(2),
.lp-radio:nth-of-type(3):checked ~ .lp-plan-grid .lp-plan:nth-child(3),
.lp-radio:nth-of-type(4):checked ~ .lp-plan-grid .lp-plan:nth-child(4),
.lp-radio:nth-of-type(5):checked ~ .lp-plan-grid .lp-plan:nth-child(5),
.lp-radio:nth-of-type(6):checked ~ .lp-plan-grid .lp-plan:nth-child(6),
.lp-radio:nth-of-type(7):checked ~ .lp-plan-grid .lp-plan:nth-child(7),
.lp-radio:nth-of-type(8):checked ~ .lp-plan-grid .lp-plan:nth-child(8) {
  display: grid;
}

.lp-plan-stack {
  min-width: 0;
}

.lp-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: start;
  gap: 48px;
  margin-top: 24px;
}

.lp-plan {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-card);
  background: var(--cell);
}

.lp-plan-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-plan-head h3 {
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp .lp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
}

.lp-price-value {
  color: var(--ink);
  font-family: var(--lp-mono);
  font-size: clamp(2.75rem, 4vw, 3.75rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.lp-price-unit {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp .lp-price-year {
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.lp-plan-head .lp-button {
  margin-top: 28px;
}

.lp-plan-limits > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.lp-plan-limits > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.lp-plan-limits > div:last-child {
  padding-bottom: 0;
}

.lp-plan-limits dt {
  color: var(--muted);
}

.lp-plan-limits dd {
  max-width: 22ch;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.lp-plan-limits .lp-off dd {
  color: var(--muted);
  font-weight: 400;
}

.lp-every {
  padding-top: 32px;
}

.lp-every h3 {
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-every ul,
.lp-fit-col ul {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.lp .lp-every ul,
.lp .lp-fit-col ul {
  margin-top: 20px;
}

.lp-every li,
.lp-fit-col li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lp-every .lp-icon,
.lp-fit-col .lp-icon {
  margin-top: 3px;
  color: var(--accent-text);
}

.lp-compare {
  margin-top: 40px;
  border-block: 1px solid var(--line);
}

.lp-compare > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.lp-compare > summary::-webkit-details-marker {
  display: none;
}

.lp-compare > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 4px 2px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 180ms var(--lp-ease);
}

.lp-compare[open] > summary::before {
  transform: rotate(45deg);
}

.lp-table-scroll {
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.lp-table th,
.lp-table td {
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.lp-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lp-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.lp-notes {
  display: grid;
  gap: 10px;
  max-width: 76ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.lp .lp-notes {
  margin-top: 32px;
}

.lp-notes li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
}

.lp-notes li::before {
  content: "";
  height: 1px;
  margin-top: 0.8em;
  background: var(--line-strong);
}

/* 14. Roadmap */

.lp-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lp-roadmap li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--lp-radius-card);
}

.lp .lp-roadmap li {
  padding: 24px;
}

.lp-roadmap h3 {
  margin-top: 20px;
}

.lp-roadmap p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp .lp-roadmap h3 {
  margin-top: 20px;
}

.lp .lp-roadmap p {
  margin-top: 8px;
}

/* 15. Security, fit, FAQ, glossary */

.lp-deflist > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.lp-deflist > div:last-child {
  border-bottom: 1px solid var(--line);
}

.lp-deflist dt {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp-deflist dd {
  max-width: 68ch;
  color: var(--muted);
}

.lp-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-card);
  background: var(--cell);
}

.lp-fit-col {
  padding: 32px;
}

.lp-fit-col + .lp-fit-col {
  border-inline-start: 1px solid var(--line);
}

.lp-fit-col h3 {
  font-size: 1.1875rem;
  letter-spacing: var(--lp-snug);
}

.lp-fit-cross .lp-icon {
  color: var(--muted);
}

.lp-fit-cross li {
  color: var(--muted);
}

.lp-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 48px;
}

.lp-faq-grid .lp-head {
  position: sticky;
  top: calc(var(--lp-header) + 32px);
  margin-bottom: 0;
}

.lp-faq details {
  border-top: 1px solid var(--line);
}

.lp-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  list-style: none;
  cursor: pointer;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary h3 {
  font-weight: 550;
  text-wrap: pretty;
}

.lp-faq-mark {
  color: var(--muted);
  transition: transform 240ms var(--lp-ease);
}

.lp-faq details[open] .lp-faq-mark {
  transform: rotate(45deg);
}

.lp .lp-faq details > p {
  max-width: 68ch;
  padding-bottom: 24px;
  color: var(--muted);
}

.lp-glossary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.lp-glossary > div {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.lp-glossary dfn {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp-glossary dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp .lp-glossary dd {
  margin-top: 8px;
}

/* 16. Closing band */

.lp-closing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-radius-card);
  background: var(--tint);
}

.lp-closing h2 {
  max-width: 20ch;
}

.lp-closing .lp-actions {
  margin-top: 32px;
}

/* 17. Footer */

.lp-footer {
  padding-block: 64px 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 48px;
}

.lp-footer address {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  font-size: 0.875rem;
}

.lp .lp-footer address {
  margin-top: 20px;
}

.lp-footer .lp-footer-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-footer-col a,
.lp-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
}

.lp .lp-footer-col a {
  color: var(--muted);
}

.lp .lp-footer-col a:hover,
.lp .lp-footer-col a[aria-current="page"] {
  color: var(--ink);
}

.lp-footer-links {
  display: grid;
  margin-top: 4px;
}

.lp-footer-languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.lp-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* 18. Motion. Transform and opacity only; all of it sits behind no-preference. */

@keyframes lp-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes lp-appear {
  from {
    opacity: 0;
  }
}

@keyframes lp-fill {
  from {
    transform: scaleX(0);
  }
}

@keyframes lp-fill-down {
  from {
    transform: scaleY(0);
  }
}

@keyframes lp-dg-in {
  0% {
    opacity: 0;
    transform: translate(240px, 150px);
  }
  5% {
    opacity: 1;
  }
  22% {
    opacity: 1;
    transform: translate(240px, 214px);
  }
  26%,
  100% {
    opacity: 0;
    transform: translate(240px, 220px);
  }
}

@keyframes lp-dg-out-a {
  0%,
  36% {
    opacity: 0;
    transform: translate(240px, 262px);
  }
  40% {
    opacity: 1;
  }
  54% {
    transform: translate(240px, 316px);
  }
  76% {
    transform: translate(70px, 316px);
  }
  92% {
    opacity: 1;
    transform: translate(70px, 370px);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(70px, 374px);
  }
}

@keyframes lp-dg-out-b {
  0%,
  36% {
    opacity: 0;
    transform: translate(240px, 262px);
  }
  40% {
    opacity: 1;
  }
  92% {
    opacity: 1;
    transform: translate(240px, 370px);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(240px, 374px);
  }
}

@keyframes lp-dg-out-c {
  0%,
  36% {
    opacity: 0;
    transform: translate(240px, 262px);
  }
  40% {
    opacity: 1;
  }
  54% {
    transform: translate(240px, 316px);
  }
  76% {
    transform: translate(410px, 316px);
  }
  92% {
    opacity: 1;
    transform: translate(410px, 370px);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(410px, 374px);
  }
}

@keyframes lp-dg-gate {
  0%,
  40%,
  78%,
  100% {
    opacity: 0;
  }
  52% {
    opacity: 0.9;
  }
}

@keyframes lp-dg-hit {
  0%,
  76%,
  100% {
    opacity: 0;
  }
  86% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-hero-text > *,
  .lp-hero-visual {
    animation: lp-enter 640ms var(--lp-ease) both;
  }

  .lp-hero-text > :nth-child(2) {
    animation-delay: 70ms;
  }

  .lp-hero-text > :nth-child(3) {
    animation-delay: 140ms;
  }

  .lp-hero-text > :nth-child(4) {
    animation-delay: 210ms;
  }

  .lp-hero-visual {
    animation-delay: 180ms;
    animation-duration: 700ms;
  }

  .lp-dg-in {
    animation: lp-dg-in 7s linear infinite;
  }

  .lp-dg-out-a {
    animation: lp-dg-out-a 7s linear infinite;
  }

  .lp-dg-out-b {
    animation: lp-dg-out-b 7s linear infinite;
  }

  .lp-dg-out-c {
    animation: lp-dg-out-c 7s linear infinite;
  }

  .lp-dg-wave-late .lp-dg-packet {
    animation-delay: -3.5s;
  }

  .lp-dg-gate::after {
    animation: lp-dg-gate 3.5s ease-out infinite;
  }

  .lp-dg-dest::after {
    animation: lp-dg-hit 3.5s ease-out infinite;
  }

  .lp-faq details[open] > p,
  .lp-compare[open] > .lp-table-scroll,
  .lp-menu[open] > .lp-menu-panel {
    animation: lp-enter 260ms var(--lp-ease) both;
  }

  @supports (animation-timeline: view()) {
    .lp-reveal,
    .lp-bento > li,
    .lp-rail-steps > li {
      animation: lp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .lp-rail-fill {
      animation: lp-fill linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 55%;
    }

    .lp-header::before {
      animation: lp-appear linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 96px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] {
    scroll-behavior: auto;
  }

  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 19. Responsive */

@media (max-width: 1080px) {
  .lp-nav-list a {
    padding: 0 8px;
  }

  .lp-header-row {
    gap: 20px;
  }

  .lp-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lp .lp-bento > .lp-cell {
    grid-column: span 3;
  }

  .lp .lp-bento > .lp-cell-large {
    grid-column: span 6;
  }

  .lp-plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .lp-every {
    padding: 8px 0 0;
  }
}

@media (max-width: 960px) {
  .lp-nav {
    display: none;
  }

  .lp-brand {
    margin-inline-end: auto;
  }

  .lp-more {
    display: block;
  }

  .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .lp-hero-visual {
    max-width: 520px;
  }

  .lp-rail-line {
    top: 0;
    bottom: 0;
    left: 5px;
    width: 2px;
    height: auto;
    inset-inline-end: auto;
  }

  .lp-rail-fill {
    transform-origin: center top;
  }

  .lp-rail-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .lp .lp-rail-steps li {
    padding: 0 0 0 36px;
  }

  .lp-rail-dot {
    top: 6px;
  }

  .lp-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lp-faq-grid .lp-head {
    position: static;
    margin-bottom: 40px;
  }

  .lp-glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-roadmap {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-footer-company {
    grid-column: 1 / -1;
  }

  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .lp-rail-fill {
        animation-name: lp-fill-down;
      }
    }
  }
}

@media (max-width: 640px) {
  :root {
    --lp-gutter: 16px;
    --lp-section: 72px;
  }

  .lp-header-row {
    gap: 8px;
  }

  .lp-header-end {
    gap: 2px;
  }

  .lp-brand-name,
  .lp-lang-current,
  .lp-menu-chevron {
    display: none;
  }

  .lp-brand {
    min-width: 44px;
    min-height: 48px;
  }

  .lp-icon-button,
  .lp-menu-button {
    width: 44px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .lp-header-end > .lp-button {
    min-height: 48px;
    margin-inline: 4px;
    padding: 0 12px;
  }

  .lp-menu-list a {
    min-height: 48px;
  }

  .lp .lp-lang .lp-menu-list {
    min-width: min(280px, calc(100vw - 32px));
  }

  .lp-button {
    min-height: 48px;
  }

  .lp-hero-text .lp-actions {
    width: 100%;
  }

  .lp-hero-text .lp-actions .lp-button {
    flex: 1 1 auto;
  }

  .lp-lead {
    font-size: 1.0625rem;
  }

  .lp-visual {
    padding: 12px;
  }

  .lp-dg-node {
    padding: 0 0.7em;
  }

  /* Three narrow boxes: the name alone stays readable; the role is in the caption. */
  .lp-dg-dest .lp-dg-role {
    display: none;
  }

  .lp-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp .lp-strip-item {
    padding: 20px 16px 20px 0;
    border-inline-start: 0;
  }

  .lp .lp-strip-item:nth-child(even) {
    padding: 20px 0 20px 16px;
    border-inline-start: 1px solid var(--line);
  }

  .lp-strip-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .lp-seg,
  .lp-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lp-pills {
    margin-inline: calc(-1 * var(--lp-gutter));
    padding: 4px var(--lp-gutter);
    scroll-padding-inline: var(--lp-gutter);
  }

  .lp-seg label,
  .lp-pills label {
    flex: none;
    min-height: 48px;
    scroll-snap-align: start;
  }

  .lp-bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .lp .lp-bento > .lp-cell,
  .lp .lp-bento > .lp-cell-large {
    grid-column: auto;
    padding: 24px;
  }

  .lp-diff-row {
    gap: 10px;
  }

  .lp-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp .lp-cases li,
  .lp .lp-cases li:nth-child(even) {
    padding: 28px 0;
    border-inline-start: 0;
  }

  .lp-cases li:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .lp-plan {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
  }

  .lp-plan-head .lp-button {
    width: 100%;
  }

  .lp-compare > summary {
    min-height: 56px;
  }

  .lp-deflist > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .lp-fit {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-fit-col {
    padding: 24px;
  }

  .lp-fit-col + .lp-fit-col {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .lp-glossary {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .lp-footer-col a {
    min-height: 48px;
  }

  .lp-footer .lp-icon-button {
    width: 48px;
  }
}

/* 20. Languages: long-word languages get a smaller display size; other scripts a tuned stack */

:lang(tr),
:lang(de),
:lang(fi),
:lang(nl),
:lang(sv),
:lang(da),
:lang(nb),
:lang(pl),
:lang(cs) {
  --lp-h1-min: 2.125rem;
  --lp-h1-fluid: 3.6vw + 1rem;
  --lp-h1-max: 3.75rem;
}

:lang(ja) {
  --lp-sans:
    "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP",
    sans-serif;
}

:lang(ko) {
  --lp-sans:
    "Geist", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

:lang(zh-CN) {
  --lp-sans:
    "Geist", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

:lang(zh-TW) {
  --lp-sans:
    "Geist", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC",
    sans-serif;
}

:lang(th) {
  --lp-sans: "Geist", Thonburi, "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
}

:lang(vi) {
  --lp-sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

:lang(ja),
:lang(ko),
:lang(zh-CN),
:lang(zh-TW),
:lang(th) {
  --lp-tight: 0em;
  --lp-snug: 0em;
  --lp-h1-max: 3.5rem;
}

.lp:lang(ja),
.lp:lang(zh-CN),
.lp:lang(zh-TW) {
  line-break: strict;
}

.lp:lang(ko) {
  word-break: keep-all;
}

.lp:lang(th) h1,
.lp:lang(th) h2 {
  line-height: 1.3;
}

/* 21. Pages next to the landing page: the changelog and the legal texts */

.lp-page {
  padding-bottom: var(--lp-section);
}

.lp-page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(48px, 6.5vw, 96px) clamp(40px, 5vw, 64px);
}

.lp-page-head h1 {
  max-width: 22ch;
  font-size: clamp(2.125rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.06;
}

.lp-page-head .lp-actions {
  margin-top: 32px;
}

.lp-page-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  max-width: 62ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lp-page-note .lp-icon {
  margin-top: 2px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-pill);
  font-family: var(--lp-mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lp-badge-new {
  background: var(--tint);
  color: var(--accent-text);
}

.lp-badge-improved {
  background: var(--raised);
  color: var(--ink);
}

.lp-badge-fixed {
  background: var(--raised);
  color: var(--muted);
}

.lp-badge-security {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.lp-log-month {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  align-items: start;
  gap: 48px;
  border-top: 1px solid var(--line);
}

.lp-log-month:last-child {
  border-bottom: 1px solid var(--line);
}

.lp-log-month .lp-log-label {
  position: sticky;
  top: calc(var(--lp-header) + 24px);
  padding-block: 34px 24px;
  color: var(--muted);
  font-family: var(--lp-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.lp-log-list {
  min-width: 0;
}

.lp-log-entry {
  max-width: 44rem;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--lp-header) + 16px);
}

.lp-log-entry:first-child {
  border-top: 0;
}

.lp-log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.lp-log-entry h3 {
  margin-top: 16px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: var(--lp-snug);
  text-wrap: pretty;
}

.lp-log-entry:target h3 {
  color: var(--accent-text);
}

.lp-log-summary {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--muted);
}

.lp-log-empty {
  max-width: 44rem;
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--lp-radius-card);
  color: var(--muted);
}

.lp-legal {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  align-items: start;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.lp-legal-nav {
  position: sticky;
  top: calc(var(--lp-header) + 24px);
  max-height: calc(100vh - var(--lp-header) - 48px);
  overflow-y: auto;
}

.lp-legal-nav .lp-legal-nav-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-legal-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-block: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.lp-legal-nav a:hover {
  color: var(--ink);
}

.lp-prose {
  min-width: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lp-prose > :first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lp-prose p,
.lp-prose ul,
.lp-prose ol {
  max-width: 70ch;
  margin-top: 18px;
}

.lp-prose h2 {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
  line-height: 1.2;
  scroll-margin-top: calc(var(--lp-header) + 16px);
}

.lp-prose h3,
.lp-prose h4 {
  margin-top: 32px;
  scroll-margin-top: calc(var(--lp-header) + 16px);
}

.lp-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.lp-prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lp-prose code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  color: var(--ink);
  font-family: var(--lp-mono);
  font-size: 0.875em;
}

/* A list item holds inline content (text, code, links); it stays a block so those inline
   pieces flow as one paragraph, and the marker is positioned in the start padding. */
.lp-prose li {
  position: relative;
  margin-top: 10px;
  padding-inline-start: 24px;
}

.lp-prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 12px;
  height: 1px;
  background: var(--line-strong);
}

.lp-prose ol {
  counter-reset: lp-prose;
}

.lp-prose ol > li {
  padding-inline-start: 36px;
  counter-increment: lp-prose;
}

.lp-prose ol > li::before {
  content: counter(lp-prose);
  top: 0;
  width: 24px;
  height: auto;
  background: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lp-prose-table {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-prose table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
}

.lp-prose th,
.lp-prose td {
  padding: 12px 20px 12px 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.lp-prose th:last-child,
.lp-prose td:last-child {
  padding-right: 0;
}

.lp-prose thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lp-prose td:first-child {
  min-width: 11rem;
  color: var(--ink);
  font-weight: 550;
}

.lp-prose tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .lp-page-head > * {
    animation: lp-enter 640ms var(--lp-ease) both;
  }

  .lp-page-head > :nth-child(2) {
    animation-delay: 70ms;
  }

  .lp-page-head > :nth-child(3) {
    animation-delay: 140ms;
  }
}

@media (max-width: 960px) {
  .lp-log-month,
  .lp-legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lp-log-month .lp-log-label {
    position: static;
    padding-block: 28px 0;
  }

  .lp-legal {
    padding-top: 32px;
  }

  .lp-legal-nav {
    position: static;
    max-height: none;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .lp-page-head .lp-button {
    width: 100%;
  }

  .lp-page-head .lp-actions {
    width: 100%;
  }

  .lp-legal-nav a {
    min-height: 48px;
  }

  .lp-log-entry {
    padding-block: 28px;
  }

  .lp-log-empty {
    padding: 24px;
  }

  .lp-prose h2 {
    margin-top: 44px;
    padding-top: 32px;
  }
}

/* Header fit across the 21 locales (measured 360–1280 px): the anchor links move into the
   menu before the brand name would be clipped, the language name gives way to its globe on
   tablets, and on narrow phones the header install button leaves the row to the hero button
   right below it, so the page never scrolls sideways. */
@media (max-width: 1240px) {
  .lp-nav {
    display: none;
  }

  .lp-brand {
    margin-inline-end: auto;
  }

  .lp-more {
    display: block;
  }
}

@media (max-width: 860px) {
  .lp-lang-current {
    display: none;
  }
}

@media (max-width: 760px) {
  .lp-brand-name {
    display: none;
  }
}

@media (max-width: 420px) {
  .lp-header-end > .lp-button {
    display: none;
  }
}

/* Line breaking by script: Korean breaks between words, Japanese headings between phrases
   where the browser supports it. */
:lang(ko) {
  word-break: keep-all;
}

:lang(ja) :is(h1, h2, h3) {
  word-break: auto-phrase;
}
