/* Landing page: layout and sections. Hero is in hero.css, scroll-driven motion in scroll.css.
   Colour comes from the shared tokens (assets/tokens.css); only the easing curve is defined here. */
:root { --lp-ease: cubic-bezier(0.22, 1, 0.36, 1); --lp-pad: clamp(4.5rem, 10vw, 9rem); }

.landing { overflow-x: clip; }
.lp-wrap { width: 100%; max-width: 80rem; margin-inline: auto; --gut: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px)); }

/* ---------- floating nav ---------- */
.lp-nav { position: fixed; inset: max(0.75rem, env(safe-area-inset-top, 0px)) 0 auto; z-index: 30; border: 0; background: none; backdrop-filter: none; pointer-events: none;
  /* The name moves to the bar: an ancestor with a view-transition-name is a backdrop root, so the bar's blur would see nothing
     behind it. The bar still morphs between pages. */
  view-transition-name: none; }
.lp-nav-bar {
  position: relative; view-transition-name: site-nav;
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(62rem, calc(100% - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); height: 3.25rem; margin-inline: auto; padding: 0; padding-inline: 1.1rem 0.5rem;
  border-radius: 999px;
}
.lp-nav .btn { border-radius: 999px; height: 2.25rem; padding-inline: 1rem; }
@media (max-width: 47.99rem) { .lp-nav .nav > a:not(.btn).hide-sm { display: none; } }
@media (max-width: 23.99rem) { .lp-nav .nav > a:not(.btn).hide-xs { display: none; } }
@media (max-width: 29.99rem) { .lp-nav-bar { gap: 0.25rem; padding-inline-start: 0.8rem; } .lp-nav .btn { padding-inline: 0.8rem; } .lp-nav .nav { gap: 0; } .lp-nav .nav .btn { margin-inline-start: 0.25rem; } }
/* 44 px targets wherever the pointer is a finger or the screen is small. */
@media (pointer: coarse), (max-width: 40rem) {
  .lp-nav .btn { height: 2.75rem; }
  .lp-nav .nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .lp-nav .brand { min-height: 2.75rem; }
  .strip-head a, .lp-footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; }
  .landing .code .copy { min-height: 2.75rem; min-width: 2.75rem; }
  .landing .note a, .landing .tools summary { padding-block: 0.85rem; }
  .landing .tools summary { padding-block: 0.75rem; }
}

/* ---------- buttons ---------- */
.btn-pill { translate: none; display: inline-flex; align-items: center; gap: 0.9rem; height: 3.1rem; border-radius: 999px; font-size: 0.95rem; font-weight: 560; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.5s var(--lp-ease), translate 0.6s var(--lp-ease), background-color 0.3s, border-color 0.3s; }
.btn-pill:hover { text-decoration: none; }
.btn-pill:active { transform: scale(0.97); }
.btn-pill-primary { padding: 0; padding-inline: 1.5rem 0.45rem; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-pill-primary:hover { background: color-mix(in srgb, hsl(var(--accent)) 88%, hsl(var(--foreground))); }
.btn-ico { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: color-mix(in srgb, currentColor 18%, transparent); transition: transform 0.5s var(--lp-ease); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .btn-pill { translate: var(--mx, 0px) var(--my, 0px); }
  html:not(.motion-off) .btn-ico { translate: calc(var(--mx, 0px) * 0.35) calc(var(--my, 0px) * 0.35); }
}
.btn-pill:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }
.btn-pill-ghost { padding: 0 1.5rem; color: hsl(var(--foreground)); border: 1px solid hsl(var(--input)); background: color-mix(in srgb, hsl(var(--background)) 60%, transparent); }
.btn-pill-ghost:hover { background: hsl(var(--muted)); }
.landing .cta { margin-top: 2rem; }

/* ---------- logo strip (the page's one marquee) ---------- */
.strip { padding-block: 1.5rem 0.5rem; }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.strip-head h2 { margin: 0; font-size: 0.9375rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.strip-head a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-decoration-color: hsl(var(--input)); }
.strip-head a:hover { color: hsl(var(--foreground)); }
.marquee { direction: ltr; margin-top: 1.25rem; overflow: hidden; padding-block: 1rem; border-block: 1px solid hsl(var(--border));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; gap: clamp(2.5rem, 6vw, 5rem); padding-inline-start: clamp(2.5rem, 6vw, 5rem); animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 0.65rem; font-size: 1.25rem; font-weight: 580; letter-spacing: -0.02em; color: hsl(var(--muted-foreground)); transition: color 0.3s; }
.marquee li:hover { color: hsl(var(--foreground)); }
.brand-ico { width: 1.5rem; height: 1.5rem; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.lp-section { padding-block: var(--lp-pad) 0; }
.lp-h2 { margin: 0; max-width: 22ch; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.07; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
.lp-sub { margin: 1.1rem 0 0; max-width: 44rem; font-size: 1.0625rem; color: hsl(var(--muted-foreground)); text-wrap: pretty; }

/* story: the left column scrolls, the right one sticks (the route diagram and its picture live in route.css) */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: 2.5rem; }
.steps-list { position: relative; margin: 0; padding: 0; padding-inline-start: 2rem; list-style: none; }
.steps-list::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.4rem; bottom: 0.4rem; width: 2px; background: hsl(var(--border)); border-radius: 2px; }
.steps-list::after { content: ''; position: absolute; inset-inline-start: 0; top: 0.4rem; bottom: 0.4rem; width: 2px; background: hsl(var(--accent)); border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0.33)); transition: transform 0.7s var(--lp-ease); }
.step { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52vh; padding-block: 1.5rem; }
/* Inactive steps are dimmed by colour, not opacity, so their text keeps AA contrast. */
.step h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 620; letter-spacing: -0.03em; color: hsl(var(--muted-foreground)); transition: color 0.6s var(--lp-ease); }
.step.is-active h3 { color: hsl(var(--foreground)); }
.step p { margin: 0.8rem 0 0; max-width: 30rem; font-size: 1.0625rem; color: hsl(var(--muted-foreground)); }
.step-shot { display: none; margin: 1.5rem 0 0; }
.story-shot img, .step-shot img, .look-shot img { width: 100%; height: auto; }

/* look inside: an uneven grid, shots drift at different speeds (scroll.css) */
.look { overflow: clip; }
.look-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); margin-top: 3.5rem; }
.look-shot { margin: 0; }
.look-shot .frame { overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--surface)); box-shadow: var(--shadow-pop); }
.look-shot figcaption { margin-top: 0.9rem; max-width: 30rem; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.look-shot strong { color: hsl(var(--foreground)); font-weight: 600; }
.ls-a { grid-column: 1 / span 7; }
.ls-b { grid-column: 8 / span 5; margin-top: 7rem; }
.ls-c { grid-column: 3 / span 8; }

@media (hover: hover) and (pointer: fine) {
  .look-shot .frame { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform 0.7s var(--lp-ease); }
}

/* facts */
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); margin: 0; }
/* Stat tiles are panels read at a glance, so they are glass cards (no blur) over the mesh. */
.facts-row > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.6rem; min-width: 0; padding: clamp(1rem, 2.4vw, 1.75rem); border-radius: 20px; }
.facts-row dt { max-width: 17rem; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.facts-row dd { margin: 0; }
.num { font-size: clamp(3.25rem, 7vw, 5.5rem); line-height: 1; font-weight: 650; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }

/* mcp */
.landing .two { margin-top: 3rem; }
.tools { margin-top: 2.5rem; }
.tools summary { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.1rem; border: 1px solid hsl(var(--input)); border-radius: 999px; font-size: 0.9rem; font-weight: 520; cursor: pointer; list-style: none; transition: background-color 0.3s; }
.tools summary::-webkit-details-marker { display: none; }
.tools summary::after { content: ''; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform 0.4s var(--lp-ease); }
.tools[open] summary::after { transform: rotate(225deg); }
.tools summary:hover { background: hsl(var(--muted)); }

/* reliability: sticky heading, ruled list */
.rel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.rel-head { position: sticky; top: 7rem; }
.rel-list article { position: relative; padding-block: 2rem; }
.rel-list article:first-child { padding-top: 0; }
.rel-list article + article::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: hsl(var(--border)); transform-origin: 0 50%; }
.rel-list h3 { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; }
.rel-list p { margin: 0; max-width: 36rem; color: hsl(var(--muted-foreground)); }

/* networks */
.net-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.net-grid h3 { margin: 0 0 1.25rem; }
.net-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.4rem; }
.net-rows li { display: flex; gap: 1rem; align-items: flex-start; }
.net-rows .brand-ico { width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; color: hsl(var(--foreground)); }
.net-rows strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.net-rows span { display: block; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.net-off dl { display: grid; gap: 1.4rem; margin: 0; }
.net-off dt { font-weight: 600; letter-spacing: -0.01em; }
.net-off dd { margin: 0.2rem 0 0; font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }

/* run */
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.run-grid pre { margin: 0; font-size: 0.8125rem; padding: 1.4rem 1.5rem; border-radius: 16px; }

/* closing card */
.final-card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 7vw, 5.5rem); border-radius: 28px; }
.final-card h2 { margin: 0; max-width: 16ch; font-size: clamp(2.1rem, 5.4vw, 4.25rem); line-height: 1.04; font-weight: 650; letter-spacing: -0.045em; text-wrap: balance; }
.final-card p { margin: 1rem 0 0; max-width: 32rem; color: hsl(var(--muted-foreground)); font-size: 1.0625rem; }
.final-bg { position: absolute; inset: 0; z-index: -1; }

/* footer */
.lp-footer { margin-top: var(--lp-pad); padding-block: 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); overflow: hidden; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.lp-wrap.lp-footer-inner { padding-top: 0; }
.lp-footer-word { margin: 0 0 1rem; font-size: clamp(4.5rem, 19vw, 17rem); line-height: 0.82; font-weight: 700; letter-spacing: -0.07em; user-select: none; white-space: nowrap; }
/* Drawn as pseudo-element content: it is decoration, so it is not text and carries no contrast requirement. */
.lp-footer-word::before { content: 'Steerpost'; color: hsl(var(--foreground) / 0.06); }
.lp-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.lp-footer-row p { margin: 0; max-width: 34rem; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.lp-footer a { color: hsl(var(--muted-foreground)); }
.lp-footer a:hover { color: hsl(var(--foreground)); }

/* ---------- small screens ---------- */
@media (max-width: 56rem) {
  .story-grid, .rel-grid, .net-grid, .run-grid { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; padding-block: 1.25rem 2rem; }
  .step-shot { display: block; }
  .step-shot picture { border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-pop); }
  .steps-list::after { display: none; }
  .rel-head { position: static; }
  .look-grid { grid-template-columns: minmax(0, 1fr); }
  .ls-a, .ls-b, .ls-c { grid-column: 1; margin-top: 0; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .landing .cta .btn-pill { flex: 1 1 100%; justify-content: space-between; }
  .landing .cta .btn-pill-ghost { justify-content: center; }
  .final-card { border-radius: 20px; }
  .facts-row { gap: 0.75rem; }
  .net-rows .brand-ico { width: 1.5rem; height: 1.5rem; }
}
@media (max-width: 23.99rem) { .strip-head { gap: 0; } .btn-pill { font-size: 0.9rem; } .btn-pill-ghost { padding-inline: 1rem; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee li[aria-hidden='true'] { display: none; }
  .story-shot, .step h3 { transition: none; }
  .story-shot { transform: none; }
}

html.motion-off { scroll-behavior: auto; }

/* ---------- languages (D-021) ----------
   The nav menu is a <details>; the footer repeats the choices as plain links. Everything is nowrap and uses logical
   properties, so it works at 320 px and in right-to-left pages. */
.lang { position: static; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.25rem; padding-inline: 0.7rem; border-radius: 999px; color: hsl(var(--muted-foreground)); font-size: 0.9rem; white-space: nowrap; cursor: pointer; list-style: none; transition: color 0.3s, background-color 0.3s; }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang[open] .lang-btn { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.lang-ico { flex: none; }
.lang-list { position: absolute; inset-inline-end: 0.5rem; top: calc(100% + 0.5rem); z-index: 5; margin: 0; padding: 0.4rem; list-style: none; min-width: 12.5rem; max-width: calc(100vw - 1.5rem); max-height: min(70vh, 28rem); overflow-y: auto;
  border: 1px solid hsl(var(--border)); border-radius: 18px; background: hsl(var(--background)); box-shadow: var(--shadow-pop); }
.lang-list a { display: flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.8rem; border-radius: 12px; color: hsl(var(--foreground)); font-size: 0.9375rem; white-space: nowrap; text-decoration: none; }
.lang-list a:hover { background: hsl(var(--muted)); }
.lang-list a[aria-current='page'] { background: hsl(var(--accent-soft)); color: hsl(var(--accent)); font-weight: 600; }
@media (pointer: coarse), (max-width: 40rem) { .lang-btn { height: 2.75rem; min-width: 2.75rem; justify-content: center; } .lang-list a { min-height: 2.75rem; } }
/* The globe alone is enough on phones; longer translations also give up the Docs link (still in the hero and the footer). */
/* Visually hidden, still read: the accessible name of the language button is "Language: <code>" (WCAG 2.5.3). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 29.99rem) { .lang-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .lang-btn { padding-inline: 0.5rem; } }
@media (max-width: 29.99rem) { html:not(:lang(en)) .lp-nav .nav > a:not(.btn).hide-xs { display: none; } }

.lp-footer-text { display: grid; gap: 0.75rem; max-width: 34rem; }
.lp-footer-text p { margin: 0; }
.lp-beta { padding: 0.5rem 0.75rem; border: 1px dashed hsl(var(--input)); border-radius: 10px; font-size: 0.8125rem; line-height: 1.5; }
.lp-beta strong { color: hsl(var(--foreground)); font-weight: 600; }
.lp-langs { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }
.lp-langs ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.lp-langs a { display: inline-flex; align-items: center; min-height: 2.25rem; white-space: nowrap; }
.lp-langs a[aria-current='page'] { color: hsl(var(--foreground)); font-weight: 600; text-decoration: none; }
@media (pointer: coarse), (max-width: 40rem) { .lp-langs a { min-height: 2.75rem; } }

/* First-visit suggestion: a quiet card at the bottom, never a modal, never a redirect. */
.lang-suggest { position: fixed; inset-inline: 0; bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1rem; width: max-content; max-width: calc(100% - 1.5rem); margin-inline: auto; padding: 0.35rem; padding-inline: 1.1rem 0.4rem;
  border: 1px solid hsl(var(--border)); border-radius: 18px; background: hsl(var(--background)); box-shadow: var(--shadow-pop); font-size: 0.9375rem; }
.lang-suggest p { margin: 0; color: hsl(var(--foreground)); }
.lang-suggest a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1rem; border-radius: 999px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); font-weight: 560; white-space: nowrap; text-decoration: none; }
.lang-suggest button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.lang-suggest button:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
@media (prefers-reduced-motion: no-preference) { .lang-suggest { animation: fade-up 0.6s var(--lp-ease) 0.4s both; } }

/* ---------- scripts without spaces or with joining letters ----------
   Japanese, Chinese and Arabic get a self-hosted Noto face after Onest (D-024; assets/fonts/<locale>.css, linked only from
   that page), with the system faces behind it. Tight negative tracking is a Latin display habit: it breaks Arabic joins and
   crowds CJK glyphs, so it is switched off wherever it is set. */
html:lang(ja) { --font-script: 'Noto Sans JP Variable', 'Hiragino Sans', 'Yu Gothic UI', Meiryo; }
html:lang(zh) { --font-script: 'Noto Sans SC Variable', 'PingFang SC', 'Microsoft YaHei UI'; }
html:lang(ar) { --font-script: 'Noto Sans Arabic Variable', 'Geeza Pro', 'Segoe UI', Tahoma; }
html:lang(ja) body { line-break: strict; word-break: auto-phrase; line-height: 1.75; }
html:lang(zh) body { line-break: strict; line-height: 1.75; }
html:lang(ar) body { line-height: 1.8; }
html:lang(ja) :is(h1, h2, h3, .lp-h2, .hero-title, .num, .step h3, .rel-list h3, .final-card h2),
html:lang(zh) :is(h1, h2, h3, .lp-h2, .hero-title, .num, .step h3, .rel-list h3, .final-card h2),
html:lang(ar) :is(body, h1, h2, h3, .lp-h2, .hero-title, .num, .step h3, .rel-list h3, .final-card h2, .btn-pill, .marquee li) { letter-spacing: 0; }
html:lang(ja) :is(.hero-title, .lp-h2, .final-card h2, .step h3), html:lang(zh) :is(.hero-title, .lp-h2, .final-card h2, .step h3) { line-height: 1.3; font-weight: 700; }
html:lang(ar) :is(.hero-title, .lp-h2, .final-card h2, .step h3) { line-height: 1.35; }
/* Long unbroken tokens (a URL, a key) may break anywhere instead of widening the page. */
.landing :is(p, li, dd, dt, h1, h2, h3, figcaption, summary) { overflow-wrap: break-word; }
/* Hanging punctuation and phrase-aware wrapping where the browser supports them; harmless elsewhere. */
html:lang(ja) :is(.lead, .lp-sub, .step p, .rel-list p, .final-card p) { text-wrap: pretty; }
/* A CJK phrase cannot break inside a word, so the phone headline is a little smaller than the Latin one. */
@media (max-width: 61.99rem) {
  html:lang(ja) .hero-title, html:lang(zh) .hero-title { font-size: clamp(2rem, 9.2vw, 3.5rem); }
}

/* ---------- right-to-left (ar) ----------
   Layout follows `dir` through grid, flex and the logical properties above. What is directional on purpose is mirrored
   here; code, the route diagram and the logo marquee stay left-to-right because they show Latin names and a flow. */
.landing :is(pre, code) { direction: ltr; unicode-bidi: isolate; text-align: left; }
.landing .route { direction: ltr; }
html[dir='rtl'] .btn-ico svg { transform: scaleX(-1); }
html[dir='rtl'] .btn-pill:hover .btn-ico { transform: translate(-2px, -1px) scale(1.06); }
html[dir='rtl'] .stage-fx { -webkit-mask-image: linear-gradient(270deg, transparent 0, transparent 6%, #000 24%, #000 92%, transparent), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(270deg, transparent 0, transparent 6%, #000 24%, #000 92%, transparent), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent); }
@media (min-width: 62rem) {
  html[dir='rtl'] .stage-fx { inset: -14% -24% -20% -8%; }
  html[dir='rtl'] .stage .frame { transform: rotateY(calc(7deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))); }
}

/* ---------- glass over the mesh (D-024, BRAND section 4) ----------
   The values are the app's: assets/tokens.css is a copy of frontend/src/styles/tokens.css, so the glass, mesh and blur tokens
   are shared and never restated here. Chrome (the nav) and the hero frame blur; cards are translucent without blur. Docs
   pages and long text use style.css and stay solid. The landing shows the mesh at full strength (the app uses less; the
   contrast test in scripts/glass.test.mjs holds text on the plain mesh to AA at this value). */
body.landing { --mesh-strength: 1; background: hsl(var(--canvas)); }
body.landing::before, body.landing::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.landing::before { opacity: var(--mesh-strength);
  background: radial-gradient(42rem 32rem at 8% 0%, var(--mesh-1), transparent 70%), radial-gradient(36rem 30rem at 92% 18%, var(--mesh-3), transparent 70%), radial-gradient(40rem 34rem at 60% 100%, var(--mesh-2), transparent 70%); }
body.landing::after { opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.glass-chrome, .glass-card { border: 1px solid var(--glass-border); }
.glass-chrome { background-color: var(--glass-chrome); -webkit-backdrop-filter: blur(var(--glass-blur-chrome)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur-chrome)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-highlight), var(--shadow-glass); }
/* The floating nav sits over moving headings and code, where 0.66 alpha lets large text read through even under the blur:
   it gets the page background at 0.9 instead (BRAND §4: text never shows through chrome). */
:where(.lp-nav-bar).glass-chrome { background-color: hsl(var(--background) / 0.9); }
.glass-card { background-color: var(--glass-card); box-shadow: var(--glass-highlight), var(--shadow-glass); }
/* The hero frame is the one card that blurs (16 px): it sits over the flow canvas. */
.glass-hero { -webkit-backdrop-filter: blur(var(--glass-blur-hero)) saturate(var(--glass-saturate)); backdrop-filter: blur(var(--glass-blur-hero)) saturate(var(--glass-saturate)); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-chrome { background-color: hsl(var(--surface)); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-chrome, .glass-card { background-color: hsl(var(--background)); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.landing { background: hsl(var(--background)); }
  body.landing::before, body.landing::after { display: none; }
}
@media (forced-colors: active) {
  .glass-chrome, .glass-card { background-color: Canvas; border-color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.landing::before, body.landing::after { display: none; }
}
