/* ==========================================================================
   Surface: marketing landing (index.html #marketing.landing-v2) + auth dialog
   --------------------------------------------------------------------------
   Owner: landing agent. Markup is static in index.html; behaviour lives in
   landing.js (claim, stats, showcase, rail) and auth-widget.js (auth tabs,
   inline errors, Telegram states).

   Hooks
     html[data-route]  landing | profile | app      (landing-boot.js, landing.js)
     html[data-boot]   fast | hold                  (skip the splash on a cold landing)
     .lp-stats[data-mode]       facts | live
     .lp-pricing[data-term]     1 | 0 (lifetime)
     .lp-claim[data-state]      idle | short | invalid | checking | available |
                                paid (free 3–4 char address, sold once) |
                                taken | reserved | unknown
     .lp-card-frame[data-ready] iframe of profile-frame.html is painted
     [data-lp-off]              section far off screen (landing.js)
     .lp-tile[data-inview]      rail card on screen (phones, landing.js)
   Legacy JS hooks kept in markup: #claimName, #claimBtn, button.menu,
   [data-auth], #authDialog/#authForm/#authTitle/#forgotPassword/#googleAuth/
   #discordAuth/.telegram-login, .close (first in document = auth close).
   Rules: @layer surfaces, plain classes, --nv-* tokens, zero !important.

   r181 (unslop): a dark room at night lit by a screen and one warm ember.
   The chrome is quiet: the warm near-black ramp, hairlines, solid surfaces and
   one orange action per view. No washes, glass, glows, particles, dot grids,
   floating chips, tilt, scroll-in or loops at rest. Rich colour lives in the
   live profile renders and the badge medals only; medals move on hover.
   The address (claim fields, member cards) is the signature: mono, the host
   dim, the name bright.
   ========================================================================== */

@layer surfaces {
  /* ---- Route gating + boot ------------------------------------------------ */
  :root:is([data-route="profile"], [data-route="app"]) .landing-v2 {
    visibility: hidden;
    content-visibility: hidden; /* r180: the hidden landing is not laid out on /dashboard or a profile */
    animation: lp-route-release 0s linear 8s forwards; /* failsafe if JS never decides */
  }

  :root[data-boot="fast"] .nova-boot-splash {
    display: none;
  }

  /* r180: while the boot splash still covers a translated landing ("hold"), the page under it is not painted, so its
     translation and font swap are not layout shifts; the splash fade-out (.is-leaving) reveals it as before. */
  :root[data-boot="hold"]:has(> body > .nova-boot-splash:not(.is-leaving)) .landing-v2 {
    visibility: hidden;
  }

  /* r180: a section scrolled far off screen (landing.js sets data-lp-off) pauses its CSS animations, and its showcase
     frames leave rendering (an off-screen same-origin iframe keeps animating otherwise). */
  .landing-v2 [data-lp-off] *,
  .landing-v2 [data-lp-off] *::before,
  .landing-v2 [data-lp-off] *::after {
    animation-play-state: paused;
  }

  .landing-v2 [data-lp-off] .lp-card-frame > iframe {
    display: none;
  }

  /* r180: the dashboard sheets load on demand (boot-loader.js); the dashboard stays invisible until they apply. */
  :root:is([data-dash-css="off"], [data-dash-css="loading"]) #studio {
    visibility: hidden;
  }

  /* …and a landing it opens from stays on screen meanwhile (app.js launchStudio sets data-dash-handoff), not an empty page. */
  :root[data-dash-handoff] .landing-v2 {
    visibility: visible;
    content-visibility: visible;
    animation: none;
  }

  /* ---- Shell ---------------------------------------------------------------- */
  .landing-v2 {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--nv-bg);
    color: var(--nv-text);
    font-size: var(--nv-fs-16);
    line-height: var(--nv-lh-body);
  }

  .landing-v2 :where(h1, h2, h3) {
    text-wrap: balance;
  }

  .lp-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .lp-i {
    flex: none;
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
  }

  .lp-container {
    width: 100%;
    max-width: calc(var(--nv-w-content) + 2 * var(--nv-gutter));
    margin-inline: auto;
    padding-inline: var(--nv-gutter);
  }

  #lpMain:focus {
    outline: none;
  }

  /* ---- Navbar: a solid bar with a hairline ---------------------------------- */
  .lp-nav {
    position: fixed;
    top: max(var(--nv-space-3), env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: var(--nv-z-header);
    padding-inline: var(--nv-gutter);
    pointer-events: none;
  }

  .lp-nav-bar {
    display: flex;
    align-items: center;
    gap: var(--nv-space-4);
    max-width: 1140px;
    min-height: 60px;
    margin: 0 auto;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg);
    background: var(--nv-bg);
    pointer-events: auto;
    transition: border-color var(--nv-dur-3) var(--nv-ease);
  }

  .lp-nav[data-scrolled] .lp-nav-bar {
    border-color: var(--nv-line-strong);
  }

  .lp-nav-brand {
    flex: none;
  }

  .lp-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  .lp-nav-links a,
  .lp-sheet-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--nv-h-nav);
    padding: 0 12px;
    border-radius: var(--nv-r-control);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    font-weight: var(--nv-fw-medium);
    text-decoration: none;
    transition: color var(--nv-dur-1) var(--nv-ease), background-color var(--nv-dur-1) var(--nv-ease);
  }

  .lp-nav-links a:hover,
  .lp-sheet-links a:hover {
    background: var(--nv-surface-2);
    color: var(--nv-text);
    text-decoration: none;
  }

  .lp-nav-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--nv-space-2);
  }

  .lp-nav-actions > .small {
    --btn-h: 40px;
    --btn-px: 16px;
    font-size: var(--nv-fs-14);
  }

  .lp-menu-btn {
    display: none;
    --btn-h: 44px;
    color: var(--nv-text);
  }

  .lp-menu-btn > .lp-i {
    width: 20px;
    height: 20px;
  }

  /* Mobile sheet under the bar: solid, fades and rises a few pixels. */
  .lp-sheet {
    display: grid;
    gap: var(--nv-space-4);
    max-width: 1140px;
    margin: var(--nv-space-2) auto 0;
    padding: var(--nv-space-3);
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-xl);
    background: var(--nv-surface-1);
    box-shadow: var(--nv-shadow-3);
    pointer-events: auto;
    animation: lp-sheet-in var(--nv-dur-3) var(--nv-ease);
    /* r180: on a short screen (landscape, browser bars) the sheet scrolls by itself, so the language and
       «Войти» / «Создать страницу» stay reachable; the page under it stays put. */
    max-height: calc(100dvh - 88px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html:has(.lp-sheet:not([hidden])) {
    overflow: hidden;
  }

  .lp-sheet-links {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Rows: the sheet radius (20) minus its padding (12). */
  .lp-sheet-links a {
    display: flex;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    color: var(--nv-text);
    font-size: var(--nv-fs-16);
  }

  .lp-sheet-foot {
    display: grid;
    gap: var(--nv-space-3);
    padding: var(--nv-space-3) var(--nv-space-1) var(--nv-space-1);
    border-top: 1px solid var(--nv-line-soft);
  }

  .lp-sheet-foot > .nova-language-switcher {
    justify-self: start;
  }

  .lp-sheet-foot > .nova-language-switcher > button {
    min-height: 40px;
    padding-inline: 16px;
  }

  .lp-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--nv-space-2);
  }

  .lp-sheet-actions > button {
    --btn-h: 48px;
    --btn-px: 12px;
    white-space: nowrap;
  }

  .lp-sheet-actions > [data-lp-user] {
    grid-column: 1 / -1;
  }

  /* ---- Hero: the headline, the address claim, the live profiles under it ---- */
  .lp-hero {
    position: relative;
    isolation: isolate;
    padding-top: calc(60px + clamp(64px, 9vw, 120px));
  }

  .lp-hero-inner {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .lp-hero-title {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: var(--nv-fw-medium);
    line-height: 1.04;
    letter-spacing: -.02em;
  }

  @media (min-width: 1120px) {
    .lp-hero-title {
      letter-spacing: var(--nv-tracking-display);
    }
  }

  .lp-line {
    display: block;
  }

  .lp-hero-lead {
    max-width: 36rem;
    margin-top: var(--nv-space-6);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-18);
    line-height: 1.6;
    text-wrap: balance;
  }

  /* ---- Claim widget: the address is the signature (dim host, bright name) ----- */
  .lp-claim {
    width: min(100%, 580px);
    margin-top: var(--nv-space-8);
  }

  .lp-claim-field {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 8px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-lg);
    background: var(--nv-surface-1);
    transition: border-color var(--nv-dur-2) var(--nv-ease);
  }

  .lp-claim-field:hover {
    border-color: var(--nv-field-line-hover);
  }

  .lp-claim-field:focus-within {
    border-color: var(--nv-accent);
    box-shadow: var(--nv-field-ring);
  }

  .lp-claim[data-state="available"] .lp-claim-field {
    border-color: var(--nv-success-line);
  }

  .lp-claim:is([data-state="taken"], [data-state="invalid"], [data-state="reserved"]) .lp-claim-field {
    border-color: var(--nv-danger-line);
  }

  .lp-claim[data-state="paid"] .lp-claim-field {
    border-color: var(--nv-accent-line);
  }

  /* Focused while the address has a verdict: the halo takes its tone, not the accent. */
  .lp-claim[data-state="available"] .lp-claim-field:focus-within {
    box-shadow: 0 0 0 3px var(--nv-success-soft);
  }

  .lp-claim:is([data-state="taken"], [data-state="invalid"], [data-state="reserved"]) .lp-claim-field:focus-within {
    box-shadow: 0 0 0 3px var(--nv-danger-soft);
  }

  .lp-claim-prefix {
    flex: none;
    padding-left: 16px;
    color: var(--nv-address-host);
    font-family: var(--nv-address-font);
    font-size: var(--nv-fs-16);
    white-space: nowrap;
  }

  .lp-claim-field > input {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nv-address-name);
    font-family: var(--nv-address-font);
    font-size: var(--nv-fs-16);
    font-weight: var(--nv-fw-medium);
  }

  .lp-claim-field > input:is(:hover, :focus, :focus-visible, :user-invalid, [aria-invalid="true"]) {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
  }

  .lp-claim-field > input::placeholder {
    color: var(--nv-text-3);
  }

  .lp-claim-indicator {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 50%;
  }

  .lp-claim[data-state="checking"] .lp-claim-indicator {
    border: 2px solid var(--nv-line-strong);
    border-top-color: var(--nv-accent);
    animation: nv-spin .75s linear infinite;
  }

  .lp-claim[data-state="available"] .lp-claim-indicator {
    background: var(--nv-success);
  }

  .lp-claim[data-state="paid"] .lp-claim-indicator {
    background: var(--nv-accent);
  }

  .lp-claim:is([data-state="available"], [data-state="paid"]) .lp-claim-indicator::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--nv-bg);
    border-bottom: 2px solid var(--nv-bg);
    transform: translateY(-1px) rotate(-45deg);
  }

  .lp-claim:is([data-state="taken"], [data-state="reserved"]) .lp-claim-indicator {
    background: var(--nv-danger);
  }

  .lp-claim:is([data-state="taken"], [data-state="reserved"]) .lp-claim-indicator::after {
    content: "";
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--nv-bg);
  }

  /* Inside the field: its radius (16) minus its padding (8). */
  .lp-claim-btn {
    --btn-h: 48px;
    --btn-px: 20px;
    flex: none;
    border-radius: 8px;
    font-size: var(--nv-fs-16);
  }

  .lp-claim-btn > .lp-i {
    width: 18px;
    height: 18px;
    transition: transform var(--nv-dur-2) var(--nv-ease);
  }

  .lp-claim-btn:hover > .lp-i {
    transform: translateX(2px);
  }

  .lp-claim-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    min-height: 32px;
    margin-top: var(--nv-space-3);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    line-height: 1.4;
  }

  .lp-claim[data-state="checking"] .lp-claim-status { color: var(--nv-text-2); }
  .lp-claim[data-state="available"] .lp-claim-status { color: var(--nv-success); }
  .lp-claim[data-state="paid"] .lp-claim-status { color: var(--nv-accent-text); }
  .lp-claim:is([data-state="taken"], [data-state="invalid"], [data-state="reserved"], [data-state="short"]) .lp-claim-status { color: var(--nv-danger); }

  .lp-claim-suggest {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .lp-claim-suggest > button {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-xs);
    background: var(--nv-surface-2);
    color: var(--nv-address-name);
    font-family: var(--nv-address-font);
    font-size: var(--nv-fs-13);
    transition: border-color var(--nv-dur-1) var(--nv-ease), background-color var(--nv-dur-1) var(--nv-ease);
  }

  .lp-claim-suggest > button:hover {
    border-color: var(--nv-field-line-hover);
    background: var(--nv-surface-3);
  }

  /* The facts under the action: one quiet line (wraps on narrow screens), the live page count joins it. */
  .lp-assurances {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
    margin: var(--nv-space-1) 0 0;
    padding: 0;
    list-style: none;
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    line-height: 1.5;
  }

  .lp-assurances > li {
    display: block;
  }

  .lp-proof > b {
    color: var(--nv-text-2);
    font-family: var(--nv-font-figure);
    font-weight: var(--nv-fw-medium);
    font-variant-numeric: tabular-nums;
  }

  /* ---- Live showcase: four real profile renders in a still fan ---------------- */
  .lp-stage {
    position: relative;
    margin-top: clamp(48px, 6vw, 80px);
  }

  .lp-stage-cards {
    --w-front: 268px;
    --w-back: 228px;
    --x-front: 148px;
    --x-back: 404px;
    position: relative;
    max-width: 1240px;
    height: calc(var(--w-front) * 1.64 + 112px);
    margin: 0 auto;
  }

  .lp-card {
    --x: 0px;
    --y: 0px;
    --rot: 0deg;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: var(--w-front);
    aspect-ratio: 390 / 640;
    margin: 0;
    transform: translate(calc(-50% + var(--x)), var(--y)) rotate(var(--rot));
  }

  .lp-card--a { --x: calc(var(--x-back) * -1); --y: 64px; --rot: -9deg; width: var(--w-back); }
  .lp-card--b { --x: calc(var(--x-front) * -1); --y: 16px; --rot: -3.5deg; z-index: 2; }
  .lp-card--c { --x: var(--x-front); --y: 0px; --rot: 3.5deg; z-index: 3; }
  .lp-card--d { --x: var(--x-back); --y: 72px; --rot: 9deg; width: var(--w-back); }

  /* A real object over the page: hairline and a soft neutral shadow, nothing coloured. */
  .lp-card-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-xl);
    background: var(--nv-surface-1);
    box-shadow: var(--nv-shadow-3);
  }

  .lp-card-frame > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    max-width: none;
    height: 640px;
    border: 0;
    transform: scale(var(--scale, .68));
    transform-origin: 0 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--nv-dur-4) var(--nv-ease);
  }

  .lp-card-frame[data-ready] > iframe {
    opacity: 1;
  }

  .lp-card-skeleton {
    position: absolute;
    inset: 0;
    display: block;
    background:
      radial-gradient(circle at 50% 30%, var(--nv-surface-3) 0 34px, transparent 35px),
      linear-gradient(var(--nv-surface-3), var(--nv-surface-3)) 50% 46% / 46% 14px no-repeat,
      linear-gradient(var(--nv-surface-2), var(--nv-surface-2)) 50% 53% / 62% 10px no-repeat,
      linear-gradient(var(--nv-surface-2), var(--nv-surface-2)) 50% 64% / 70% 40px no-repeat,
      linear-gradient(var(--nv-surface-2), var(--nv-surface-2)) 50% 73% / 70% 40px no-repeat;
    transition: opacity var(--nv-dur-4) var(--nv-ease);
  }

  .lp-card-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--nv-text) 5%, transparent) 50%, transparent 70%) 0 0 / 250% 100%;
    animation: nv-shimmer 1.6s var(--nv-ease) infinite;
  }

  .lp-card-frame[data-ready] > .lp-card-skeleton {
    opacity: 0;
  }

  /* r180: a faded-out skeleton stops shimmering. */
  .lp-card-frame[data-ready] > .lp-card-skeleton::after {
    animation-play-state: paused;
  }

  /* The fan runs into the page: the last third fades into the canvas. */
  .lp-stage-cards::after {
    content: "";
    position: absolute;
    left: -50vw;
    right: -50vw;
    bottom: 0;
    z-index: 5;
    height: 220px;
    background: linear-gradient(to bottom, transparent, var(--nv-bg) 78%);
    pointer-events: none;
  }

  .lp-stage-note {
    position: relative;
    z-index: 6;
    margin: -40px var(--nv-gutter) 0;
    color: var(--nv-text-3);
    font-size: var(--nv-fs-14);
    text-align: center;
    text-wrap: balance;
  }

  /* ---- Stats strip: numbers only ----------------------------------------------- */
  .lp-stats {
    margin-top: clamp(56px, 7vw, 96px);
  }

  .lp-stats-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nv-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-stats[data-mode="facts"] .lp-stats-live,
  .lp-stats[data-mode="live"] .lp-stats-facts {
    display: none;
  }

  .lp-stat {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg);
    background: var(--nv-surface-1);
  }

  .lp-stat > b {
    color: var(--nv-text);
    font-family: var(--nv-font-figure);
    font-size: var(--nv-fs-36);
    font-weight: var(--nv-fw-medium);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }

  .lp-stat > span {
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
  }

  /* ---- Sections ---------------------------------------------------------------- */
  .lp-section {
    position: relative;
    padding-top: var(--nv-space-section);
  }

  .lp-head {
    display: grid;
    justify-items: center;
    gap: var(--nv-space-3);
    max-width: 780px;
    margin: 0 auto clamp(36px, 5vw, 64px);
    text-align: center;
  }

  /* Section titles: -.01em while under 40px, -.02em from 40px (≈1180px wide). */
  .lp-head > h2,
  .lp-head--split h2 {
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: var(--nv-fw-medium);
    line-height: 1.1;
    letter-spacing: var(--nv-tracking-tight);
  }

  @media (min-width: 1180px) {
    .lp-head > h2,
    .lp-head--split h2 {
      letter-spacing: -.02em;
    }
  }

  .lp-head > p,
  .lp-head > div > p {
    max-width: 62ch;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-18);
    line-height: 1.6;
  }

  .lp-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--nv-space-5);
    max-width: none;
    text-align: left;
  }

  .lp-head--split > div {
    display: grid;
    justify-items: start;
    gap: var(--nv-space-3);
  }

  .lp-head--split > .secondary > .lp-i {
    width: 16px;
    height: 16px;
  }

  /* ---- Bento: features ------------------------------------------------------------ */
  .lp-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nv-space-4);
  }

  .lp-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--nv-space-5);
    min-width: 0;
    min-height: 260px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-xl);
    background: var(--nv-surface-1);
    color: var(--nv-text);
    transition: border-color var(--nv-dur-2) var(--nv-ease);
  }

  a.lp-tile:hover {
    border-color: var(--nv-line-strong);
    color: var(--nv-text);
    text-decoration: none;
  }

  .lp-tile-copy {
    display: grid;
    gap: var(--nv-space-2);
  }

  .lp-tile-copy h3 {
    font-size: var(--nv-fs-22);
    font-weight: var(--nv-fw-medium);
    line-height: 1.25;
    letter-spacing: var(--nv-tracking-tight);
  }

  .lp-tile-copy p {
    max-width: 52ch;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    line-height: 1.6;
  }

  .lp-tile--fx { grid-column: span 2; grid-row: span 2; }
  .lp-tile--music { grid-column: span 2; }
  .lp-tile--analytics { grid-column: span 2; }
  .lp-tile--leaderboard {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: var(--nv-space-8);
    min-height: 0;
  }

  /* Features rail controls: phones only (see the phone block). */
  .lp-rail-nav {
    display: none;
  }

  /* Effects playground: the live renderer is a moment, the chips around it are quiet. */
  .lp-fx-demo {
    display: grid;
    flex: 1;
    grid-template-rows: minmax(260px, 1fr) auto;
    gap: var(--nv-space-4);
  }

  .lp-fx-screen {
    position: relative;
    min-height: 260px;
  }

  .lp-card-frame--wide {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: var(--nv-r-md);
    box-shadow: none;
  }

  .lp-card-frame--wide > iframe {
    width: var(--frame-w, 720px);
    height: var(--frame-h, 460px);
  }

  .lp-fx-live {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-xs);
    background: var(--nv-bg);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-12);
    font-weight: var(--nv-fw-medium);
  }

  .lp-fx-live > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nv-success);
  }

  .lp-fx-controls {
    display: grid;
    gap: var(--nv-space-2);
  }

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

  .lp-chip-group > .chip {
    gap: 4px;
    padding-inline: 12px;
  }

  /* The chosen effect: the system toggle-chip selection (role=radio, so aria-checked): a surface step with a
     brighter hairline, no accent tint (the live preview beside it carries the colour). */
  .lp-chip-group > .chip[aria-checked="true"] {
    border-color: var(--nv-field-line-hover);
    background: var(--nv-surface-3);
    color: var(--nv-text);
  }

  .lp-i--premium {
    width: 16px;
    height: 16px;
    color: var(--nv-premium);
  }

  /* Music player mock */
  .lp-player {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px 16px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-md);
    background: var(--nv-surface-2);
  }

  .lp-player-cover {
    position: relative;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
  }

  .lp-player-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lp-player-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .lp-player-meta > b {
    font-size: var(--nv-fs-16);
    font-weight: var(--nv-fw-medium);
  }

  .lp-player-meta > small {
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
  }

  .lp-player-bar {
    position: relative;
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: var(--nv-r-round);
    background: var(--nv-surface-4);
  }

  .lp-player-bar > i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: var(--nv-accent);
  }

  .lp-player-time {
    display: flex;
    justify-content: space-between;
    color: var(--nv-text-3);
    font-family: var(--nv-font-mono);
    font-size: var(--nv-fs-12);
    font-variant-numeric: tabular-nums;
  }

  .lp-player-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--nv-text-2);
  }

  .lp-player-controls > .lp-i {
    width: 20px;
    height: 20px;
  }

  /* The play key is a light disc (the elapsed bar above it is the tile's one orange). */
  .lp-player-play {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nv-text);
    color: var(--nv-bg);
  }

  .lp-player-play > .lp-i {
    width: 20px;
    height: 20px;
    margin-left: 2px;
  }

  /* Level meter: still bars of different heights. */
  .lp-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
  }

  .lp-eq > i {
    width: 3px;
    height: 100%;
    border-radius: 1px;
    background: var(--nv-text-3);
    transform-origin: bottom;
  }

  .lp-eq > i:nth-child(1) { transform: scaleY(.5); }
  .lp-eq > i:nth-child(2) { transform: scaleY(1); }
  .lp-eq > i:nth-child(3) { transform: scaleY(.625); }
  .lp-eq > i:nth-child(4) { transform: scaleY(.75); }

  /* Discord presence mock */
  .lp-presence {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px 16px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-md);
    background: var(--nv-surface-2);
  }

  .lp-presence-avatar {
    position: relative;
    flex: none;
  }

  .lp-presence-avatar > img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .lp-presence-avatar > i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--nv-surface-2);
    border-radius: 50%;
    background: var(--nv-success);
  }

  .lp-presence-body {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .lp-presence-body > b {
    font-size: var(--nv-fs-14);
  }

  .lp-presence-body > small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
  }

  .lp-presence-body > small > .lp-i {
    width: 16px;
    height: 16px;
    color: var(--nv-text-3);
  }

  .lp-presence-time {
    color: var(--nv-text-3);
    font-family: var(--nv-font-mono);
    font-size: var(--nv-fs-12);
    font-variant-numeric: tabular-nums;
  }

  /* Medal rows */
  .lp-medal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
  }

  /* Analytics chart: one orange line over a quiet grid. */
  .lp-chart {
    display: grid;
    gap: var(--nv-space-3);
    margin-top: auto;
  }

  .lp-chart-svg {
    width: 100%;
    height: 120px;
    overflow: visible;
  }

  .lp-chart-grid {
    fill: none;
    stroke: var(--nv-line);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
  }

  .lp-chart-line {
    fill: none;
    stroke: var(--nv-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .lp-chart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-chart-tags > li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-xs);
    background: var(--nv-surface-2);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
  }

  .lp-chart-tags .lp-i {
    width: 16px;
    height: 16px;
    color: var(--nv-text-3);
  }

  /* Domain bar */
  .lp-domain-demo {
    display: grid;
    gap: 8px;
    margin-top: auto;
  }

  .lp-dns {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-dns > li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--nv-line);
    border-radius: 8px;
    background: var(--nv-surface-2);
    font-family: var(--nv-font-mono);
    font-size: var(--nv-fs-12);
  }

  .lp-dns b {
    color: var(--nv-text-3);
    font-weight: var(--nv-fw-medium);
  }

  .lp-dns span {
    overflow: hidden;
    color: var(--nv-text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lp-dns .lp-i {
    width: 16px;
    height: 16px;
    color: var(--nv-success);
  }

  .lp-urlbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-control);
    background: var(--nv-field);
    font-family: var(--nv-font-mono);
    font-size: var(--nv-fs-14);
  }

  .lp-urlbar > .lp-i {
    width: 16px;
    height: 16px;
    color: var(--nv-text-3);
  }

  .lp-urlbar > span:first-of-type {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Certificate status: quiet meta with a status dot, not a tinted pill. */
  .lp-urlbar-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    color: var(--nv-text-3);
    font-size: var(--nv-fs-12);
  }

  .lp-urlbar-ok > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nv-success);
  }

  /* Template swatches: three still cards (their colour is the real avatars). */
  .lp-swatches {
    position: relative;
    height: 96px;
    margin-top: auto;
  }

  .lp-swatch {
    position: absolute;
    bottom: 0;
    display: grid;
    align-content: end;
    gap: 4px;
    width: 88px;
    height: 88px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-md);
    background: var(--nv-surface-3) center / cover no-repeat;
    box-shadow: var(--nv-shadow-2);
  }

  .lp-swatch > i,
  .lp-swatch > b {
    display: block;
    height: 4px;
    border-radius: var(--nv-r-round);
    background: color-mix(in srgb, var(--nv-text) 80%, transparent);
  }

  .lp-swatch > b {
    width: 60%;
    background: color-mix(in srgb, var(--nv-text) 45%, transparent);
  }

  .lp-swatch--1 { left: 0; background-image: url("/assets/landing/avatar-frost.svg"); transform: rotate(-8deg); }
  .lp-swatch--2 { left: 64px; z-index: 1; background-image: url("/assets/landing/avatar-kira.svg"); transform: translateY(-8px); }
  .lp-swatch--3 { left: 128px; background-image: url("/assets/landing/avatar-mint.svg"); transform: rotate(8deg); }

  /* Leaderboard banner */
  .lp-tile--leaderboard > .lp-tile-copy {
    flex: 1;
  }

  .lp-podium {
    display: flex;
    flex: none;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-podium > li {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .lp-podium > li:nth-child(1) { order: 2; }
  .lp-podium > li:nth-child(2) { order: 1; }
  .lp-podium > li:nth-child(3) { order: 3; }

  .lp-podium-face {
    width: 48px;
    height: 48px;
    border: 2px solid var(--nv-surface-1);
    border-radius: 50%;
    background: var(--nv-surface-3) center / cover no-repeat;
    box-shadow: 0 0 0 1px var(--nv-line-strong);
  }

  /* First place: the one accent ring in the tile. */
  .lp-podium > li:nth-child(1) .lp-podium-face {
    width: 64px;
    height: 64px;
    box-shadow: 0 0 0 2px var(--nv-accent);
  }

  .lp-face--1 { background-image: url("/assets/landing/avatar-kira.svg"); }
  .lp-face--2 { background-image: url("/assets/landing/avatar-wave.svg"); }
  .lp-face--3 { background-image: url("/assets/landing/avatar-frost.svg"); }

  .lp-podium-bar {
    display: block;
    width: 80px;
    height: 56px;
    border: 1px solid var(--nv-line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--nv-surface-2);
  }

  .lp-podium > li:nth-child(1) .lp-podium-bar {
    height: 88px;
    background: var(--nv-surface-3);
  }

  .lp-podium > li:nth-child(3) .lp-podium-bar {
    height: 40px;
  }

  .lp-podium-rank {
    order: 3;
    color: var(--nv-text-3);
    font-family: var(--nv-font-mono);
    font-size: var(--nv-fs-12);
    font-weight: var(--nv-fw-medium);
  }

  .lp-podium > li:nth-child(1) .lp-podium-rank {
    color: var(--nv-accent-text);
  }

  .lp-podium-face { order: 1; }
  .lp-podium-bar { order: 2; }

  .lp-tile-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-control);
    background: var(--nv-surface-2);
    color: var(--nv-text);
    font-size: var(--nv-fs-14);
    font-weight: var(--nv-fw-medium);
    transition: border-color var(--nv-dur-2) var(--nv-ease), background-color var(--nv-dur-2) var(--nv-ease);
  }

  .lp-tile-link > .lp-i {
    width: 16px;
    height: 16px;
  }

  .lp-tile--leaderboard:hover .lp-tile-link {
    border-color: var(--nv-field-line-hover);
    background: var(--nv-surface-3);
  }

  /* ---- Badges showcase: the medals are the moment ----------------------------- */
  .lp-badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nv-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-badge {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 4px;
    padding: 32px 20px 24px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg);
    background: var(--nv-surface-1);
    text-align: center;
    transition: border-color var(--nv-dur-2) var(--nv-ease);
  }

  .lp-badge:hover {
    border-color: var(--nv-line-strong);
  }

  .lp-medal {
    position: relative;
    display: inline-grid;
    place-items: center;
  }

  .lp-badge > :first-child {
    margin-bottom: 12px;
  }

  .lp-badge > b {
    font-size: var(--nv-fs-16);
    font-weight: var(--nv-fw-medium);
  }

  .lp-badge > span:last-child {
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
    line-height: 1.5;
  }

  .lp-badges-note {
    margin-top: var(--nv-space-6);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-14);
    text-align: center;
    text-wrap: balance;
  }

  /* Medals hold still at rest: badges-174.css loops them only on a public profile or inside .nb-live, and plays
     them on hover or focus of the medal or of the link that holds it (a member card). A badge card under the
     pointer gives its medal the same single light sweep. */
  @media (prefers-reduced-motion: no-preference) {
    .lp-badge:hover .nb-medal.nb-v2::after {
      animation: nbV2SweepOnce .9s var(--nv-ease) both;
    }
  }

  /* ---- Community ---------------------------------------------------------------- */
  .lp-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--nv-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-member {
    --m-accent: var(--nv-accent);
    --m-bg: var(--nv-surface-2);
    position: relative;
    display: grid;
    gap: 12px;
    padding: 0 20px 20px;
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg);
    background: var(--nv-surface-1);
    color: var(--nv-text);
    text-decoration: none;
    transition: border-color var(--nv-dur-2) var(--nv-ease);
  }

  .lp-member:hover {
    border-color: var(--nv-line-strong);
    color: var(--nv-text);
    text-decoration: none;
  }

  /* The owner's own colours as a quiet field: their page background with a 14% tint of their colour (a 32% mix
     read as a muddy slab, like an image that failed to load). No upload is fetched for it: backgrounds are full
     size (up to 5 MB, often animated), too heavy for six 88px strips on a phone. */
  .lp-member-banner {
    height: 88px;
    margin: 0 -20px;
    background: color-mix(in srgb, var(--m-accent) 14%, var(--m-bg));
  }

  .lp-member-avatar {
    width: 64px;
    height: 64px;
    margin-top: -40px;
    border: 3px solid var(--nv-surface-1);
    border-radius: 50%;
    background: var(--nv-surface-3);
    object-fit: cover;
  }

  .lp-member-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .lp-member-name > b {
    overflow: hidden;
    font-size: var(--nv-fs-18);
    font-weight: var(--nv-fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lp-member-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
  }

  .lp-member-meta > .nv-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lp-member-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--nv-font-figure);
    font-variant-numeric: tabular-nums;
  }

  .lp-member-views > .lp-i {
    width: 16px;
    height: 16px;
  }

  /* ---- Pricing ---------------------------------------------------------------- */
  .lp-term {
    display: flex;
    justify-content: center;
    margin-bottom: var(--nv-space-8);
  }

  .lp-term-switch > button {
    min-height: 40px;
    padding: 8px 16px;
    font-size: var(--nv-fs-14);
  }

  /* «как 2,5 года»: quiet text in the positive tone (as on the Premium page), not a pill. */
  .lp-save {
    color: var(--nv-success);
    font-size: var(--nv-fs-12);
    font-weight: var(--nv-fw-regular);
  }

  [data-term-show] {
    display: none;
  }

  .lp-pricing[data-term="1"] [data-term-show="1"],
  .lp-pricing[data-term="0"] [data-term-show="0"] {
    display: inline;
  }

  .lp-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--nv-space-5);
    max-width: 940px;
    margin: 0 auto;
  }

  .lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--nv-space-5);
    min-width: 0;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-xl);
    background: var(--nv-surface-1);
  }

  /* Premium comes first in the DOM (phones read it first); two columns keep Free left, Premium right. */
  .lp-plan--free {
    grid-row: 1;
    grid-column: 1;
  }

  .lp-plan--premium {
    grid-row: 1;
    grid-column: 2;
    border-color: var(--nv-accent-line);
  }

  /* A quiet tag: neutral text and hairline; only the crown carries the Premium ink. */
  .lp-plan-flag {
    position: absolute;
    top: clamp(24px, 3vw, 32px);
    right: clamp(24px, 3vw, 32px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-xs);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-12);
    font-weight: var(--nv-fw-medium);
  }

  .lp-plan-flag > .lp-i {
    width: 16px;
    height: 16px;
    color: var(--nv-premium);
  }

  .lp-plan-head {
    display: grid;
    gap: 8px;
  }

  .lp-plan--premium .lp-plan-head {
    padding-right: 120px;
  }

  .lp-plan-head > h3 {
    font-size: var(--nv-fs-22);
    font-weight: var(--nv-fw-medium);
  }

  .lp-plan-head > p {
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    line-height: 1.6;
  }

  .lp-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }

  /* Prices take the figure face (Onest, tabular), as on the Premium page: «$3.99» keeps its period. */
  .lp-plan-price > b {
    font-family: var(--nv-font-figure);
    font-size: var(--nv-fs-48);
    font-weight: var(--nv-fw-medium);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }

  .lp-plan-price > span {
    color: var(--nv-text-2);
    font-size: var(--nv-fs-16);
  }

  .lp-plan-sub {
    margin-top: calc(var(--nv-space-3) * -1);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
  }

  .lp-plan-sub.lp-plan-sub--muted {
    color: var(--nv-text-3);
  }

  /* One-line renewal note, a quiet hint: the full explanation is the FAQ answer it opens (#faqRenewal). */
  .lp-plan-sub-link {
    color: var(--nv-text-3);
    text-decoration: underline dotted;
    text-decoration-color: var(--nv-line-strong);
    text-underline-offset: 3px;
  }

  .lp-plan-sub-link:hover {
    color: var(--nv-text);
  }

  .lp-plan-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--nv-text);
    font-size: var(--nv-fs-14);
    line-height: 1.45;
  }

  .lp-plan-list > li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .lp-plan-list .lp-i {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--nv-text-3);
  }

  .lp-plan-cta {
    width: 100%;
    margin-top: auto;
  }

  .lp-plan-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: calc(var(--nv-space-2) * -1);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    text-align: center;
  }

  .lp-plan-trust > .lp-i {
    width: 16px;
    height: 16px;
  }

  .lp-paylist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: var(--nv-space-8) 0 0;
    padding: 0;
    list-style: none;
  }

  .lp-paylist > li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 12px 4px 8px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-control);
    background: var(--nv-surface-1);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
  }

  .lp-paylist img {
    width: 20px;
    height: 20px;
    padding: 2px;
    border-radius: 4px;
    background: var(--nv-text);
    object-fit: contain;
  }

  .lp-i--stars {
    width: 20px;
    height: 20px;
    padding: 2px;
    color: var(--nv-text-2);
    fill: currentColor;
    stroke: none;
  }

  /* Comparison table */
  .lp-compare {
    max-width: 940px;
    margin: clamp(48px, 6vw, 72px) auto 0;
  }

  .lp-compare-title {
    margin-bottom: var(--nv-space-5);
    font-size: var(--nv-fs-22);
    font-weight: var(--nv-fw-medium);
    text-align: center;
  }

  .lp-compare-wrap {
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-lg);
    background: var(--nv-surface-1);
  }

  .lp-compare-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: var(--nv-fs-14);
  }

  .lp-compare-table :is(th, td) {
    padding: 12px 20px;
    border-top: 1px solid var(--nv-line-soft);
    text-align: center;
    vertical-align: middle;
  }

  .lp-compare-table thead th {
    border-top: 0;
    background: var(--nv-surface-2);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
  }

  .lp-compare-table thead th:first-child {
    width: 46%;
    text-align: left;
  }

  .lp-compare-table td > .lp-i {
    display: block;
    margin-inline: auto;
  }

  /* Free reads muted, Premium bright (as on the Premium page): no accent in the table. */
  .lp-compare-table thead th:last-child {
    color: var(--nv-text);
  }

  .lp-compare-table tbody th {
    color: var(--nv-text);
    font-weight: var(--nv-fw-regular);
    text-align: left;
  }

  .lp-compare-table tbody td {
    color: var(--nv-text-2);
  }

  /* The Premium column: one neutral step lighter. */
  .lp-compare-table tbody td:last-child {
    background: color-mix(in srgb, var(--nv-text) 2%, transparent);
    color: var(--nv-text);
  }

  .lp-yes,
  .lp-no {
    width: 18px;
    height: 18px;
  }

  /* Checks take the column's text tone; a missing feature is a disabled dash. */
  .lp-yes { color: currentColor; }
  .lp-no { color: var(--nv-text-disabled); }

  .lp-compare[data-expanded="false"] tbody tr:nth-child(n + 9) {
    display: none;
  }

  .lp-compare-more {
    display: flex;
    margin: var(--nv-space-4) auto 0;
  }

  .lp-compare-more > .lp-i {
    width: 18px;
    height: 18px;
    transition: transform var(--nv-dur-3) var(--nv-ease);
  }

  .lp-compare[data-expanded="true"] .lp-compare-more > .lp-i {
    transform: rotate(180deg);
  }

  /* ---- FAQ (details.disclosure from components.css) ---------------------------- */
  .lp-faq-inner {
    max-width: calc(840px + 2 * var(--nv-gutter));
  }

  .lp-faq-list {
    display: grid;
    gap: 8px;
  }

  .lp-faq-list > details > summary {
    min-height: 56px;
    padding: 16px 48px 16px 20px;
  }

  .lp-faq-list > details > div {
    padding: 0 20px 20px;
    font-size: var(--nv-fs-16);
  }

  /* ---- Final CTA ----------------------------------------------------------------- */
  .lp-final {
    padding-block: var(--nv-space-section);
  }

  .lp-final-panel {
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--nv-space-4);
    padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 64px) clamp(32px, 5vw, 64px);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-xl);
    background: var(--nv-surface-1);
    text-align: center;
  }

  /* The flat star, as drawn: no tile, no glow, no motion. */
  .lp-final-mark {
    display: grid;
    place-items: center;
    margin-bottom: var(--nv-space-2);
  }

  .lp-final-mark > img {
    width: 40px;
    height: 40px;
  }

  .lp-final-panel > h2 {
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: var(--nv-fw-medium);
    line-height: 1.1;
    letter-spacing: var(--nv-tracking-tight);
  }

  @media (min-width: 1180px) {
    .lp-final-panel > h2 {
      letter-spacing: -.02em;
    }
  }

  .lp-final-panel > p {
    max-width: 50ch;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-18);
  }

  .lp-final .lp-claim {
    margin-top: var(--nv-space-4);
  }

  /* On the panel the field is a well, one step below it. */
  .lp-final .lp-claim-field {
    background: var(--nv-field);
  }

  /* ---- Footer ------------------------------------------------------------------- */
  .lp-footer {
    padding: clamp(48px, 6vw, 72px) 0 max(32px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--nv-line);
    background: var(--nv-bg-deep);
  }

  .lp-footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2.9fr);
    gap: var(--nv-space-12);
  }

  .lp-footer-brand {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: var(--nv-space-4);
  }

  .lp-footer-brand > p {
    max-width: 34ch;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    line-height: 1.6;
  }

  .lp-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nv-space-3);
  }

  .lp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-control);
    background: var(--nv-surface-1);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
    text-decoration: none;
  }

  .lp-status:hover {
    border-color: var(--nv-line-strong);
    color: var(--nv-text);
    text-decoration: none;
  }

  .lp-status > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nv-text-3);
  }

  .lp-status[data-state="ok"] > i {
    background: var(--nv-success);
  }

  .lp-status[data-state="down"] > i {
    background: var(--nv-danger);
  }

  .lp-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--nv-space-6);
  }

  .lp-footer-col > h2 {
    margin-bottom: var(--nv-space-3);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
    letter-spacing: 0;
  }

  .lp-footer-col > ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-footer-col :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    text-align: left;
    text-decoration: none;
  }

  .lp-footer-col :is(a, button):hover {
    color: var(--nv-text);
    text-decoration: none;
  }

  .lp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--nv-space-4);
    margin-top: var(--nv-space-12);
    padding-top: var(--nv-space-6);
    border-top: 1px solid var(--nv-line-soft);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
  }

  .lp-copy {
    font-size: var(--nv-fs-13);
  }

  .lp-partner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nv-space-3) var(--nv-space-4);
  }

  .lp-partner-icons {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .lp-partner-icons > li {
    display: grid;
    place-items: center;
    width: 36px;
    height: 28px;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-xs);
    background: var(--nv-surface-1);
  }

  .lp-partner-icons img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: .82;
    transition: opacity var(--nv-dur-2) var(--nv-ease);
  }

  .lp-partner-icons > li:hover img {
    opacity: 1;
  }

  .lp-partner-icons .lp-i--stars {
    width: 18px;
    height: 18px;
    padding: 1px;
  }

  .lp-partner-text {
    color: var(--nv-text-2);
  }

  .lp-partner-text > a {
    color: var(--nv-text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--nv-text) 30%, transparent);
    text-underline-offset: 3px;
  }

  /* ---- Auth dialog (#authDialog.lp-auth) ------------------------------------------ */
  .lp-auth {
    --dialog-w: 452px;
    text-align: left;
  }

  .lp-auth-head {
    display: grid;
    justify-items: center;
    gap: var(--nv-space-2);
    margin-bottom: var(--nv-space-5);
    text-align: center;
  }

  .lp-auth-head > .mark.big {
    margin-bottom: var(--nv-space-2);
  }

  .lp-auth-head > h2 {
    font-size: var(--nv-fs-22);
    font-weight: var(--nv-fw-medium);
    letter-spacing: var(--nv-tracking-tight);
  }

  .lp-auth-head > p {
    max-width: 34ch;
    color: var(--nv-text-2);
    font-size: var(--nv-fs-14);
    line-height: var(--nv-lh-body);
  }

  .lp-auth-tabs {
    display: flex;
    width: 100%;
    margin-bottom: var(--nv-space-5);
  }

  .lp-auth-tabs > button {
    min-height: 40px;
    font-size: var(--nv-fs-14);
  }

  .lp-auth #authForm {
    gap: var(--nv-space-4);
  }

  /* 44px rows; the text size is the system's (14px desktop, 16px on touch, components.css). */
  .lp-field > input {
    min-height: 44px;
  }

  .lp-field > .field-error::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: .15em;
  }

  .lp-auth:not([data-mode="register"]) #authPasswordHint {
    display: none;
  }

  .lp-auth #forgotPassword {
    display: flex;
    margin: var(--nv-space-3) auto 0;
  }

  .lp-auth:not([data-mode="login"]) #forgotPassword {
    display: none;
  }

  /* account-services.js appends a bottom login/register switch; the tabs replace it. */
  .lp-auth .auth-switch {
    display: none;
  }

  .lp-auth > .close {
    top: 16px;
    right: 16px;
  }

  .lp-auth > .close > .lp-i {
    width: 20px;
    height: 20px;
  }

  .lp-auth .auth-provider {
    min-height: 48px;
  }

  /* Discord and Telegram marks in the text tone (both brands allow a one-colour mark); Google keeps its own colours. */
  #discordAuth > svg,
  .telegram-provider > svg {
    fill: none;
    color: var(--nv-text);
  }

  .telegram-provider[data-state="loading"] > span,
  .telegram-provider[data-state="error"] > span {
    opacity: .55;
  }

  .telegram-provider[data-state="loading"]::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--nv-line-strong);
    border-top-color: var(--nv-accent);
    border-radius: 50%;
    animation: nv-spin .75s linear infinite;
  }

  .telegram-provider[data-state="error"] {
    border-color: var(--nv-danger-line);
  }

  .telegram-login > .lp-tg-retry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--nv-space-2);
    background: var(--nv-surface-2);
    color: var(--nv-text);
    font-size: var(--nv-fs-13);
  }

  .telegram-login > .lp-tg-retry:hover {
    background: var(--nv-surface-3);
    color: var(--nv-text);
  }

  .telegram-login > .lp-tg-retry > .lp-i {
    width: 18px;
    height: 18px;
    color: var(--nv-danger);
  }

  .lp-tg-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin-top: var(--nv-space-3);
    color: var(--nv-text-2);
    font-size: var(--nv-fs-13);
    text-align: center;
  }

  .lp-tg-status[data-tone="error"] {
    color: var(--nv-danger);
  }

  .lp-tg-status > button {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--nv-line-strong);
    border-radius: var(--nv-r-control);
    background: var(--nv-surface-2);
    color: var(--nv-text);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
  }

  .lp-tg-status > button:hover {
    background: var(--nv-surface-3);
  }

  .lp-tg-status > .spinner {
    width: 14px;
    height: 14px;
  }

  /* Activation flow (activation-flow.js) inside #authDialog */
  .lp-auth[data-mode^="activation"] :is(.lp-auth-tabs, .or, .auth-providers, .lp-tg-status, #forgotPassword) {
    display: none;
  }

  .lp-auth[data-mode^="activation"] #authForm {
    display: none;
  }

  .lp-activation,
  .lp-act-form {
    display: grid;
    gap: var(--nv-space-4);
  }

  .lp-act-form > .primary {
    --btn-h: var(--nv-h-lg);
    width: 100%;
    font-size: var(--nv-fs-16);
  }

  .lp-act-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 var(--nv-space-5);
    padding: 0;
    list-style: none;
    counter-reset: lp-step;
  }

  .lp-act-steps > li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--nv-surface-4);
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
  }

  .lp-act-steps > li[aria-current="step"],
  .lp-act-steps > li.is-done {
    border-top-color: var(--nv-accent);
    color: var(--nv-text);
  }

  .lp-act-steps > li > b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--nv-surface-3);
    font-size: var(--nv-fs-12);
  }

  .lp-act-steps > li[aria-current="step"] > b,
  .lp-act-steps > li.is-done > b {
    background: var(--nv-accent);
    color: var(--nv-on-accent);
  }

  .lp-act-actions {
    display: grid;
    gap: var(--nv-space-2);
    margin-top: var(--nv-space-2);
  }

  .lp-act-actions > :is(a, button) {
    --btn-h: 48px;
    width: 100%;
  }

  .lp-act-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin-top: var(--nv-space-3);
  }

  /* A one-time code: wide-set mono digits, so each one reads on its own. */
  .lp-act-code {
    letter-spacing: .5em;
    font-family: var(--nv-font-mono);
    font-size: 20px;
    text-align: center;
  }

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

    .lp-stage-cards {
      --w-front: 236px;
      --w-back: 200px;
      --x-front: 128px;
      --x-back: 332px;
    }
  }

  @media (max-width: 1000px) {
    .lp-nav-links,
    .lp-nav-login {
      display: none;
    }

    .lp-menu-btn {
      display: inline-flex;
    }

    .lp-nav-actions {
      margin-left: auto;
    }

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

    .lp-tile--fx { grid-row: auto; }
    .lp-tile--fx .lp-fx-demo { grid-template-rows: minmax(420px, 1fr) auto; }

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

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

    .lp-footer-top {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--nv-space-10);
    }
  }

  @media (max-width: 860px) {
    .lp-stats-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-stage-cards {
      --w-front: 212px;
      --w-back: 176px;
      --x-front: 112px;
      --x-back: 260px;
    }

    .lp-tile--leaderboard {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--nv-space-5);
    }

    .lp-plans {
      grid-template-columns: minmax(0, 1fr);
      max-width: 560px;
    }

    /* One column: DOM order, Premium first. */
    .lp-plan--free,
    .lp-plan--premium {
      grid-row: auto;
      grid-column: auto;
    }

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

  /* ---- Phones (≤ 640px) -------------------------------------------------------------
     A shorter, calmer landing (r160, r164, r166): the fan becomes a swipe row of live
     profiles, features are a swipe row (scroll-snap, the next card peeks, landing.js adds
     dots, «n / 8» and prev/next buttons), badges are a two-column list, community profiles
     swipe too, Premium comes first and Free is one compact line, the comparison opens on
     demand. One orange action on the first screen: the hero claim (guests get «Войти» in
     the bar). Desktop and tablets keep the layouts above. */
  @media (max-width: 640px) {
    /* Nav: a 52px bar, the brand at its small size. */
    .lp-nav {
      top: max(var(--nv-space-2), env(safe-area-inset-top));
    }

    .lp-nav-bar {
      min-height: 52px;
      padding: 4px 4px 4px 16px;
      gap: var(--nv-space-2);
    }

    .lp-nav-brand {
      --brand-mark: 24px;
      --brand-text: 16px;
    }

    .lp-nav-actions > .small {
      --btn-h: 44px;
      --btn-px: 16px;
    }

    .lp-nav-actions > .lp-nav-login[data-lp-guest]:not([hidden]) {
      display: inline-flex;
      border-color: var(--nv-line-strong);
      color: var(--nv-text);
    }

    .lp-nav-actions > .lp-nav-cta[data-auth="register"] {
      display: none;
    }

    /* Hero: 48px of air under the bar (52px bar + 8px top), the headline at the phone display size. */
    .lp-hero {
      padding-top: 108px;
    }

    /* Each half of the headline keeps its own line: below 390px the size follows the width (27.5px at 320),
       so «целая вселенная тебя» never breaks around a lone word or a leading dash. */
    .lp-hero-title {
      font-size: min(var(--nv-fs-display), 8.6vw);
      line-height: 1.08;
      letter-spacing: var(--nv-tracking-tight);
    }

    .lp-hero-lead {
      margin-top: var(--nv-space-3);
      font-size: var(--nv-fs-16);
      line-height: 1.5;
    }

    .lp-claim {
      margin-top: var(--nv-space-5);
    }

    .lp-claim-field {
      flex-wrap: wrap;
      min-height: 0;
    }

    .lp-claim-prefix {
      padding-left: 8px;
    }

    .lp-claim-field > input {
      min-height: 44px;
    }

    .lp-claim-btn {
      --btn-h: var(--nv-h-lg);
      flex: 1 0 100%;
      margin-top: 8px;
    }

    .lp-assurances {
      gap: 4px 16px;
    }

    /* Live profiles: a swipe row of still cards. */
    .lp-stage {
      margin-top: var(--nv-space-6);
    }

    .lp-stage-cards {
      display: flex;
      gap: 12px;
      height: auto;
      padding: 8px var(--nv-gutter) 16px;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--nv-gutter);
      scrollbar-width: none;
    }

    .lp-stage-cards::-webkit-scrollbar {
      display: none;
    }

    .lp-card,
    .lp-card--a,
    .lp-card--d {
      position: relative;
      top: auto;
      left: auto;
      flex: 0 0 min(54vw, 212px);
      width: auto;
      transform: none;
      scroll-snap-align: center;
    }

    .lp-card-frame {
      border-radius: var(--nv-r-lg);
      box-shadow: none;
    }

    .lp-stage-cards::after {
      display: none;
    }

    .lp-stage-note {
      margin-top: 0;
      font-size: var(--nv-fs-13);
    }

    /* Stats */
    .lp-stats {
      margin-top: var(--nv-space-6);
    }

    .lp-stats-list {
      gap: var(--nv-space-2);
    }

    .lp-stat {
      padding: 12px;
      border-radius: var(--nv-r-md);
    }

    .lp-stat > b {
      font-size: var(--nv-fs-28);
    }

    .lp-stat > span {
      font-size: var(--nv-fs-12);
    }

    /* Section heads */
    .lp-head {
      gap: var(--nv-space-2);
      margin-bottom: var(--nv-space-6);
    }

    .lp-head > h2,
    .lp-head--split h2 {
      font-size: var(--nv-fs-28);
      line-height: 1.15;
      letter-spacing: var(--nv-tracking-tight);
    }

    .lp-head > p,
    .lp-head > div > p {
      font-size: var(--nv-fs-16);
      line-height: 1.5;
    }

    /* Features rail */
    .lp-bento {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: min(86%, 340px);
      align-items: stretch;
      gap: 12px;
      margin-inline: calc(var(--nv-gutter) * -1);
      padding: 2px var(--nv-gutter) 4px;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--nv-gutter);
      scrollbar-width: none;
    }

    .lp-bento::-webkit-scrollbar {
      display: none;
    }

    .lp-bento:focus-visible {
      outline: 2px solid var(--nv-focus);
      outline-offset: -2px;
    }

    .lp-tile,
    .lp-tile--fx,
    .lp-tile--music,
    .lp-tile--analytics,
    .lp-tile--leaderboard {
      grid-column: auto;
      gap: var(--nv-space-4);
      min-height: 0;
      padding: 16px;
      border-radius: var(--nv-r-lg);
    }

    .lp-bento > .lp-tile {
      grid-row: auto;
      grid-column: auto;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }

    /* Demos of cards scrolled out of the row stay still (landing.js sets data-inview). */
    .lp-bento > .lp-tile:not([data-inview]) *,
    .lp-bento > .lp-tile:not([data-inview]) *::before,
    .lp-bento > .lp-tile:not([data-inview]) *::after {
      animation-play-state: paused;
    }

    /* Equal-height cards: the demo sits centred in the space under the copy. */
    .lp-bento > .lp-tile:not(.lp-tile--fx) > :not(.lp-tile-copy, .lp-tile-link) {
      margin-block: auto;
    }

    .lp-bento > .lp-tile--leaderboard > .lp-tile-copy {
      flex: none;
      align-self: stretch;
    }

    .lp-bento > .lp-tile--leaderboard > .lp-podium {
      align-self: center;
    }

    .lp-tile-copy h3 {
      font-size: var(--nv-fs-18);
    }

    .lp-tile-copy p {
      line-height: 1.5;
    }

    .lp-tile--fx .lp-fx-demo {
      grid-template-rows: 228px auto;
      gap: var(--nv-space-3);
    }

    .lp-fx-screen {
      min-height: 0;
    }

    .lp-fx-controls {
      gap: 8px;
    }

    .lp-chip-group {
      gap: 4px;
    }

    .lp-chip-group > .chip {
      gap: 4px;
      padding-inline: 8px;
      font-size: var(--nv-fs-13);
    }

    .lp-player-controls {
      gap: 16px;
    }

    .lp-podium-bar {
      width: 64px;
    }

    .lp-tile-link {
      width: 100%;
      justify-content: center;
    }

    .lp-rail-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--nv-space-3);
      margin-top: var(--nv-space-3);
    }

    .lp-rail-btn {
      --btn-h: 44px;
    }

    .lp-rail-btn > .lp-i {
      width: 20px;
      height: 20px;
    }

    .lp-rail-dots {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .lp-rail-dots > i {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--nv-surface-4);
      transition: background-color var(--nv-dur-2) var(--nv-ease);
    }

    .lp-rail-dots > i.is-on {
      background: var(--nv-accent);
    }

    .lp-rail-count {
      min-width: 3.2em;
      color: var(--nv-text-3);
      font-family: var(--nv-font-mono);
      font-size: var(--nv-fs-12);
      font-variant-numeric: tabular-nums;
      text-align: center;
    }

    /* Badges: a two-column list (medal, name, one line of meaning). */
    .lp-badge-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .lp-badge {
      grid-template-columns: auto minmax(0, 1fr);
      justify-items: start;
      align-items: center;
      gap: 0 8px;
      padding: 8px 12px 8px 8px;
      border-radius: var(--nv-r-md);
      text-align: left;
    }

    .lp-badge > :first-child {
      grid-row: 1 / 3;
      margin: 0;
      zoom: .64;
    }

    .lp-badge > b {
      align-self: end;
      font-size: var(--nv-fs-14);
    }

    .lp-badge > span:last-child {
      align-self: start;
      font-size: var(--nv-fs-12);
      line-height: 1.4;
    }

    .lp-badges-note {
      margin-top: var(--nv-space-4);
      font-size: var(--nv-fs-13);
    }

    /* Community: a swipe row instead of six stacked cards. */
    .lp-community-grid {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: min(78%, 300px);
      gap: 12px;
      margin-inline: calc(var(--nv-gutter) * -1);
      padding-inline: var(--nv-gutter);
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--nv-gutter);
      scrollbar-width: none;
    }

    .lp-community-grid::-webkit-scrollbar {
      display: none;
    }

    .lp-community-grid > li {
      scroll-snap-align: start;
    }

    .lp-member {
      padding: 0 16px 16px;
    }

    .lp-member-banner {
      margin: 0 -16px;
    }

    /* Pricing: Premium first (DOM order), Free as one compact line. */
    .lp-term {
      margin-bottom: var(--nv-space-4);
    }

    .lp-term-switch > button {
      padding: 8px 12px;
    }

    .lp-plans {
      gap: var(--nv-space-3);
    }

    .lp-plan {
      gap: var(--nv-space-4);
      padding: 20px 16px;
      border-radius: var(--nv-r-lg);
    }

    /* The flag sits beside the short «Premium» title instead of on a row of its own. */
    .lp-plan--premium .lp-plan-head {
      padding-right: 0;
    }

    .lp-plan--premium > .lp-plan-flag {
      top: 16px;
      right: 16px;
    }

    .lp-plan-price > span {
      font-size: var(--nv-fs-14);
    }

    .lp-plan-sub {
      font-size: var(--nv-fs-13);
    }

    .lp-plan-list {
      gap: 8px;
    }

    .lp-plan--free {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0 12px;
      padding: 8px 8px 8px 16px;
    }

    .lp-plan--free .lp-plan-head > p,
    .lp-plan--free > .lp-plan-sub,
    .lp-plan--free > .lp-plan-list {
      display: none;
    }

    .lp-plan--free .lp-plan-head > h3 {
      font-size: var(--nv-fs-16);
    }

    .lp-plan--free .lp-plan-price {
      flex-wrap: nowrap;
      gap: 4px;
      min-width: 0;
      padding-left: 12px;
      border-left: 1px solid var(--nv-line);
    }

    .lp-plan--free .lp-plan-price > b {
      font-size: var(--nv-fs-16);
      letter-spacing: 0;
    }

    .lp-plan--free .lp-plan-price > span {
      overflow: hidden;
      font-size: var(--nv-fs-13);
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lp-plan--free .lp-plan-cta {
      --btn-h: var(--nv-hit);
      --btn-px: 16px;
      width: auto;
      margin-top: 0;
      font-size: var(--nv-fs-14);
    }

    .lp-plan-trust {
      font-size: var(--nv-fs-12);
    }

    .lp-paylist {
      gap: 4px;
      margin-top: var(--nv-space-4);
    }

    .lp-paylist > li {
      gap: 4px;
      min-height: 32px;
      padding: 4px 8px 4px 4px;
      font-size: var(--nv-fs-12);
    }

    /* Comparison: collapsed to the toggle until asked for (the toggle already names it, so no title). */
    .lp-compare {
      margin-top: var(--nv-space-6);
    }

    .lp-compare-title {
      display: none;
    }

    .lp-compare[data-expanded="false"] .lp-compare-wrap {
      display: none;
    }

    .lp-compare[data-expanded="false"] .lp-compare-more {
      margin-top: 0;
    }

    .lp-compare-table :is(th, td) {
      padding: 12px 8px;
      font-size: var(--nv-fs-13);
    }

    .lp-compare-table thead th:first-child {
      width: 44%;
    }

    /* FAQ */
    .lp-faq-list > details > summary {
      min-height: 52px;
      padding: 12px 44px 12px 16px;
    }

    .lp-faq-list > details > summary::after {
      right: 16px;
    }

    .lp-faq-list > details > div {
      padding: 0 16px 16px;
      font-size: var(--nv-fs-14);
    }

    /* Final CTA: the mark goes, the claim stays. */
    .lp-final {
      padding-block: var(--nv-space-section) var(--nv-space-10);
    }

    .lp-final-panel {
      gap: var(--nv-space-3);
      padding: 24px 16px;
      border-radius: var(--nv-r-lg);
    }

    .lp-final-mark {
      display: none;
    }

    .lp-final-panel > h2 {
      font-size: var(--nv-fs-28);
      line-height: 1.15;
      letter-spacing: var(--nv-tracking-tight);
    }

    .lp-final-panel > p {
      font-size: var(--nv-fs-16);
    }

    /* Footer */
    .lp-footer {
      padding-top: var(--nv-space-10);
    }

    .lp-footer-top {
      gap: var(--nv-space-7);
    }

    .lp-footer-brand {
      gap: var(--nv-space-3);
    }

    .lp-footer-cols {
      row-gap: var(--nv-space-5);
      column-gap: var(--nv-space-4);
    }

    .lp-footer-col > h2 {
      margin-bottom: var(--nv-space-1);
    }

    .lp-footer-col > ul {
      gap: 0;
    }

    .lp-footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--nv-space-3);
      margin-top: var(--nv-space-7);
      padding-top: var(--nv-space-4);
    }

    /* Auth sheet */
    .lp-auth-head {
      margin-bottom: var(--nv-space-4);
    }

    .lp-auth-head > .mark.big {
      width: 40px;
      height: 40px;
      margin-bottom: 0;
    }

    .lp-auth-head > .mark.big > img {
      width: 32px;
      height: 32px;
    }

    .lp-auth-tabs {
      margin-bottom: var(--nv-space-4);
    }

    .lp-auth #authForm {
      gap: var(--nv-space-3);
    }

    .lp-auth .auth-provider {
      min-height: 44px;
    }
  }

  /* Short landscape screens (phones on their side, 390px tall): the claim field joins the first screen.
     32px under the bar (72px desktop bar, 60px phone bar), a tighter lead. */
  @media (orientation: landscape) and (max-height: 520px) {
    .lp-hero {
      padding-top: 104px;
    }

    .lp-hero-lead {
      margin-top: var(--nv-space-3);
      font-size: var(--nv-fs-16);
      line-height: 1.5;
    }

    .lp-claim--hero {
      margin-top: var(--nv-space-5);
    }
  }

  @media (orientation: landscape) and (max-height: 520px) and (max-width: 640px) {
    .lp-hero {
      padding-top: 92px;
    }
  }

  /* Short phones (568px tall): 44px rows and a 12px gap, so the menu's «Войти» / «Создать страницу» show
     without scrolling the sheet (it still scrolls by itself on anything shorter). */
  @media (max-width: 640px) and (max-height: 600px) {
    .lp-sheet {
      gap: var(--nv-space-3);
    }

    .lp-sheet-links a {
      min-height: var(--nv-hit);
    }
  }

  @media (max-width: 380px) {
    .lp-nav-cta {
      --btn-px: 12px;
      font-size: var(--nv-fs-13);
    }

    /* r180: «$0 навсегда» / «für immer» never end in «…»: the button takes its own row. */
    .lp-plan--free {
      grid-template-columns: auto minmax(0, 1fr);
      row-gap: 8px;
    }

    .lp-plan--free .lp-plan-cta {
      grid-column: 1 / -1;
      width: 100%;
    }

    /* r180: «Стандартный» fits its cell: a narrower feature column and tighter cells. */
    .lp-compare-table thead th:first-child {
      width: 38%;
    }

    .lp-compare-table :is(th, td) {
      padding-inline: 4px;
    }

    .lp-compare-table tbody th {
      padding-left: 8px;
    }

    .lp-compare-table tbody td {
      overflow-wrap: anywhere;
    }
  }

  /* Touch: every control is at least 44px. */
  @media (pointer: coarse) {
    .lp-nav-links a,
    .lp-footer-col :is(a, button),
    .lp-status,
    .lp-chip-group > .chip,
    .lp-claim-suggest > button,
    .lp-tg-status > button,
    .lp-faq-list a,
    .lp-head a:not([class]) {
      min-height: var(--nv-hit);
    }

    /* Short words in the footer columns («Цены», «Войти») still get a 44px wide target. */
    .lp-footer-col :is(a, button) {
      min-width: var(--nv-hit);
    }

    /* The brand links: a 44px touch area around the 24-28px lockup. */
    .lp-nav-brand,
    .lp-footer-brand > .brand {
      position: relative;
    }

    .lp-nav-brand::after,
    .lp-footer-brand > .brand::after {
      content: "";
      position: absolute;
      inset: -10px;
    }

    .lp-footer .nova-language-switcher > button {
      min-height: 40px;
      padding-inline: 16px;
    }

    .lp-term-switch > button {
      min-height: var(--nv-hit);
    }

    .lp-auth-tabs > button {
      min-height: var(--nv-hit);
    }

    .lp-auth #forgotPassword {
      min-height: var(--nv-hit);
    }

    /* r180: the rest of the touch targets (nav buttons in landscape, compare toggle); the renewal note keeps
       its quiet inline look with a taller touch area. */
    .lp-compare-more {
      min-height: var(--nv-hit);
    }

    .lp-nav-actions > .small {
      --btn-h: var(--nv-hit);
    }

    .lp-plan-sub-link {
      padding-block: 12px;
    }
  }
}

/* r180: dialogs that open on the landing, where the dashboard sheets stay disabled (boot-loader.js): the sign-in sheet's
   saved accounts (account-switcher.js renderSaved, /?auth=add; .acct-avatar/.acct-text also serve the account menu) and
   the gift-link claim (badges.js giftFromUrl, /?gift=). Moved here from ui/accounts.css and ui/badges.css. */
@layer surfaces {
  .acct-avatar {
    --av: 32px;
    flex: none;
  }

  .acct-text {
    display: grid;
    flex: 1;
    min-width: 0;
    line-height: var(--nv-lh-snug);
  }

  .acct-text b,
  .acct-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .acct-text b {
    color: var(--nv-text);
    font-size: var(--nv-fs-14);
    font-weight: var(--nv-fw-medium);
  }

  .acct-text small {
    color: var(--nv-text-3);
    font-size: var(--nv-fs-12);
    font-weight: var(--nv-fw-regular);
  }

  .auth-saved {
    display: grid;
    gap: var(--nv-space-2);
    margin-bottom: var(--nv-space-5);
    padding: var(--nv-space-3);
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-r-md);
    background: var(--nv-surface-2);
  }

  /* A section label: sentence case, muted. */
  .auth-saved-title {
    color: var(--nv-text-3);
    font-size: var(--nv-fs-13);
    font-weight: var(--nv-fw-medium);
    letter-spacing: 0;
    text-transform: none;
  }

  .auth-saved-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .auth-saved-list > li {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .auth-saved-item {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--nv-space-3);
    min-width: 0;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--nv-r-sm);
    background: transparent;
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--nv-dur-1) var(--nv-ease), border-color var(--nv-dur-1) var(--nv-ease);
  }

  .auth-saved-item:is(:hover, :focus-visible) {
    border-color: var(--nv-line);
    background: var(--nv-surface-3);
  }

  .auth-saved-item[aria-busy="true"] {
    opacity: .6;
    cursor: progress;
  }

  .auth-saved-item .acct-avatar {
    --av: 36px;
  }

  .auth-saved-go {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--nv-text-3);
  }

  .auth-saved-forget {
    flex: none;
    color: var(--nv-text-3);
  }

  .auth-saved-hint {
    color: var(--nv-text-3);
    font-size: var(--nv-fs-12);
    line-height: var(--nv-lh-ui);
  }

  .bp-gift-claim {
    text-align: center;
  }

  .bp-gift-claim-art {
    display: grid;
    place-items: center;
    margin: var(--nv-space-2) auto var(--nv-space-4);
  }

  .bp-gift-claim .dialog-footer {
    justify-content: center;
  }

  @media (max-width: 640px) {
    .auth-saved {
      margin-bottom: var(--nv-space-4);
      padding: 12px;
    }

    .auth-saved-item {
      min-height: 48px;
      padding: 8px;
    }

    .auth-saved-forget {
      min-width: 40px;
      min-height: 40px;
    }
  }
}

@keyframes lp-route-release {
  to { visibility: visible; content-visibility: visible; }
}

@keyframes lp-sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
}
