/* Lex Platform — shared design language for the umbrella home and every
 * product page. Tokens first; each page sets data-product on <html> to pick
 * its accent. Dark mode: system preference unless the visitor chose a theme. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --bg-3: #eaebef;
  --fg: #101218;
  --fg-2: #454955;
  --fg-3: #5f6370;
  --line: rgba(16, 18, 24, 0.12);
  --line-2: rgba(16, 18, 24, 0.2);
  --ink: #101218;
  --ink-2: #1a1d26;
  --ink-fg: #f3f3f5;
  --ink-fg-2: #b5b8c2;
  --ink-line: rgba(255, 255, 255, 0.12);
  --pending-bg: #fff1c2;
  --pending-fg: #5a4200;
  --shadow: 0 30px 60px -30px rgba(16, 18, 24, 0.35);

  /* Lex Platform accent: lacre, the wax that seals a document. */
  --accent: #b5391f;
  --accent-on: #ffffff;
  --accent-text: #a8341c;
  --focus: #b5391f;

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-display: var(--font);
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1320px;
  --radius: 22px;
  --header: 64px;
  color-scheme: light;
}

:root[data-product='lexflow'] { --accent: #1f4fd6; --accent-text: #1c47c2; --focus: #1f4fd6; }
:root[data-product='lexplus'] { --accent: #0b7a4b; --accent-text: #0a6e44; --focus: #0b7a4b; }
:root[data-product='lexwatt'] { --accent: #f2a51a; --accent-on: #14100a; --accent-text: #8a5a00; --focus: #b87600; }
:root[data-product='lexvision'] { --accent: #6a3ef0; --accent-text: #5a2fe0; --focus: #6a3ef0; }
:root[data-product='kuento'] { --accent: #c1245e; --accent-text: #b01f55; --focus: #c1245e; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101218; --bg-2: #171a22; --bg-3: #1f232d;
    --fg: #f3f3f5; --fg-2: #c0c3cc; --fg-3: #9a9eaa;
    --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.22);
    --ink: #0a0b10; --ink-2: #14161d;
    --pending-bg: #3d3210; --pending-fg: #ffe28a;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    --accent-text: #ff8a6b; --focus: #ff8a6b;
    color-scheme: dark;
  }
  :root:not([data-theme='light'])[data-product='lexflow'] { --accent-text: #8fb0ff; --focus: #8fb0ff; }
  :root:not([data-theme='light'])[data-product='lexplus'] { --accent-text: #5fdca5; --focus: #5fdca5; }
  :root:not([data-theme='light'])[data-product='lexwatt'] { --accent-text: #ffc15a; --focus: #ffc15a; }
  :root:not([data-theme='light'])[data-product='lexvision'] { --accent: #7c55ff; --accent-text: #b9a2ff; --focus: #b9a2ff; }
  :root:not([data-theme='light'])[data-product='kuento'] { --accent-text: #ff8fb7; --focus: #ff8fb7; }
}
:root[data-theme='dark'] {
  --bg: #101218; --bg-2: #171a22; --bg-3: #1f232d;
  --fg: #f3f3f5; --fg-2: #c0c3cc; --fg-3: #9a9eaa;
  --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.22);
  --ink: #0a0b10; --ink-2: #14161d;
  --pending-bg: #3d3210; --pending-fg: #ffe28a;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --accent-text: #ff8a6b; --focus: #ff8a6b;
  color-scheme: dark;
}
:root[data-theme='dark'][data-product='lexflow'] { --accent-text: #8fb0ff; --focus: #8fb0ff; }
:root[data-theme='dark'][data-product='lexplus'] { --accent-text: #5fdca5; --focus: #5fdca5; }
:root[data-theme='dark'][data-product='lexwatt'] { --accent-text: #ffc15a; --focus: #ffc15a; }
:root[data-theme='dark'][data-product='lexvision'] { --accent: #7c55ff; --accent-text: #b9a2ff; --focus: #b9a2ff; }
:root[data-theme='dark'][data-product='kuento'] { --accent-text: #ff8fb7; --focus: #ff8fb7; }

/* ------------------------------------------------------------------ typeface switch
 * data-font="app": the typeface each product's app uses today (build.py
 * FONT_MODE), so entering the app from its page feels the same. Headings and
 * large figures take the app's display face; the italic serif accents become
 * that same face in the product colour, because Sora and Outfit have no
 * italic and a faked one looks broken. data-font="lex" keeps the editorial
 * pair defined above. */
:root[data-font='app'] {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --serif: var(--font-display);
}
:root[data-font='app'][data-product='lexvision'] {
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}
:root[data-font='app'] h1, :root[data-font='app'] h2, :root[data-font='app'] h3,
:root[data-font='app'] .brand, :root[data-font='app'] .btn, :root[data-font='app'] .typed-line,
:root[data-font='app'] .acc-btn, :root[data-font='app'] .tab {
  font-family: var(--font-display);
}
:root[data-font='app'] h1, :root[data-font='app'] h2 { font-weight: 600; letter-spacing: -0.035em; }
:root[data-font='app'] em.s, :root[data-font='app'] .serif {
  font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: -0.035em; color: var(--accent-text);
}
:root[data-font='app'] .dark em.s, :root[data-font='app'] .lf-live em.s { color: color-mix(in srgb, var(--accent-text) 55%, #ffffff); }
:root[data-font='app'] :is(.numeral .big, .kpi-n, .lk-n, .plan .price, .mc-big, .lf-summary b, .lf-dlg-money .big, .step .num) {
  font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: -0.04em;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--fg-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.pending {
  display: inline-block; font-size: 0.78em; font-weight: 600; line-height: 1.3;
  background: var(--pending-bg); color: var(--pending-fg); padding: 2px 8px; border-radius: 6px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn .arrow { width: 16px; height: 16px; }
.round {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--fg); background: transparent; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.round:hover { background: var(--fg); color: var(--bg); }
.link { color: var(--accent-text); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, body.menu-open .site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.04em; color: var(--fg-3); margin-top: 2px; }
.brand-text { line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--fg-2); white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.text-link { text-decoration: none; font-size: 15px; padding: 8px 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
[aria-pressed='true'] .sun { display: none; }
[aria-pressed='true'] .moon { display: block; }
.menu-toggle { display: none; }
.menu-extra { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header-actions .text-link, .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header) 0 auto 0; margin: 0; padding: 20px var(--gutter) 28px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .menu-extra { display: flex; gap: 10px; margin-top: 20px; }
  .menu-extra .btn { flex: 1; }
  .nav .menu-extra a { border: 1px solid var(--line-2); font-size: 16px; padding: 0 18px; }
  .nav .menu-extra a.btn-primary { border-color: transparent; color: var(--accent-on); }
}

/* ------------------------------------------------------------------ hero (cut-out word) */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: stretch;
  padding: calc(var(--header) + clamp(20px, 5vh, 56px)) 0 clamp(28px, 5vh, 56px);
  isolation: isolate; overflow: hidden;
}
.cut-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; background: var(--bg); }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 4vh, 40px); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cut-word { width: 100%; height: 30vh; flex: none; }
.hero-sub {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end;
}
.typed-line { margin: 0; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; min-height: 2.3em; }
.typed-line em { color: var(--accent-text); }
.caret { display: inline-block; width: 2px; height: 0.95em; margin-left: 3px; background: var(--accent-text); vertical-align: -0.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { color: var(--fg-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; color: var(--fg-3); margin: 14px 0 0; }
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-sub { grid-template-columns: 1fr; }
  .typed-line { min-height: 2.4em; }
}

/* ------------------------------------------------------------------ dark band + marquee */
.band { background: var(--ink); color: var(--ink-fg); border-block: 1px solid var(--ink-line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.band:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(32px, 5vw, 72px); margin: 0; padding: 26px clamp(16px, 2.5vw, 36px); list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: clamp(17px, 1.6vw, 22px); color: var(--ink-fg); }
.marquee li svg { width: 26px; height: 26px; flex: none; opacity: 0.9; }
.marquee li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2, .h2 { font-size: clamp(40px, 6vw, 88px); }
.section-head p { color: var(--fg-2); max-width: 44ch; margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.dark { background: var(--ink); color: var(--ink-fg); --line: var(--ink-line); --fg-2: var(--ink-fg-2); --fg-3: var(--ink-fg-2); }
.dark .btn-ghost { color: var(--ink-fg); border-color: rgba(255,255,255,.3); }

.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.manifesto-grid h2 { font-size: clamp(44px, 7vw, 104px); }
.manifesto-grid p { color: var(--fg-2); max-width: 42ch; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 8vw, 110px); counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step .num { display: block; font-size: 13px; color: var(--fg-3); margin-bottom: 36px; letter-spacing: .06em; }
.step h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.step p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step .num { margin-bottom: 14px; } }

/* ------------------------------------------------------------------ numerals (stats, account) */
.numerals { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); }
.numeral { padding: 28px 0 34px; border-top: 1px solid var(--line); }
.numeral .big { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(52px, 6.5vw, 104px); line-height: 0.95; letter-spacing: -0.02em; }
.numeral .label { display: block; margin-top: 14px; font-size: 15px; color: var(--fg-2); max-width: 30ch; }
.numeral h3 { font-size: 22px; margin: 18px 0 10px; }
.numeral p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
.numerals.four { --cols: 4; }
.numerals.four .big { font-size: clamp(44px, 4.5vw, 72px); }
@media (max-width: 900px) { .numerals, .numerals.four { --cols: 2; } }
@media (max-width: 520px) { .numerals, .numerals.four { --cols: 1; } }
.data-note { margin-top: 22px; font-size: 14px; color: var(--fg-3); }

.bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto; gap: 16px; align-items: center; font-size: 15px; }
.bars .bar { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bars .bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: inherit; transform-origin: left; }
.reveal .bars .bar i, .bars.reveal .bar i { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in .bars .bar i, .bars.reveal.in .bar i { transform: none; }
.bars b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr auto; } .bars .bar { grid-column: 1 / -1; grid-row: 2; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h3 { font-size: 22px; margin-bottom: 22px; }

/* ------------------------------------------------------------------ cards (staggered) */
.stagger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 44px); row-gap: clamp(48px, 7vw, 96px); }
.stagger > .slot:nth-child(1) { grid-column: 1 / span 7; }
.stagger > .slot:nth-child(2) { grid-column: 9 / span 4; margin-top: clamp(80px, 16vw, 240px); }
.stagger > .slot:nth-child(3) { grid-column: 2 / span 5; }
.stagger > .slot:nth-child(4) { grid-column: 7 / span 6; margin-top: clamp(60px, 10vw, 160px); }
.stagger > .slot:nth-child(5) { grid-column: 1 / -1; }
.stagger > .slot:nth-child(5) .card-media { aspect-ratio: 21 / 8; }
.stagger > .slot:nth-child(2) .card-media { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .stagger { grid-template-columns: 1fr; }
  .stagger > .slot:nth-child(n) { grid-column: 1; margin-top: 0; }
  .stagger > .slot:nth-child(n) .card-media { aspect-ratio: 4 / 3; }
}
.slot { will-change: transform; }
.card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink);
  isolation: isolate; box-shadow: var(--shadow);
}
.card-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media canvas { transform: scale(1.03); }
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%);
}
.card:hover .card-media::after { opacity: 1; }
.chip {
  position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12.5px; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #101218;
}
.card-go {
  position: absolute; right: 16px; bottom: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.95); color: #101218;
  transition: transform .3s ease;
}
.card:hover .card-go { transform: rotate(-45deg); }
.card-go svg { width: 18px; height: 18px; }
.card-mark { position: absolute; left: 22px; bottom: 20px; z-index: 1; color: #fff; width: 42px; height: 42px; opacity: .95; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 18px; }
.card-meta h3 { font-size: clamp(24px, 2.4vw, 32px); }
.card-meta span { font-size: 14px; color: var(--fg-3); }
.card-disc { margin: 6px 0 0; color: var(--fg-2); font-size: 15.5px; }
.stagger-note { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.stagger-note p { margin: 0; font-size: clamp(20px, 2vw, 26px); max-width: 40ch; }

/* ------------------------------------------------------------------ dialog */
dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 0; border: 1px solid var(--line);
  border-radius: 26px; background: var(--bg); color: var(--fg); box-shadow: 0 40px 120px -20px rgba(0,0,0,.5);
  overflow: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(10, 11, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .35s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-media { position: relative; aspect-ratio: 16 / 7; background: var(--ink); }
.dlg-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(255,255,255,.95); color: #101218; border: 0; }
.dlg-body { padding: clamp(22px, 4vw, 40px); }
.dlg-body h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 8px; }
.dlg-body .domain { color: var(--fg-3); font-size: 15px; margin-bottom: 20px; }
.dlg-body ul.feats { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dlg-body ul.feats li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg-2); }
.dlg-body ul.feats li::before { content: ''; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--dot, var(--accent)); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }

/* ------------------------------------------------------------------ accordion */
.acc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); }
.acc-wrap .intro h2 { font-size: clamp(40px, 5.2vw, 76px); margin-bottom: 22px; }
.acc-wrap .intro p { color: var(--fg-2); max-width: 38ch; }
.acc-wrap .intro .round { margin-top: 18px; }
@media (max-width: 860px) { .acc-wrap { grid-template-columns: 1fr; } }
.accordion { border-bottom: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; border: 0; background: none; color: var(--fg); cursor: pointer; text-align: left;
  font: 400 clamp(22px, 2.5vw, 32px)/1.15 var(--font); letter-spacing: -0.02em;
}
.acc-btn .ico { position: relative; width: 20px; height: 20px; flex: none; color: var(--accent-text); transition: transform .3s ease; }
.acc-btn .ico::before, .acc-btn .ico::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.acc-btn .ico::after { transform: rotate(90deg); }
.acc-btn[aria-expanded='true'] .ico { transform: rotate(45deg); }
.acc-panel { padding: 0 0 28px; color: var(--fg-2); max-width: 60ch; }
.acc-panel p { margin: 0; }

/* ------------------------------------------------------------------ misc blocks */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 24px; }
.tile p { color: var(--fg-2); margin: 0; font-size: 15.5px; }
.tile .tile-foot { margin-top: auto; padding-top: 12px; }
.tile ul { margin: 4px 0 0; padding-left: 18px; color: var(--fg-2); font-size: 15.5px; }
.tile ul li { margin-bottom: 6px; }
.badge { align-self: flex-start; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.badge.live { border-color: transparent; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--fg-3); }

.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { font-size: 22px; }
.plan .price { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; }
.plan .price small { font-family: var(--font); font-style: normal; font-size: 14px; color: var(--fg-3); }
.plan ul { margin: 6px 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--fg-2); }
.plan .btn { margin-top: auto; }

.notice {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px 26px; color: var(--fg-2);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; font-size: 15.5px;
}
.notice strong { color: var(--fg); }
.notice svg { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }

/* ------------------------------------------------------------------ closing + form */
.closing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 clamp(56px, 8vw, 96px); }
.closing .cut-word { height: 22vh; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
.closing-grid .pitch p.big { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.closing-grid .pitch .mail { margin-top: 26px; color: var(--fg-2); }
@media (max-width: 860px) { .closing-grid { grid-template-columns: 1fr; } }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--font);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .legal { font-size: 13px; color: var(--fg-3); margin: 0; }
.form .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.form .check input { min-height: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-status { font-size: 14px; color: var(--fg-2); margin: 0; min-height: 1.2em; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form.form-crm { display: block; min-height: 280px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 120px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--fg-2); }
.foot-grid a:hover { color: var(--fg); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.foot-legal a { color: inherit; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ WhatsApp */
:root { --wa: #0f7a40; --wa-hover: #0b6434; --wa-ink: #0b3d20; --wa-bubble: #d9fdd3; --wa-bubble-fg: #0f2a18; --chat-bg: #efeae2; }
:root[data-theme='dark'] { --wa-bubble: #144d37; --wa-bubble-fg: #e9fbe9; --chat-bg: #0b141a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --wa-bubble: #144d37; --wa-bubble-fg: #e9fbe9; --chat-bg: #0b141a; } }
.wa-ico { width: 20px; height: 20px; flex: none; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 18px -8px rgba(15, 122, 64, .7); transition: background-color .2s ease, transform .2s ease;
}
.wa-btn:hover { background: var(--wa-hover); transform: translateY(-1px); }
.wa-btn .wa-ico { width: 20px; height: 20px; }
.menu-wa { display: none; }
/* Between the phone menu (≤960px) and a wide screen the full header does not
   fit: the buttons broke into two lines and, in the LexFlow app, pushed the
   header past the right edge at 1024px. There WhatsApp keeps only its icon and
   the menu tightens. */
@media (min-width: 961px) and (max-width: 1180px) {
  .nav { gap: 18px; }
  .header-actions .wa-btn { padding: 0 10px; }
  .header-actions .wa-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-actions .btn, .header-actions .text-link { white-space: nowrap; }
  .header-actions .btn { padding: 0 14px; }
}
@media (max-width: 960px) {
  .header-actions .wa-btn { display: none; }
  .nav a.menu-wa { display: flex; align-items: center; gap: 10px; color: var(--wa); font-weight: 500; }
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.wa-number { font-size: 18px; text-decoration: none; color: var(--fg-2); letter-spacing: .01em; font-variant-numeric: tabular-nums; align-self: center; }
.wa-number:hover { color: var(--fg); }
.wa-section { background: var(--bg-2); }
.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.wa-copy h2 { font-size: clamp(38px, 5vw, 72px); margin: 18px 0 22px; }
.wa-copy p { color: var(--fg-2); max-width: 46ch; margin-bottom: 28px; }
.wa-copy .actions { align-items: center; gap: 20px; }
@media (max-width: 860px) { .wa-grid { grid-template-columns: 1fr; } }
.chat { border-radius: 28px; overflow: hidden; background: var(--chat-bg); box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 860px) { .chat { justify-self: stretch; max-width: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #0b5c3b; color: #fff; }
.chat-head b { display: block; font-weight: 600; font-size: 16px; }
.chat-head small { display: block; font-size: 12.5px; opacity: .85; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-wa { margin-left: auto; opacity: .9; }
.chat-wa .wa-ico { width: 24px; height: 24px; }
.chat-body { padding: 20px 18px 8px; display: grid; gap: 14px; min-height: 250px; align-content: start;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 0); background-size: 18px 18px; }
.chat-day { justify-self: center; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--fg-3); text-align: center; }
.bubbles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: end; }
.bubble {
  display: inline-flex; align-items: center; gap: 10px; max-width: 92%; padding: 11px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--wa-bubble); color: var(--wa-bubble-fg); text-decoration: none; font-size: 15.5px; line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease;
}
.bubble:hover { transform: translateX(-3px); box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
.bubble svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 8px 14px 16px; text-decoration: none; }
.chat-input span:first-child { flex: 1; padding: 12px 18px; border-radius: 999px; background: var(--bg); color: var(--fg-3); font-size: 15px; }
.chat-send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; flex: none; }
.chat-send svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ compact hero (data first) */
.hero--compact { min-height: auto; padding-bottom: clamp(24px, 4vh, 40px); }
.hero--compact .hero-inner { gap: clamp(16px, 3vh, 28px); }
.lf-console { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: stretch; }
@media (max-width: 960px) { .lf-console { grid-template-columns: 1fr; } }
.lf-search { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.lf-search .typed-line { min-height: 1.2em; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 20px; height: 20px; color: var(--fg-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 400 17px/1.3 var(--font); padding: 10px 0; }
.search input:focus { outline: none; }
.search .btn { flex: none; }
@media (max-width: 560px) {
  .search { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .search input { flex-basis: calc(100% - 40px); }
  .search .btn { width: 100%; }
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; color: var(--fg-2); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.chips a:hover { border-color: var(--accent); color: var(--accent-text); }
.lf-kpis { display: flex; flex-direction: column; gap: 12px; }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi {
  padding: 16px 16px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-n { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 3.3vw, 50px); line-height: .95; letter-spacing: -0.02em; color: var(--fg); }
.kpi:nth-child(3) .kpi-n { color: var(--accent-text); }
.kpi-l { font-size: 13.5px; color: var(--fg-2); line-height: 1.3; }
.kpi-note { margin: 0; font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.band--live { display: flex; align-items: stretch; }
.band-label { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 clamp(16px, 3vw, 44px); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-fg-2); background: var(--ink); box-shadow: 24px 0 24px -8px var(--ink); }
.band-label i { width: 8px; height: 8px; border-radius: 50%; background: #38d17a; box-shadow: 0 0 0 4px rgba(56,209,122,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56,209,122,0); } }
.band-track { overflow: hidden; flex: 1; min-width: 0; }
.band--live .marquee { animation-duration: 90s; }
.band--live .marquee li a { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink-fg); }
.band--live .marquee li a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.band--live .marquee li b { font-weight: 500; font-size: 17px; }
.band--live .marquee li .meta { font-size: 14px; color: var(--ink-fg-2); }
.band--live .marquee li .dot { align-self: center; background: #38d17a; }
@media (max-width: 560px) { .band-label { padding-right: 14px; font-size: 11px; } }

/* ------------------------------------------------------------------ tabs + mock screens (LexWatt) */
.tablist { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: clamp(28px, 4vw, 48px); max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--fg-2); font: 500 16px/1 var(--font); padding: 12px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tab[aria-selected='true'] { background: var(--fg); color: var(--bg); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tab-panel[hidden] { display: none; }
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; } }
.role-copy h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 14px; }
.role-copy .lead { margin-bottom: 18px; }
.role-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.role-feats li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--fg-2); font-size: 15.5px; }
.role-feats li::before { content: ''; width: 14px; height: 8px; margin-top: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.role-mock { margin: 0; display: grid; justify-items: center; gap: 12px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: radial-gradient(120% 90% at 20% 10%, #2b1a6b, #0f0b2c); position: relative; overflow: hidden; }
.role-mock::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 30% 60%, rgba(255,157,0,.45), transparent 70%), radial-gradient(40% 40% at 80% 30%, rgba(31,214,255,.35), transparent 70%); pointer-events: none; }
.role-mock figcaption { position: relative; font-size: 12.5px; color: rgba(255,255,255,.7); }
.mock { position: relative; color: #101218; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-size: 13.5px; }
.st { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: #e3f7ea; color: #0b6b35; }
.st.warn { background: #fff1d6; color: #7a4a00; }
.mock-desk { width: 100%; max-width: 520px; border-radius: 14px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f2f5; border-bottom: 1px solid #e3e5ea; }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d4d6dc; }
.mock-bar em { font-style: normal; margin-left: 10px; font-size: 12px; color: #6b6e78; }
.mock-body { padding: 8px 14px 14px; }
.mock-row { display: grid; grid-template-columns: 1.6fr .9fr .9fr 1.4fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.mock-row.head { color: #6b6e78; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mock-row span:last-child { justify-self: start; }
@media (max-width: 560px) { .mock-row { grid-template-columns: 1.4fr .9fr 1.2fr; } .mock-row span:nth-child(3) { display: none; } }
.mock-phone { width: 270px; border-radius: 36px; padding: 18px 16px 20px; border: 8px solid #111318; display: grid; gap: 12px; }
.phone-notch { width: 90px; height: 20px; border-radius: 0 0 14px 14px; background: #111318; margin: -18px auto 0; }
.ph-hello { margin: 0; font-weight: 600; font-size: 17px; }
.ph-balance { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #f2a51a, #ff7a1f); color: #1c1203; display: grid; gap: 2px; }
.ph-balance small { font-size: 12px; opacity: .8; }
.ph-balance b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.ph-balance span { justify-self: start; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.55); }
.ph-qr { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px; background: #101218; color: #fff; font-weight: 500; }
.ph-qr i { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 3px; box-shadow: inset 0 0 0 3px #101218, inset 0 0 0 6px #fff; }
.ph-sec { margin: 4px 0 0; font-size: 12px; color: #6b6e78; text-transform: uppercase; letter-spacing: .06em; }
.ph-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f4f5f7; }
.ph-item b { display: block; font-weight: 600; }
.ph-item small { color: #6b6e78; }
.ph-item em { font-style: normal; font-size: 11.5px; color: #0b6b35; white-space: nowrap; }
.mock-card { width: 100%; max-width: 420px; border-radius: 22px; padding: 22px; display: grid; gap: 10px; }
.mc-top { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #6b6e78; }
.mc-label { margin: 6px 0 0; color: #6b6e78; }
.mc-big { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-size: 48px; line-height: 1; }
.mc-toma { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid #eef0f3; }
.mc-toma i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #f2a51a, #ff7a1f); width: var(--w); }
.mc-toma small { grid-column: 1 / -1; color: #6b6e78; font-size: 12px; }

/* ------------------------------------------------------------------ dropdown menus */
.nav-group { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--fg-2); font: 400 15px/1 var(--font); cursor: pointer; }
.nav-trigger:hover, .nav-trigger[aria-expanded='true'] { color: var(--fg); }
.nav-trigger .chev { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-trigger[aria-expanded='true'] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); z-index: 60;
  width: 330px; padding: 8px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--bg); box-shadow: 0 30px 60px -24px rgba(0,0,0,.35); display: grid; gap: 2px;
}
.dropdown[hidden] { display: none; }
.nav .dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-size: 15px; }
.nav .dropdown a:hover { background: var(--bg-2); }
.dropdown b { font-weight: 500; }
.dropdown span { font-size: 13px; color: var(--fg-3); }
@media (max-width: 960px) {
  .nav-trigger { width: 100%; justify-content: space-between; font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .dropdown { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px; background: transparent; }
  .nav .dropdown a { font-size: 17px; border-bottom: 0; padding: 10px 8px; }
}

/* ------------------------------------------------------------------ LexFlow live console */
.lf-live { position: relative; overflow: hidden; }
.lf-live::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; pointer-events: none;
  background: radial-gradient(40% 60% at 20% 30%, rgba(31,79,214,.35), transparent 70%), radial-gradient(35% 50% at 85% 20%, rgba(24,180,255,.22), transparent 70%); }
.lf-live > .container { position: relative; }
.live-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.live-head h2 { font-size: clamp(44px, 6.5vw, 96px); margin-top: 18px; }
.live-head p { color: var(--ink-fg-2); max-width: 46ch; margin: 0; }
@media (max-width: 860px) { .live-head { grid-template-columns: 1fr; } }
.live-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fe8bd; }
.live-pill i, .live-stamp.is-live i { width: 8px; height: 8px; border-radius: 50%; background: #38d17a; box-shadow: 0 0 0 4px rgba(56,209,122,.18); animation: pulse 2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(56,209,122,0); } }
.live-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .live-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .live-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk { padding: 16px 16px 14px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); display: grid; gap: 6px; }
.lk-n { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.4vw, 52px); line-height: .95; color: #fff; font-variant-numeric: tabular-nums; }
.lk.hot .lk-n { color: #ffb86b; }
.lk-l { font-size: 13.5px; color: var(--ink-fg-2); }
.live-stamp { display: flex; align-items: center; gap: 10px; margin: 12px 0 28px; font-size: 13px; color: var(--ink-fg-2); }
.lf-form { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end;
  padding: 10px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); }
.lf-q { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-radius: 14px; background: #fff; color: #101218; }
.lf-q svg { width: 20px; height: 20px; color: #5f6370; flex: none; }
.lf-q input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 17px/1.3 var(--font); color: #101218; padding: 14px 0; }
.lf-q input:focus { outline: none; }
.lf-q:focus-within { box-shadow: 0 0 0 3px rgba(63,115,255,.6); }
.lf-sel { display: grid; gap: 4px; font-size: 12px; color: var(--ink-fg-2); }
.lf-sel select { min-height: 52px; border-radius: 14px; border: 1px solid var(--ink-line); background: #1a1d26; color: #f3f3f5; padding: 0 12px; font: 400 15px/1.2 var(--font); width: 100%; }
.lf-form .btn { min-height: 52px; padding: 0 26px; }
@media (max-width: 1100px) { .lf-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lf-q { grid-column: 1 / -1; } .lf-form .btn { grid-column: 1 / -1; } }
@media (max-width: 620px) { .lf-form { grid-template-columns: 1fr; } }
.chips--dark { margin: 14px 0 26px; }
.chips--dark button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ink-line); background: transparent; color: var(--ink-fg); font: 400 14px/1 var(--font); cursor: pointer; }
.chips--dark button:hover { border-color: #8fb0ff; color: #fff; }
.lf-results { min-height: 120px; }
.lf-empty { padding: 26px; border-radius: 18px; border: 1px dashed var(--ink-line); color: var(--ink-fg-2); }
.lf-empty b { color: var(--ink-fg); }
.lf-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: var(--ink-fg-2); font-size: 14.5px; }
.lf-summary b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; color: #fff; }
.lf-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .lf-cards { grid-template-columns: 1fr; } }
.lf-card { width: 100%; height: 100%; text-align: left; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 18px;
  background: #fff; color: #101218; border: 0; cursor: pointer; font: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.lf-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.lf-card:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; }
.lf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #eef0f4; color: #454955; }
.tag.ok { background: #e3f7ea; color: #0b6b35; }
.tag.warn { background: #fff1d6; color: #7a4a00; }
.tag.bad { background: #fde8e8; color: #9b1c1c; }
.lf-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.lf-desc { font-size: 14.5px; color: #454955; line-height: 1.45; }
.lf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: #5f6370; }
.lf-price { color: #101218; font-weight: 600; }
.lf-open { font-size: 13.5px; color: #1f4fd6; font-weight: 500; }
.lf-card.is-loading { cursor: default; min-height: 150px; }
.lf-card.is-loading span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eceef2, #f7f8fa, #eceef2); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.lf-card.is-loading span:nth-child(1) { width: 40%; } .lf-card.is-loading span:nth-child(2) { width: 90%; height: 18px; } .lf-card.is-loading span:nth-child(3) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lf-cta { margin-top: 16px; padding: 20px 22px; border-radius: 18px; background: rgba(63,115,255,.14); border: 1px solid rgba(143,176,255,.35); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lf-cta p { margin: 0; color: var(--ink-fg); max-width: 52ch; }
.lf-live .btn-ghost { color: var(--ink-fg); border-color: rgba(255,255,255,.3); }

/* ------------------------------------------------------------------ LexFlow console: colour layer */
.lf-live {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(79, 141, 255, .38), transparent 60%),
    radial-gradient(900px 520px at 95% 10%, rgba(168, 121, 255, .32), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(39, 211, 238, .22), transparent 60%),
    linear-gradient(165deg, #0a1236 0%, #0d0f24 55%, #140b2e 100%);
}
.lf-live::before {
  inset: 0; height: auto;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
}
.lf-live::after {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  left: 55%; top: 30%; filter: blur(80px); opacity: .45;
  background: conic-gradient(from 0deg, #4f8dff, #a879ff, #ff5c9a, #ff8a3d, #22d38f, #27d3ee, #4f8dff);
  animation: lf-drift 22s ease-in-out infinite alternate;
}
@keyframes lf-drift { 0% { transform: translate(-50%, -40%) rotate(0deg) scale(1); } 100% { transform: translate(-20%, -10%) rotate(180deg) scale(1.2); } }
.lf-live > .container { z-index: 1; }
.live-head h2 em.s { background: linear-gradient(90deg, #8fb0ff, #c7a6ff 45%, #7ee8ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.lk {
  position: relative; overflow: hidden; gap: 8px; padding: 18px 16px 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, transparent), rgba(255,255,255,.03) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 18px 40px -26px var(--c);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lk:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -22px var(--c); }
.lk-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--c) 70%, #000 0%); box-shadow: 0 6px 16px -6px var(--c); }
.lk-ico svg { width: 18px; height: 18px; }
.lk .lk-n { color: #fff; }
.lk.hot .lk-n { color: #fff; }
.lk-l { color: color-mix(in srgb, var(--c) 35%, #ffffff); }
.lk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent); }

.lf-form {
  border: 1px solid transparent;
  background: linear-gradient(#11152e, #11152e) padding-box, linear-gradient(90deg, #4f8dff, #a879ff 50%, #27d3ee) border-box;
  box-shadow: 0 30px 70px -40px rgba(79, 141, 255, .9);
}
.lf-form .btn-primary { background: linear-gradient(90deg, #2f63ff, #7b4dff); color: #fff; box-shadow: 0 10px 26px -12px #7b4dff; }
.lf-form .btn-primary:hover { filter: brightness(1.08); }
.lf-sel select { background: #181c38; border-color: rgba(143,176,255,.25); }

.chips--dark button { display: inline-flex; align-items: center; gap: 8px; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.chips--dark button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chips--dark button:hover { background: color-mix(in srgb, var(--c) 30%, transparent); border-color: var(--c); color: #fff; }

.lf-card { position: relative; overflow: hidden; border-top: 4px solid var(--c, #8fb0ff); }
.lf-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, #8fb0ff) 22%, transparent), transparent 70%); pointer-events: none; }
.lf-card:hover { box-shadow: 0 24px 48px -22px var(--c, #8fb0ff); }
.tag-mod { background: color-mix(in srgb, var(--c) 16%, #ffffff); color: color-mix(in srgb, var(--c) 55%, #101218); font-weight: 600; }
.lf-price { color: color-mix(in srgb, var(--c, #1f4fd6) 60%, #101218); }
.lf-pin::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c, #8fb0ff); vertical-align: 1px; }
.lf-open { color: color-mix(in srgb, var(--c, #1f4fd6) 70%, #101218); }

.lf-dist { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); }
.lf-dist-bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; }
.lf-dist-bar i { background: var(--c); min-width: 6px; box-shadow: 0 0 12px -2px var(--c); }
.lf-dist-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-fg-2); }
.lf-dist-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lf-dist-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.lf-dist-legend b { color: #fff; font-weight: 600; }
.lf-cta { background: linear-gradient(120deg, rgba(79,141,255,.22), rgba(168,121,255,.2)); border-color: rgba(168,121,255,.4); }
@media (prefers-reduced-motion: reduce) { .lf-live::after { animation: none; } }

/* KPI cards are buttons that open their modal */
.lk { padding: 0; }
.lk-btn { width: 100%; height: 100%; display: grid; gap: 8px; align-content: start; padding: 18px 16px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.lk-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lk-more { font-size: 12.5px; color: color-mix(in srgb, var(--c) 45%, #ffffff); opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.lk:hover .lk-more, .lk-btn:focus-visible .lk-more { opacity: 1; transform: none; }
@media (hover: none) { .lk-more { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ KPI modal */
.kpi-dialog { width: min(720px, calc(100vw - 32px)); overflow: auto; }
.kpi-dialog::backdrop { background: color-mix(in srgb, #070a1c 70%, transparent); }
.kpi-dlg-head {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 60px 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 85%, #ffffff 0%), transparent 60%),
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 45%, #7b4dff), transparent 65%),
    linear-gradient(160deg, #0d1330, #120c2c);
  color: #fff; overflow: hidden;
}
.kpi-dlg-head::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.kpi-dlg-ico { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -10px var(--c); }
.kpi-dlg-ico svg { width: 26px; height: 26px; }
.kpi-dlg-head .dlg-x { position: relative; z-index: 1; background: rgba(255,255,255,.92); color: #101218; border: 0; }
.kpi-dlg-body { position: relative; margin-top: -40px; padding: 0 clamp(22px, 4vw, 34px) clamp(22px, 4vw, 30px); }
.kpi-dlg-body > * { position: relative; }
.kpi-eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: color-mix(in srgb, var(--c) 70%, var(--fg)); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 20px -10px rgba(0,0,0,.4); }
.kpi-dialog h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 12px; }
.kpi-figure { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.kpi-n { font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 8vw, 84px); line-height: .9; letter-spacing: -0.05em;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 80%, var(--fg)), var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.kpi-unit { color: var(--fg-3); font-size: 16px; }
.kpi-desc { color: var(--fg-2); margin: 0 0 14px; }
.kpi-insight { margin: 0 0 18px; padding: 14px 16px 14px 18px; border-radius: 14px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg)); color: var(--fg); }
.kpi-chart { margin: 4px 0 18px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.kpi-chart-t { margin: 0 0 10px; font-size: 13px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.kpi-donut { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.kpi-donut svg { width: 170px; height: 170px; }
.kpi-donut svg circle { transition: stroke-dasharray 1s ease; }
.kpi-donut .d-n { font-family: var(--font-display); font-weight: 700; font-size: 22px; fill: var(--fg); }
.kpi-donut .d-l { font-size: 11px; fill: var(--fg-3); }
.kpi-donut ul, .kpi-bars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kpi-donut li button { width: 100%; display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.kpi-donut li button:hover, .kpi-bars li button:hover { background: color-mix(in srgb, var(--c) 10%, var(--bg)); }
.kpi-donut li i { width: 12px; height: 12px; border-radius: 4px; background: var(--m); }
.kpi-donut li b { font-variant-numeric: tabular-nums; }
.kpi-donut li em { font-style: normal; color: var(--fg-3); font-size: 12.5px; min-width: 3.2em; text-align: right; }
@media (max-width: 560px) { .kpi-donut { grid-template-columns: 1fr; justify-items: center; } .kpi-donut ul { width: 100%; } }
.kpi-bars li button { width: 100%; display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; gap: 12px; align-items: center; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.kb { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, var(--bg-3)); overflow: hidden; }
.kb i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #ffffff), var(--c)); animation: kb-grow .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d); transform-origin: left; }
@keyframes kb-grow { from { transform: scaleX(0); } }
@media (max-width: 560px) { .kpi-bars li button { grid-template-columns: 1fr auto; } .kpi-bars .kb { grid-column: 1 / -1; grid-row: 2; } }
.kpi-alert { display: flex; align-items: center; gap: 16px; }
.kpi-alert p { margin: 0; color: var(--fg-2); }
.pulse-ring { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.kpi-actions { margin-top: 4px; }
.kpi-dialog .btn-primary { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 75%, #1f3fd6), #6a3ef0); color: #fff; }
@media (prefers-reduced-motion: reduce) { .kb i, .pulse-ring { animation: none; } }

/* ------------------------------------------------------------------ lit boxes (a few, lower in the page) */
.tile.lit, .numeral.lit {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 16%, var(--bg)) 0%, var(--bg) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--c) 80%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile.lit::before, .numeral.lit::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); }
.tile.lit::after, .numeral.lit::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%); pointer-events: none; }
.tile.lit:hover, .numeral.lit:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -28px color-mix(in srgb, var(--c) 90%, transparent); }
.tile.lit .badge.live { background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 60%, var(--fg)); }
.tile.lit .link { color: color-mix(in srgb, var(--c) 60%, var(--fg)); }
.numerals .numeral.lit { padding: 26px 22px 24px; border-top: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.numeral.lit .big { color: color-mix(in srgb, var(--c) 70%, var(--fg)); }
.numerals:has(.lit) { row-gap: 16px; column-gap: 16px; }

/* market bars that filter the search */
.bars--click li { display: block; }
.bars--click button { width: 100%; display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 6px 8px; margin: -6px -8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.bars--click button:hover { background: var(--bg-2); }
.bars--click button:hover .bar i { filter: brightness(1.15); }
@media (max-width: 560px) { .bars--click button { grid-template-columns: 1fr auto; } .bars--click button .bar { grid-column: 1 / -1; grid-row: 2; } }
.bars--click li:not(:has(button)) { cursor: pointer; }

/* process detail dialog */
.lf-dialog { width: min(760px, calc(100vw - 32px)); }
.lf-dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0 24px; }
.lf-dlg-id { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--fg-3); }
.dlg-x { width: 40px; height: 40px; }
.lf-dlg-body { padding: 8px clamp(22px, 4vw, 36px) clamp(22px, 4vw, 32px); }
.lf-dlg-kicker { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.lf-dlg-body h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 10px; }
.lf-dlg-entity { color: var(--fg-2); margin-bottom: 18px; }
.lf-dlg-money { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); color: var(--fg-3); }
.lf-dlg-money .big { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4vw, 48px); color: var(--fg); line-height: 1; }
.lf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 18px 0; }
.lf-fields dt { font-size: 12.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }
.lf-fields dd { margin: 3px 0 0; }
@media (max-width: 560px) { .lf-fields { grid-template-columns: 1fr; } }
.lf-dialog .lf-cta { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.lf-dialog .lf-cta p { color: var(--fg); }
.lf-dialog .lf-empty { color: var(--fg-2); border-color: var(--line-2); }
.lf-dialog .lf-empty b { color: var(--fg); }
.lf-dialog .lf-card.is-loading { background: var(--bg-2); }

/* ------------------------------------------------------------------ LexFlow newsletter (live page) */
.anchor-alias { position: absolute; top: 0; }
.nl-section { background: var(--bg-2); }
.nl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.nl-grid h2 { font-size: clamp(36px, 4.6vw, 64px); margin: 16px 0 16px; }
.nl-grid p { color: var(--fg-2); max-width: 42ch; }
@media (max-width: 860px) { .nl-grid { grid-template-columns: 1fr; } }
.nl-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
.nl-form label > span, .nl-groups legend { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 6px; }
.nl-groups legend small { color: var(--fg-3); }
.nl-form input[type=email], .nl-form select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 400 16px/1.3 var(--font); }
.nl-groups { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nl-chip { position: relative; }
.nl-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nl-chip span { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); cursor: pointer; }
.nl-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.nl-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.nl-form .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--fg-2); }
.nl-form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.nl-form .btn { justify-self: start; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-status { margin: 0; min-height: 1.3em; font-size: 14.5px; color: var(--fg-2); }
.nl-status[data-tone=ok] { color: #0b6b35; }
.nl-status[data-tone=error] { color: #b42318; }

/* ------------------------------------------------------------------ prototype switcher */
.proto {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: #101218; color: #f3f3f5; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  overflow-x: auto; scrollbar-width: none; font-size: 13px;
}
.proto::-webkit-scrollbar { display: none; }
.proto span { padding: 0 10px 0 12px; color: #ffcf6b; white-space: nowrap; font-weight: 600; }
.proto a { padding: 7px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: #c9ccd6; }
.proto a[aria-current='page'] { background: #f3f3f5; color: #101218; }
.proto a:hover { color: #fff; }
.proto a[aria-current='page']:hover { color: #101218; }

/* Live pages: the same floating bar, as ecosystem quick access + login. */
.proto.eco { padding: 5px 5px 5px 8px; bottom: max(14px, env(safe-area-inset-bottom)); }
.eco-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0 !important; color: #ff8a6b; flex: none; }
.eco-mark svg { width: 20px; height: 20px; }
.proto .eco-login { background: #b5391f; color: #fff; font-weight: 500; margin-left: 4px; }
.proto .eco-login:hover { color: #fff; background: #c9452a; }

/* ------------------------------------------------------------------ reveal + motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden='true'] { display: none; }
  .caret { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
