/* ══════════════════════════════════════════════════════════════════
   Electron Hub — Landing pages (marketing site)
   Dark-first, dev-focused. Shares DNA with the app's token system
   (styles/tokens.css) but tuned for large-scale marketing type.
   ══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --font-display: "Departure Mono", "Geist Mono", ui-monospace, monospace;

  /* Accent — driven by Tweaks (violet default = brand) */
  --lp-accent: #a78bfa;
  --lp-accent-ink: #0d0b14;
  --lp-accent-2: #8b5cf6;
  --lp-accent-3: #7c3aed;
  --lp-accent-fg: #0a090e;
  --lp-accent-soft: color-mix(in oklab, var(--lp-accent) 14%, transparent);
  --lp-accent-glow: color-mix(in oklab, var(--lp-accent-2) 32%, transparent);

  --max-w: 1152px;
}

[data-lp-theme="dark"], :root {
  --bg: #0a090e;
  --bg-0: #0a090e;
  --bg-1: #0e0d14;
  --bg-2: #14131b;
  --bg-3: #1a1924;
  --bg-hover: #181722;
  --border: #1c1b25;
  --border-strong: #2a2934;
  --fg: #ededee;
  --fg-2: #c9cace;
  --fg-muted: #8b8d95;
  --fg-dim: #5e6068;
  --fg-faint: #3f414a;
  --success: oklch(0.72 0.15 152);
  --success-soft: oklch(0.72 0.15 152 / 0.13);
  --warning: oklch(0.79 0.13 78);
  --danger: oklch(0.7 0.18 25);
  --card-sheen: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 38%);
  --hairline: rgba(255,255,255,0.06);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 32px rgba(0,0,0,0.42);
  --shadow-pop: 0 0 0 1px var(--border-strong), 0 16px 48px rgba(0,0,0,0.6);
  --code-bg: #0c0b11;
}

[data-lp-theme="light"] {
  --bg: #fbfbfa;
  --bg-0: #fbfbfa;
  --bg-1: #ffffff;
  --bg-2: #f4f3f7;
  --bg-3: #ecebf1;
  --bg-hover: #f1f0f5;
  --border: #e7e6ed;
  --border-strong: #d4d3dc;
  --fg: #0d0c13;
  --fg-2: #2a2935;
  --fg-muted: #62616d;
  --fg-dim: #8a8995;
  --fg-faint: #b8b7c2;
  --card-sheen: none;
  --hairline: rgba(10,9,14,0.07);
  --shadow-card: 0 1px 2px rgba(10,11,13,0.05), 0 8px 24px rgba(10,11,13,0.05);
  --shadow-pop: 0 0 0 1px var(--border-strong), 0 16px 48px rgba(10,11,13,0.12);
  --code-bg: #17161f;
  --lp-accent-fg: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03";
}
a { color: var(--fg-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--fg); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
::selection { background: var(--lp-accent-soft); color: var(--fg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: padding .3s ease;
}
.nav__inner { position: relative; display: flex; align-items: center; gap: 28px; height: 62px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s, height .3s; }

/* Scrolled: detach into a floating, squared bracketed bar (kept at section width) */
.nav[data-scrolled="true"] { padding: 10px 0 0; }
.nav[data-scrolled="true"] .nav__inner {
  height: 54px; padding: 0 16px 0 20px;
  width: calc(100% - 64px); max-width: calc(var(--max-w) - 64px); margin: 0 auto;
  background: color-mix(in oklab, var(--bg-1) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border-strong); border-radius: 0;
  box-shadow: 0 18px 46px -26px rgba(0,0,0,0.8);
}
/* Bold L corner handles straddling the bar corners */
.nav__brackets { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.nav[data-scrolled="true"] .nav__brackets { opacity: 1; }
.nav__brackets i { position: absolute; width: 9px; height: 9px; border: 0 solid color-mix(in oklab, var(--lp-accent) 85%, transparent); }
.nav__brackets i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.nav__brackets i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.nav__brackets i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.nav__brackets i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; }
.nav__brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav__link {
  position: relative; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 450;
  color: var(--fg-muted); transition: color .15s;
}
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px;
  background: var(--lp-accent); transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); opacity: 0.75; }
.nav__link[data-active="true"] { color: var(--fg); }
.nav__link[data-active="true"]::after { transform: scaleX(1); opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__ghost { padding: 6px 11px; border-radius: 7px; font-size: 13.5px; color: var(--fg-muted); white-space: nowrap; transition: color .15s; }
.nav__ghost:hover { color: var(--fg); }

/* Framed "Get started" CTA — squared outline; bold L handles appear on hover */
.ctaframe { position: relative; display: inline-flex; }
.ctabtn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px;
  border-radius: 3px; font-size: 13px; font-weight: 550; white-space: nowrap;
  color: color-mix(in oklab, var(--lp-accent) 30%, #fff);
  background: color-mix(in oklab, var(--lp-accent) 11%, var(--bg-1));
  border: 1px solid color-mix(in oklab, var(--lp-accent) 42%, transparent);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ctabtn:hover {
  background: color-mix(in oklab, var(--lp-accent) 18%, var(--bg-1));
  border-color: color-mix(in oklab, var(--lp-accent) 72%, transparent);
  color: color-mix(in oklab, var(--lp-accent) 12%, #fff);
}
.ctaframe__c { position: absolute; width: 8px; height: 8px; border: 0 solid color-mix(in oklab, var(--lp-accent) 80%, transparent); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.ctaframe:hover .ctaframe__c { opacity: 1; }

/* Reusable framed button — nav-CTA corner handles on hover, applied to page CTAs */
.btnframe { position: relative; display: inline-flex; }
.btnframe .btn { border-radius: 4px; }
.btnframe:hover .ctaframe__c { opacity: 1; }
.btnframe .ctaframe__c { width: 9px; height: 9px; }
.btnframe .ctaframe__c--tl { top: -4px; left: -4px; }
.btnframe .ctaframe__c--tr { top: -4px; right: -4px; }
.btnframe .ctaframe__c--bl { bottom: -4px; left: -4px; }
.btnframe .ctaframe__c--br { bottom: -4px; right: -4px; }
.ctaframe__c--tl { top: -3px; left: -3px; border-top-width: 2px; border-left-width: 2px; }
.ctaframe__c--tr { top: -3px; right: -3px; border-top-width: 2px; border-right-width: 2px; }
.ctaframe__c--bl { bottom: -3px; left: -3px; border-bottom-width: 2px; border-left-width: 2px; }
.ctaframe__c--br { bottom: -3px; right: -3px; border-bottom-width: 2px; border-right-width: 2px; }

/* Mobile: burger (2 bars) + slide-down sheet */
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 38px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: color-mix(in oklab, var(--bg-1) 70%, transparent); cursor: pointer; }
.nav__burger span { display: block; height: 1.8px; width: 100%; background: var(--fg-2); border-radius: 2px; transition: transform .24s ease, background .2s ease; }
.nav[data-open="true"] .nav__burger span:nth-child(1) { transform: translateY(3.9px) rotate(45deg); }
.nav[data-open="true"] .nav__burger span:nth-child(2) { transform: translateY(-3.9px) rotate(-45deg); }
.nav__sheet {
  position: fixed; left: 0; right: 0; top: 62px; bottom: 0; z-index: 49;
  background: color-mix(in oklab, var(--bg-0) 97%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 30px 22px 28px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-6px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.nav__sheet::before, .nav__sheet::after { content: ''; position: absolute; top: 16px; width: 15px; height: 15px; border: 0 solid color-mix(in oklab, var(--lp-accent) 65%, transparent); }
.nav__sheet::before { left: 16px; border-top-width: 2px; border-left-width: 2px; }
.nav__sheet::after { right: 16px; border-top-width: 2px; border-right-width: 2px; }
.nav__sheet[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.nav__sheetlinks { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nav__sheetlink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 19px 6px; font-size: 19px; font-weight: 500; color: var(--fg-2);
  border-bottom: 1px dashed var(--hairline); transition: color .18s ease, padding-left .18s ease;
}
.nav__sheetlink:last-child { border-bottom: none; }
.nav__sheetlink svg { color: var(--fg-dim); transition: transform .18s ease, color .18s ease; }
.nav__sheetlink:hover { color: var(--fg); padding-left: 10px; }
.nav__sheetlink:hover svg { color: var(--lp-accent); transform: translateX(2px); }
.nav__sheetlink[data-active="true"] { color: var(--fg); }
.nav__sheetlink[data-active="true"] svg { color: var(--lp-accent); }
.nav__sheetcta { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; }
.nav__sheetcta .ctaframe { display: flex; }
.nav__sheetcta .nav__sheetsignin { justify-content: center; height: 52px; font-size: 15px; border-color: transparent; background: transparent; }
.nav__sheetcta .nav__sheetsignin:hover { border-color: transparent; background: color-mix(in oklab, var(--fg) 6%, transparent); }
.nav__sheetbtn { width: 100%; justify-content: center; height: 52px; font-size: 15px; border-radius: 4px; }
/* ── Buttons (shadcn-flavored) ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.005em;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--lp-accent); color: var(--lp-accent-fg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--lp-accent) 60%, transparent), 0 4px 18px var(--lp-accent-glow);
}
.btn--primary:hover { background: color-mix(in oklab, var(--lp-accent) 88%, white); }
.btn--outline { background: var(--bg-1); border: 1px solid var(--border-strong); color: var(--fg); }
.btn--outline:hover { background: var(--bg-hover); border-color: var(--fg-faint); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 8px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 10px; }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(2px); }

/* ── Type ────────────────────────────────────────────────────────── */
.kicker {
  font-family: var(--font-display); font-size: 12px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lp-accent);
}
.pix { font-family: var(--font-display); font-feature-settings: normal; letter-spacing: 0.01em; }
.h1 {
  font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.035em; margin: 0; text-wrap: balance; color: var(--fg);
}
.h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.028em; margin: 0; text-wrap: balance; color: var(--fg);
}
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--fg); }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; margin: 0; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--lp-accent); }
@media (prefers-reduced-motion: no-preference) {
  .h1 .accent {
    background: linear-gradient(110deg, var(--lp-accent) 42%, color-mix(in oklab, var(--lp-accent) 30%, #ffffff) 50%, var(--lp-accent) 58%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: lpShine 6s linear infinite;
  }
  @keyframes lpShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
}

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin-bottom: 48px; }
.section--divide { border-top: 1px solid var(--hairline); }

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  background-image: var(--card-sheen), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='cg'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23cg)' opacity='0.05'/></svg>");
  background-size: auto, 120px 120px;
  border: 1px solid var(--border); border-radius: 3px;
}
.card--hover { position: relative; transition: border-color .2s, transform .2s, box-shadow .25s; }
.card--hover::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--lp-accent) 8%, transparent), transparent 68%);
}
.card--hover:hover { border-color: color-mix(in oklab, var(--lp-accent) 26%, var(--border-strong)); transform: none; }
.card--hover:hover::after { opacity: 1; }

/* ── Code panel ──────────────────────────────────────────────────── */
.codepanel { background: var(--code-bg); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-pop); }
.codepanel__bar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.codepanel__tab {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 7px;
  color: #8b8d95; transition: color .15s, background .15s;
}
.codepanel__tab:hover { color: #ededee; }
.codepanel__tab[data-active="true"] { color: #ededee; background: rgba(255,255,255,0.07); }
.codepanel__copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: #5e6068; padding: 5px 9px; border-radius: 6px; }
.codepanel__copy:hover { color: #c9cace; background: rgba(255,255,255,0.06); }
.codepanel pre {
  margin: 0; padding: 18px 20px; font-family: var(--font-mono); font-size: 13px;
  line-height: 1.75; overflow-x: auto; color: #c9cace;
}
.codepanel .ln { display: inline-block; width: 22px; color: #3f414a; user-select: none; }
@media (max-width: 560px) {
  .codepanel pre { padding: 14px 14px; font-size: 11.5px; line-height: 1.7; -webkit-overflow-scrolling: touch; }
  .codepanel .ln { width: 18px; }
}
.tok-kw { color: #c792ea; } .tok-str { color: #9ce0a8; } .tok-fn { color: #82aaff; }
.tok-cm { color: #4e5058; } .tok-num { color: #f2c47e; } .tok-hl { color: var(--lp-accent); }

/* ── Provider logo wall ──────────────────────────────────────────── */
.logowall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; }
.logowall__item { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-dim); font-size: 13.5px; font-weight: 500; padding: 8px 0; transition: color .2s, filter .2s; filter: grayscale(1) opacity(0.55); }
.logowall__item:hover { color: var(--fg-2); filter: grayscale(0) opacity(1); }
.logowall__item img { width: 20px; height: 20px; }
[data-lp-theme="dark"] img.inv, [data-lp-theme="dark"] image.inv { filter: invert(1); }

/* ── Feature grid ────────────────────────────────────────────────── */
.feat { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feat__icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--lp-accent-soft); color: var(--lp-accent); }
.feat p { margin: 0; font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; text-wrap: pretty; }

/* ── Mini app-panel mockups (hero/product) ───────────────────────── */
.panel__title { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-dim); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 4px; font-size: 15.5px; font-weight: 500; color: var(--fg); }
.faq__q .chev { color: var(--fg-dim); transition: transform .2s; flex: none; }
.faq__item[data-open="true"] .chev { transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.faq__item[data-open="true"] .faq__a { max-height: 220px; }
.faq__a p { margin: 0; padding: 0 4px 20px; font-size: 14px; color: var(--fg-muted); line-height: 1.65; max-width: 720px; }

/* ── Reveal on scroll ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1); }
  .rv[data-in="true"] { opacity: 1; transform: none; }
}

/* ── Pricing specifics ───────────────────────────────────────────── */
.pillswitch {
  display: inline-flex; gap: 3px; padding: 4px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.pillswitch__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  color: var(--fg-muted); transition: color .15s, background .15s, box-shadow .2s;
  white-space: nowrap;
}
.pillswitch__btn:hover { color: var(--fg); }
.pillswitch__btn[data-active="true"] { color: var(--fg); background: var(--bg-1); border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); padding: 8px 19px; }
.pillswitch__btn .tag { font-family: var(--font-mono); font-size: 10px; color: var(--lp-accent); letter-spacing: 0.05em; }
/* On narrow viewports the 3-way switcher fills the row and shares width
   evenly instead of overflowing the container. */
@media (max-width: 560px) {
  .pillswitch { display: flex; width: 100%; }
  .pillswitch__btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 8px; font-size: 12.5px; }
  .pillswitch__btn[data-active="true"] { padding: 8px 7px; }
}
@media (max-width: 380px) {
  .pillswitch__btn { font-size: 11.5px; padding: 9px 5px; }
}

.billtoggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-muted); }
.billtoggle__track { width: 38px; height: 22px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border-strong); position: relative; transition: background .2s; cursor: pointer; }
.billtoggle__track[data-on="true"] { background: var(--lp-accent); border-color: var(--lp-accent); }
.billtoggle__knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.billtoggle__track[data-on="true"] .billtoggle__knob { transform: translateX(16px); }
.billtoggle .save { font-family: var(--font-mono); font-size: 11px; color: var(--success); }

.plan { padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan--rec { border-color: color-mix(in oklab, var(--lp-accent) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--lp-accent) 30%, transparent), var(--shadow-card); }
.plan__rec { position: absolute; top: -9px; left: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--lp-accent); color: var(--lp-accent-fg); padding: 2px 8px; border-radius: 5px; }
.plan__name { font-size: 14.5px; font-weight: 600; color: var(--fg); }
.plan__price { font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: 0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan__price .per { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--fg-dim); letter-spacing: 0; }
.plan__blurb { font-size: 12.5px; color: var(--fg-muted); line-height: 1.55; min-height: 38px; text-wrap: pretty; }

.cmptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmptable th, .cmptable td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cmptable th { font-weight: 500; color: var(--fg); font-size: 13px; }
.cmptable td:first-child, .cmptable th:first-child { text-align: left; color: var(--fg-2); position: sticky; left: 0; background: var(--bg); }
.cmptable td { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.cmptable .sec td { padding-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); border-bottom-color: var(--border-strong); position: static; background: var(--bg); }
/* Section labels stay pinned to the left while the table scrolls horizontally */
.cmptable__sec { position: sticky; left: 14px; display: inline-block; background: var(--bg); }
.cmptable__sec-abbr { display: none; }; text-align: left; }
.cmptable .ok { color: var(--lp-accent); }
.cmptable .col-rec { background: var(--lp-accent-soft); }
.cmptable .dash { color: var(--fg-faint); }

/* PAYG calculator */
.calc { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; align-items: stretch; }
.calc__pad { padding: 26px; }
.calc input[type="range"] { width: 100%; accent-color: var(--lp-accent); height: 4px; }
.calc__big { font-family: var(--font-display); font-size: 44px; font-weight: 400; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--fg); }
.calc__packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc__pack { padding: 9px 0; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-1); font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-muted); text-align: center; transition: all .15s; }
.calc__pack:hover { border-color: var(--fg-faint); color: var(--fg); }
.calc__pack[data-active="true"] { border-color: var(--lp-accent); color: var(--lp-accent); background: var(--lp-accent-soft); }
.calc__line { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--fg-muted); }
.calc__line .v { font-family: var(--font-mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.calc__line--total { border-bottom: none; padding-top: 14px; }
.calc__line--total .v { font-size: 22px; font-weight: 600; color: var(--lp-accent); }

/* ── Chips / badges ──────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-1);
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); transition: border-color .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--fg-faint); }
.chip img { width: 14px; height: 14px; }

/* ── Model wall (blueprint dotted box) ───────────────────────────── */
.modelwall {
  position: relative; border: 1px dashed var(--border-strong); border-radius: 6px;
  background-color: color-mix(in oklab, var(--bg-1) 70%, transparent);
  background-image: radial-gradient(var(--hairline) 0.7px, transparent 0.7px);
  background-size: 15px 15px; background-position: -1px -1px; overflow: visible;
}
.modelwall__body { overflow: hidden; border-radius: 0 0 8px 8px; }
.modelwall::before {
  content: ''; position: absolute; top: -4px; left: -4px; width: 9px; height: 9px;
  background: var(--lp-accent); z-index: 3;
}
.modelwall__head, .modelrow {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.6fr) minmax(0, 0.85fr) minmax(0, 0.85fr); gap: 12px; align-items: center;
  padding: 0 16px;
}
.modelwall__head {
  height: 32px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--fg-dim); border-bottom: 1px dashed var(--border);
  background: color-mix(in oklab, var(--bg-2) 55%, transparent);
}
.modelwall__head span:not(:first-child), .modelrow > span:not(:first-child) { text-align: right; }
.modelrow { height: 42px; border-bottom: 1px dashed color-mix(in oklab, var(--hairline) 80%, transparent); transition: background .15s; }
.modelrow:last-child { border-bottom: none; }
.modelrow:hover { background: color-mix(in oklab, var(--lp-accent) 6%, transparent); }
.modelrow__name { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modelrow__name img { width: 16px; height: 16px; flex: none; }
.modelrow__ctx { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.modelrow__price { font-size: 12px; color: var(--lp-accent); white-space: nowrap; }
@media (max-width: 520px) {
  .modelwall__head, .modelrow { grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.42fr) minmax(0, 0.66fr) minmax(0, 0.66fr); gap: 8px; padding: 0 12px; }
  .modelrow__name { font-size: 12.5px; gap: 7px; }
  .modelrow__name img { width: 14px; height: 14px; }
  .modelrow__ctx, .modelrow__price { font-size: 11px; }
  .modelwall__head { font-size: 9px; letter-spacing: 0.1em; }
}
.badge-line {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in oklab, var(--bg-1) 80%, transparent) padding-box;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2); white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.badge-line:hover { border-color: transparent; }
.badge-line::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px;
  background: conic-gradient(from var(--cmd-angle),
    transparent 0deg, var(--lp-accent) 55deg, transparent 120deg,
    transparent 235deg, color-mix(in oklab, var(--lp-accent) 70%, #fff) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
@media (prefers-reduced-motion: no-preference) { .badge-line::before { animation: cmdSpin 4.5s linear infinite; } }
@supports not (background: conic-gradient(from 0deg, red, blue)) { .badge-line { border-color: var(--border-strong); } .badge-line::before { display: none; } }
.badge-line__l { color: var(--fg-muted); }
.badge-line__hl { color: var(--lp-accent); }
.badge-line__arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--bg-3); color: var(--fg-2);
  transition: background .2s, color .2s;
}
.badge-line__arr svg { transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.badge-line:hover .badge-line__arr { background: var(--lp-accent); color: var(--lp-accent-ink, #0d0b14); }
.badge-line:hover .badge-line__arr svg { transform: translateX(2px); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc { grid-template-columns: 1fr; }
}
/* Pricing grids that carry inline columns need explicit mobile collapse */
@media (max-width: 760px) {
  .dpgrid { grid-template-columns: 1fr !important; }
  .payg3 { grid-template-columns: 1fr !important; }
  .scalegrid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 440px) {
  .scalegrid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* Compact compare table on phones: narrow, wrapping row labels + short
   section headers so data columns get more of the viewport before scrolling */
@media (max-width: 640px) {
  .cmptable { font-size: 12px; }
  .cmptable th, .cmptable td { padding: 8px 9px; }
  .cmptable tbody tr:not(.sec) td:first-child,
  .cmptable thead th:first-child { white-space: normal; max-width: 138px; }
  .cmptable__sec { left: 9px; }
  .cmptable__sec-full { display: none; }
  .cmptable__sec-abbr { display: inline; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
}
@media (max-width: 860px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: flex; }
  .nav__brand { flex: 1; }
  .nav[data-scrolled="true"] { padding: 0; }
  .nav[data-scrolled="true"] .nav__inner {
    height: 62px; border-radius: 0; box-shadow: none;
    width: auto; max-width: none; margin: 0;
    /* Keep side borders present-but-transparent: border-style is not
       transitionable, so toggling to/from `none` made the 1px sides snap
       back as solid border-strong and fade out — a light flash on both
       edges at every scroll-state change. Transparent solid never paints. */
    border-left: 1px solid transparent; border-right: 1px solid transparent;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav[data-open="true"] .nav__inner {
    background: var(--bg-0);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__brackets { display: none; }
}
@media (min-width: 861px) {
  .nav__sheet { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   v2 — Direction B polish: hero atmosphere, router demo, apps grid,
   plan carousel.
   ══════════════════════════════════════════════════════════════════ */

/* Hero atmosphere: layered glow + beams + masked grid + grain */
.hero-spot { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-spot__glow {
  position: absolute; left: 50%; top: -340px; transform: translateX(-50%);
  width: 1180px; height: 760px; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--lp-accent-glow), transparent 60%);
  filter: blur(24px); opacity: 0.7;
}
.hero-spot__beam {
  position: absolute; top: -260px; width: 420px; height: 940px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--lp-accent) 14%, transparent), transparent 66%);
  filter: blur(46px); opacity: 0.4;
}
.hero-spot__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--hairline) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 68% 52% at 50% 0%, black 26%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 68% 52% at 50% 0%, black 26%, transparent 74%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
[data-lp-theme="light"] .grain { opacity: 0.03; }

/* Hero scatter blocks (commandcode-style noise cells in empty gutters) */
.hero-spot__scatter { position: absolute; inset: 0; pointer-events: none; }
.nblk {
  position: absolute; border-radius: 3px; background-color: #16151b; opacity: 0.7;
  background-image: linear-gradient(100deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 55%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='sg'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23sg)' opacity='0.5'/></svg>");
  background-size: auto, 120px 120px; border: 1px dashed var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 30%, black 70%, transparent);
}
.nblk--dim { opacity: 0.4; }
[data-lp-theme="light"] .nblk { background-color: #dfdde6; }
@media (max-width: 1180px) { .hero-spot__scatter { display: none; } }

/* Hero artifact (generated render, masked into the background) */
.hero-art {
  position: relative; z-index: 0; margin: 20px auto 28px; width: min(880px, 94vw);
  pointer-events: none;
}
.hero-art::before {
  content: ''; position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 40%; height: 48%; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--lp-accent) 42%, transparent) 0%,
    color-mix(in oklab, var(--lp-accent) 15%, transparent) 42%,
    transparent 72%);
  filter: blur(48px); opacity: 0.5; z-index: -1;
}
.hero-art::after {
  content: ''; position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  width: 32%; height: 34px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 72%);
  filter: blur(12px); z-index: -1;
}
.hero-art img {
  width: 100%; display: block; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 37% 54% at 50% 46%, #000 0%, #000 40%, rgba(0,0,0,0.7) 56%, rgba(0,0,0,0.26) 72%, rgba(0,0,0,0.06) 85%, transparent 93%);
  mask-image: radial-gradient(ellipse 37% 54% at 50% 46%, #000 0%, #000 40%, rgba(0,0,0,0.7) 56%, rgba(0,0,0,0.26) 72%, rgba(0,0,0,0.06) 85%, transparent 93%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: lpHeroFloat 5.5s ease-in-out infinite; }
  @keyframes lpHeroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
}
[data-lp-theme="light"] .hero-art { display: none; }

/* Hero headline word entrance */
.hw { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hw { opacity: 0; filter: blur(10px); transform: translateY(14px); animation: lpWordIn .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) forwards; }
  .h1 .hw.accent { animation: lpWordIn .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) forwards, lpShine 6s linear infinite; }
  @keyframes lpWordIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
}

/* Noise-skeleton dashed grid (control plane section) */
.ngrid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr);
  border: 1px dashed var(--border-strong); border-radius: 2px;
}
.ngrid::before { display: none; }
.ngrid__cell {
  outline: 1px dashed var(--border); outline-offset: -0.5px;
  padding: 22px; min-height: 148px;
  display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
}
.ngrid__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.ngrid__v { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: 0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.noisebar {
  border-radius: 4px; background-color: #17161c;
  background-image: linear-gradient(100deg, rgba(255,255,255,0.055), rgba(255,255,255,0) 55%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='nz'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23nz)' opacity='0.16'/></svg>");
  background-size: auto, 120px 120px;
}
[data-lp-theme="light"] .noisebar { background-color: #e7e5ee; }
@media (max-width: 960px) {
  .ngrid { grid-template-columns: repeat(2, 1fr) !important; }
  .ngrid__cell { grid-column: span 1 !important; }
}

/* Router demo */
@keyframes rtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rt-query {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2);
  animation: rtIn .4s cubic-bezier(.2,.6,.2,1);
}

/* Routing: video + rotating badge (overlaid inside frame) */
.rgv { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.rgv__fig { width: 100%; position: relative; }
.rgv__art { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: inherit; }
@media (max-width: 620px) { .rgv__art { aspect-ratio: 4 / 3; } }
.rgv__vid { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.rgv__badge {
  position: absolute; left: 0; right: 0; top: 14px; margin-inline: auto; width: max-content; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: nowrap; justify-content: center;
  max-width: calc(100% - 28px); padding: 9px 15px; border-radius: 8px;
  background: color-mix(in oklab, var(--bg-1) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid transparent;
  font-size: 11.5px; white-space: nowrap; animation: rgvBadgeIn .45s .05s both;
}
@keyframes rgvBadgeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.rgv__req { color: var(--fg-dim); }
.rgv__arrow { display: inline-flex; color: var(--fg-faint); }
.rgv__mark { display: inline-flex; }
.rgv__mark img { width: 15px; height: 15px; display: block; }
.rgv__mark img.inv { filter: invert(1) brightness(1.7); }
.rgv__model { color: var(--fg); font-weight: 600; }
.rgv__price { color: var(--fg-2); }
.rgv__save {
  color: var(--success); font-weight: 600;
  padding: 2px 9px; border-radius: 999px; background: var(--success-soft);
  border: 1px solid color-mix(in oklab, var(--success) 24%, transparent);
}
/* Routing badge downscale so it never overflows / clips the video frame */
@media (max-width: 620px) {
  .rgv__badge { top: 10px; gap: 6px; padding: 7px 10px; font-size: 10px; max-width: calc(100% - 20px); }
  .rgv__req, .rgv__arrow { display: none; }
  .rgv__mark img { width: 13px; height: 13px; }
  .rgv__save { padding: 2px 7px; }
}
@media (max-width: 380px) { .rgv__save { display: none; } }
@keyframes rgFlow { to { stroke-dashoffset: -11; } }

/* Guardrail redaction marks */
.redact {
  padding: 1px 6px; border-radius: 5px; background: var(--lp-accent-soft);
  color: var(--lp-accent); font-family: var(--font-mono); font-size: 11px;
}
.gr-check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg-2); padding: 7px 0; border-bottom: 1px dashed var(--border); white-space: nowrap; }
.gr-check:last-child { border-bottom: none; }
.gr-check .mono { margin-left: auto; font-size: 11px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; }

/* Command-grade section rails: dashed frame + corner marker.
   Inset from the viewport edges at intermediate widths so the dashed rails
   float with a gutter instead of touching the screen edge. */
.section > .wrap { position: relative; width: min(var(--max-w), 100% - clamp(40px, 9vw, 120px)); border-inline: 1px dashed var(--border); padding-inline: 34px; }
.section > .wrap::before {
  content: ''; position: absolute; top: -4px; left: -4px; width: 9px; height: 9px;
  background: var(--fg-2); z-index: 1;
}
.statband > div + div { border-left: 1px dashed var(--border); }
@media (max-width: 720px) { .section > .wrap { width: auto; border-inline: none; padding-inline: 22px; } .section > .wrap::before { display: none; } }

/* Two-column split rows (smart routing / models) — collapse cleanly on mobile.
   Ratio set per-instance via a modifier; base display + gap live here so the
   media query can override the columns (inline styles could not). */
.splitrow { display: grid; gap: 56px; align-items: center; }
.splitrow > * { min-width: 0; }
.splitrow--routing { grid-template-columns: 0.85fr 1.15fr; }
.splitrow--models { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .splitrow { grid-template-columns: 1fr; gap: 40px; } }

/* Bento + stat band: no inline media path, so override the inline grids here */
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr !important; }
  .bento > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .statband { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 14px !important; }
  .statband > div + div { border-left: none; }
}

/* Apps grid ("use any agent on any model") */
.appgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.app__badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 15px; color: var(--fg-2); margin-bottom: 12px;
}
.app__name { font-size: 15.5px; font-weight: 600; color: var(--fg); }
.app__desc { font-size: 12.5px; color: var(--fg-muted); }
.app__run { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.app__run img { width: 14px; height: 14px; }
.app__run .mono { color: var(--lp-accent); font-size: 12px; }
@media (max-width: 900px) { .appgrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .asciirow { grid-template-columns: 1fr !important; } }

/* Plan carousel (pricing) */
.carousel { position: relative; }
.carousel__stage {
  position: relative; height: 640px; overflow: hidden;
  /* Fade the side plans out toward the left/right edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.carousel__card {
  position: absolute; left: 50%; top: 10px; width: 372px; margin-left: -186px;
  transition: transform .5s cubic-bezier(.3,.7,.25,1), opacity .5s, filter .5s;
  will-change: transform;
}
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-1); border: 1px solid var(--border-strong);
  color: var(--fg-muted); box-shadow: var(--shadow-card);
  transition: color .15s, border-color .15s, transform .15s;
}
.carousel__nav:hover { color: var(--fg); border-color: var(--fg-faint); }
.carousel__nav:active { transform: translateY(-50%) scale(0.95); }
.carousel__nav--l { left: 4px; }
.carousel__nav--r { right: 4px; }
.carousel__dots { display: flex; gap: 7px; justify-content: center; margin-top: 20px; }
.carousel__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); border: none; padding: 0; cursor: pointer; transition: width .3s, background .3s; }
.carousel__dot[data-active="true"] { width: 26px; background: var(--lp-accent); }
.pcard { padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 560px; }
.pcard__feat { display: flex; align-items: flex-start; gap: 9px; font-size: 12.8px; color: var(--fg-2); line-height: 1.5; }
.pcard__feat .ic { color: var(--lp-accent); flex: none; margin-top: 2px; }
.pcard__strike { font-family: var(--font-sans); font-size: 15px; color: var(--fg-dim); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
/* Plan card provider strip (model families the tier reaches) */
.pcard__prov { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.pcard__prov-l { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.pcard__prov-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pcard__prov-i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg-1); }
.pcard__prov-i img { width: 15px; height: 15px; }
.pcard__prov-i img.inv { filter: invert(1) brightness(1.7); }
.pcard__prov-more { font-size: 10.5px; color: var(--fg-dim); margin-left: 2px; }
.pcard__note { font-size: 12px; color: var(--fg-dim); }
@media (max-width: 900px) {
  .carousel__stage { height: 660px; }
  .carousel__card { width: 320px; margin-left: -160px; }
}

/* ══════════════════════════════════════════════════════════════════
   v3 — Major rework: gradient-border command chip, infrastructure
   showcase, animated ASCII field, product-feature mock cards.
   ══════════════════════════════════════════════════════════════════ */

/* Gemini-style running gradient border on the base_url chip */
@property --cmd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cmdglow { position: relative; display: inline-flex; border-radius: 12px; padding: 1.5px; isolation: isolate; }
.cmdglow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--cmd-angle),
    transparent 0deg, transparent 200deg,
    color-mix(in oklab, var(--lp-accent) 40%, transparent) 250deg,
    var(--lp-accent) 300deg,
    color-mix(in oklab, var(--lp-accent) 55%, #ffffff) 320deg,
    var(--lp-accent) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: -1;
}
.cmdglow::after {
  content: ""; position: absolute; inset: -30%; border-radius: inherit; z-index: -2;
  background: radial-gradient(closest-side, var(--lp-accent-glow), transparent 70%);
  opacity: 0.55; filter: blur(14px);
}
@media (prefers-reduced-motion: no-preference) {
  .cmdglow::before { animation: cmdSpin 4.5s linear infinite; }
  @keyframes cmdSpin { to { --cmd-angle: 360deg; } }
}
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .cmdglow::before { background: var(--lp-accent); opacity: 0.5; }
}
.cmdglow > .cmdchip { border-color: transparent !important; background: var(--bg) !important; }
/* base_url chip: cap to its column; the mono string breaks (overflowWrap:
   anywhere on the text) instead of overflowing the viewport on small screens. */
.cmdglow { max-width: 100%; }
@media (max-width: 480px) { .cmdglow { width: 100%; } .cmdchip { width: 100%; font-size: 11.5px !important; } .cmdchip__pre { display: none; } }

/* Animated flow sections */
.flowrow { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.flowrow--rev { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.flowvid {
  margin: 0; position: relative; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; background: #0b0a10;
}
.flowvid::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, color-mix(in oklab, var(--lp-accent) 38%, transparent), transparent 44%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.flowvid video { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.flowvid__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, var(--hairline) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 32px);
}
.flowvid__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-top: 1px dashed var(--border-strong);
  background: linear-gradient(0deg, color-mix(in oklab, #0b0a10 82%, transparent), transparent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-2); white-space: nowrap;
}
.flowvid__cap > span { overflow: hidden; text-overflow: ellipsis; }
.flowvid__spec { color: var(--fg-dim); }
.flowsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flowsteps--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px dashed var(--border-strong); }
.flowsteps--row .flowstep { border-bottom: none; border-left: 1px dashed var(--border-strong); padding: 22px 26px 4px; }
.flowsteps--row .flowstep:first-child { border-left: none; padding-left: 0; }
@media (max-width: 720px) { .flowsteps--row { grid-template-columns: 1fr; } .flowsteps--row .flowstep { border-left: none; padding: 18px 0; border-bottom: 1px dashed var(--border-strong); } .flowsteps--row .flowstep:last-child { border-bottom: none; padding-bottom: 4px; } }
.flowstep { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--border-strong); }
.flowstep:last-child { border-bottom: none; }
.flowstep > div { display: flex; flex-direction: column; gap: 5px; }
.flowstep__n { font-family: var(--font-display); font-size: 12px; color: var(--lp-accent); letter-spacing: 0.1em; padding-top: 2px; }
.flowstep__t { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.flowstep__d { font-size: 13px; color: var(--fg-muted); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 860px) {
  .flowrow, .flowrow--rev { grid-template-columns: 1fr; gap: 28px; }
  .flowrow--rev .flowvid { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .flowvid video { display: none; }
  .flowvid { aspect-ratio: 4/3; }
  .flowvid[data-poster] { background-size: cover; background-position: center; }
}

/* Inference stack — stacked containers (Databricks-style layer slabs) */
.stacklayers { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; flex: 1; justify-content: space-between; }
.slab { position: relative; display: grid; grid-template-columns: 112px 1fr; border: 1px solid var(--border); border-radius: 3px; background: var(--bg-1); overflow: hidden; box-shadow: var(--shadow-card); }
.slab__tab { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 15px 15px; background: var(--bg-2); border-right: 1px dashed var(--border-strong); }
.slab__addr { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--lp-accent); }
.slab__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.slab__noise { margin-top: auto; width: 60px; height: 24px; border-radius: 3px; opacity: 0.85; }
.slab__body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; min-width: 0; justify-content: center;
  background-image:
    repeating-linear-gradient(0deg, var(--hairline) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 32px);
}
.slab__body::after { content: ''; position: absolute; left: 10px; bottom: 10px; width: 7px; height: 7px; border-bottom: 1px solid var(--lp-accent); border-left: 1px solid var(--lp-accent); opacity: 0.4; }
.slab__corner { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-top: 1px solid var(--lp-accent); border-right: 1px solid var(--lp-accent); opacity: 0.5; }
.slab__sub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.01em; color: var(--fg-dim); }
.slab__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.slab__spec { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.01em; color: var(--fg-2); padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: color-mix(in oklab, var(--bg-0) 78%, transparent); white-space: nowrap; }
@media (max-width: 560px) { .slab { grid-template-columns: 1fr; } .slab__tab { flex-direction: row; align-items: center; gap: 10px; border-right: none; border-bottom: 1px dashed var(--border-strong); } .slab__noise { display: none; } }

/* Inference-stack animated figure */
.stackfig { aspect-ratio: 1; align-self: center; }
.stackfig__art { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.stackfig__vid { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Confidential inference — interactive ASCII/hex enclave console */
.tee2-wrap { display: flex; flex-direction: column; gap: 16px; }
.tee2 { display: grid; grid-template-columns: 1.32fr 0.68fr; gap: 28px; align-items: stretch; }
.tee2 > * { min-width: 0; }

.tee2__panel { display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-0); overflow: hidden; }
.tee2__bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px dashed var(--border-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; white-space: nowrap; }
.tee2__brand { color: var(--fg); font-weight: 600; letter-spacing: 0.16em; }
.tee2__status { margin-left: auto; flex: none; color: var(--lp-accent); letter-spacing: 0.1em; transition: color 0.2s; }
.tee2__screen { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; background-color: var(--bg-0);
  background-image:
    repeating-linear-gradient(0deg, var(--hairline) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 34px);
}
.tee2__screen::before { content: ''; position: absolute; inset: 8px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--lp-accent), var(--lp-accent)) 0 0 / 9px 1px no-repeat, linear-gradient(var(--lp-accent), var(--lp-accent)) 0 0 / 1px 9px no-repeat,
    linear-gradient(var(--lp-accent), var(--lp-accent)) 100% 0 / 9px 1px no-repeat, linear-gradient(var(--lp-accent), var(--lp-accent)) 100% 0 / 1px 9px no-repeat,
    linear-gradient(var(--lp-accent), var(--lp-accent)) 0 100% / 9px 1px no-repeat, linear-gradient(var(--lp-accent), var(--lp-accent)) 0 100% / 1px 9px no-repeat,
    linear-gradient(var(--lp-accent), var(--lp-accent)) 100% 100% / 9px 1px no-repeat, linear-gradient(var(--lp-accent), var(--lp-accent)) 100% 100% / 1px 9px no-repeat;
  opacity: 0.55;
}
.tee2__mem { position: relative; z-index: 1; margin: 0;
  font-family: var(--font-mono); font-size: clamp(9px, 1.15vw, 13px); line-height: 1.62; letter-spacing: 0.06em;
  color: var(--fg-2); white-space: pre; overflow: hidden; text-shadow: 0 0 12px color-mix(in oklab, var(--lp-accent) 10%, transparent);
}
.tee2__mem b { color: var(--lp-accent); font-weight: 500; }
.tee2__mem i { color: var(--border-strong); font-style: normal; }
.tee2__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-top: 1px dashed var(--border-strong); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; }
.tee2__code { color: var(--fg-2); }
.tee2__hint { color: var(--fg-dim); }

.tee2steps { display: flex; flex-direction: column; gap: 10px; }
.tee2step { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 6px; justify-content: center; padding: 15px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-0); cursor: pointer; transition: border-color 0.18s, background 0.18s; }
.tee2step:hover { border-color: var(--border-strong); }
.tee2step:focus-visible { outline: none; border-color: var(--lp-accent); }
.tee2step.is-on { border-color: color-mix(in oklab, var(--lp-accent) 55%, transparent); background: color-mix(in oklab, var(--lp-accent) 7%, var(--bg-0)); }
.tee2step__top { display: flex; align-items: baseline; gap: 10px; }
.tee2step__n { font-family: var(--font-mono); font-size: 11px; color: var(--lp-accent); letter-spacing: 0.08em; }
.tee2step__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.tee2step__d { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; text-wrap: pretty; }
.tee2step__code { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); letter-spacing: 0.02em; transition: color 0.18s; }
.tee2step.is-on .tee2step__code { color: var(--lp-accent); }

.tee2term { margin: 0; padding: 15px 18px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-2); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--fg-2); white-space: pre; overflow-x: auto; }
.tee2term__line { transition: color 0.18s; }
.tee2term__line--head, .tee2term__line--foot { color: var(--fg); }
.tee2term__line.is-on { color: var(--lp-accent); }

@media (max-width: 860px) { .tee2 { grid-template-columns: 1fr; } .tee2__screen { min-height: 260px; } }

/* Global network */
.globe { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.globe__cv { width: 100%; height: 100%; cursor: grab; transition: opacity .8s ease; contain: layout paint size; touch-action: none; }
.globe__arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.globe__skel {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, color-mix(in oklab, var(--lp-accent) 14%, transparent), transparent 62%), var(--bg-2);
  animation: globepulse 1.6s ease-in-out infinite;
}
@keyframes globepulse { 0%,100% { opacity: .5; } 50% { opacity: .85; } }
.gnet { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.gnet__globe { position: relative; display: grid; place-items: center; }
.gnet__cap {
  position: absolute; left: 4px; bottom: -16px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--fg-dim);
}
.gnet__panel { border: 1px dashed var(--border-strong); border-radius: 2px; position: relative; }
.gnet__panel::before { content: ''; position: absolute; inset: -4px; pointer-events: none; z-index: 3; background: linear-gradient(var(--fg-2),var(--fg-2)) 0 0 / 8px 8px no-repeat, linear-gradient(var(--fg-2),var(--fg-2)) 100% 0 / 8px 8px no-repeat, linear-gradient(var(--fg-2),var(--fg-2)) 0 100% / 8px 8px no-repeat, linear-gradient(var(--fg-2),var(--fg-2)) 100% 100% / 8px 8px no-repeat; }
.gnet__head, .gnet__row {
  display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 0.6fr; gap: 12px;
  padding: 13px 20px; align-items: center;
}
.gnet__head {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-dim);
  border-bottom: 1px dashed var(--border-strong);
}
.gnet__row { border-bottom: 1px dashed var(--hairline); font-size: 13px; color: var(--fg-muted); transition: background .15s; }
.gnet__row:last-child { border-bottom: none; }
.gnet__row:hover { background: color-mix(in oklab, var(--lp-accent) 5%, transparent); }
.gnet__row .mono { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 860px) { .gnet { grid-template-columns: 1fr; } }

/* Infrastructure showcase (GMI "take control" language) */
.infra {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  border: 1px dashed var(--border-strong); border-radius: 2px; overflow: visible;
  position: relative;
}
.infra::before {
  content: ""; position: absolute; inset: -4px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--fg-2),var(--fg-2)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--fg-2),var(--fg-2)) 100% 0 / 8px 8px no-repeat,
    linear-gradient(var(--fg-2),var(--fg-2)) 0 100% / 8px 8px no-repeat,
    linear-gradient(var(--fg-2),var(--fg-2)) 100% 100% / 8px 8px no-repeat;
}
.infra__art {
  position: relative; min-height: 460px; overflow: hidden;
  border-right: 1px dashed var(--border-strong);
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, color-mix(in oklab, var(--lp-accent) 8%, transparent), transparent 72%),
    repeating-linear-gradient(0deg, var(--hairline) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 34px);
}
.infra__art .lazyimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.infra__art img {
  width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; object-position: center 42%;
  filter: drop-shadow(0 0 40px var(--lp-accent-glow));
}
.infra__art .tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim);
}
.infra__cells { display: grid; grid-template-rows: repeat(3, 1fr); }
.infra__cell { padding: 30px 30px; border-bottom: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.infra__cell:last-child { border-bottom: none; }
.infra__n { font-family: var(--font-display); font-size: 11px; color: var(--lp-accent); letter-spacing: 0.1em; }
.infra__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.infra__d { font-size: 13px; color: var(--fg-muted); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 860px) {
  .infra { grid-template-columns: 1fr; }
  .infra__art { border-right: none; border-bottom: 1px dashed var(--border-strong); min-height: 340px; }
}

/* ── Animated ASCII field (Phala-style creative block) ───────────── */
.ascii-wrap { border: 1px dashed var(--border-strong); border-radius: 2px; padding: 26px 28px 16px; position: relative; background: var(--code-bg); overflow: hidden; }
.ascii-wrap::before { display: none; }
.ascii-field {
  margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.12;
  letter-spacing: 0.06em; white-space: pre; color: var(--fg-faint);
  user-select: none; overflow: hidden;
}
.ascii-field b { color: var(--lp-accent); font-weight: 400; }
.ascii-field i { color: color-mix(in oklab, var(--lp-accent) 55%, var(--fg-dim)); font-style: normal; }
.ascii-meta {
  display: flex; justify-content: space-between; gap: 8px 16px; margin-top: 16px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim); flex-wrap: wrap;
}

/* ── Product feature cards (Zed-style mock thumbnails) ───────────── */
.prodgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prodcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prodcard__thumb {
  position: relative; height: 216px; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in oklab, var(--lp-accent) 6%, transparent), transparent 70%),
    var(--bg);
  padding: 18px; display: flex;
}
.prodcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 7px; }
.prodcard__t { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); display: flex; align-items: center; gap: 9px; }
.prodcard__t .ic { color: var(--lp-accent); display: inline-flex; }
.prodcard__soon {
  margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--lp-accent); padding: 3px 8px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--lp-accent) 40%, var(--border)); background: var(--lp-accent-soft);
}
.prodcard__d { font-size: 13px; color: var(--fg-muted); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 760px) { .prodgrid { grid-template-columns: 1fr; } }

/* Mini mock: provider marks + model compare */
.mk { width: 100%; align-self: stretch; }
.prov { flex: none; display: inline-flex; vertical-align: middle; }
.mk-cmp { display: flex; flex-direction: column; gap: 9px; height: 100%; justify-content: center; }
.mk-cmp__bar {
  align-self: flex-end; max-width: 90%; padding: 7px 11px; border-radius: 9px;
  font-size: 11px; line-height: 1.4; background: var(--lp-accent-soft); color: var(--fg);
  border: 1px solid color-mix(in oklab, var(--lp-accent) 30%, transparent);
}
.mk-cmp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-cmp__col {
  display: flex; flex-direction: column; gap: 7px; padding: 10px 11px;
  border-radius: 9px; background: var(--bg-1); border: 1px solid var(--border);
}
.mk-cmp__head { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--fg-2); }
.mk-cmp__body { margin: 0; font-size: 10.5px; line-height: 1.5; color: var(--fg-muted); text-wrap: pretty; }
.mk-cmp__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--font-mono); font-size: 9px; color: var(--fg-faint); }
.mk-cmp__win { color: var(--success); background: var(--success-soft); padding: 1px 6px; border-radius: 999px; letter-spacing: 0.02em; }
.mk-cmp__num { margin-left: auto; white-space: nowrap; }

/* Mini mock: agent runrows */
.mk-run { display: flex; flex-direction: column; gap: 3px; }
.mk-run__goal {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 5px;
  border-radius: 8px; background: var(--lp-accent-soft); border: 1px solid color-mix(in oklab, var(--lp-accent) 26%, transparent);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg);
}
.mk-run__ic { display: inline-flex; color: var(--lp-accent); }
.mk-run__ic img { display: block; border-radius: 3px; }
.mk-run__live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-accent); }
.mk-run__live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lp-accent); }
.mk-run__row { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; background: var(--bg-1); border: 1px solid var(--border); font-size: 11px; color: var(--fg-2); white-space: nowrap; overflow: hidden; }
.mk-run__row .tx { overflow: hidden; text-overflow: ellipsis; }
.mk-run__row .g { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--fg-muted); }
.mk-run__row .g--done { background: var(--success-soft); color: var(--success); }
.mk-run__row .g--run { background: var(--lp-accent-soft); color: var(--lp-accent); animation: mkPulse 1.4s ease-in-out infinite; }
@keyframes mkPulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .mk-run__row .g--run { animation: none; } }
.mk-run__row .m { margin-left: auto; padding-left: 8px; font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-faint); white-space: nowrap; flex: none; }

/* Mini mock: flow builder nodes */
.mk-flow { position: relative; width: 100%; }
.mk-flow svg { width: 100%; height: 190px; display: block; }
.mk-node { fill: var(--bg-1); stroke: var(--border-strong); }
.mk-node--acc { fill: color-mix(in oklab, var(--lp-accent) 12%, var(--bg-1)); stroke: color-mix(in oklab, var(--lp-accent) 55%, var(--border-strong)); }
.mk-node--soft { fill: var(--bg-2); stroke: var(--border-strong); }
.mk-node--sel { fill: color-mix(in oklab, var(--lp-accent) 14%, var(--bg-1)); stroke: color-mix(in oklab, var(--lp-accent) 62%, var(--border-strong)); stroke-width: 1.4; }
.mk-nt { font-family: var(--font-mono); font-size: 10.5px; fill: var(--fg-2); }
.mk-ns { font-family: var(--font-mono); font-size: 8.5px; fill: var(--fg-dim); letter-spacing: 0.02em; }
.mk-ns--acc { fill: color-mix(in oklab, var(--lp-accent) 80%, var(--fg-2)); }
.mk-port { fill: var(--border-strong); }
.mk-port--on { fill: var(--lp-accent); }
.mk-packet { fill: var(--lp-accent); filter: drop-shadow(0 0 3px color-mix(in oklab, var(--lp-accent) 70%, transparent)); }
.mk-edge { fill: none; stroke: var(--border-strong); stroke-width: 1.4; }
.mk-edge.on { stroke: var(--lp-accent); stroke-opacity: 0.8; stroke-dasharray: 4 5; animation: rgFlow 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mk-edge.on { animation: none; stroke-dasharray: none; } .mk-packet { display: none; } }

/* Mini mock: terminal */
.mk-term { width: 100%; align-self: stretch; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; container-type: inline-size; font-family: var(--font-mono); font-size: 12px; line-height: 1.85; color: var(--fg-2); }
.mk-term__banner { display: flex; align-items: center; padding-bottom: 4px; }
.pixword { display: block; width: auto; height: clamp(20px, 6.6cqw, 30px); fill: var(--lp-accent); filter: drop-shadow(0 0 10px var(--lp-accent-glow)); }
.mk-term__lines { display: flex; flex-direction: column; }
.mk-term .p { color: var(--lp-accent); }
.mk-term__route { display: flex; align-items: center; gap: 6px; }
.mk-term .d { color: var(--fg-dim); }
.mk-term .ok { color: var(--success); }
.mk-cursor { display: inline-block; width: 7px; height: 13px; background: var(--lp-accent); vertical-align: text-bottom; animation: mkBlink 1.1s steps(2) infinite; }
@keyframes mkBlink { 50% { opacity: 0; } }

/* ── Lazy image + GPU-inspired skeleton loader ───────────────────── */
.lazyimg { display: contents; }
.lazyimg img { opacity: 0; transition: opacity .6s ease; }
.lazyimg[data-loaded="true"] img { opacity: 1; }
.lazyimg__skel {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden;
  background: var(--bg-1); opacity: 1; transition: opacity .5s ease; pointer-events: none;
}
.lazyimg[data-loaded="true"] .lazyimg__skel { opacity: 0; }
.lazyimg__skel::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}
.lazyimg__skel::before {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(105deg,
    transparent 38%,
    color-mix(in oklab, var(--lp-accent) 9%, transparent) 47%,
    color-mix(in oklab, var(--lp-accent) 20%, transparent) 50%,
    color-mix(in oklab, var(--lp-accent) 9%, transparent) 53%,
    transparent 62%);
  background-size: 220% 220%;
}
@media (prefers-reduced-motion: no-preference) {
  .lazyimg__skel::before { animation: skelSweep 1.5s ease-in-out infinite; }
  @keyframes skelSweep { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
}

/* ── Footer (commandcode-style dashed grid) ──────────────────────── */
.footer2 { position: relative; margin-top: 8px; }
.footer2__inner { padding-top: 46px; padding-bottom: 40px; }
.footer2__grid {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.7fr 58px;
  border: 1px dashed var(--border-strong); border-radius: 2px; position: relative;
}
.footer2__grid::before, .footer2__grid::after {
  content: ""; position: absolute; top: -4px; width: 8px; height: 8px; background: var(--fg-2); z-index: 3;
}
.footer2__grid::before { left: -4px; }
.footer2__grid::after { right: -4px; }
.footer2__col { display: flex; flex-direction: column; border-right: 1px dashed var(--border-strong); }
.footer2__head {
  padding: 15px 18px 12px; font-family: var(--font-display); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-accent);
  border-bottom: 1px dashed var(--border);
}
.footer2__link {
  position: relative;
  padding: 13px 18px; font-size: 13px; color: var(--fg-muted);
  border-bottom: 1px dashed var(--border); transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.footer2__link::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--lp-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .2s ease;
}
.footer2__link:hover::before { transform: scaleY(1); }
.footer2__col .footer2__link:last-child { border-bottom: none; }
.footer2__link:hover { color: var(--fg); background: var(--bg-1); padding-left: 24px; }
.footer2__brand {
  position: relative; overflow: hidden; border-right: 1px dashed var(--border-strong);
  display: flex; align-items: flex-end; min-height: 208px;
  background: radial-gradient(ellipse 90% 80% at 70% 40%, color-mix(in oklab, var(--lp-accent) 7%, transparent), transparent 70%);
}
.footer2__art {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 82%; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 50%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 60% 50%, #000 10%, transparent 78%);
}
.footer2__brandinner { position: relative; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.footer2__wordmark { font-family: var(--font-display); font-size: 30px; line-height: 0.98; letter-spacing: 0.02em; color: var(--fg); }
.footer2__tag { font-size: 12.5px; color: var(--fg-muted); max-width: 220px; line-height: 1.5; }
.footer2__social { display: flex; flex-direction: column; }
.footer2__social a {
  flex: 1; display: grid; place-items: center; color: var(--fg-dim);
  border-bottom: 1px dashed var(--border); transition: color .2s ease, background .2s ease;
}
.footer2__social a svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.footer2__social a:last-child { border-bottom: none; }
.footer2__social a:hover { color: var(--lp-accent); background: var(--bg-1); }
.footer2__social a:hover svg { transform: scale(1.2) translateY(-1px); }
.footer2__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--fg-dim); flex-wrap: wrap;
}
.footer2__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--success); }
/* ── Models page (mx = catalog list, mxd = model detail) ─────────── */
.mx-page { padding-top: 40px; min-height: 70vh; }
.mx-hero { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 26px; }
.mx-h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; font-weight: 700; letter-spacing: -0.028em; margin: 0; text-wrap: balance; color: var(--fg); }

.mx-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mx-search {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-1);
  color: var(--fg-dim); transition: border-color .2s;
}
.mx-search:focus-within { border-color: color-mix(in oklab, var(--lp-accent) 45%, var(--border-strong)); }
.mx-search input {
  flex: 1; height: 100%; background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg);
}
.mx-search input::placeholder { color: var(--fg-dim); }
.mx-select { position: relative; }
.mx-select__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 42px; min-width: 178px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-1);
  font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--fg);
  white-space: nowrap;
  transition: border-color .15s;
}
.mx-select__btn:hover { border-color: var(--fg-faint); }
.mx-select__ico { display: inline-flex; color: var(--fg-dim); }
.mx-select__btn > span:nth-child(2) { flex: 1; text-align: left; }
.mx-select__chev { display: inline-flex; color: var(--fg-dim); transition: transform .18s; }
.mx-select__chev[data-open="true"] { transform: rotate(180deg); }
.mx-select__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px;
  display: flex; flex-direction: column; gap: 1px; padding: 5px;
  border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .mx-select__menu { animation: mxPop .14s cubic-bezier(.2,.9,.3,1); transform-origin: top right; }
  @keyframes mxPop { from { opacity: 0; transform: scale(0.97) translateY(-3px); } }
}
.mx-select__opt {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 7px; cursor: pointer;
  background: none; border: none; border-radius: 4px; text-align: left;
  font-family: var(--font-display); font-size: 13px; color: var(--fg-muted);
  transition: background .12s, color .12s;
}
.mx-select__opt:hover { background: var(--bg-2); color: var(--fg); }
.mx-select__opt[aria-selected="true"] { color: var(--fg); }
.mx-select__tick { display: inline-flex; width: 14px; flex: none; color: var(--lp-accent); }
.mx-filterbtn {
  display: none; align-items: center; gap: 7px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-1);
  color: var(--fg); font-size: 11.5px; letter-spacing: .1em; cursor: pointer;
}

.mx-layout { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }
/* modality tab strip */
.mx-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-1); }
.mx-tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: none; border-radius: 3px; background: none; color: var(--fg-muted); font-size: 11.5px; letter-spacing: .08em; cursor: pointer; transition: color .15s, background .15s; }
.mx-tab svg { width: 13px; height: 13px; }
.mx-tab__ct { font-size: 10px; opacity: .7; font-style: normal; }
.mx-tab:hover:not([data-on]) { color: var(--fg); background: var(--bg-2); }
.mx-tab[data-on] { background: var(--lp-accent); color: #0d0b14; }
.mx-tab[data-on] .mx-tab__ct { opacity: .85; }
.mx-side {
  position: sticky; top: 96px; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-1);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.mx-side__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; background: var(--bg-1); z-index: 1;
}
.mx-side__head .mx-side__clear { flex: none; }
.mx-side__handle { display: none; justify-content: center; padding: 10px 0 0; }
.mx-side__handle i { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.mx-side__close {
  display: none; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-2);
  color: var(--fg-muted); cursor: pointer;
}
.mx-side__foot {
  display: none; gap: 10px; position: sticky; bottom: 0; margin-top: auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-1); border-top: 1px solid var(--hairline);
}
.mx-side__foot .btn--primary { flex: 1; }
.mx-scrim { display: none; }
.mx-side__title { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); flex: 1; }
.mx-side__title .mono { font-size: 11px; letter-spacing: .14em; }
.mx-side__title svg { color: var(--lp-accent); }
.mx-side__clear { background: none; border: none; cursor: pointer; font-size: 10px; letter-spacing: .1em; color: var(--lp-accent); padding: 4px; min-height: 0; }
.mx-side__more, .mx-side__clear { font-family: var(--font-mono); }
.mx-side__more {
  background: none; border: none; cursor: pointer; text-align: left; padding: 4px 0;
  font-size: 10px; letter-spacing: .1em; color: var(--fg-dim); text-decoration: underline dashed; text-underline-offset: 3px;
}
.mx-side__more:hover { color: var(--lp-accent); }
.mx-group { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.mx-group + .mx-group { border-top: 1px solid var(--hairline); }
.mx-group__label { font-size: 9.5px; letter-spacing: .16em; color: var(--fg-dim); }
.mx-group__body { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-2);
  font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--fg-muted);
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, transform .1s;
}
.mx-chip:active { transform: scale(0.97); }
.mx-chip img { width: 14px; height: 14px; flex: none; border-radius: 4px; }
.mx-chip__glyph {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 14px; height: 14px; border-radius: 4px; font-style: normal;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; color: #fff;
}
.mx-chip:hover { border-color: var(--fg-faint); color: var(--fg); }
.mx-chip[data-on="true"] {
  border-color: color-mix(in oklab, var(--lp-accent) 55%, transparent);
  background: color-mix(in oklab, var(--lp-accent) 13%, var(--bg-2)); color: var(--fg);
}
.mx-chip__n { font-style: normal; color: var(--fg-dim); font-size: 10px; }
.mx-checklist { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.mx-check {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px;
  background: none; border: none; border-radius: 4px; cursor: pointer; text-align: left;
  transition: background .15s;
}
.mx-check:hover { background: var(--bg-2); }
.mx-check__box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 15px; height: 15px; border: 1px solid var(--border-strong); border-radius: 3px;
  background: var(--bg-2); color: var(--lp-accent-ink, #0d0b14);
  transition: background .15s, border-color .15s;
}
.mx-check[aria-checked="true"] .mx-check__box { background: var(--lp-accent); border-color: var(--lp-accent); }
.mx-check__label { font-size: 12.5px; color: var(--fg-muted); }
.mx-check:hover .mx-check__label, .mx-check[aria-checked="true"] .mx-check__label { color: var(--fg); }
.mx-seg { display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; width: 100%; }
.mx-seg--fit { width: auto; }
.mx-seg--fit .mx-seg__opt { padding: 6px 12px; flex: none; }
.mx-seg__opt {
  flex: 1; padding: 6px 2px; background: var(--bg-2); border: none; cursor: pointer;
  border-right: 1px solid var(--border); font-size: 9.5px; letter-spacing: .05em; color: var(--fg-muted);
  transition: background .15s, color .15s;
}
.mx-seg__opt:last-child { border-right: none; }
.mx-seg__opt[data-on="true"] { background: color-mix(in oklab, var(--lp-accent) 16%, var(--bg-2)); color: var(--fg); }

.mx-count { font-size: 11px; letter-spacing: .12em; color: var(--fg-dim); margin-bottom: 14px; }
.mx-count b { font-weight: 600; font-size: 13px; }
.mx-state {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  border: 1px dashed var(--border-strong); border-radius: 3px; padding: 28px 22px;
  font-size: 11.5px; letter-spacing: .12em; color: var(--fg-dim);
}
/* Skeleton loader — card-anatomy bones with a soft sweep */
.mx-skel { display: flex; flex-direction: column; gap: 12px; }
.mx-skel__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 3px; background: var(--bg-1);
  opacity: 0; animation: mxSkelIn .45s ease forwards;
}
.mx-skel__card::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 32%, color-mix(in oklab, var(--fg) 4.5%, transparent) 50%, transparent 68%);
  animation: mxSweep 1.7s cubic-bezier(.4,.2,.4,.9) infinite;
}
.mx-skel__top { display: flex; align-items: center; gap: 13px; }
.mx-skel__icon { width: 38px; height: 38px; border-radius: 6px; background: var(--bg-3); flex: none; }
.mx-skel__lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mx-skel__lines i, .mx-skel__bone { display: block; height: 11px; border-radius: 3px; background: var(--bg-3); }
.mx-skel__lines i:last-child { height: 9px; background: var(--bg-2); }
.mx-skel__specs { display: flex; gap: 28px; border-top: 1px dashed var(--hairline); padding-top: 12px; }
.mx-skel__specs i { width: 64px; height: 24px; border-radius: 3px; background: var(--bg-2); }
@keyframes mxSkelIn { to { opacity: 1; } }
@keyframes mxSweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .mx-skel__card { animation: none; opacity: 1; }
  .mx-skel__card::after { animation: none; display: none; }
}
.mxd-perf__skeltile { gap: 9px; padding: 14px 15px; }
.mxd-perf__skelchart { height: 250px; }

.mx-list { display: flex; flex-direction: column; gap: 12px; }
.mx-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; }
.mx-list[data-density="compact"] .mx-card { padding: 12px 16px; gap: 10px; }
.mx-card__top { display: flex; align-items: center; gap: 13px; }
.mx-card__names { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mx-card__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-card__id { font-size: 11.5px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-card__badges { display: flex; gap: 6px; flex: none; }
.mx-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 3px; font-size: 9.5px; letter-spacing: .1em; border: 1px solid var(--border-strong); color: var(--fg-muted); }
.mx-badge--premium { border-color: color-mix(in oklab, var(--lp-accent) 50%, transparent); color: var(--lp-accent); }
.mx-badge--free { border-color: color-mix(in oklab, var(--success) 50%, transparent); color: var(--success); }
.mx-badge--dev { border-color: var(--border-strong); color: var(--fg); }
.mx-card__specs { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; border-top: 1px dashed var(--hairline); padding-top: 12px; }
.mx-list[data-density="compact"] .mx-card__specs { padding-top: 8px; gap: 20px; }
.mx-card__spec { display: flex; flex-direction: column; gap: 3px; }
.mx-card__spec i { font-style: normal; font-size: 9px; letter-spacing: .14em; color: var(--fg-dim); }
.mx-card__spec b { font-weight: 500; font-size: 13px; color: var(--fg); }
.mx-card__spec b[data-free="true"] { color: var(--success); }
.mx-card__caps { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mx-card__caps em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 9px; letter-spacing: .1em; color: var(--fg-dim); border: 1px solid var(--border); border-radius: 3px; padding: 3px 7px; }
.mx-card__caps em svg { opacity: .8; }
/* ── media-first cards (image / video / tts) ── */
.mx-card[data-media] { padding: 0; overflow: hidden; }
.mx-card__media { position: relative; height: 200px; background: var(--bg-2); display: grid; gap: 2px; }
.mx-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.34), transparent 38%); pointer-events: none; }
.mx-card__media--solo { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mx-card__media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.mx-card[data-media]:hover .mx-card__media img { transform: scale(1.04); }
.mx-mtype { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 3px; background: color-mix(in oklab, #0a090e 56%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 9.5px; letter-spacing: .09em; color: #fff; }
.mx-mtype svg { color: var(--lp-accent); }
.mx-card__media--tts img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-card__media--tts::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,14,.5), transparent 45%); pointer-events: none; z-index: 1; }
.mx-vplay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.mx-vplay > span { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklab, #0a090e 40%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; color: #fff; }
.mx-card__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.mx-list[data-density="compact"] .mx-card[data-media] .mx-card__body { padding: 12px 16px; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .mx-card__media img { transition: none; } }
.mx-sentinel { height: 32px; }

/* Detail */
.mxd { display: flex; flex-direction: column; gap: 34px; padding-bottom: 40px; }
.mxd-crumb { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; color: var(--fg-dim); }
.mxd-crumb__back {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--fg-muted); padding: 6px 0;
}
.mxd-crumb__back:hover { color: var(--lp-accent); }
.mxd-crumb__cur { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mxd-head__main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mxd-head__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mxd-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--fg); }
.mxd-head__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mxd-head__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mxd-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--border); border-radius: 3px; background: var(--bg-2); padding: 7px;
}
.mxd-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.mxd-logo--glyph { color: #fff; font-weight: 700; font-family: var(--font-mono); }
.mxd-idchip {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 11px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-1);
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); white-space: nowrap;
}
/* Tier badges (PRO / DEVPASS / FREE) sit next to the id chip — match its height */
.mxd-head__chips .mx-badge { height: 30px; padding: 0 10px; }
.mxd-idchip:hover { border-color: color-mix(in oklab, var(--lp-accent) 45%, var(--border-strong)); color: var(--fg); }
.mxd-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.mx-chip--tag { cursor: default; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.mx-chip--tag svg { opacity: .85; }
.mxd-descwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mxd-desc { max-width: 720px; font-size: 15px; line-height: 1.65; color: var(--fg-muted); margin: 0; text-wrap: pretty; white-space: pre-line; }
.mxd-desc[data-clamped="true"] {
  mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.25));
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.25));
}
.mxd-desc__more {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--lp-accent) 35%, transparent); border-radius: 4px;
  background: color-mix(in oklab, var(--lp-accent) 7%, transparent);
  font-size: 10px; letter-spacing: .12em; color: var(--lp-accent);
  transition: background .15s, border-color .15s;
}
.mxd-desc__more:hover { background: color-mix(in oklab, var(--lp-accent) 14%, transparent); border-color: color-mix(in oklab, var(--lp-accent) 55%, transparent); }
.mxd-desc__chev { display: inline-flex; transition: transform .2s; }
.mxd-desc__chev[data-open="true"] { transform: rotate(180deg); }
.mxd-block { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mxd-specgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mxd-specgrid--tight { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.mxd-spec {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 15px;
  border: 1px dashed var(--border-strong); border-radius: 3px;
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
}
.mxd-spec__k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--fg-dim); }
.mxd-spec__v { font-size: 17px; font-weight: 500; color: var(--fg); }
.mxd-spec__u { font-style: normal; font-size: 11px; color: var(--fg-dim); margin-left: 5px; }
.mxd-spec__sub.mono { font-size: 10px; letter-spacing: .04em; }
.mxd-spec__sub { font-size: 11px; color: var(--fg-dim); }
.mxd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.mxd-perf { display: flex; flex-direction: column; gap: 16px; }
.mxd-perfhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mxd-perf__empty {
  border: 1px dashed var(--border-strong); border-radius: 3px; padding: 26px 20px;
  font-size: 11px; letter-spacing: .12em; color: var(--fg-dim);
}
.mxd-perf__meta { font-size: 9.5px; letter-spacing: .1em; color: var(--fg-dim); }
.mxd-perf__meta a { color: var(--fg-muted); text-decoration: underline dashed; text-underline-offset: 3px; }
.mxd-perf__meta a:hover { color: var(--lp-accent); }
.mxd-charts { display: flex; flex-direction: column; gap: 12px; }
.mxd-charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mxd-fig__cv { position: relative; width: 100%; }
.mxd-fig__cv canvas { width: 100% !important; }

/* Benchmarks (Artificial Analysis) */
.mxd-bidxgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mxd-bidx {
  display: flex; flex-direction: column; gap: 7px; padding: 16px;
  border: 1px dashed var(--border-strong); border-radius: 3px;
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
}
.mxd-bidx__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mxd-bidx__val { font-size: 26px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.mxd-rank { font-size: 9px; letter-spacing: .12em; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--border-strong); color: var(--fg-muted); }
.mxd-rank--hi { border-color: color-mix(in oklab, var(--success) 50%, transparent); color: var(--success); }
.mxd-bidx__spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-top: 4px; }
.mxd-bidx__spark i { flex: 1; background: var(--bg-3); border-radius: 1px; min-height: 2px; }
.mxd-bidx__spark i.is-me { background: var(--lp-accent); }
.mxd-bgroups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.mxd-bgroup {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-1);
}
.mxd-bgroup__title { font-size: 9.5px; letter-spacing: .16em; color: var(--fg-dim); margin-bottom: 8px; }
.mxd-bgroup__rows { display: flex; flex-direction: column; }
.mxd-brow { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px dashed var(--hairline); }
.mxd-brow:last-child { border-bottom: none; padding-bottom: 2px; }
.mxd-brow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mxd-brow__name { font-size: 13px; font-weight: 500; color: var(--fg); }
.mxd-brow__val { font-size: 12.5px; color: var(--fg); }
.mxd-brow__desc { font-size: 11px; color: var(--fg-dim); }
.mxd-brow__track { height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; margin-top: 3px; }
.mxd-brow__track i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--lp-accent-3, var(--lp-accent-2)), var(--lp-accent)); }
.mxd-fig { margin: 0; border: 1px dashed var(--border-strong); border-radius: 3px; padding: 12px 14px 8px; background: color-mix(in oklab, var(--bg-1) 70%, transparent); }
.mxd-fig__cap { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .14em; color: var(--fg-muted); margin-bottom: 6px; }
.mxd-fig__cap span { color: var(--fg-dim); }
.mxd-chart { width: 100%; height: auto; display: block; }
.mxd-chart__grid { stroke: var(--hairline); stroke-dasharray: 3 4; }
.mxd-chart__axis { stroke: var(--border-strong); }
.mxd-chart__line { stroke: var(--lp-accent); stroke-width: 1.6; }
.mxd-chart__dot { fill: var(--lp-accent); }
.mxd-chart__fail { fill: var(--danger, #ef4444); }
.mxd-chart__bar { fill: color-mix(in oklab, var(--lp-accent) 55%, var(--bg-3)); }
.mxd-chart__tick { fill: var(--fg-dim); font-family: var(--font-mono); font-size: 9px; }
.mxd-relgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mxd-rel { display: flex; align-items: center; gap: 11px; padding: 13px 14px; text-decoration: none; color: inherit; min-width: 0; }
.mxd-rel__name { font-size: 13px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mxd-rel__meta { margin-left: auto; flex: none; font-size: 10px; color: var(--fg-dim); }

/* ── Integrations page (ig-*) ────────────────────────────── */
.ig-page { padding-top: 40px; min-height: 70vh; }
.ig-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 680px; margin-bottom: 30px; }
.ig-layout { display: grid; grid-template-columns: 264px 1fr; gap: 36px; align-items: start; }
.ig-rail {
  position: sticky; top: 96px; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-1);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.ig-rail__group + .ig-rail__group { border-top: 1px solid var(--hairline); }
.ig-rail__head {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 14px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.ig-rail__head .mono:first-child { font-size: 10px; letter-spacing: .14em; color: var(--fg-dim); }
.ig-rail__head:hover .mono:first-child { color: var(--fg-muted); }
.ig-rail__n { margin-left: auto; font-size: 9.5px; color: var(--fg-dim); }
.ig-rail__chev { display: inline-flex; color: var(--fg-dim); transition: transform .18s; }
.ig-rail__chev[data-open="true"] { transform: rotate(180deg); }
.ig-rail__items { display: flex; flex-direction: column; padding: 0 8px 10px; }
.ig-rail__item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 4px;
  color: var(--fg-muted); font-size: 13px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: background .13s, color .13s, border-color .13s;
}
.ig-rail__item:hover { background: var(--bg-2); color: var(--fg); }
.ig-rail__item[data-active="true"] {
  background: color-mix(in oklab, var(--lp-accent) 11%, var(--bg-2)); color: var(--fg);
  border-color: color-mix(in oklab, var(--lp-accent) 40%, transparent);
}
.ig-rail__item[data-active="true"]::before {
  content: ''; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 2px;
  background: var(--lp-accent); border-radius: 1px;
}
.ig-rail__item { position: relative; }
.ig-rail__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ig-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.ig-ico--glyph { border-radius: 4px; color: #fff; font-family: var(--font-mono); font-weight: 600; }

.ig-guide { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; min-width: 0; }
.ig-guide__head { display: flex; align-items: center; gap: 16px; }
.ig-headico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 54px; height: 54px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-2);
}
.ig-h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--fg); }
.ig-guide__title { display: flex; flex-direction: column; gap: 5px; }
.ig-guide__blurb { margin: 0; font-size: 14.5px; color: var(--fg-dim); }
.ig-guide__desc { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.65; color: var(--fg-muted); text-wrap: pretty; }

.ig-meta {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-1); overflow: hidden;
}
.ig-meta__row { display: flex; align-items: center; gap: 16px; padding: 11px 16px; }
.ig-meta__row + .ig-meta__row { border-top: 1px dashed var(--hairline); }
.ig-meta__k { flex: none; width: 84px; font-size: 9.5px; letter-spacing: .14em; color: var(--fg-dim); }
.ig-meta__v { font-size: 12px; color: var(--fg); }
.ig-copychip {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-1);
  font-size: 12px; color: var(--fg-muted); white-space: nowrap; max-width: 100%; overflow: hidden;
}
.ig-copychip:hover { border-color: color-mix(in oklab, var(--lp-accent) 45%, var(--border-strong)); color: var(--fg); }
.ig-meta__caps { display: flex; gap: 7px; flex-wrap: wrap; }
.ig-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .1em; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; }
.ig-cap svg { color: var(--success); }
.ig-meta__links { display: flex; gap: 16px; flex-wrap: wrap; }
.ig-link { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .1em; color: var(--fg-muted); text-decoration: none; border-bottom: 1px dashed var(--border-strong); padding-bottom: 2px; }
.ig-link:hover { color: var(--lp-accent); border-color: color-mix(in oklab, var(--lp-accent) 50%, transparent); }
.ig-link:first-child { color: var(--lp-accent); }

.ig-block { display: flex; flex-direction: column; gap: 14px; }
.ig-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ig-step { position: relative; display: flex; gap: 18px; padding: 14px 0; }
.ig-step:first-child { padding-top: 4px; }
.ig-step:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 48px; bottom: -6px;
  border-left: 1px dashed var(--border-strong);
}
.ig-step:first-child:not(:last-child)::before { top: 38px; }
.ig-step__n {
  position: relative; z-index: 1;
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid color-mix(in oklab, var(--lp-accent) 40%, var(--border-strong)); border-radius: 8px;
  font-size: 11px; color: var(--lp-accent); background: color-mix(in oklab, var(--lp-accent) 8%, var(--bg-1));
}
.ig-step__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.ig-step__t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.ig-step__d { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.ig-code { border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--bg-0); margin-top: 6px; }
.ig-code__bar {
  display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 13px;
  border-bottom: 1px solid var(--hairline); background: var(--bg-1);
}
.ig-code__dots { display: inline-flex; gap: 5px; }
.ig-code__dots i { width: 9px; height: 9px; border-radius: 50%; }
.ig-code__dots i:nth-child(1) { background: #ff5f57; }
.ig-code__dots i:nth-child(2) { background: #febc2e; }
.ig-code__dots i:nth-child(3) { background: #28c840; }
.ig-code__bar .mono { font-size: 9.5px; letter-spacing: .12em; color: var(--fg-dim); text-transform: uppercase; }
.ig-code__bar .codepanel__copy { margin-left: auto; }
.ig-code pre { margin: 0; padding: 14px 16px; font-size: 12.5px; line-height: 1.7; color: var(--fg); overflow-x: auto; }
.ig-code__line { display: inline; }

.ig-models { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-models .mx-chip { text-decoration: none; font-size: 11.5px; height: 30px; }
.ig-models .ig-link { margin-left: 6px; color: var(--fg-muted); }
.ig-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; max-width: 720px; }
.ig-tips li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); }
.ig-tips li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--lp-accent); }

.ig-pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 18px; }
.ig-pager__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 4px; text-decoration: none;
  color: var(--fg); font-size: 13.5px; font-weight: 500; transition: border-color .15s, background .15s;
}
.ig-pager__btn:hover { border-color: color-mix(in oklab, var(--lp-accent) 40%, var(--border-strong)); background: var(--bg-1); }
.ig-pager__btn .mono { font-size: 9px; letter-spacing: .14em; color: var(--fg-dim); }

/* "Missing your client?" CTA */
.ig-cta {
  display: flex; flex-direction: column; gap: 40px; align-items: flex-start;
  margin-top: 48px; padding: 36px 40px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-1);
}
.ig-cta__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ig-cta__title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
.ig-cta__body { margin: 0; max-width: 460px; font-size: 14.5px; line-height: 1.6; color: var(--fg-dim); text-wrap: pretty; }
.ig-cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.ig-cta__link {
  font-size: 13px; color: var(--fg-dim); text-decoration: none;
  border-bottom: 1px dashed var(--border-strong); padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.ig-cta__link:hover { color: var(--fg); border-color: var(--lp-accent); }

.ig-cta__panel {
  align-self: stretch; display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2);
}
.ig-cta__flabel { font-size: 9.5px; letter-spacing: .16em; color: var(--fg-dim); }
.ig-cta__caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ig-cta__caps li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--fg-dim); }
.ig-cta__caps li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 1px; background: var(--lp-accent); }
@media (max-width: 760px) {
  .ig-cta { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; }
}

.footer2__status i { width: 6px; height: 6px; border-radius: 2px; background: var(--success); }
.footer2__status .mono { color: var(--fg-dim); }
@media (max-width: 900px) {
  .footer2__grid { grid-template-columns: 1fr 1fr; }
  .footer2__col--product { display: none; }
  .footer2__col:nth-child(odd) { border-right: 1px dashed var(--border-strong); }
  .footer2__col:nth-child(even) { border-right: none; }
  .footer2__col { border-bottom: 1px dashed var(--border-strong); }
  .footer2__brand { grid-column: 1 / -1; border-right: none; border-bottom: 1px dashed var(--border-strong); min-height: 170px; }
  .footer2__art { width: 60%; }
  .footer2__social { grid-column: 1 / -1; flex-direction: row; }
  .footer2__social a { border-bottom: none; border-right: 1px dashed var(--border); padding: 16px 0; }
}

/* ── Rankings page (rk = leaderboards) ───────────────────────────── */
.rk-page { min-height: 70vh; }
.rk-main { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }

.rk-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 8px; }
.rk-hero__lead { display: flex; flex-direction: column; gap: 14px; }
.rk-hero__h { font-size: clamp(40px, 5vw, 62px); }
.rk-hero__lede { max-width: 520px; }
.rk-hero .mx-select { flex: none; }

.rk-error { border: 1px solid color-mix(in oklab, var(--danger) 45%, var(--border)); background: color-mix(in oklab, var(--danger) 10%, var(--bg-1)); color: var(--danger); border-radius: 6px; padding: 12px 14px; font-size: 12px; }

/* KPI band */
.rk-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 6px; }
.rk-kpi { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rk-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rk-kpi__label { font-size: 10px; letter-spacing: .1em; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-kpi__ico { color: var(--fg-faint); display: inline-flex; flex: none; }
.rk-kpi__val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); line-height: 1.05; }
.rk-kpi__sub { font-size: 9.5px; letter-spacing: .06em; color: var(--fg-faint); }

/* Controls */
.rk-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }

/* Section shell */
.rk-sec { padding: 22px 24px 24px; }
.rk-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rk-sec__title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.rk-sec__ico { color: var(--lp-accent); display: inline-flex; flex: none; }
.rk-sec__h { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); margin: 0; white-space: nowrap; }
.rk-sec__cap { font-size: 10px; letter-spacing: .08em; color: var(--fg-dim); white-space: nowrap; }
.rk-sec__stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.rk-sec__stat b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.rk-sec__stat i { font-style: normal; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-top: 3px; }

/* Charts */
.rk-chart__cv { width: 100%; position: relative; }
.rk-chart__empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: 8px; color: var(--fg-faint); font-size: 12px; }

/* Div-based stacked bars (custom hover / per-segment / cursor tooltip) */
.rk-bars { position: relative; width: 100%; user-select: none; }
.rk-bars__grid { position: absolute; inset: 0; pointer-events: none; }
.rk-bars__gline { position: absolute; left: 42px; right: 4px; height: 1px; background: rgba(154, 148, 178, 0.09); }
.rk-bars__ylabel { position: absolute; left: 0; width: 34px; transform: translateY(-50%); text-align: right; font-size: 9.5px; color: var(--fg-dim); }
.rk-bars__row { position: absolute; left: 42px; right: 0; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.rk-bars--share .rk-bars__row { left: 0; }
.rk-bars__col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.rk-bars--share .rk-bars__col { height: 100%; }
.rk-bars__band { position: absolute; inset: 0; border-radius: 7px; background: color-mix(in oklab, var(--lp-accent) 12%, transparent); pointer-events: none; }
.rk-bars__stack { position: relative; width: 100%; overflow: hidden; border-radius: 4px 4px 2px 2px; transition: opacity .12s; display: flex; flex-direction: column; }
.rk-bars__stack--full { height: 100%; border-radius: 4px 4px 2px 2px; }
@media (prefers-reduced-motion: no-preference) {
  .rk-bars__stack { animation: rkGrow .55s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
}
@keyframes rkGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rk-bars__seg { width: 100%; transition: opacity .12s; }
.rk-bars__xrow { position: absolute; bottom: 0; left: 42px; right: 0; display: flex; justify-content: center; gap: 5px; }
.rk-bars__xrow--share { left: 0; }
.rk-bars__xlabel { flex: 1 1 0; min-width: 0; text-align: center; font-size: 9.5px; color: var(--fg-dim); white-space: nowrap; }

.rk-tip { position: absolute; z-index: 30; pointer-events: none; min-width: 150px; max-width: 240px;
  padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--bg-1) 96%, transparent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .1s; }
.rk-tip--wide { width: 210px; max-width: 210px; }
.rk-tip__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.rk-tip__t { font-size: 11px; font-weight: 600; color: var(--fg); }
.rk-tip__total { font-size: 11px; font-weight: 600; color: var(--lp-accent); }
.rk-tip__rows { display: flex; flex-direction: column; gap: 6px; }
.rk-tip__row { display: flex; align-items: center; gap: 8px; }
.rk-tip__dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.rk-tip__lb { flex: 1; min-width: 0; font-size: 11px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-tip__v { font-size: 11px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.rk-tip__row + .rk-tip__t { margin-top: 6px; }

.rk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.rk-legend__i { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--fg-muted); min-width: 0; }
.rk-legend__i i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.rk-legend__i span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-spark { width: 100%; height: 26px; display: block; }

/* Leaderboard */
.rk-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rk-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; min-width: 0; padding: 11px 8px; border-radius: 8px; text-decoration: none; transition: background .13s; border-bottom: 1px dashed var(--hairline); }
.rk-row:hover { background: var(--bg-2); }
.rk-row__rank { text-align: center; font-size: 11px; color: var(--fg-faint); }
.rk-row__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-row__name { font-size: 13.5px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row:hover .rk-row__name { color: var(--lp-accent); }
.rk-row__by { font-size: 10px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row__spark { width: 62px; opacity: .85; }
.rk-row__vals { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.rk-row__v { font-size: 13px; font-weight: 600; color: var(--fg); }

.rk-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.rk-delta--up { color: var(--success); }
.rk-delta--down { color: var(--danger); }
.rk-delta--flat { color: var(--fg-faint); }

/* Market share */
.rk-share { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.rk-vendors { display: flex; flex-direction: column; gap: 12px; }
.rk-vendors__head { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.rk-vendors__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-vendors__row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--hairline); }
.rk-vendors__row:last-child { border-bottom: none; }
.rk-vendors__rank { width: 14px; text-align: right; font-size: 10px; color: var(--fg-faint); flex: none; }
.rk-vendors__dot { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.rk-vendors__ico { flex: none; object-fit: contain; border-radius: 5px; }
.rk-vendors__ico.inv { filter: brightness(0) invert(1); }
.rk-vendors__glyph { flex: none; display: grid; place-items: center; border-radius: 6px; font-weight: 600; color: #fff; }
.rk-vendors__name { flex: 1; font-size: 13.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-vendors__v { font-size: 13px; font-weight: 600; color: var(--fg); flex: none; }
.rk-vendors__pct { width: 38px; text-align: right; font-size: 10.5px; color: var(--fg-dim); flex: none; }

/* Trending */
.rk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rk-sec--trend .rk-sec__ico { color: inherit; }
.rk-trend { display: flex; flex-direction: column; gap: 2px; }
.rk-trend__row { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 7px; text-decoration: none; transition: background .13s; }
.rk-trend__row:hover { background: var(--bg-2); }
.rk-trend__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rk-trend__name { font-size: 13px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-trend__row:hover .rk-trend__name { color: var(--lp-accent); }
.rk-trend__by { font-size: 10px; color: var(--fg-dim); }

/* Performance */
.rk-perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.rk-perf__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-perf__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.rk-perf__head span { display: inline-flex; }
.rk-perf__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-perf__row { display: grid; grid-template-columns: 16px 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; border-bottom: 1px dashed var(--hairline); }
.rk-perf__row:last-child { border-bottom: none; }
.rk-perf__col:hover .rk-perf__row:hover { background: var(--bg-2); }
.rk-perf__rank { text-align: right; font-size: 10px; color: var(--fg-faint); }
.rk-perf__name { font-size: 12.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-perf__vals { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-perf__val { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; font-weight: 600; color: var(--fg); }
.rk-perf__p95 { display: inline-flex; align-items: baseline; gap: 5px; font-size: 11px; font-weight: 500; color: var(--fg-dim); }
.rk-perf__val i, .rk-perf__p95 i { font-style: normal; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.rk-perf__p95 i { color: color-mix(in oklab, var(--fg-faint) 80%, transparent); }

.rk-empty { padding: 22px 0; text-align: center; font-size: 11px; letter-spacing: .06em; color: var(--fg-faint); }

/* Skeletons */
.rk-skel { border-radius: 8px; background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .rk-skel { animation: rkShimmer 1.4s ease-in-out infinite; } }
@keyframes rkShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rk-board .rk-skel { margin: 5px 0; }
.rk-cskel { display: flex; align-items: flex-end; gap: 6px; padding-left: 42px; padding-bottom: 22px; }
.rk-cskel--full { padding-bottom: 22px; }
.rk-cskel__bar { flex: 1 1 0; min-width: 0; border-radius: 4px 4px 2px 2px; }
.rk-bskel { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 11px 8px; border-bottom: 1px dashed var(--hairline); }
.rk-bskel__rank { width: 12px; height: 12px; border-radius: 3px; margin: 0 auto; }
.rk-bskel__ico { width: 34px; height: 34px; border-radius: 8px; }
.rk-bskel__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-bskel__txt .rk-skel:nth-child(1) { height: 11px; width: 62%; border-radius: 3px; }
.rk-bskel__txt .rk-skel:nth-child(2) { height: 9px; width: 38%; border-radius: 3px; }
.rk-bskel__v { width: 46px; height: 13px; border-radius: 3px; }

/* ── Rewards page (rw = hidden watch-ad-for-credits) ─────────────── */
.rw-page { min-height: 70vh; }
.rw-main { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 72px; }
.rw-main > .rw-hero { margin-bottom: -40px; }
.rw-hero { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.rw-hero__h { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; color: var(--fg); text-wrap: balance; }
.rw-hero__lede { font-size: 16.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; margin: 0; max-width: 520px; }

/* Flow: CRT figure + security-check side */
.rw-flow { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; padding: 34px 36px; }
.rw-flow__side { display: flex; flex-direction: column; gap: 22px; min-width: 0; align-self: stretch; justify-content: center; }
.rw-noise { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 22px; }

/* ── CRT terminal (the app's illustration, fills repaired; fluid) ──── */
.rw-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; width: min(320px, 100%); }
.rw-crt { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 150 / 195; user-select: none; }
.rw-crt__body { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45)); }
.rw-crt__screenimg { position: absolute; left: 50%; top: 8.75cqw; transform: translateX(-50%); width: 87.5cqw; height: 66.25cqw; pointer-events: none; }
.rw-crt__glass { position: absolute; left: 9.5cqw; top: 12cqw; width: 81cqw; height: 60cqw; border-radius: 1.2cqw; display: grid; place-items: center; overflow: hidden; }
.rw-crt[data-on="true"] .rw-crt__glass { background: radial-gradient(90% 90% at 50% 45%, color-mix(in oklab, var(--lp-accent) 18%, transparent), transparent 78%); }
.rw-crt__scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px); }
.rw-fig__cap { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: 0.12em; color: var(--fg-dim); padding: 0 4px; }

/* Screen content */
.rw-crt__status { position: relative; z-index: 1; display: inline-flex; align-items: center; font-size: 3.6cqw; letter-spacing: 0.16em; color: var(--lp-accent); text-shadow: 0 0 12px var(--lp-accent-glow); }
.rw-crt__status[data-fail="true"] { color: #f87171; text-shadow: none; }
.rw-crt__caret { width: 2.2cqw; height: 4.2cqw; background: currentColor; margin-left: 1.6cqw; }
@media (prefers-reduced-motion: no-preference) {
  .rw-crt__caret { animation: rwBlink 1.1s steps(1) infinite; }
  @keyframes rwBlink { 50% { opacity: 0; } }
}
.rw-crt__hex { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.4cqw; color: color-mix(in oklab, var(--lp-accent) 55%, #3a5940); font-size: 3.2cqw; letter-spacing: 0.34em; line-height: 1; }
.rw-crt__hexrow { white-space: nowrap; }
.rw-crt__hexsum { display: inline-flex; align-items: center; margin-top: 1.6cqw; letter-spacing: 0.16em; color: var(--lp-accent); text-shadow: 0 0 12px var(--lp-accent-glow); }
.rw-crt__play {
  position: relative; z-index: 1; width: 19cqw; height: 19cqw; border-radius: 1.7cqw; cursor: pointer;
  display: grid; place-items: center; padding-left: 0.35cqw;
  background: linear-gradient(180deg, color-mix(in oklab, var(--lp-accent) 92%, #fff), var(--lp-accent) 55%, var(--lp-accent-2));
  color: var(--lp-accent-ink); border: none;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--lp-accent) 60%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 2px rgba(0,0,0,0.15),
    0 6px 30px var(--lp-accent-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rw-crt__play:hover { transform: scale(1.06); box-shadow: 0 0 0 1px var(--lp-accent), 0 10px 40px var(--lp-accent-glow); }
.rw-crt__play:active { transform: scale(0.97); }
.rw-crt__count { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; color: var(--lp-accent); }
.rw-crt__num { font-size: 15cqw; font-weight: 600; line-height: 1; text-shadow: 0 0 18px var(--lp-accent-glow); }
.rw-crt__cap { font-size: 2.9cqw; letter-spacing: 0.24em; color: color-mix(in oklab, var(--lp-accent) 70%, var(--fg-dim)); }
.rw-crt__bar { width: 36cqw; height: 3px; background: color-mix(in oklab, var(--lp-accent) 18%, transparent); overflow: hidden; }
.rw-crt__bar i { display: block; height: 100%; background: var(--lp-accent); transition: width 1s linear; }

/* Security-check step list */
.rw-pipe { display: flex; flex-direction: column; gap: 14px; }
.rw-pipe__head { font-size: 10px; letter-spacing: 0.16em; color: var(--fg-dim); }
.rw-pipe__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rw-step {
  display: grid; grid-template-columns: 18px minmax(112px, auto) 1fr; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.rw-step:last-child { border-bottom: none; }
.rw-step__dot { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border-strong); display: grid; place-items: center; background: var(--bg-2); }
.rw-step__dot--done { border-color: color-mix(in oklab, var(--success) 55%, transparent); color: var(--success); background: color-mix(in oklab, var(--success) 10%, var(--bg-2)); }
.rw-step__dot--fail { border-color: color-mix(in oklab, #f87171 55%, transparent); color: #f87171; background: color-mix(in oklab, #f87171 10%, var(--bg-2)); }
.rw-step__dot--active { border-color: color-mix(in oklab, var(--lp-accent) 60%, transparent); }
.rw-step__dot--active i { width: 6px; height: 6px; background: var(--lp-accent); }
.rw-step__label { font-size: 11px; letter-spacing: 0.1em; color: var(--fg-muted); }
.rw-step[data-state="active"] .rw-step__label, .rw-step[data-state="done"] .rw-step__label { color: var(--fg); }
.rw-step[data-state="fail"] .rw-step__label { color: #f87171; }
.rw-step__sub { font-size: 10.5px; color: var(--fg-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.rw-step[data-state="active"] .rw-step__sub { color: var(--lp-accent); }

/* Ready state */
.rw-ready { display: flex; flex-direction: column; gap: 18px; }
.rw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rw-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-2); }
.rw-stat__label { font-size: 9.5px; letter-spacing: 0.14em; color: var(--fg-dim); }
.rw-stat__val { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.rw-stat:first-child .rw-stat__val { color: var(--lp-accent); }
.rw-stat__sub { font-size: 10px; color: var(--fg-dim); }
.rw-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rw-act__note { font-size: 10.5px; color: var(--fg-dim); max-width: 300px; line-height: 1.5; }

/* Error state */
.rw-err { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px dashed color-mix(in oklab, #f87171 45%, var(--border-strong)); border-radius: 6px; background: color-mix(in oklab, #f87171 5%, var(--bg-2)); }
.rw-err__head { display: flex; align-items: center; gap: 9px; }
.rw-err__ico { display: inline-flex; color: #f87171; }
.rw-err__code { font-size: 11px; letter-spacing: 0.1em; color: #f87171; }
.rw-err__copy { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.rw-err__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Preview notice */
.rw-previewnote { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rw-previewnote__copy { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); max-width: 400px; text-wrap: pretty; }

/* Redirect side panel */
.rw-redirect { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rw-redirect__copy { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); max-width: 380px; text-wrap: pretty; }

/* Sections below the flow */
.rw-sec { display: flex; flex-direction: column; gap: 20px; }
.rw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rw-how { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.rw-how__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rw-how__n { font-size: 11px; letter-spacing: 0.14em; color: var(--lp-accent); }
.rw-how__ico { display: inline-flex; color: var(--fg-dim); }
.rw-how__t { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--fg); }
.rw-how__b { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }

.rw-faqwrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.rw-faqcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rw-policy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rw-policy__row { display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; column-gap: 11px; row-gap: 3px; padding: 15px 4px; border-bottom: 1px solid var(--border); }
.rw-policy__row:first-child { border-top: 1px solid var(--border); }
.rw-policy__ico { grid-row: 1 / 3; display: inline-flex; margin-top: 2px; color: var(--lp-accent); }
.rw-policy__t { font-size: 14px; font-weight: 500; color: var(--fg); }
.rw-policy__d { font-size: 12.5px; line-height: 1.55; color: var(--fg-muted); text-wrap: pretty; }

.rw-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 0 40px; }
.rw-cta__h { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.rw-cta__p { margin: 0 0 10px; font-size: 15px; color: var(--fg-muted); }
.rw-cta__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rw-cta__row .ctabtn { height: 42px; padding: 0 20px; font-size: 14px; }
