/* ===================================================================
 * llucky.ai/kz — the KZ landing in the cabinet v3 "Liquid" system.
 *
 * Standalone: this page does NOT load revenue-v3.css. Every value below
 * comes from the cabinet's token file (frontend-v3/src/styles/
 * liquid-tokens.css, default blue theme), copied 1:1 into :root, plus
 * a small marketing block (display type scale, section rhythm, page
 * width) that the cabinet does not need.
 *
 * Materials, as in the cabinet (frontend-v3/docs/DESIGN_SYSTEM.md):
 *   level 1   .panel       glass: white 55% + blur 36px, 1px white 62% edge, radius 16
 *   level 1d  .panel-dark  dark glass (menu tone 92%), one per screenful
 *   level 2   inside a panel: no fill, no border, hairline only where needed
 *   level 3   .button      control: 6% fill, radius 10; primary = accent + droplet shadow
 *   level 4   popovers     white 82% + blur 44px + rim + sheen
 * Text never sits on the background artwork, except the hero headline
 * (contrast checked: >= 4.5:1 at the worst point of the background).
 * ================================================================= */

/* ---------- Liquid tokens (copied from liquid-tokens.css) ---------- */
:root {
  /* Glass density */
  --lq-thin: 0.3;
  --lq-regular: 0.5;
  --lq-thick: 0.6;
  --lq-ultra: 0.82;
  --lq-panel-alpha: 0.55;
  --lq-dark-alpha: 0.92;
  --lq-dock-alpha: 0.86;

  /* Blur */
  --lq-blur: blur(36px) saturate(120%);
  --lq-blur-strong: blur(44px) saturate(125%);
  --lq-blur-bar: blur(24px) saturate(160%);
  --lq-bg-blur: blur(14px);

  /* Surfaces */
  --background: 0 0% 100% / var(--lq-regular);
  --card: 0 0% 100% / var(--lq-regular);
  --surface: 0 0% 100% / var(--lq-regular);
  --popover: 0 0% 100% / var(--lq-ultra);
  --fill: 215 35% 18% / 0.07;
  --muted: 215 35% 18% / 0.05;

  /* Text, 3 steps */
  --foreground: 220 16% 11%;          /* #181C21 */
  --title: 220 18% 10%;
  --muted-foreground: 208 15% 27%;    /* #3B4651 */
  --faint: 208 11% 32%;

  /* Lines */
  --border: 215 30% 18% / 0.13;
  --line: 215 30% 18% / 0.17;
  --row: 215 30% 18% / 0.09;
  --lq-hairline: 215 30% 18% / 0.1;

  /* Accent (blue) */
  --primary: 214 49% 35%;             /* #2C5284 */
  --primary-foreground: 0 0% 100%;
  --ring: 214 50% 43%;
  --accent: 214 73% 59% / 0.14;
  --accent-foreground: 214 53% 28%;   /* #22436E */
  --lq-tint: hsl(var(--accent));

  /* Statuses */
  --good: 140 50% 45% / 0.14;
  --good-ink: 135 48% 24%;
  --warn: 38 90% 50% / 0.16;
  --warn-ink: 30 88% 24%;
  --info: 205 30% 30% / 0.08;
  --info-ink: 205 16% 28%;
  --bad: 8 80% 55% / 0.13;
  --bad-ink: 8 80% 30%;

  /* Dark menu tone (dark panel) */
  --rail: 212 22% 12%;
  --rail-foreground: 205 14% 76%;
  --sidebar-foreground: 0 0% 100% / 0.93;
  --sidebar-muted: 0 0% 100% / 0.7;
  --sidebar-active-foreground: 213 100% 89%;
  --sidebar-line: 0 0% 100% / 0.12;

  /* OKLCH channels */
  --lq-white: 1 0 0;
  --lq-ink: 0.28703 0.0392 256.88;
  --lq-hi: 0.93 0.008 245;
  --lq-lo: 0.845 0.016 245;
  --lq-core: 0.52 0.12 255;
  --lq-soft: 0.78 0.07 252;
  --lq-shade: 0.36 0.02 250;
  --lq-glow: 0.985 0.003 230;
  --lq-lens: 0.99 0.002 230;
  --lq-base: 215 16% 86%;
  color-scheme: light;

  /* Typography: the cabinet's 5 sizes */
  --lq-text-xs: 11px;
  --lq-text-sm: 12px;
  --lq-text-md: 13px;
  --lq-text-base: 14px;
  --lq-text-lg: 20px;
  --lq-caps-tracking: 0.06em;
  --lq-numeric: tabular-nums;

  /* Spacing: 4px scale */
  --lq-space-1: 4px;
  --lq-space-2: 8px;
  --lq-space-3: 12px;
  --lq-space-4: 16px;
  --lq-space-5: 20px;
  --lq-space-6: 24px;
  --lq-space-8: 32px;
  --lq-gap: var(--lq-space-3);
  --lq-control-pad-x: 10px;

  /* Radii */
  --lq-radius-sm: 6px;
  --lq-radius-md: 10px;
  --lq-radius-lg: 16px;
  --lq-radius-inner: 8px;
  --lq-panel-radius: var(--lq-radius-lg);
  --lq-control-radius: var(--lq-radius-md);

  /* Level 1: panel */
  --lq-panel-bg: hsl(0 0% 100% / var(--lq-panel-alpha));
  --lq-panel-edge: hsl(0 0% 100% / 0.62);
  --lq-panel-shadow: 0 14px 36px -14px oklch(var(--lq-shade) / 0.32);
  /* Level 1d: dark panel */
  --lq-dark-bg: hsl(var(--rail) / var(--lq-dark-alpha));
  --lq-dark-edge: hsl(0 0% 100% / 0.14);

  /* Level 3: control */
  --lq-control-h: 36px;
  --lq-control-fill: hsl(215 35% 18% / 0.06);
  --lq-control-fill-hover: oklch(var(--lq-ink) / 0.1);
  --lq-seg-pad: 3px;
  --lq-seg-gap: 2px;
  --lq-seg-item-h: 30px;
  --lq-seg-on-shadow: inset 0 1px 0 oklch(var(--lq-white) / 0.35), 0 6px 14px -8px hsl(var(--primary) / 0.8);
  --lq-primary-shadow: inset 0 1px 0 oklch(var(--lq-white) / 0.35), 0 6px 16px -8px hsl(var(--primary) / 0.7);

  /* Level 4: popover */
  --lq-ultra-bg: hsl(0 0% 100% / var(--lq-ultra));
  --lq-pop-edge: oklch(var(--lq-white) / 0.7);
  --lq-rim:
    inset 1px 1px 0 hsl(0 0% 100% / 0.95),
    inset -1px -1px 0 hsl(0 0% 100% / 0.35),
    inset 0 0 0 1px hsl(0 0% 100% / 0.28);
  --lq-pop-shadow: var(--lq-rim), 0 24px 56px -18px oklch(var(--lq-shade) / 0.45);
  --lq-pop-shadow-lg: var(--lq-rim), 0 28px 64px -20px oklch(var(--lq-shade) / 0.5);
  --lq-sheen: linear-gradient(135deg,
    hsl(0 0% 100% / 0.38) 0%,
    hsl(0 0% 100% / 0.08) 22%,
    hsl(0 0% 100% / 0) 45%,
    hsl(0 0% 100% / 0) 78%,
    hsl(0 0% 100% / 0.16) 100%);
  --lq-tabbar-shadow: var(--lq-rim), 0 18px 40px -16px oklch(var(--lq-shade) / 0.55);
  --lq-dock-shadow: inset 0 1px 0 oklch(var(--lq-white) / 0.12), 0 18px 48px -18px oklch(var(--lq-shade) / 0.5);

  /* Motion */
  --lq-dur-press: 80ms;
  --lq-dur-color: 150ms;
  --lq-dur-fade: 160ms;
  --lq-dur-pop: 200ms;
  --lq-dur-page: 240ms;
  --lq-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lq-ease-page: cubic-bezier(0.2, 0.9, 0.3, 1);
  --lq-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* ---------- Marketing additions (not in the cabinet) ----------
     Display scale: same Inter family, weight 600, tight tracking, fluid.
     Body and captions stay on the cabinet sizes above. */
  --mk-display-1: clamp(40px, 1.3rem + 4.4vw, 80px);
  --mk-display-2: clamp(28px, 1rem + 2.2vw, 48px);
  --mk-display-3: clamp(40px, 1.4rem + 3.2vw, 64px);  /* proof numbers */
  --mk-lede: clamp(16px, 0.85rem + 0.35vw, 18px);
  --mk-track-display: -0.035em;
  --mk-track-title: -0.025em;
  --mk-page: 1200px;
  --mk-gutter: var(--lq-space-3);
  --mk-section: clamp(64px, 3rem + 5vw, 128px);
  --mk-pad: clamp(20px, 1rem + 1.2vw, 32px);   /* inside a panel */
  --mk-header-h: 64px;
  --mk-brand-dot: #ff5757;   /* the cabinet wordmark's coral dot (BrandWordmark.css) */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mk-header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background: hsl(var(--lq-base));
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--lq-text-base);
  line-height: 1.55;
  font-variant-numeric: var(--lq-numeric);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
em, i { font-style: normal; }
a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: var(--lq-radius-sm);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--lq-control-radius);
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Background artwork (v3-liquid.css, body::before/::after) ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Neutral silver sweep, top light, edge vignette, two deep accent cores.
   The cores sit in the corners, outside the reading column. */
body::before {
  background:
    radial-gradient(70% 55% at 55% -8%, oklch(var(--lq-glow) / 0.9) 0%, oklch(var(--lq-glow) / 0) 70%),
    radial-gradient(18% 36% at -4% 104%, oklch(var(--lq-core) / 0.9) 0%, oklch(var(--lq-core) / 0) 78%),
    radial-gradient(18% 30% at 104% 104%, oklch(var(--lq-core) / 0.62) 0%, oklch(var(--lq-core) / 0) 72%),
    radial-gradient(130% 95% at 50% 35%, oklch(var(--lq-shade) / 0) 55%, oklch(var(--lq-shade) / 0.16) 100%),
    linear-gradient(158deg, oklch(var(--lq-hi)) 0%, oklch(var(--lq-hi)) 30%, oklch(var(--lq-lo)) 100%);
}
/* Lenses: light core, faint shade rim, thin light outline; slow drift. */
body::after {
  filter: var(--lq-bg-blur);
  background:
    radial-gradient(circle 320px at 80% 20%,
      oklch(var(--lq-lens) / 0.32) 0%,
      oklch(var(--lq-lens) / 0.08) 45%,
      oklch(var(--lq-shade) / 0.045) 82%,
      oklch(var(--lq-white) / 0.09) 92%,
      oklch(var(--lq-white) / 0) 100%),
    radial-gradient(circle 400px at 42% 86%,
      oklch(var(--lq-soft) / 0.38) 0%,
      oklch(var(--lq-soft) / 0.1) 50%,
      oklch(var(--lq-shade) / 0.054) 84%,
      oklch(var(--lq-white) / 0.081) 93%,
      oklch(var(--lq-white) / 0) 100%),
    radial-gradient(circle 160px at 50% 6%,
      oklch(var(--lq-lens) / 0.28) 0%,
      oklch(var(--lq-shade) / 0.032) 80%,
      oklch(var(--lq-white) / 0.072) 92%,
      oklch(var(--lq-white) / 0) 100%);
  /* Static on purpose: a drifting full-screen layer under the glass made
     every panel re-blur each frame (scroll fell to ~13 fps at 1440). */
}

/* ---------- Layout ---------- */
/* Decorative lenses may spill past the page edge; clip (not hidden) keeps
   position: sticky working inside. */
main { overflow-x: clip; }
.shell {
  width: min(100% - 2 * var(--mk-gutter), var(--mk-page));
  margin-inline: auto;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--lq-gap);
}

/* ---------- Surfaces ---------- */
.panel {
  position: relative;
  border: 1px solid var(--lq-panel-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-panel-bg);
  box-shadow: var(--lq-panel-shadow);
  -webkit-backdrop-filter: var(--lq-blur);
  backdrop-filter: var(--lq-blur);
  padding: var(--mk-pad);
}
.panel-dark {
  position: relative;
  border: 1px solid var(--lq-dark-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-dark-bg);
  box-shadow: var(--lq-dock-shadow);
  -webkit-backdrop-filter: var(--lq-blur);
  backdrop-filter: var(--lq-blur);
  color: hsl(var(--sidebar-foreground));
  padding: var(--mk-pad);
}
.hair-t { border-top: 1px solid hsl(var(--lq-hairline)); }

/* ---------- Type ---------- */
.hero-title,
.section-title {
  color: hsl(var(--title));
  font-weight: 600;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
.section-title {
  font-size: var(--mk-display-2);
  line-height: 1.08;
  letter-spacing: var(--mk-track-title);
}
.section-title em,
.hero-line-accent { color: hsl(var(--accent-foreground)); }

h3 {
  color: hsl(var(--title));
  font-size: var(--lq-text-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
p {
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-base);
  line-height: 1.6;
}
p strong { color: hsl(var(--foreground)); font-weight: 500; }

.lede {
  color: hsl(var(--muted-foreground));
  font-size: var(--mk-lede);
  line-height: 1.6;
  text-wrap: pretty;
}

.num {
  color: hsl(var(--faint));
  font-size: var(--lq-text-sm);
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

/* Status pills (cabinet: bg-good text-good-ink etc.) */
.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--lq-space-2);
  border-radius: 999px;
  font-size: var(--lq-text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.pill-good { background: hsl(var(--good)); color: hsl(var(--good-ink)); }
.pill-warn { background: hsl(var(--warn)); color: hsl(var(--warn-ink)); }
.pill-info { background: hsl(var(--info)); color: hsl(var(--info-ink)); }
.pill-bad { background: hsl(var(--bad)); color: hsl(var(--bad-ink)); }
.pill-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.pill-accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* ---------- Controls (level 3) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lq-space-2);
  min-height: var(--lq-control-h);
  padding: 0 var(--lq-space-4);
  border: 0;
  border-radius: var(--lq-control-radius);
  background-color: var(--lq-control-fill);
  color: hsl(var(--foreground));
  font-size: var(--lq-text-base);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--lq-dur-color) ease,
    box-shadow var(--lq-dur-color) ease,
    transform var(--lq-dur-press) var(--lq-ease-out);
}
.button:hover { background-color: var(--lq-control-fill-hover); }
.button:active { transform: scale(0.98); }
.button-lg { min-height: 44px; padding: 0 var(--lq-space-5); }
.button-primary,
.mobile-sticky-cta-link {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--lq-primary-shadow);
}
.button-primary:hover,
.mobile-sticky-cta-link:hover { background-color: hsl(214 49% 31%); }
.button > span[aria-hidden] { transition: transform var(--lq-dur-color) var(--lq-ease-out); }
.button:hover > span[aria-hidden] { transform: translateX(2px); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lq-space-2);
}

/* ---------- Header: a plain full-width bar ----------
   Transparent over the hero; after ~40px of scroll (kz.js adds
   .is-scrolled) a calm silver backdrop fades in. The backdrop is drawn by
   ::before, not by the header box: a backdrop-filter on an ancestor would
   trap the fixed mobile menu inside the header. Fixed height, so the
   page never shifts when the backdrop appears. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-color: oklch(var(--lq-hi) / 0.88);
  box-shadow: 0 8px 24px -20px oklch(var(--lq-shade) / 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  transition: opacity var(--lq-dur-pop) var(--lq-ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--lq-space-8);
  height: var(--mk-header-h);
}

/* Wordmark: the cabinet's BrandWordmark (Saira 800, coral dot in the u). */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: hsl(var(--foreground));
  font-family: "Saira", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-dot { position: relative; display: inline-block; }
.wordmark-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.45em;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--mk-brand-dot);
  transform: translateX(-50%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav > a,
.nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-base);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--lq-dur-color) ease;
}
.nav > a:hover,
.nav summary:hover,
.nav details[open] summary { color: hsl(var(--foreground)); }
.nav details { position: relative; }
.nav summary { list-style: none; gap: 6px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--lq-dur-color) var(--lq-ease-out);
}
.nav details[open] summary::after { transform: translateY(3px) rotate(-135deg); }

/* Level 4 popover */
.nav-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 280px;
  padding: var(--lq-space-2);
  border: 1px solid var(--lq-pop-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
  transform: translateX(-50%);
  animation: lq-pop var(--lq-dur-pop) var(--lq-ease-spring);
}
@keyframes lq-pop {
  from { opacity: 0; transform: translate(-50%, -4px) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.nav-popover a {
  display: flex;
  align-items: center;
  min-height: var(--lq-control-h);
  padding: 0 var(--lq-control-pad-x);
  border-radius: var(--lq-control-radius);
  color: hsl(var(--foreground));
  text-decoration: none;
  white-space: nowrap;
}
.nav-popover a:hover { background-color: var(--lq-tint); }

.header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  padding: 0;
  border: 0;
  margin-right: -10px;
  border-radius: var(--lq-control-radius);
  background-color: transparent;
  color: hsl(var(--foreground));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ----------
   One centred statement that fits the first screen: headline, one line,
   one action. min-height fills the viewport under the sticky header; the
   headline is capped by viewport height too, so short screens (1280x720)
   never push the CTA below the fold. Text on the bright silver centre of
   the background: headline ink and the subline (#3B4651) both stay
   >= 4.5:1 against the lightest and darkest silver there. */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--mk-header-h));
  min-height: calc(100svh - var(--mk-header-h));
  padding-block: clamp(20px, 4svh, 56px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-title {
  font-size: clamp(34px, min(1rem + 4.6vw, 8.4svh), 88px);
  line-height: 1.04;
  letter-spacing: var(--mk-track-display);
}
.hero-line { display: block; }
.hero-sub {
  max-width: 60ch;
  margin-top: clamp(16px, 3svh, 28px);
  color: hsl(var(--muted-foreground));
  font-size: clamp(16px, 0.9rem + 0.35vw, 19px);
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions {
  justify-content: center;
  margin-top: clamp(20px, 4svh, 36px);
}

/* ---------- Story screens: 1 idea = 1 screen ----------
   Reusable pattern for screens 2..9. Page rule: ONE glass object per
   screen, the product UI; the copy sits on the background (contrast
   measured on the worst pixel under the letters).
     .scr          the screen; fills the viewport under the sticky header
     .scr-inner    12-col grid: copy 5 cols, art 7 cols (.scr-flip swaps sides)
     .scr-copy     no box: title (<= 8 words), one line, one proof
     .scr-proof    one big number + its caption
     .scr-art      the illustration: an HTML fragment of the product in glass,
                   sitting on a lens + a soft accent core */
.scr {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--mk-header-h));
  min-height: calc(100svh - var(--mk-header-h));
  padding-block: clamp(24px, 6svh, 72px);
}
.scr-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--lq-gap);
  align-items: center;
}
.scr-copy {
  grid-column: 1 / 6;
  display: grid;
  align-content: center;
  max-width: 480px;
}
.scr-copy .scr-lede { margin-top: clamp(14px, 2svh, 20px); }
.scr-copy .scr-proof { margin-top: clamp(28px, 4.4svh, 44px); }
/* Quiet text link under a screen's line (screen 5: the demo). */
.scr-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: var(--lq-space-3);
  color: hsl(var(--accent-foreground));
  font-size: var(--lq-text-base);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: hsl(var(--accent-foreground) / 0.35);
  text-underline-offset: 4px;
}
.scr-link:hover { text-decoration-color: currentColor; }
/* The art is the heavier side: 7 columns, pushed to the outer edge. */
.scr-art {
  grid-column: 6 / 13;
  display: flex;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
}
.scr .scr-art > * { width: 100%; margin: 0 0 0 auto; }
.scr-flip .scr-art > * { margin: 0 auto 0 0; }
.scr-flip .scr-copy { grid-column: 8 / 13; grid-row: 1; justify-self: end; width: 100%; }
.scr-flip .scr-art { grid-column: 1 / 8; grid-row: 1; justify-content: flex-start; }
.scr-title {
  color: hsl(var(--title));
  font-size: clamp(30px, min(1rem + 2.4vw, 6svh), 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: var(--mk-track-title);
  text-wrap: balance;
}
.scr-lede {
  font-size: var(--mk-lede);
  line-height: 1.55;
  text-wrap: pretty;
}
.scr-proof {
  display: grid;
  gap: 6px;
}
.scr-proof-num {
  color: hsl(var(--accent-foreground));
  font-size: var(--mk-display-3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--mk-track-display);
  font-variant-numeric: tabular-nums;
}
.scr-proof p {
  max-width: 32ch;
  font-size: var(--lq-text-base);
  line-height: 1.5;
}
/* Lens (top right) + accent core (bottom left) behind the illustration. */
.scr-art::before,
.scr-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.scr-art::before {
  width: 380px;
  height: 380px;
  top: -90px;
  right: -40px;
  background: radial-gradient(circle,
    oklch(var(--lq-lens) / 0.9) 0%,
    oklch(var(--lq-lens) / 0.35) 46%,
    oklch(var(--lq-shade) / 0.08) 80%,
    oklch(var(--lq-white) / 0.5) 90%,
    oklch(var(--lq-white) / 0) 100%);
  filter: blur(2px);
}
.scr-art::after {
  width: 460px;
  height: 460px;
  bottom: -150px;
  left: -40px;
  background: radial-gradient(circle,
    oklch(var(--lq-soft) / 0.85) 0%,
    oklch(var(--lq-core) / 0.28) 45%,
    oklch(var(--lq-core) / 0) 72%);
  filter: blur(8px);
}

/* ---------- Screen 2 art: a night chat (level 4 glass) ----------
   kz.js plays it once on scroll: client message -> typing dots -> reply ->
   status chip. Without JS or with reduced motion the end state shows. */
.chat {
  max-width: 580px;
  margin-inline: auto;
  border: 1px solid var(--lq-pop-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow-lg);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: var(--lq-space-3);
  padding: var(--lq-space-4) var(--lq-space-5);
  border-bottom: 1px solid hsl(var(--lq-hairline));
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: var(--lq-text-base);
  font-weight: 600;
}
.chat-who { display: grid; gap: 1px; }
.chat-who strong { color: hsl(var(--title)); font-size: var(--lq-text-base); font-weight: 600; }
.chat-who span { color: hsl(var(--muted-foreground)); font-size: var(--lq-text-sm); }
.chat-body {
  display: flex;
  flex-direction: column;
  gap: var(--lq-space-2);
  padding: var(--lq-space-5);
}
.msg {
  max-width: 84%;
  padding: 10px 14px 8px;
  border-radius: 16px;
}
.msg p {
  color: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.msg time {
  display: block;
  margin-top: 4px;
  font-size: var(--lq-text-xs);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.msg-in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: hsl(var(--fill));
  color: hsl(var(--foreground));
}
.msg-in time { color: hsl(var(--muted-foreground)); }
.msg-out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--lq-primary-shadow);
}
.msg-out time { color: hsl(0 0% 100% / 0.78); }
.msg-typing {
  display: none;
  align-self: flex-end;
  gap: 4px;
  padding: 14px 16px;
  border-bottom-right-radius: 6px;
  background: hsl(var(--accent));
}
.msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--accent-foreground));
  animation: lq-dot 840ms var(--lq-ease-out) infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 140ms; }
.msg-typing span:nth-child(3) { animation-delay: 280ms; }
@keyframes lq-dot {
  0%, 66%, 100% { opacity: 0.35; transform: none; }
  33% { opacity: 1; transform: translate3d(0, -3px, 0); }
}
.chat-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--lq-space-2);
  margin-top: var(--lq-space-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--good));
  color: hsl(var(--good-ink));
  font-size: var(--lq-text-sm);
  font-weight: 500;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* Sequence states (kz.js): .is-playing hides every step until it gets .on;
   .is-typing shows the dots in the reply's place. */
.chat.is-playing [data-at] {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  transition:
    opacity var(--lq-dur-page) var(--lq-ease-page),
    transform var(--lq-dur-page) var(--lq-ease-spring);
}
.chat.is-playing [data-at].on { opacity: 1; transform: none; }
.chat.is-playing.is-typing .msg-typing { display: inline-flex; }
.chat.is-playing.is-typing .msg-out:not(.on) { display: none; }

/* Date label inside a thread, and an earlier, dimmed part of it. */
.chat-day {
  align-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-xs);
  font-weight: 500;
}
.msg.is-past { opacity: 0.55; }
.scr-proof-num small {
  margin-right: 0.12em;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Screen 4 art: ads table (level 4 glass) ----------
   Illustrative only: bar lengths, no numbers, no money, no ad IDs.
   Both bars of a row share one scale. kz.js grows the rows in turn. */
.ads {
  max-width: 660px;
  margin-inline: auto;
  border: 1px solid var(--lq-pop-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow-lg);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
  overflow: hidden;
}
.ads-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--lq-space-2) var(--lq-space-4);
  padding: var(--lq-space-4) var(--lq-space-5);
  border-bottom: 1px solid hsl(var(--lq-hairline));
}
.ads-head strong { color: hsl(var(--title)); font-size: var(--lq-text-base); font-weight: 600; }
.ads-legend { display: flex; gap: var(--lq-space-3); }
.ads-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-sm);
}
.ads-key::before {
  content: "";
  width: 10px;
  height: 6px;
  border-radius: 3px;
}
.ads-key-msg::before { background: hsl(var(--faint) / 0.4); }
.ads-key-book::before { background: hsl(var(--primary)); }
.ads-body {
  display: grid;
  gap: var(--lq-space-1);
  padding: var(--lq-space-2);
}
.ads-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 124px;
  align-items: center;
  gap: var(--lq-space-3);
  padding: var(--lq-space-3);
  border-radius: var(--lq-control-radius);
}
.ads-row .pill { justify-self: end; }
.ads-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--lq-radius-inner);
}
.ads-thumb-1 { background: linear-gradient(135deg, oklch(var(--lq-soft)), oklch(var(--lq-core))); }
.ads-thumb-2 { background: linear-gradient(135deg, oklch(var(--lq-hi)), oklch(var(--lq-soft) / 0.8)); }
.ads-thumb-3 { background: linear-gradient(135deg, oklch(var(--lq-lo)), oklch(var(--lq-shade) / 0.55)); }
.ads-main { display: grid; gap: 6px; min-width: 0; }
.ads-main strong {
  color: hsl(var(--foreground));
  font-size: var(--lq-text-base);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ads-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.ads-bar i {
  display: block;
  width: calc(var(--w) * 100%);
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
}
.ads-bar-msg i { background: hsl(var(--faint) / 0.4); }
.ads-bar-book i { background: hsl(var(--primary)); }
.ads.is-playing .ads-bar i { transform: scaleX(0); }
.ads.is-playing .ads-row .pill { opacity: 0; }
.ads.is-playing .ads-row.on .ads-bar i {
  transform: none;
  transition: transform 280ms var(--lq-ease-out);
}
.ads.is-playing .ads-row.on .ads-bar-book i { transition-delay: 80ms; }
.ads.is-playing .ads-row.on .pill {
  opacity: 1;
  transition: opacity var(--lq-dur-page) var(--lq-ease-out) 200ms;
}

/* ---------- Screen 5 art: action queue + owner summary ----------
   Two stacked windows (level 4 glass); the owner card overlaps the
   queue's lower right corner. kz.js slides the rows in turn. */
.stack {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}
.queue,
.owner {
  border: 1px solid var(--lq-pop-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow-lg);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
}
.queue { width: 92%; }
.queue .queue-list { padding-bottom: 20px; }
.owner {
  position: relative;
  width: 64%;
  margin: -24px 0 0 auto;
}
.queue-head {
  display: flex;
  align-items: center;
  gap: var(--lq-space-2);
  padding: var(--lq-space-4) var(--lq-space-5) var(--lq-space-2);
}
.queue-head strong { color: hsl(var(--title)); font-size: var(--lq-text-base); font-weight: 600; }
.queue-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: var(--lq-text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.queue-list,
.owner-list {
  display: grid;
  gap: 2px;
  padding: 0 var(--lq-space-2) var(--lq-space-2);
}
.queue-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--lq-space-3);
  align-items: start;
  padding: 10px var(--lq-space-3);
  border-radius: var(--lq-control-radius);
}
.queue-row.is-active { background-color: var(--lq-tint); }
.queue-row .pill { justify-self: start; margin-top: 1px; }
.queue-row strong,
.owner-row strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: var(--lq-text-md);
  font-weight: 500;
  line-height: 1.4;
}
.queue-row p {
  margin-top: 2px;
  font-size: var(--lq-text-sm);
  line-height: 1.45;
}
.owner-row {
  padding: var(--lq-space-2) var(--lq-space-3);
}
.owner-row span {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-xs);
  font-weight: 500;
  letter-spacing: var(--lq-caps-tracking);
  text-transform: uppercase;
}
.stack.is-playing [data-at] {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition:
    opacity var(--lq-dur-page) var(--lq-ease-page),
    transform var(--lq-dur-page) var(--lq-ease-page);
}
.stack.is-playing [data-at].on { opacity: 1; transform: none; }

/* Small good-status check (used by the plan lists) + a quiet caption. */
.approve-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: hsl(var(--good));
  color: hsl(var(--good-ink));
}
.approve-caption { color: hsl(var(--muted-foreground)); font-size: var(--lq-text-sm); }

/* ---------- Screen 6 art: cabinet "Цены и акции" card (level 4 glass) ----------
   Prices sit in quiet control fields with a pencil. kz.js plays: the
   Профгигиена field flashes (being edited), the promo toggle switches on,
   the promo price tag appears, then the bot preview. End state = all on. */
.cfg {
  max-width: 600px;
  margin-inline: auto;
  border: 1px solid var(--lq-pop-edge);
  border-radius: var(--lq-panel-radius);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow-lg);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
}
.cfg-head {
  padding: var(--lq-space-4) var(--lq-space-5);
  border-bottom: 1px solid hsl(var(--lq-hairline));
}
.cfg-head strong { color: hsl(var(--title)); font-size: var(--lq-text-base); font-weight: 600; }
.cfg-body {
  display: grid;
  gap: var(--lq-space-2);
  padding: var(--lq-space-3) var(--lq-space-5) var(--lq-space-5);
}
.cfg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lq-space-3);
  min-height: 44px;
}
.cfg-name {
  display: grid;
  gap: 2px;
  color: hsl(var(--foreground));
  font-size: var(--lq-text-base);
}
.cfg-tag {
  color: hsl(var(--good-ink));
  font-size: var(--lq-text-sm);
  font-weight: 500;
}
.cfg-field {
  display: inline-flex;
  align-items: center;
  gap: var(--lq-space-2);
  height: var(--lq-control-h);
  padding: 0 var(--lq-control-pad-x) 0 var(--lq-space-3);
  border-radius: var(--lq-control-radius);
  background: var(--lq-control-fill);
  color: hsl(var(--foreground));
  font-size: var(--lq-text-base);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cfg-pen { color: hsl(var(--faint)); }
.cfg-promo {
  display: flex;
  align-items: center;
  gap: var(--lq-space-3);
  margin-top: var(--lq-space-1);
  padding: var(--lq-space-3);
  border-radius: var(--lq-control-radius);
  background: hsl(var(--good));
}
.cfg-promo p { color: hsl(var(--good-ink)); font-size: var(--lq-text-base); font-weight: 500; line-height: 1.35; }
.cfg-toggle {
  position: relative;
  flex: none;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: hsl(var(--primary));
  transition: background-color var(--lq-dur-color) ease;
}
.cfg-toggle i {
  position: absolute;
  top: 3px;
  left: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: hsl(0 0% 100%);
  box-shadow: 0 1px 3px oklch(var(--lq-shade) / 0.4);
  transition: left 200ms var(--lq-ease-out);
}
.cfg-preview { display: grid; gap: 6px; margin-top: var(--lq-space-1); }
.cfg-preview .msg { justify-self: end; max-width: 88%; padding: 8px 12px; }
.cfg.is-playing .cfg-field.on { animation: lq-edit 280ms var(--lq-ease-out); }
@keyframes lq-edit {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 0 2px hsl(var(--ring)); background: hsl(0 0% 100% / 0.9); }
}
.cfg.is-playing .cfg-toggle { background: hsl(var(--faint) / 0.35); }
.cfg.is-playing .cfg-toggle i { left: 3px; }
.cfg.is-playing .cfg-toggle.on { background: hsl(var(--primary)); }
.cfg.is-playing .cfg-toggle.on i { left: 17px; }
.cfg.is-playing .cfg-promo { background: hsl(var(--muted)); transition: background-color var(--lq-dur-color) ease; }
.cfg.is-playing .cfg-promo p { color: hsl(var(--muted-foreground)); }
.cfg.is-playing .cfg-promo:has(.on) { background: hsl(var(--good)); }
.cfg.is-playing .cfg-promo:has(.on) p { color: hsl(var(--good-ink)); }
.cfg.is-playing .cfg-tag,
.cfg.is-playing .cfg-preview { opacity: 0; transform: translate3d(0, 6px, 0); }
.cfg.is-playing .cfg-tag.on,
.cfg.is-playing .cfg-preview.on {
  opacity: 1;
  transform: none;
  transition: opacity var(--lq-dur-page) var(--lq-ease-page), transform var(--lq-dur-page) var(--lq-ease-page);
}

/* ---------- Screen 7: centred copy + a 4-step track + one CTA ----------
   .scr-center breaks the left/right rhythm: a centred column. The track
   is a connector line between steps (dots + segments), not a divider;
   kz.js fills it step by step. Horizontal on desktop, vertical on phones. */
.scr-col {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 3svh, 32px);
}
.scr-col > * { grid-column: 1 / -1; }
.scr-center .scr-copy {
  max-width: 760px;
  justify-items: center;
  text-align: center;
}
.scr-center .scr-lede { margin-top: var(--lq-space-4); }
.scr-center .scr-lede { max-width: 52ch; }
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lq-gap);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track-step {
  position: relative;
  padding-top: 28px;
}
.track-dot {
  position: absolute;
  top: 4px;
  left: 20px;
  width: 12px;
  height: 12px;
  border: 2px solid hsl(var(--primary));
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.12);
}
.track-seg {
  position: absolute;
  top: 9px;
  left: calc(26px - 100% - var(--lq-gap));
  width: calc(100% + var(--lq-gap));
  height: 2px;
  border-radius: 1px;
  background: hsl(var(--primary));
  transform-origin: left center;
}
.track-step:first-child .track-seg { display: none; }
.track-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--lq-space-2);
  height: 100%;
  padding: var(--lq-space-5);
}
.track-card h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.track-card p { font-size: var(--lq-text-md); line-height: 1.5; }
.track.is-playing .track-step .track-card { opacity: 0; transform: translate3d(0, 8px, 0); }
.track.is-playing .track-step .track-seg { transform: scaleX(0); }
.track.is-playing .track-step .track-dot { background: hsl(0 0% 100%); box-shadow: none; }
.track.is-playing .track-step.on .track-card {
  opacity: 1;
  transform: none;
  transition: opacity var(--lq-dur-page) var(--lq-ease-page) 80ms, transform var(--lq-dur-page) var(--lq-ease-page) 80ms;
}
.track.is-playing .track-step.on .track-seg { transform: none; transition: transform 240ms var(--lq-ease-out); }
.track.is-playing .track-step.on .track-dot {
  background: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.12);
  transition: background-color var(--lq-dur-color) ease 160ms, box-shadow var(--lq-dur-color) ease 160ms;
}

/* Screen 7: "Сомневаетесь?" — a small cabinet thread. The draft bubble copies the
   cabinet's shadow reply (frontend-v3 conversations/show: dashed outline,
   no fill, "не отправлено"); the manager's bubble is the cabinet's admin tint. */
.doubt-chat { width: 100%; max-width: 520px; }
.doubt-chat .chat-head { padding: var(--lq-space-3) var(--lq-space-4); }
.doubt-chat .chat-body { padding: var(--lq-space-4); }
.doubt-chat .msg p { font-size: 14px; }
.msg-draft {
  align-self: flex-end;
  border: 1px dashed hsl(var(--primary) / 0.55);
  border-bottom-right-radius: 6px;
  background: transparent;
  color: hsl(var(--foreground));
}
.msg-draft time { color: hsl(var(--muted-foreground)); }
.msg-staff {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
}
.msg-staff time { color: hsl(var(--accent-foreground)); }

/* ---------- Screen 8 (#pricing): three plans + "Свой тариф" ----------
   Booking is the recommended plan: popover-grade glass + a blue edge.
   Phones stack the cards with Booking first. The custom plan spans the
   full row under the three: copy, module chips, button. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lq-gap);
  width: 100%;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--lq-space-3);
  padding: var(--lq-space-6);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lq-space-2);
}
.plan-head h3 { font-size: var(--lq-text-lg); line-height: 1.2; letter-spacing: -0.015em; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: hsl(var(--title));
  font-variant-numeric: tabular-nums;
}
.plan-price b {
  font-size: clamp(28px, 1rem + 1.2vw, 36px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.plan-price small { color: hsl(var(--muted-foreground)); font-size: var(--lq-text-md); }
/* Launch discount: old price struck through + a small badge, above the new price. */
.plan-was {
  display: flex;
  align-items: center;
  gap: var(--lq-space-2);
  margin-bottom: -6px;
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-md);
  font-variant-numeric: tabular-nums;
}
.plan-was s { text-decoration-thickness: 1px; }
.plan-desc { font-size: var(--lq-text-md); line-height: 1.5; }
.plan-checks { display: grid; gap: var(--lq-space-2); }
.plan-checks li {
  display: flex;
  align-items: center;
  gap: var(--lq-space-2);
  color: hsl(var(--foreground));
  font-size: var(--lq-text-md);
  line-height: 1.4;
}
.plan-checks .approve-check { width: 18px; height: 18px; }
.plan .button { width: 100%; margin-top: auto; }
.plan-gift + .button { margin-top: 0; }
.plan-custom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--lq-space-5);
}
.plan-custom-copy { display: grid; gap: var(--lq-space-2); }
.plan-custom .button { width: auto; margin-top: 0; }
.plan-pick { display: flex; flex-wrap: wrap; gap: var(--lq-space-2); margin: 0; padding: 0; border: 0; }
.plan-pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--lq-space-3);
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: var(--lq-text-md);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.pick input:checked + span {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
}
.pick input:focus-visible + span { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.plan-desc + .plan-checks { margin-bottom: var(--lq-space-2); }
.plan-checks b { font-weight: 600; color: hsl(var(--title)); }
.plan-gift {
  margin-top: auto;
  padding: var(--lq-space-2) var(--lq-space-3);
  border-radius: 10px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: var(--lq-text-md);
  font-weight: 600;
}
.plan-featured {
  border-color: hsl(var(--primary) / 0.55);
  background-color: var(--lq-ultra-bg);
  background-image: var(--lq-sheen);
  box-shadow: var(--lq-pop-shadow-lg), 0 0 0 1px hsl(var(--primary) / 0.25);
  -webkit-backdrop-filter: var(--lq-blur-strong);
  backdrop-filter: var(--lq-blur-strong);
}
.plans-note {
  padding: var(--lq-space-2) var(--lq-space-4);
  border-radius: 999px;
  font-size: var(--lq-text-md);
  text-align: center;
}

/* ---------- Screen 9 (#form): the lead form ----------
   One glass panel ~480px, labels above fields, level-3 controls (radius 10),
   solid primary submit. Mechanics in kz.js (same checks as the backend). */
.lead {
  width: 100%;
  max-width: 480px;
  padding: clamp(20px, 1rem + 1vw, 32px);
}
.lead-form { display: grid; gap: var(--lq-space-4); }
.lead-field { display: grid; gap: 6px; }
.lead-field label {
  color: hsl(var(--foreground));
  font-size: var(--lq-text-base);
  font-weight: 500;
}
.lead-field input {
  width: 100%;
  height: 46px;
  padding: 0 var(--lq-space-4);
  border: 0;
  border-radius: var(--lq-control-radius);
  background: hsl(0 0% 100% / 0.92);
  box-shadow: inset 0 0 0 1px hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 16px;
  line-height: 1.2;
  font-family: inherit;
  transition: box-shadow var(--lq-dur-color) var(--lq-ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.lead-field input:focus { outline: none; box-shadow: inset 0 0 0 2px hsl(var(--ring)); }
.lead-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px hsl(var(--bad-ink)); }
.lead-err { color: hsl(var(--bad-ink)); font-size: var(--lq-text-md); line-height: 1.35; }
.lead-err:empty { display: none; }
.lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit { width: 100%; margin-top: var(--lq-space-1); font-size: 15px; }
.lead-submit:disabled { opacity: 0.6; cursor: default; }
.lead-fail { color: hsl(var(--bad-ink)); font-size: var(--lq-text-base); text-align: center; }
.lead-fail a,
.lead-alt a { color: hsl(var(--accent-foreground)); font-weight: 500; text-underline-offset: 3px; }
.lead-alt { margin-top: var(--lq-space-4); text-align: center; }
.lead-done {
  padding: var(--lq-space-6) 0;
  color: hsl(var(--title));
  font-size: var(--lq-text-lg);
  font-weight: 500;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { padding: var(--mk-section) 0 var(--lq-space-3); }
.footer-panel { display: grid; gap: var(--lq-space-6); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
  gap: var(--lq-space-6);
}
.footer-brand { display: grid; gap: var(--lq-space-3); align-content: start; justify-items: start; }
.footer-brand p { max-width: 30ch; font-size: var(--lq-text-md); }
.footer-col { display: grid; gap: 2px; align-content: start; justify-items: start; }
.footer-col strong {
  margin-bottom: var(--lq-space-2);
  color: hsl(var(--foreground));
  font-size: var(--lq-text-md);
  font-weight: 600;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: -8px;
  padding: 0 var(--lq-space-2);
  border-radius: var(--lq-radius-sm);
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-md);
  text-decoration: none;
  transition: background-color var(--lq-dur-color) ease, color var(--lq-dur-color) ease;
}
.footer-col a:hover { background-color: var(--lq-control-fill); color: hsl(var(--foreground)); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--lq-space-2) var(--lq-space-6);
  padding-top: var(--lq-space-5);
  color: hsl(var(--muted-foreground));
  font-size: var(--lq-text-sm);
  line-height: 1.5;
}

/* ---------- Mobile sticky CTA (built by revenue-v3.js) ----------
   The cabinet's phone bottom bar: popover glass capsule. */
.mobile-sticky-cta { display: none; }

/* ---------- Motion: scroll reveal (kz.js adds .reveal / .lit) ---------- */
.kz-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity var(--lq-dur-page) var(--lq-ease-page),
    transform var(--lq-dur-page) var(--lq-ease-page);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.kz-motion .reveal.lit { opacity: 1; transform: none; }

.hero-title,
.hero-sub,
.hero-actions {
  animation: lq-rise var(--lq-dur-page) var(--lq-ease-page) both;
}
.hero-sub { animation-delay: 60ms; }
.hero-actions { animation-delay: 120ms; }
@keyframes lq-rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Desktop: the illustration is the heavier side of each screen, so its
   type and rhythm step up a notch (still the cabinet's sizes). */
@media (min-width: 1100px) {
  .chat-head,
  .ads-head,
  .cfg-head { padding: 18px var(--lq-space-6); }
  .chat-body { gap: 10px; padding: var(--lq-space-6); }
  .msg p { font-size: 16px; }
  .ads-body { padding: var(--lq-space-3); }
  .ads-row { padding: var(--lq-space-4); gap: var(--lq-space-4); grid-template-columns: 48px minmax(0, 1fr) 132px; }
  .ads-thumb { width: 48px; height: 48px; }
  .ads-main { gap: 8px; }
  .ads-main strong { font-size: 15px; }
  .ads-bar { height: 10px; border-radius: 5px; }
  .queue-head { padding: var(--lq-space-5) var(--lq-space-6) var(--lq-space-3); }
  .queue-row { padding: var(--lq-space-3) var(--lq-space-4); }
  .queue-row strong,
  .owner-row strong { font-size: var(--lq-text-base); }
  .queue-row p { font-size: var(--lq-text-md); }
  .cfg-body { gap: var(--lq-space-3); padding: var(--lq-space-4) var(--lq-space-6) var(--lq-space-6); }
  .cfg-name,
  .cfg-field { font-size: 15px; }
}

/* ===================================================================
 * Responsive
 * ================================================================= */
/* Mobile menu from tablet down */
@media (max-width: 960px) {
  /* Touch layouts: 44px tap targets. */
  .button,
  .footer-col a,
  .wordmark { min-height: 44px; }
  .wordmark { align-items: center; }
  .nav,
  .header-actions { display: none; }
  .menu-button { display: grid; }
  :root { --mk-header-h: 56px; }
  body.menu-open .site-header::before { opacity: 1; }

  /* Open menu: a level-4 sheet under the header, outside any blurred box. */
  body.menu-open .nav {
    position: fixed;
    z-index: 90;
    top: calc(var(--mk-header-h) + var(--lq-space-2));
    left: var(--mk-gutter);
    right: var(--mk-gutter);
    max-height: calc(100dvh - var(--mk-header-h) - var(--lq-space-2) - 96px);
    display: grid;
    align-content: start;
    gap: 2px;
    margin: 0;
    padding: var(--lq-space-2);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--lq-pop-edge);
    border-radius: var(--lq-panel-radius);
    background-color: var(--lq-ultra-bg);
    background-image: var(--lq-sheen);
    box-shadow: var(--lq-pop-shadow-lg);
    -webkit-backdrop-filter: var(--lq-blur-strong);
    backdrop-filter: var(--lq-blur-strong);
    animation: lq-sheet var(--lq-dur-pop) var(--lq-ease-out);
  }
  body.menu-open .nav > a,
  body.menu-open .nav summary {
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 var(--lq-space-3);
    color: hsl(var(--foreground));
    font-size: 16px;
  }
  body.menu-open .nav-popover {
    position: static;
    min-width: 0;
    margin: 2px 0 var(--lq-space-2);
    padding: 0 0 0 var(--lq-space-3);
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
    animation: none;
  }
  body.menu-open .nav-popover a {
    min-height: 44px;
    color: hsl(var(--muted-foreground));
    font-size: 15px;
    white-space: normal;
  }

  /* The page behind the open sheet steps back (blur + fade), as behind a cabinet sheet. */
  main,
  .site-footer { transition: opacity var(--lq-dur-pop) var(--lq-ease-out); }
  body.menu-open main,
  body.menu-open .site-footer {
    opacity: 0.45;
    filter: blur(6px);
    pointer-events: none;
  }

  /* «Демо»: the bottom bar while the menu is open. */
  body.menu-open .header-actions {
    position: fixed;
    z-index: 91;
    left: var(--mk-gutter);
    right: var(--mk-gutter);
    bottom: calc(var(--lq-space-3) + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: var(--lq-space-2);
    border: 1px solid var(--lq-pop-edge);
    border-radius: var(--lq-panel-radius);
    background-color: var(--lq-ultra-bg);
    box-shadow: var(--lq-tabbar-shadow);
    -webkit-backdrop-filter: var(--lq-blur-strong);
    backdrop-filter: var(--lq-blur-strong);
  }
  body.menu-open .header-actions .button {
    min-height: 48px;
    justify-content: center;
    padding: 0 var(--lq-space-5);
  }
}
@keyframes lq-sheet {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .scr { align-items: flex-start; padding-block: var(--lq-space-3) var(--lq-space-8); }
  .scr-inner { grid-template-columns: minmax(0, 1fr); }
  .scr-copy,
  .scr-art,
  .scr-flip .scr-copy,
  .scr-flip .scr-art { grid-column: 1 / -1; grid-row: auto; }
  .scr-inner { gap: var(--lq-space-5); }
  .scr-copy { max-width: none; padding: var(--lq-space-2) var(--lq-space-1) 0; }
  .scr-copy .scr-lede { margin-top: 10px; }
  .scr-copy .scr-proof { margin-top: var(--lq-space-4); }
  .scr-title { font-size: 28px; }
  .scr-lede { font-size: 15px; line-height: 1.5; }
  .scr-proof { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--lq-space-3); margin-top: 0; }
  .scr-proof-num { font-size: 36px; }
  .scr-proof p { font-size: var(--lq-text-md); }
  .chat,
  .ads,
  .stack,
  .cfg { max-width: none; }
  .scr-col { gap: var(--lq-space-3); }
  .scr-center .scr-copy { justify-items: start; text-align: left; }
  .track { grid-template-columns: minmax(0, 1fr); gap: var(--lq-space-2); }
  .track-step { padding: 0 0 0 26px; }
  .track-dot { top: 18px; left: 2px; }
  .track-seg {
    top: calc(24px - 100% - var(--lq-space-2));
    left: 7px;
    width: 2px;
    height: calc(100% + var(--lq-space-2));
    transform-origin: center top;
  }
  .track.is-playing .track-step .track-seg { transform: scaleY(0); }
  .track-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px var(--lq-space-2);
    padding: 10px var(--lq-space-3);
  }
  .track-card .pill { grid-column: 2; grid-row: 1; }
  .track-card h3 { grid-column: 1; grid-row: 1; font-size: var(--lq-text-base); }
  .track-card p { grid-column: 1 / -1; font-size: var(--lq-text-sm); line-height: 1.4; }
  .scr-col > .button { width: 100%; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-featured { order: -1; }
  .plan-custom { grid-template-columns: minmax(0, 1fr); gap: var(--lq-space-3); }
  .plan-custom .button { width: 100%; }
  .plan { gap: 10px; padding: var(--lq-space-4) var(--lq-space-5); }
  .plan-head h3 { font-size: 18px; }
  .plan-price b { font-size: 28px; }
  .plans-note { border-radius: var(--lq-panel-radius); text-align: left; }
  .lead-form { gap: var(--lq-space-3); }
  .lead-field input { height: 48px; }
  .cfg-head { padding: var(--lq-space-3) var(--lq-space-4); }
  .cfg-body { gap: 4px; padding: var(--lq-space-2) var(--lq-space-4) var(--lq-space-4); }
  .cfg-name,
  .cfg-field,
  .cfg-promo p { font-size: var(--lq-text-md); }
  .queue { width: 100%; }
  .owner { width: 100%; margin-top: var(--lq-space-3); }
  .queue .queue-list { padding-bottom: var(--lq-space-2); }
  .queue-head { padding: var(--lq-space-3) var(--lq-space-4) var(--lq-space-1); }
  .queue-row { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: var(--lq-space-2) 10px; }
  .owner-row { padding: 4px 10px; }
  .queue-k { display: none; }
  .queue-row { grid-template-columns: 70px minmax(0, 1fr); }
  .queue-row strong,
  .owner-row strong { font-size: var(--lq-text-sm); }
  .queue-row p { font-size: var(--lq-text-xs); margin-top: 0; }
  .ads-head { padding: var(--lq-space-3) var(--lq-space-4); }
  .ads-head { flex-wrap: nowrap; }
  .ads-legend { gap: var(--lq-space-2); }
  .ads-row {
    grid-template-columns: 36px minmax(0, 1fr) 112px;
    gap: var(--lq-space-2) 10px;
    align-items: start;
    padding: 10px;
  }
  .ads-thumb { width: 36px; height: 36px; }
  .chat-head { padding: 10px var(--lq-space-4); }
  .chat-body { gap: 6px; padding: 14px var(--lq-space-4); }
  .msg { padding: 8px 12px 6px; }
  .msg time { margin-top: 2px; }
  .msg p { font-size: 14px; }
  .scr-art::before { width: 260px; height: 260px; top: -60px; right: -80px; }
  .scr-art::after { width: 320px; height: 320px; bottom: -100px; left: -100px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 75;
    left: var(--mk-gutter);
    right: var(--mk-gutter);
    bottom: calc(var(--lq-space-3) + env(safe-area-inset-bottom, 0px));
    display: block;
    padding: 6px;
    border: 1px solid var(--lq-pop-edge);
    border-radius: var(--lq-panel-radius);
    background-color: var(--lq-ultra-bg);
    box-shadow: var(--lq-tabbar-shadow);
    -webkit-backdrop-filter: var(--lq-blur-strong);
    backdrop-filter: var(--lq-blur-strong);
    transition:
      opacity var(--lq-dur-fade) var(--lq-ease-out),
      transform var(--lq-dur-pop) var(--lq-ease-out),
      visibility var(--lq-dur-fade);
  }
  .mobile-sticky-cta .mobile-sticky-cta-link {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
  .mobile-sticky-cta.is-hidden,
  .kz-hero-cta-in .mobile-sticky-cta,
  body.menu-open .mobile-sticky-cta {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, calc(100% + 24px), 0);
  }
  .site-footer { padding-bottom: calc(var(--lq-space-3) + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .button-row .button { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
}

/* Phone background (v3-liquid.css, max-width 767px): clean silver, one
   core per bottom corner, the top light, a single light lens. */
@media (max-width: 767px) {
  body::before {
    background:
      radial-gradient(90% 40% at 50% -6%, oklch(var(--lq-glow) / 0.9) 0%, oklch(var(--lq-glow) / 0) 70%),
      radial-gradient(circle 240px at -6% 110%, oklch(var(--lq-core) / 0.8) 0%, oklch(var(--lq-core) / 0) 100%),
      radial-gradient(circle 170px at 100% 94%, oklch(var(--lq-core) / 0.5) 0%, oklch(var(--lq-core) / 0) 100%),
      linear-gradient(170deg, oklch(var(--lq-hi)) 0%, oklch(var(--lq-hi)) 45%, oklch(var(--lq-lo)) 100%);
  }
  body::after {
    background: radial-gradient(circle 220px at 85% 16%, oklch(var(--lq-lens) / 0.4) 0%, oklch(var(--lq-lens) / 0) 100%);
  }
}

/* ---------- System settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .kz-motion .reveal { opacity: 1; transform: none; }
  .msg-typing span { animation: none; }
}

/* Less transparency: glass goes solid, the artwork goes flat. */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --lq-panel-alpha: 1;
    --lq-ultra: 1;
    --lq-dark-alpha: 1;
  }
  body::after,
  .scr-art::before,
  .scr-art::after { display: none; }
  .site-header::before { background-color: hsl(0 0% 100%); }
  *,
  *::before,
  *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted-foreground: 208 18% 20%;
    --faint: 208 14% 24%;
    --lq-panel-alpha: 0.68;
  }
}

@media (forced-colors: active) {
  .panel,
  .panel-dark,
  .button,
  .site-header::before { border-bottom: 1px solid CanvasText; }
}

/* ===================================================================
 * KZ background, variant D: variant A with muted blue (no bright sky-blue blooms).
 * Bright near-white silver, crisp white highlights, blue only as a deep
 * accent in the two bottom corners, away from the reading column.
 * Lenses are pure light (white core, white rim, a hairline of blue mist
 * at the edge) — no --lq-shade grey inside the artwork at all.
 * Appended from the bg lab (variant D chosen 2026-10-20). Overrides only.
 * ================================================================= */
:root {
  --lq-bg-top: 0.978 0.003 245;
  --lq-bg-mid: 0.955 0.006 247;
  --lq-bg-low: 0.928 0.011 250;
  --lq-bg-mist: 0.9 0.032 252;
  --lq-bloom: 0.84 0.04 252;        /* pale steel blue instead of the saturated core/soft */
  --lq-bloom-deep: 0.7 0.06 254;
}
body { background: oklch(var(--lq-bg-mid)); }

body::before {
  background:
    radial-gradient(64% 48% at 50% -10%, oklch(var(--lq-white) / 0.95) 0%, oklch(var(--lq-white) / 0) 72%),
    radial-gradient(15% 26% at -2% 104% in oklch,
      oklch(var(--lq-bloom-deep) / 0.45) 0%, oklch(var(--lq-bloom) / 0.35) 36%, oklch(var(--lq-bg-mist) / 0.3) 64%, oklch(var(--lq-bg-mist) / 0) 100%),
    radial-gradient(12% 20% at 102% 104% in oklch,
      oklch(var(--lq-bloom-deep) / 0.35) 0%, oklch(var(--lq-bloom) / 0.28) 36%, oklch(var(--lq-bg-mist) / 0.2) 64%, oklch(var(--lq-bg-mist) / 0) 100%),
    linear-gradient(165deg in oklch, oklch(var(--lq-bg-top)) 0%, oklch(var(--lq-bg-top)) 25%, oklch(var(--lq-bg-mid)) 60%, oklch(var(--lq-bg-low)) 100%);
}
body::after {
  background:
    radial-gradient(circle 340px at 80% 22%,
      oklch(var(--lq-white) / 0.6) 0%,
      oklch(var(--lq-white) / 0.2) 55%,
      oklch(var(--lq-bg-mist) / 0.14) 86%,
      oklch(var(--lq-white) / 0.7) 93%,
      oklch(var(--lq-white) / 0) 100%),
    radial-gradient(circle 380px at 30% 92%,
      oklch(var(--lq-white) / 0.5) 0%,
      oklch(var(--lq-white) / 0.15) 55%,
      oklch(var(--lq-bg-mist) / 0.12) 86%,
      oklch(var(--lq-white) / 0.6) 93%,
      oklch(var(--lq-white) / 0) 100%);
}

@media (max-width: 767px) {
  body::before {
    background:
      radial-gradient(90% 40% at 50% -6%, oklch(var(--lq-white) / 0.95) 0%, oklch(var(--lq-white) / 0) 70%),
      radial-gradient(circle 220px at -8% 110% in oklch, oklch(var(--lq-bloom) / 0.5) 0%, oklch(var(--lq-bg-mist) / 0.25) 55%, oklch(var(--lq-bg-mist) / 0) 100%),
      linear-gradient(170deg in oklch, oklch(var(--lq-bg-top)) 0%, oklch(var(--lq-bg-top)) 40%, oklch(var(--lq-bg-low)) 100%);
  }
  body::after {
    background: radial-gradient(circle 220px at 85% 16%,
      oklch(var(--lq-white) / 0.55) 0%, oklch(var(--lq-white) / 0.15) 60%,
      oklch(var(--lq-white) / 0.5) 92%, oklch(var(--lq-white) / 0) 100%);
  }
}

/* ---------- Liquid glass material (A: crystal) ----------
   One backdrop-filter per object (the existing one); the material comes
   from the tokens it already reads: richer backdrop (saturate + a little
   brightness, so the blooms behind turn clearer, not greyer), a specular
   rim (bright top/left 1px, blue-tinted bottom/right 1px for thickness,
   soft inner glow at the top), a diagonal sheen across the top third and
   a two-step shadow tinted toward the blue core instead of grey. */
:root {
  --lq-glass-fill: oklch(var(--lq-white) / 0.4);   /* screen illustrations + featured plan (was 0.82) */
  --lq-panel-alpha: 0.42;                            /* pricing, form, start track (was 0.55) */
  --lq-glass-tint: 0.42 0.09 255;                       /* shadow tint: the core, darkened */
  --lq-blur: blur(28px) saturate(130%) brightness(1.05);
  --lq-blur-strong: blur(32px) saturate(130%) brightness(1.05);
  --lq-panel-edge: oklch(var(--lq-white) / 0.6);
  --lq-pop-edge: oklch(var(--lq-white) / 0.66);
  /* One clean edge: the 1px border plus a soft top highlight. No second
     line, blue tint or glow along the bottom/right (read as a double rim). */
  --lq-rim: inset 0 1px 0 oklch(var(--lq-white) / 0.8);
  --lq-panel-shadow: var(--lq-rim),
    0 18px 40px -22px oklch(var(--lq-glass-tint) / 0.3);
  --lq-pop-shadow: var(--lq-rim),
    0 22px 48px -22px oklch(var(--lq-glass-tint) / 0.34);
  --lq-pop-shadow-lg: var(--lq-rim),
    0 10px 22px -14px oklch(var(--lq-glass-tint) / 0.2),
    0 36px 72px -30px oklch(var(--lq-glass-tint) / 0.4);
  --lq-tabbar-shadow: var(--lq-rim),
    0 18px 40px -18px oklch(var(--lq-glass-tint) / 0.42);
  --lq-sheen:
    linear-gradient(162deg, oklch(var(--lq-white) / 0.6) 0%, oklch(var(--lq-white) / 0.18) 16%, oklch(var(--lq-white) / 0) 34%);
}
.chat, .ads, .queue, .owner, .cfg, .plan-featured { background-color: var(--lq-glass-fill); }

/* Copy always paints above the illustration's lens and bloom. Without this
   the later-in-DOM .scr-art (and its decoration) covered the proof caption
   on phones and the title edge on flipped desktop screens. */
.scr-copy { position: relative; z-index: 1; }

/* Something for the glass to refract: a light lens top-right and a blue
   bloom bottom-left, both behind the illustration only, never under copy. */
.scr-art::before {
  background: radial-gradient(circle,
    oklch(var(--lq-white) / 0.95) 0%,
    oklch(var(--lq-white) / 0.5) 45%,
    oklch(var(--lq-bg-mist) / 0.3) 78%,
    oklch(var(--lq-white) / 0.7) 90%,
    oklch(var(--lq-white) / 0) 100%);
}
.scr-art::after {
  background: radial-gradient(circle in oklch,
    oklch(var(--lq-bloom-deep) / 0.22) 0%,
    oklch(var(--lq-bloom) / 0.28) 34%,
    oklch(var(--lq-bg-mist) / 0.18) 56%,
    oklch(var(--lq-bg-mist) / 0) 72%);
}
.panel { background-image: var(--lq-sheen); }

/* The same light behind the centred glass groups (start track, pricing,
   form): one soft blue bloom under the panels, inside the group's box. */
.track, .plans, #form .scr-col { position: relative; isolation: isolate; }
.track::before, .plans::before, #form .scr-col::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side in oklch,
    oklch(var(--lq-bloom-deep) / 0.2) 0%,
    oklch(var(--lq-bloom) / 0.26) 42%,
    oklch(var(--lq-bg-mist) / 0.15) 72%,
    oklch(var(--lq-bg-mist) / 0) 100%);
  filter: blur(24px);
}
.track::before { inset: -20% 12%; }
.plans::before { inset: 14% 16% 2%; }
#form .scr-col::before { left: 50%; bottom: -4%; width: min(680px, 120%); height: 66%; translate: -50% 0; }

/* This file's :root wins over kz.css media blocks, so restate them. */
@media (prefers-contrast: more) {
  :root { --lq-panel-alpha: 0.68; --lq-glass-fill: oklch(var(--lq-white) / 0.82); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --lq-panel-alpha: 1; --lq-glass-fill: oklch(var(--lq-white)); }
  .track::before, .plans::before, #form .scr-col::before { display: none; }
}

/* ---------- Lead form dialog ----------
   kz.js opens it from every href="#form" CTA and moves the screen-9 form
   panel inside; the panel loses its own glass here, the sheet is the surface.
   Desktop: a centered card. Phones: a full-width bottom sheet. */
body.lead-open { overflow: hidden; }
.lead-modal {
  width: min(520px, calc(100% - 2 * var(--mk-gutter)));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--lq-panel-radius);
  background: hsl(0 0% 100%);
  color: hsl(var(--foreground));
  box-shadow: var(--lq-pop-shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}
.lead-modal[open] { animation: lead-modal-in var(--lq-dur-pop) var(--lq-ease-out); }
@keyframes lead-modal-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.lead-modal::backdrop {
  background: oklch(var(--lq-shade) / 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lead-modal-sheet {
  display: grid;
  gap: var(--lq-space-2);
  padding: clamp(20px, 1rem + 1vw, 32px);
}
.lead-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lq-space-3);
}
.lead-modal-title {
  color: hsl(var(--title));
  font-size: clamp(22px, 1rem + 1vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--mk-track-title);
  text-wrap: balance;
}
.lead-modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--lq-dur-color) ease;
}
.lead-modal-close:hover { background-color: var(--lq-control-fill-hover); }
.lead-modal-close:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.lead-modal-lede { margin-bottom: var(--lq-space-3); text-wrap: pretty; }
.lead-modal .lead {
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 760px) {
  .lead-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--lq-panel-radius) var(--lq-panel-radius) 0 0;
  }
  .lead-modal-sheet { padding-bottom: calc(var(--lq-space-5) + env(safe-area-inset-bottom, 0px)); }
  @keyframes lead-modal-in { from { transform: translate3d(0, 100%, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal[open] { animation: none; }
}

/* the hero is on screen at once, no fade-in from transparent (it held the headline ~0.9 s). */
.hero-title, .hero-sub, .hero-actions { animation: none; }
