/* AI Folio View welcome page (served at / to visitors who are not signed in). Self-contained: app.css is NOT loaded here.
   Order: 1-2 tokens (app copy, landing) · 3 base · 4 layout · 5 chrome · 6 components · 7 hero · 8 shared AI bits · 9 covers · 10 watch ·
   11 report · 12 limits · 13 tracker · 14 import + API · 15 phone · 16 start · 17 faq · 18 footer · 19 reveal + keyframes · 20 responsive ·
   21 reduced motion, forced colors, contrast · 22 old browsers */
/* keep in sync with app.css; tests/test_landing.py compares them */
/* ============================================================ tokens === */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ef;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --hover: rgba(11, 11, 11, 0.04);

  --series-1: #2a78d6;      /* value / price */
  --series-2: #eb6834;      /* buys */
  --series-3: #1baf7a;      /* sells */
  --reference: #898781;     /* cost basis, average cost */
  --cat-1: #2a78d6; --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100;   /* categorical (pie) */
  --cat-5: #e87ba4; --cat-6: #008300; --cat-7: #4a3aa7; --cat-8: #e34948; --cat-other: #b5b4ad;

  --good: #0ca30c;          /* gain – marks */
  --bad: #d03b3b;           /* loss – marks */
  --good-text: #006300;
  --bad-text: #c23030;
  --faded: 62%;             /* how much of a colour is left in a quiet note */
  --warning: #fab219;
  --warning-bg: #fff6e0;
  --warning-ink: #6b4a00;

  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --focus: #2a78d6;

  --radius: 10px;
  --radius-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232322;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --hover: rgba(255, 255, 255, 0.05);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --good-text: #0ca30c;
    --bad-text: #e66767;
    --faded: 82%;
    --warning-bg: #2e2510;
    --warning-ink: #fab219;
    --accent: #3987e5;
    --focus: #3987e5;
    --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500;
    --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767; --cat-other: #6a6964;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232322;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --hover: rgba(255, 255, 255, 0.05);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --good-text: #0ca30c;
  --bad-text: #e66767;
  --faded: 82%;
  --warning-bg: #2e2510;
  --warning-ink: #fab219;
  --accent: #3987e5;
  --focus: #3987e5;
  --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500;
  --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767; --cat-other: #6a6964;
}

/* ====== 2 tokens: landing */
:root {
  --lp-text-3: #6b6a66;                       /* quiet text: 5.1:1 on --page, 4.85:1 on --surface-2 (never --muted) */
  --lp-solid: color-mix(in srgb, var(--accent) 80%, #000);        /* buttons, badges with white text */
  --lp-link: color-mix(in srgb, var(--accent) 78%, var(--ink));   /* text links, eyebrows */
  --lp-grad: linear-gradient(100deg, var(--lp-link) 0%, #4a3aa7 100%);
  --lp-alt: var(--surface-2);
  --lp-dots: rgba(11, 11, 11, .08);
  --lp-aurora: radial-gradient(60% 55% at 78% -5%, rgba(42, 120, 214, .16), transparent 70%), radial-gradient(40% 40% at 8% 18%, rgba(27, 175, 122, .10), transparent 70%);
  --lp-shadow-1: 0 1px 2px rgba(11, 11, 11, .06), 0 1px 1px rgba(11, 11, 11, .04);
  --lp-shadow-2: 0 14px 34px -10px rgba(11, 11, 11, .16), 0 2px 6px rgba(11, 11, 11, .06);
  --lp-shadow-hero: 0 44px 90px -28px rgba(42, 120, 214, .34), 0 10px 28px rgba(11, 11, 11, .08);
  --team-analyst: var(--cat-1); --team-research: var(--cat-7); --team-trading: var(--cat-4); --team-risk: var(--cat-5); --team-pm: var(--ink);
  --bull: var(--accent); --bear: var(--cat-7);   /* marks only; always with a triangle and a word, never --good / --bad */
  --code-bg: #0f1218; --code-ink: #e6e6e1; --code-dim: #9aa0aa; --code-key: #8ec1ff; --code-num: #f2b27a; --code-str: #8fd8b0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.6, 0, .2, 1); --ease-pop: cubic-bezier(.34, 1.4, .5, 1);
  --r-lg: 16px; --r-xl: 24px; --hh: 60px;
  --m-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --m-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  --m-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lp-text-3: #a09e96; --lp-grad: linear-gradient(100deg, #6aa5ee 0%, #9085e9 100%); --lp-alt: #121211; --lp-dots: rgba(255, 255, 255, .07);
    --lp-aurora: radial-gradient(60% 55% at 78% -5%, rgba(57, 135, 229, .30), transparent 70%), radial-gradient(40% 40% at 8% 18%, rgba(25, 158, 112, .16), transparent 70%);
    --lp-shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 1px 2px rgba(0, 0, 0, .5);
    --lp-shadow-2: 0 16px 40px -12px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .06) inset;
    --lp-shadow-hero: 0 0 0 1px rgba(57, 135, 229, .28), 0 40px 90px -24px rgba(57, 135, 229, .42), 0 10px 28px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --lp-text-3: #a09e96; --lp-grad: linear-gradient(100deg, #6aa5ee 0%, #9085e9 100%); --lp-alt: #121211; --lp-dots: rgba(255, 255, 255, .07);
  --lp-aurora: radial-gradient(60% 55% at 78% -5%, rgba(57, 135, 229, .30), transparent 70%), radial-gradient(40% 40% at 8% 18%, rgba(25, 158, 112, .16), transparent 70%);
  --lp-shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 1px 2px rgba(0, 0, 0, .5);
  --lp-shadow-2: 0 16px 40px -12px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .06) inset;
  --lp-shadow-hero: 0 0 0 1px rgba(57, 135, 229, .28), 0 40px 90px -24px rgba(57, 135, 229, .42), 0 10px 28px rgba(0, 0, 0, .5);
}

/* ====== 3 reset, base, focus */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-padding-bottom: 84px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* text-wrap balance and pretty are progressive polish: engines without them wrap normally. */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
svg { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--lp-link); text-underline-offset: 3px; }
b, strong { font-weight: 650; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; scroll-margin-block: 84px; }
#main:focus, [tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 18px; border-radius: 8px; background: var(--lp-solid); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.js-only { visibility: hidden; }
html.lp-js .js-only { visibility: visible; }
html:not(.lp-js) .js-only:not(.icon-btn) { display: none; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ====== 4 layout */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.wrap.wide { max-width: 1320px; }
.sec { position: relative; padding-block: clamp(56px, 8vw, 112px); }
.alt, .sec-alt { background: var(--lp-alt); border-block: 1px solid var(--border); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin-top: 12px; }
.sec-head .lead { margin-top: 18px; }
.sec-start .sec-head, .sec-faq .sec-head { margin-inline: auto; text-align: center; }
h1 { font-size: clamp(34px, 3.6vw + 14px, 62px); line-height: 1.05; font-weight: 680; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 2.4vw + 12px, 42px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.lead { max-width: 54ch; font-size: clamp(17px, .9vw + 13px, 20px); line-height: 1.5; color: var(--ink-2); }
.eyebrow { font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-link); }
.fine { font-size: 13px; line-height: 1.5; color: var(--lp-text-3); }
.sub { max-width: 58ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.grad { color: var(--lp-link); }
@supports (background-clip: text) { .grad { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.band {
  --b-bg: #0d1727; --b-ink: #eaf0f8; --b-ink-2: #aebbd0; --b-line: rgba(255, 255, 255, .14); --b-accent: #6aa7f5; --b-focus: #9cc4ff; --b-focus-on-ink: #2a78d6;
  background: radial-gradient(900px 380px at 50% 0, rgba(57, 135, 229, .30), transparent 70%), radial-gradient(640px 320px at 92% 28%, rgba(144, 133, 233, .16), transparent 70%), var(--b-bg);
  color: var(--b-ink); border-radius: 32px; margin-inline: clamp(8px, 2vw, 24px);
}
.band .eyebrow { color: var(--b-accent); }
.band .lead, .band .note, .band .ai-line, .band .caption { color: var(--b-ink-2); }
.band :focus-visible { outline-color: var(--b-focus); }
.band .window :focus-visible { outline-color: var(--focus); }

/* ====== 5 chrome: header, menu, CTA bar, footer */
.top { position: sticky; top: 0; z-index: 40; height: var(--hh); border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
html:not(.lp-js) .top, .top:has(.menu[open]) { background: var(--page); border-bottom-color: var(--border); }
@media (max-width: 959.98px) { html:not(.lp-js) .top { position: relative; } } /* no JS: the Menu <details> (below 960 px) cannot close itself after a link, so the open panel scrolls away with the header */
.top.is-stuck { background: color-mix(in srgb, var(--page) 86%, transparent); border-bottom-color: var(--border); }
.top.is-stuck { -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.top-in { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo { flex: none; display: block; }
.nav { display: none; margin-inline: auto; gap: 2px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-actions > .top-cta, .top-actions > .icon-btn { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
[data-motion-switch] .i-b, [data-theme-toggle] .i-b, [data-act="toggle"] .i-pause, [data-act="toggle"] .i-play, [data-act="toggle"] .i-replay { display: none; }
[data-motion-switch][aria-pressed="true"] .i-a, [data-theme-toggle][aria-pressed="true"] .i-a { display: none; }
[data-motion-switch][aria-pressed="true"] .i-b, [data-theme-toggle][aria-pressed="true"] .i-b { display: block; }
/* the switch cannot act while the system already asks for reduced motion: dimmed by colour (not opacity, so the focus ring stays at full contrast) */
[data-motion-switch][aria-disabled="true"] { cursor: not-allowed; }
.icon-btn[data-motion-switch][aria-disabled="true"], .icon-btn[data-motion-switch][aria-disabled="true"]:hover { background: none; color: var(--muted); }
.menu-tools .link-btn[data-motion-switch][aria-disabled="true"], .foot-links .link-btn[data-motion-switch][aria-disabled="true"], .foot-links .link-btn[data-motion-switch][aria-disabled="true"]:hover { color: var(--muted); text-decoration: none; }
/* the text switches (Pause animations, Dark theme) show their state as a small switch after the label: knob left = off, knob right on blue = on */
.menu-tools .link-btn[data-motion-switch]::after, .menu-tools .link-btn[data-theme-toggle]::after, .foot-links .link-btn[data-motion-switch]::after { content: ""; flex: none; box-sizing: border-box; width: 28px; height: 16px; margin-left: 4px; border: 1.5px solid currentColor; border-radius: 999px; background: radial-gradient(circle closest-side, currentColor 0 100%) no-repeat left 2px center / 8px 8px; }
.menu-tools .link-btn[aria-pressed="true"]::after, .foot-links .link-btn[data-motion-switch][aria-pressed="true"]::after { border-color: var(--lp-solid); background: radial-gradient(circle closest-side, #fff 0 100%) no-repeat right 2px center / 8px 8px, var(--lp-solid); }
.menu-tools .link-btn[data-motion-switch][aria-disabled="true"]::after, .foot-links .link-btn[data-motion-switch][aria-disabled="true"]::after { border-color: currentColor; background: radial-gradient(circle closest-side, var(--page) 0 100%) no-repeat right 2px center / 8px 8px, currentColor; }   /* the system already asks for reduced motion: on, but grey */
.menu-tools .link-btn[aria-pressed="true"] .i-a { display: block; }
.menu-tools .link-btn[aria-pressed="true"] .i-b { display: none; }
.menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--baseline); border-radius: 999px; font-size: 14px; font-weight: 560; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--hover); }
.top-signin { white-space: nowrap; }
@media (max-width: 359px) { .menu summary { position: relative; width: 40px; padding: 0; justify-content: center; } .menu summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }   /* icon only; "Menu" stays as the accessible name */
.menu-panel { position: absolute; z-index: 45; top: 100%; left: 0; right: 0; display: grid; gap: 14px; max-height: calc(100vh - var(--hh)); max-height: calc(100dvh - var(--hh)); overflow: auto; padding: 8px clamp(16px, 4vw, 32px) 22px; background: var(--page); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -20px rgba(11, 11, 11, .25); }
.menu-panel nav { display: grid; }
.menu-panel nav a { padding: 13px 2px; border-bottom: 1px solid var(--border); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.menu-panel nav a[aria-current] { color: var(--lp-link); }
.menu-tools { display: grid; justify-items: start; gap: 2px; }
.menu-tools .link-btn { min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.menu-panel .btn { width: 100%; }
.cta-bar { position: fixed; z-index: 40; inset: auto 0 0 0; display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--page) 94%, transparent); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -16px rgba(11, 11, 11, .25); transform: translateY(100%); visibility: hidden; transition: transform .2s var(--ease-out), visibility 0s .2s; }
.cta-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.cta-bar .btn { width: 100%; }
.site-foot { padding-block: clamp(40px, 6vw, 72px) 32px; border-top: 1px solid var(--border); }
.foot-top { display: grid; gap: 28px; }
.foot-brand p { margin-top: 10px; max-width: 34ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; align-content: start; font-size: 14.5px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-links .link-btn { color: var(--ink-2); text-decoration: none; font-weight: 400; }
.foot-links .link-btn:hover { color: var(--ink); text-decoration: underline; }
.foot-links .link-btn[aria-pressed="true"] { color: var(--ink); }   /* the state is shown by the switch after the label, not by an underline */
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.foot-fine { display: grid; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.foot-fine p { max-width: 86ch; color: var(--ink-2); font-size: 13px; line-height: 1.55; }

/* ====== 6 components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s var(--ease-out), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--lp-solid); color: #fff; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--lp-solid) 90%, #000); }
.btn.ghost { background: transparent; border-color: var(--baseline); color: var(--ink); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 560; color: var(--lp-link); text-decoration: underline; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
.ic { flex: none; width: 20px; height: 20px; }
.ex { display: inline-flex; align-items: center; flex: none; padding: 1px 7px; border: 1px dashed var(--baseline); border-radius: 999px; color: var(--ink-2); font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ex-corner { position: absolute; top: 14px; right: 14px; z-index: 2; }
.ai-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--lp-solid); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ai-view { display: inline-block; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 11%, var(--surface)); color: var(--lp-link); font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 560; line-height: 1; white-space: nowrap; cursor: pointer; scroll-snap-align: center; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--lp-text-3), var(--lp-shadow-1); }
.seg button:focus-visible { outline-offset: -2px; }
.nb { white-space: nowrap; }   /* a hyphenated word that must not break at its hyphen: sign-in, BTC-USD */
.gl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl.up { color: var(--good-text); }
.gl.down { color: var(--bad-text); }
.gl.flat { color: var(--ink-2); }
.gl > span:first-child { font-size: .78em; }
.kind { display: inline-block; padding: 0 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--muted); }
.dot.is-open { background: var(--good); }
.ticks { display: grid; gap: 14px 40px; }
.ticks li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.ticks .ic { margin-top: 2px; color: var(--lp-link); }
.ticks li > span { max-width: 60ch; }
.xchips { display: flex; flex-wrap: wrap; gap: 6px; }
.xchips li { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.panel { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.panel-t { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.swatch { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.swatch-1 { background: var(--cat-1); } .swatch-2 { background: var(--cat-2); } .swatch-3 { background: var(--cat-3); } .swatch-4 { background: var(--cat-4); }
.bar-row { display: grid; grid-template-columns: minmax(48px, 92px) minmax(0, 1fr) 34px; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.bar { position: relative; display: block; height: 8px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--series-1) 14%, transparent); }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); border-radius: 4px; background: var(--series-1); transition: width .6s var(--ease-out); }
.bv { text-align: right; color: var(--ink); }

/* ====== 7 hero */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--hh) * -1); padding: calc(var(--hh) + clamp(24px, 5vw, 72px)) 0 clamp(40px, 6vw, 88px); }
.hero::before { content: ""; position: absolute; inset: -24px; background: var(--lp-aurora); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--lp-dots) 1px, transparent 1.5px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: start; }
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 14px; }
.hero .lead { margin-top: 20px; }
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.hero-btns .link-btn { min-height: 44px; }
.micro { display: grid; gap: 6px; max-width: 46ch; margin-top: 16px; }
.micro p { font-size: 13px; line-height: 1.5; color: var(--lp-text-3); }
.hero-art { min-width: 0; perspective: 1600px; }
.art { position: relative; max-width: 640px; margin-inline: auto; }
.ov { position: absolute; top: 0; left: 0; display: none; width: 88%; height: 360px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--lp-shadow-2); font-size: 13px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.ov-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.ov-brand { font-size: 13.5px; letter-spacing: -.01em; }
.ov-tabs { display: flex; flex: none; gap: 14px; margin-left: 8px; color: var(--lp-text-3); font-size: 13px; white-space: nowrap; }
.ov-tabs .cur { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--accent); }
.ov-seg { display: flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 999px; background: var(--surface-2); color: var(--lp-text-3); font-size: 11.5px; }
.ov-seg span { padding: 1px 8px; border-radius: 999px; }
.ov-seg .cur { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
@media (min-width: 960px) and (max-width: 1099px) { .ov-seg { display: none; } .ov-bar > .ex { margin-left: auto; } }   /* the card is only 435-507 px wide here: the decorative currency pill and the company names go, the Example pill stays */
.ov-kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 12px 16px 6px; }
.ov-val .k { color: var(--lp-text-3); font-size: 12px; }
.ov-val .v { font-size: 38px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.ov-val .d { margin-top: 2px; font-size: 12.5px; }
.ov-spark { width: 100%; height: 64px; }
.s-val, .phone-spark .line { fill: none; stroke: var(--series-1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s-cost, .phone-spark .cost { fill: none; stroke: var(--reference); stroke-width: 1.25; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ov-table { padding: 0 16px; }
.ov-h, .ov-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 86px; gap: 8px; align-items: center; }
.ov-row { align-items: start; }
.ov-h { padding: 6px 0; color: var(--lp-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ov-h span:not(:first-child), .ov-row > :not(:first-child) { text-align: right; }
.ov-row { padding: 8px 0; border-top: 1px solid var(--border); }
.ov-name { color: var(--ink-2); line-height: 1.5; }
.ov-name b { color: var(--ink); }
@media (min-width: 960px) and (max-width: 1169px) {   /* the back card is narrow: the name line stays on one line, so an invisible pill reserves no second line and a long company name is shortened */
  .ov-name { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
  .ov-name .co { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ov-name .ai-view, .ov-name .kind { flex: none; }
}
@media (min-width: 960px) and (max-width: 1099px) { .ov-name .co, .hero .win-co { display: none; } }   /* here the card shows only the tickers and the pill, and the demo card header just the ticker, so nothing is cut off */
.desk { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--lp-shadow-hero); }
.art-foot { max-width: 640px; margin: 14px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.art-ctl { display: flex; gap: 8px; }
.art-foot .fine { flex-basis: 100%; }   /* the caption keeps its own row, so hiding Pause cannot pull Replay up beside it */
.art-foot .fine, .micro p { color: var(--ink-2); }   /* the caption sits in the card's blue glow and the notes on the dot grid: --lp-text-3 is too faint there */

/* ====== 8 shared AI pieces: window, board, pills, meter, scale, mood */
.win-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); font-size: 13px; }
.win-app { font-weight: 650; }
.win-sym { flex: 1; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.win-status { container-type: inline-size; padding: 12px 16px 14px; }
.st-line { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.st-count, .st-queue { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.st-seg { white-space: nowrap; }   /* the parts of the counter line (done, time, calls) never break inside, so the number of lines does not change while the numbers tick */
/* reserve the wrapped lines, so the card and the controls below do not jump while the status text changes */
@container (max-width: 500px) { .st-line { min-height: 2.7em; } }
@container (max-width: 460px) { .st-count, .st-queue { min-height: 2.9em; } }
@container (max-width: 460px) { .st-count .st-seg:first-child { display: block; } }   /* two fixed lines (done / time and calls): a break that flipped with the clock digits would make the text jump */
@container (max-width: 460px) { .st-count .st-seg:nth-child(2) .st-sep { display: none; } }   /* the first part is a block, so the second starts line 2 and needs no separator dot; the dot between the second and the third part stays */
.meter { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--series-1) 18%, transparent); }
.meter::after { content: ""; display: block; height: 100%; background: var(--series-1); transform: scaleX(var(--p, 1)); transform-origin: left; transition: transform .4s var(--ease-out); }
.board { container-type: inline-size; display: grid; gap: 6px; padding: 8px 16px 12px; }
.lane { --team: var(--baseline); display: grid; gap: 6px; padding: 5px 0 5px 11px; border-left: 3px solid var(--team); }
.lane[data-team="analysts"] { --team: var(--team-analyst); } .lane[data-team="research"] { --team: var(--team-research); }
.lane[data-team="trading"] { --team: var(--team-trading); } .lane[data-team="risk"] { --team: var(--team-risk); } .lane[data-team="portfolio"] { --team: var(--team-pm); }
.lane-t { color: var(--lp-text-3); font-size: 11.5px; font-weight: 650; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
@container (min-width: 600px) { .lane { grid-template-columns: 118px minmax(0, 1fr); align-items: center; } }
.pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: auto; min-height: 26px; padding: 3px 10px 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 560; line-height: 1; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.pill .nm { white-space: normal; line-height: 1.2; }   /* a pill wider than its lane wraps its name; the duration stays whole */
.pill[data-state="working"] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.pill[data-state="waiting"] .nm, .pill[data-state="skipped"] .nm { color: var(--lp-text-3); }
.pill .meta { min-width: 3.4ch; color: var(--lp-text-3); font-size: 11.5px; text-align: right; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }   /* visibility keeps the duration out of the accessibility tree while the agent waits or works (the box stays, so nothing shifts); on the way out it waits for the fade */
.pill[data-state="done"] .meta { opacity: 1; visibility: visible; transition: opacity .2s; }
.sk { color: var(--lp-text-3); font-size: 11.5px; font-weight: 500; }
.pill .st, .ag-h .st { position: relative; display: inline-block; flex: none; width: 12px; height: 12px; }
.pill .st::before, .ag-h .st::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--lp-text-3); border-radius: 50%; }
.pill[data-state="done"] .st::before, .ag[data-state="done"] .st::before { inset: -1px; border: 0; border-radius: 0; background: var(--good-text); -webkit-mask: var(--m-check) center / 100% no-repeat; mask: var(--m-check) center / 100% no-repeat; }
.pill[data-state="skipped"] .st::before, .ag[data-state="skipped"] .st::before { inset: -1px; border: 0; border-radius: 0; background: var(--lp-text-3); -webkit-mask: var(--m-dash) center / 100% no-repeat; mask: var(--m-dash) center / 100% no-repeat; }
.pill[data-state="working"] .st::before, .ag[data-state="working"] .st::before { display: none; }
.spin { display: none; position: absolute; inset: 0; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; }
[data-state="working"] > .st .spin, [data-state="working"] .ag-h .spin { display: block; animation: lp-spin .8s linear infinite; }
.demo[data-state="paused"] .spin, .art.is-paused .spin { animation-play-state: paused; }
.decision { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 84px; padding: 12px 16px 14px; border-top: 1px solid var(--border); }
.decision .scale { grid-column: 1 / -1; }
.lab { color: var(--ink-2); font-size: 13px; font-weight: 560; }
.rate { display: inline-flex; align-items: center; justify-content: center; min-width: 4.2em; padding: 3px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--lp-link); font-size: 14px; font-weight: 650; line-height: 1.4; transition: background-color .3s, color .3s; }
.rate.big { padding: 5px 22px; font-size: 22px; }
.scale { position: relative; height: 54px; }
.scale::before { content: ""; position: absolute; top: 16px; left: 10%; right: 10%; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.sc-l li { position: absolute; top: 34px; left: calc(10% + 20% * var(--i)); transform: translateX(-50%); color: var(--lp-text-3); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.sc-l li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 12px; margin: 0 0 8px -1px; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.sc-l .res { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mk { position: absolute; top: 7px; left: calc(10% + 20% * var(--pos, 2)); z-index: 1; transform: translateX(-50%); padding: 0 11px; border-radius: 999px; background: var(--lp-solid); color: #fff; font-size: 12.5px; font-weight: 650; line-height: 24px; white-space: nowrap; transition: left .9s var(--ease-pop), background-color .3s; box-shadow: 0 0 0 3px var(--surface); }
.scale-cap { margin-top: 2px; color: var(--lp-text-3); font-size: 13px; line-height: 1.45; }
.mood { position: relative; padding-top: 16px; }
.m-l { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.m-l li { padding-top: 10px; border-top: 5px solid color-mix(in srgb, var(--series-1) 16%, transparent); border-radius: 3px; color: var(--lp-text-3); font-size: 12px; line-height: 1.25; text-align: center; }
.m-l .res { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.mk-d { position: absolute; top: 4px; left: calc(100% / 12 * (2 * var(--pos, 2) + 1)); width: 13px; height: 13px; margin-left: -6.5px; border-radius: 3px; background: var(--lp-solid); transform: rotate(45deg); transition: left .8s var(--ease-pop); box-shadow: 0 0 0 3px var(--surface-2); }

/* ====== 9 covers */
.sec-covers { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 72px); }
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.strip-item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.tile { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--lp-link); box-shadow: inset 0 0 0 1px var(--border); }
.strip-text strong { display: block; margin-bottom: 4px; font-size: 16px; }
.strip-text span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.sec-covers .fine { margin-top: 28px; }

/* ====== 10 watch: the AI team and the player */
.sec-watch .note { display: flex; gap: 10px; max-width: 64ch; margin-top: 22px; font-size: 14px; line-height: 1.5; }
.sec-watch .note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--b-accent); }
.roster { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
.roster ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.roster li { display: grid; align-content: start; gap: 2px; padding: 14px 0 18px; border-top: 1px solid var(--b-line); }
.roster .num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.roster .r-t { margin-top: 6px; font-size: 16px; font-weight: 600; }
.roster .r-d { color: var(--b-ink-2); font-size: 13px; line-height: 1.4; }
.roster-line { display: block; width: 100%; height: 2px; margin-top: -1px; overflow: visible; }
.roster-line path { fill: none; stroke: var(--b-accent); stroke-width: 2; }
.roster figcaption { max-width: 72ch; margin-top: 16px; color: var(--b-ink-2); font-size: 13px; line-height: 1.5; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.demo-bar .seg { background: rgba(255, 255, 255, .06); border-color: var(--b-line); }
.demo-bar .seg button { color: var(--b-ink-2); }
.demo-bar .seg button:hover { color: var(--b-ink); }
.demo-bar .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .15); color: var(--b-ink); box-shadow: 0 0 0 1.5px var(--b-ink-2); }
.steps { display: flex; flex: 1 1 max-content; min-width: 0; gap: 6px; padding: 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: none; scroll-snap-align: center; }
.steps button { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 25px; border: 1px solid var(--b-line); border-radius: 999px; background: none; color: var(--b-ink-2); font-size: 13.5px; font-weight: 560; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.steps button:hover { color: var(--b-ink); border-color: rgba(255, 255, 255, .3); }
.steps button[aria-current="step"] { border-color: var(--b-ink); background: var(--b-ink); color: var(--b-bg); }
/* the check mark hangs in the right padding, so the label stays centred and a chip never changes width when it is done */
.steps button::after { content: ""; position: absolute; top: 50%; right: 7px; width: 12px; height: 12px; margin-top: -6px; background: transparent; -webkit-mask: var(--m-check) center / 100% no-repeat; mask: var(--m-check) center / 100% no-repeat; }
.steps button.is-done::after { background: var(--b-accent); }
.steps button[aria-current="step"].is-done::after { background: var(--b-bg); }
@media (min-width: 720px) { .steps { flex-wrap: wrap; } }
.steps button:focus-visible { outline-offset: -2px; }   /* the ring must stay inside the .steps scroll box, which clips it */
.steps button[aria-current="step"]:focus-visible { outline-color: var(--b-focus-on-ink); }   /* the active chip is filled with --b-ink: a mid blue shows against both the band and the chip (3.9:1, 3.85:1); the pale --b-focus was 1.56:1 on it */
.window { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.win-body { display: grid; }
.stage { container: stage / inline-size; padding: 20px clamp(16px, 2.4vw, 28px) 26px; }
.panel[data-panel] { display: grid; align-content: start; gap: 14px; padding: 0; border: 0; border-radius: 0; background: none; }
.demo:not(.is-live) .panel[data-panel] + .panel[data-panel] { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.ph { display: flex; align-items: center; gap: 10px; color: var(--lp-link); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.ph .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lp-solid); color: #fff; font-size: 12.5px; letter-spacing: 0; }
.coin-fallback { border-top: 1px solid var(--border); }
.coin-fallback > summary { padding: 16px 24px; color: var(--lp-link); font-weight: 600; cursor: pointer; }
.coin-fallback .scn { border-top: 1px solid var(--border); }
.demo.is-live .coin-fallback { border: 0; }
.demo.is-live .coin-fallback > summary, .demo.is-live .coin-fallback .scn { display: none; }
.demo.is-live[data-scenario="stock"] .scn[data-scn="stock"], .demo.is-live[data-scenario="coin"] .coin-fallback .scn[data-scn="coin"] { display: block; }
.demo.is-live[data-scenario="coin"] .scn[data-scn="stock"], .demo.is-live[data-scenario="stock"] .coin-fallback { display: none; }
.demo.is-live .coin-fallback .scn { border-top: 0; }
/* live, 720 px and up: both examples share one cell, so the window keeps the height of the taller one and nothing below moves on Stock/Coin; the one not shown is visibility:hidden, children too (.panel.is-active and .pill .meta set visible) */
@media (min-width: 720px) {
  .demo.is-live .window { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo.is-live .window > .scn, .demo.is-live .window > .coin-fallback { grid-area: 1 / 1; min-width: 0; }
  .demo.is-live[data-scenario] .scn[data-scn], .demo.is-live[data-scenario] .coin-fallback { display: block; }
  .demo.is-live[data-scenario="coin"] .scn[data-scn="stock"], .demo.is-live[data-scenario="coin"] .scn[data-scn="stock"] *,
  .demo.is-live[data-scenario="stock"] .scn[data-scn="coin"], .demo.is-live[data-scenario="stock"] .scn[data-scn="coin"] * { visibility: hidden !important; }
}
@media (min-width: 1100px) { .win-body { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); } .win-body .board { align-content: start; padding: 16px 20px; border-right: 1px solid var(--border); } .win-body .stage { padding-top: 24px; } }
.demo.is-live .stage { display: grid; }
.demo.is-live .panel[data-panel] { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.demo.is-live .panel[data-panel].is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .32s var(--ease-out) .1s, transform .32s var(--ease-out) .1s, visibility 0s; }
.demo.is-live .ph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-scrubbing *, .no-anim * { transition-duration: 0s !important; animation-duration: 0s !important; }
.card { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.card-t { font-size: 14px; font-weight: 650; line-height: 1.3; }
.newrep { display: grid; gap: 14px; max-width: 580px; }
.field { display: grid; gap: 6px; }
.f-l { color: var(--ink-2); font-size: 12.5px; font-weight: 560; }
.f-v { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--baseline); border-radius: 8px; background: var(--surface); font-size: 15px; }
.f-v.opts { min-height: 0; padding: 0; border: 0; background: none; }
.typed { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.opt { padding: 6px 14px; border: 1px solid var(--baseline); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; }
.opt small { margin-left: 4px; color: var(--lp-text-3); font-size: 12px; }
.opt.sel { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); font-weight: 600; }
.ask-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--lp-solid); color: #fff; font-size: 14px; font-weight: 600; transition: transform .15s, filter .15s; }
.fake-btn.on { transform: scale(.96); filter: brightness(.86); }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.6; }
.chip.q::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.chip.hold { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--lp-link); font-weight: 650; }
.ph-sub { color: var(--ink-2); font-size: 14.5px; }
.cards.a4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card.ag { display: flex; flex-direction: column; gap: 8px; }
.ag-h { display: flex; align-items: center; gap: 8px; }
.ag-h .card-t { flex: 1; }
.looks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--lp-text-3); font-size: 12.5px; }
.tx { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.illu { display: flex; align-items: center; gap: 8px; color: var(--lp-text-3); font-size: 12px; }
.spark polyline { fill: none; stroke: var(--series-1); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.heads { display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.heads li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--baseline); }
.hl { color: var(--lp-text-3); font-size: 12px; font-weight: 600; }
.mood-card { display: grid; gap: 12px; max-width: 760px; }
.mood-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.mood-w { font-size: 19px; font-weight: 650; }
.score { font-size: 15px; font-weight: 600; }
.conf { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.segs { display: inline-flex; gap: 3px; }
.segs i { width: 22px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--series-1) 18%, transparent); transition: background-color .4s; }
.segs i.f { background: var(--series-1); }
.src-t { color: var(--lp-text-3); font-size: 12.5px; }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; }
.srcs li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; }
.srcs .ck { color: var(--good-text); }
.srcs .off { border-style: dashed; color: var(--ink-2); }
.hol { width: 12px; height: 12px; border: 1.5px solid var(--baseline); border-radius: 50%; }
.why { color: var(--lp-text-3); font-size: 12.5px; }
.src-note { color: var(--ink-2); font-size: 13.5px; }
.tag { justify-self: start; padding: 2px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.duel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bub { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border: 1px solid; border-radius: 14px; }
.bub.bull { border-color: color-mix(in srgb, var(--bull) 35%, transparent); background: color-mix(in srgb, var(--bull) 9%, var(--surface)); }
.bub.bear { border-color: color-mix(in srgb, var(--bear) 35%, transparent); background: color-mix(in srgb, var(--bear) 9%, var(--surface)); }
.who { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.bull .who { color: var(--lp-link); }
.bear .who { color: var(--bear); }
.trader { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.trader .tx { flex-basis: 100%; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card.risk, .card.mgr { display: grid; align-content: start; gap: 4px; }
.role { color: var(--lp-text-3); font-size: 12.5px; }
.dec-row { display: flex; align-items: center; gap: 16px; }
.dec-row .scale { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.facts div { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.facts dt { color: var(--lp-text-3); font-size: 12px; }
.facts dd { font-size: 15px; font-weight: 600; }
.tx.exec { color: var(--ink); font-size: 15.5px; }
.annot { padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: 14px; line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--lp-text-3); font-size: 13px; line-height: 1.5; }
.demo-controls { margin-top: 18px; }
.ctl-play, .ctl-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ctl-play:has([data-act="toggle"][data-mode="replay"]) [data-act="replay"] { display: none; }
[data-mode="pause"] .i-pause, [data-mode="play"] .i-play, [data-mode="replay"] .i-replay { display: block; }
.scrub { -webkit-appearance: none; appearance: none; flex: 1 1 200px; min-width: 0; height: 44px; margin: 0; background: none; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #74839b; }
.scrub::-moz-range-track { height: 6px; border-radius: 3px; background: #74839b; }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--b-bg); border-radius: 50%; background: var(--b-accent); }
.scrub::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--b-bg); border-radius: 50%; background: var(--b-accent); }
.band .btn.ghost { border-color: var(--b-line); color: var(--b-ink); }
.band .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn[aria-disabled="true"] { cursor: default; border-style: dashed; }   /* inert but focusable: a dashed border says so without colour, the label and icon are dimmed (not the button, so the focus ring keeps its contrast) */
.btn[aria-disabled="true"] > * { opacity: .55; }
.btn.ghost[aria-disabled="true"]:hover { background: transparent; }
.btn[aria-disabled="true"]:active { transform: none; }
.band .link-btn { color: var(--b-accent); }
.caption { margin-top: 16px; font-size: 13px; line-height: 1.5; }
.ai-line { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.as-text { margin-top: 22px; border: 1px solid var(--b-line); border-radius: 14px; color: var(--b-ink-2); }
.as-text > summary { padding: 14px 18px; color: var(--b-ink); font-weight: 600; cursor: pointer; }
.as-t, .as-list { max-width: 86ch; padding: 0 18px; font-size: 14.5px; line-height: 1.6; }
.as-t { margin-top: 6px; color: var(--b-ink); }
.as-list { display: grid; gap: 10px; margin: 8px 0 18px; list-style: none; }
.as-list b { color: var(--b-ink); }
.post-cta { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.post-cta p { margin-bottom: 18px; color: var(--b-ink); font-size: clamp(20px, 1.4vw + 12px, 28px); font-weight: 600; letter-spacing: -.015em; }
.post-cta .btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
@container stage (max-width: 640px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
@container stage (max-width: 560px) { .duel, .cards.a4 { grid-template-columns: minmax(0, 1fr); } .dec-row { flex-direction: column-reverse; align-items: flex-start; gap: 6px; } .dec-row .scale { width: 100%; flex: none; } }
@container stage (max-width: 400px) { .m-l { gap: 2px; } .m-l li { font-size: 11px; letter-spacing: -.02em; } .card { padding: 14px; } }

/* ====== 11 report + depth dial */
.report-grid { display: grid; gap: 40px; align-items: start; }
.report-copy { display: grid; gap: 22px; min-width: 0; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.checks .ic { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; margin-top: -1px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--lp-link); }
.dial { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--lp-shadow-1); }
.dial .seg { justify-self: start; }
.dots { display: flex; gap: 10px; min-height: 22px; }
.pair { display: inline-flex; gap: 3px; opacity: .2; transform: scale(.85); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.pair:nth-child(2) { transition-delay: 60ms; } .pair:nth-child(3) { transition-delay: 120ms; } .pair:nth-child(4) { transition-delay: 180ms; } .pair:nth-child(5) { transition-delay: 240ms; }
.pair.on { opacity: 1; transform: none; }
.pair i { width: 12px; height: 12px; border-radius: 50%; }
.pair .bu { background: var(--bull); }
.pair .be { border: 2px solid var(--bear); }
.dial-list { display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.rep { position: relative; min-width: 0; padding: 26px clamp(16px, 2.4vw, 28px) 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--lp-shadow-2); }
.rep > .ex { position: absolute; top: -11px; left: 22px; background: var(--page); }
.rep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rep-id { flex: 1 1 200px; min-width: 0; }
.rep-sym { font-size: 17px; overflow-wrap: anywhere; }
.rep-sub { margin-top: 2px; color: var(--lp-text-3); font-size: 13px; }
.badge.ok { padding: 1px 10px; border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--good) 10%, var(--surface)); color: var(--good-text); font-size: 12.5px; font-weight: 600; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rep-grid > div { padding: 10px 0; border-top: 1px solid var(--border); }
.rep-grid dt { color: var(--lp-text-3); font-size: 12.5px; }
.rep-grid dd { font-size: 15.5px; font-weight: 600; }
@supports (grid-template-rows: subgrid) {   /* label and value of all cells in a row share two rows, so a wrapped label cannot push one value down */
  .rep-grid > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .rep-grid dt { align-self: end; }
}
.rep .scale { margin-top: 14px; }
.exec-sum { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.exec-sum .k { margin-bottom: 4px; color: var(--lp-text-3); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.exec-sum p:last-child { font-size: 15px; line-height: 1.55; }
.secs { margin-top: 14px; border-bottom: 1px solid var(--border); }
.secs details { border-top: 1px solid var(--border); }
.secs summary, .faq-item summary { position: relative; padding: 12px 28px 12px 0; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.secs summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.secs summary::after, .faq-item summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--ink-2); -webkit-mask: var(--m-chev) center / 100% no-repeat; mask: var(--m-chev) center / 100% no-repeat; transition: transform .2s; }
.secs details[open] > summary::after, .faq-item[open] > summary::after { transform: rotate(180deg); }
.secs details p { margin-bottom: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.secs details p b { margin-right: 6px; color: var(--ink); }
.secs details p:last-child { margin-bottom: 14px; }
.rep figcaption { margin-top: 14px; color: var(--lp-text-3); font-size: 13px; }

/* ====== 12 limits */
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: clamp(32px, 5vw, 56px); padding: 12px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.notice .ic { color: var(--lp-link); }
.trio { display: grid; gap: 28px; }
.lim { padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.lim h3 { margin-bottom: 10px; font-size: 20px; }
.lim p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.closing { max-width: 70ch; margin-top: clamp(28px, 4vw, 44px); color: var(--ink-2); font-size: 14.5px; }

/* ====== 13 tracker */
.app { position: relative; display: grid; gap: 16px; padding: 52px clamp(14px, 2.4vw, 28px) 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--lp-alt); box-shadow: var(--lp-shadow-2); }
.app > * { min-width: 0; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.app-cap { color: var(--ink-2); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.kpi { min-width: 0; padding: 14px 16px; background: var(--surface); }
.kpi dt { color: var(--ink-2); font-size: 13px; }
.kpi-v { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.kpi-v { font-size: clamp(17px, calc((100vw - 128px) / 10.9), 22px); }   /* 2-column strip below 720 px: the value must fit a cell of (vw - 64) / 2 px minus 32 px padding, also in a wide fallback font; 22 px from 375 px */
@media (min-width: 720px) { .kpi-v { font-size: clamp(16px, calc((100vw - 266px) / 27.25), 22px); } }   /* 5-column strip: a cell is about (vw - 106) / 5 px; the value reaches the full 22 px from about 870 px */
.kpi-hero { grid-column: 1 / -1; }
.kpi-hero .kpi-v { font-size: clamp(30px, 2.6vw + 12px, 40px); line-height: 1.1; }
.kpi-s { margin-top: 4px; color: var(--lp-text-3); font-size: 12.5px; line-height: 1.4; }
.kpi-s.gl.up { color: var(--good-text); }
@supports (grid-template-rows: subgrid) {   /* label, value and sub line of all cells share three rows, so a wrapped label cannot push one value down */
  .kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .kpi-v { align-self: end; }
}
.mkts-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.mkts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-2); font-size: 13px; }
.mkts li { display: inline-flex; align-items: center; }
.asof { color: var(--lp-text-3); font-size: 13px; }
.app-grid { display: grid; gap: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -4px 0 8px; color: var(--ink-2); font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch-value, .swatch-cost { width: 18px; height: 0; border-radius: 0; border-top: 2.5px solid var(--series-1); }
.swatch-cost { border-top: 1.5px solid var(--reference); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--font); fill: var(--lp-text-3); }
.chart .gl-line { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--baseline); stroke-width: 1; }
.chart .stop-a { stop-color: var(--series-1); stop-opacity: .22; }
.chart .stop-b { stop-color: var(--series-1); stop-opacity: 0; }
.chart .cost { fill: none; stroke: var(--reference); stroke-width: 1.5; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .halo { fill: var(--series-1); opacity: .2; }
.chart .end { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart-table { margin-top: 10px; font-size: 13.5px; }
.chart-table summary { color: var(--lp-link); cursor: pointer; }
.tbl-scroll { overflow-x: auto; }
.mini { width: 100%; max-width: 420px; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.mini th, .mini td { padding: 5px 10px; border-bottom: 1px solid var(--border); text-align: right; }
.mini th:first-child { text-align: left; font-weight: 500; }
.alloc { display: grid; justify-items: center; gap: 18px; }
.donut { position: relative; width: 148px; }
.donut svg { display: block; width: 100%; }
.donut .ring, .donut .arc { fill: none; stroke-width: 6; }
.donut .ring { stroke: var(--grid); }
.arc-1 { stroke: var(--cat-1); } .arc-2 { stroke: var(--cat-2); } .arc-3 { stroke: var(--cat-3); } .arc-4 { stroke: var(--cat-4); }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.donut-c strong { font-size: 26px; font-weight: 650; }
.donut-c span { color: var(--lp-text-3); font-size: 12.5px; }
.alloc-legend { display: grid; gap: 8px; width: 100%; font-size: 14px; }
.alloc-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.ap { color: var(--ink-2); text-align: right; }
.av { min-width: 5.2em; text-align: right; font-weight: 560; }
.tbl-card { padding: 0; overflow: hidden; }
.tbl-scroll:focus-visible { outline-offset: -2px; }
.pos { width: 100%; border-collapse: collapse; font-size: 14px; }
.pos th, .pos td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.pos thead th { color: var(--lp-text-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pos th[scope="row"], .pos thead th:first-child { text-align: left; font-weight: 400; }
.pos .sym { font-weight: 650; white-space: nowrap; }
.pos .nm { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.pos .sub { display: block; color: var(--lp-text-3); font-size: 12px; }
.pos tfoot th, .pos tfoot td { border-bottom: 0; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); font-weight: 600; }
.pos tfoot th { font-weight: 600; }
.c-opt, .c-day { display: none; }
.app > .fine, .app > figcaption { color: var(--lp-text-3); font-size: 13px; }
.ticks.cols-2 { margin-top: 36px; }
.assets { margin-top: clamp(48px, 7vw, 88px); }
.assets-head { max-width: 760px; margin-bottom: 28px; }
.assets-head h3 { margin-bottom: 10px; font-size: clamp(22px, 1.2vw + 16px, 28px); letter-spacing: -.02em; }
.assets-head p { max-width: 64ch; color: var(--ink-2); line-height: 1.6; }
.asset-cards { display: grid; gap: 18px; }
.asset { display: grid; align-content: start; gap: 10px; min-width: 0; padding-bottom: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--lp-shadow-1); }
.asset > h4 { padding: 0 22px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.asset > p { padding: 0 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.assets > .fine { margin-top: 18px; }
.pic { position: relative; display: grid; align-content: center; gap: 8px; min-height: 148px; padding: 38px 18px 16px; margin-bottom: 8px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; }
.pic > .ex { position: absolute; top: 10px; right: 12px; }
.fake-field { display: flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--baseline); border-radius: 8px; background: var(--surface); font-size: 14px; }
.caret { width: 1.5px; height: 16px; margin-left: 1px; background: var(--accent); }
.results { display: grid; gap: 2px; font-size: 12.5px; }
.results li { display: flex; gap: 8px; padding: 2px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.results li:has(.res-ex) { flex-wrap: wrap; height: 24px; }   /* a row is one line high: when the exchange tail (.res-ex) does not fit, it wraps to a second line that the overflow clips */
.results span { overflow: hidden; text-overflow: ellipsis; }
.results .res-nm { flex: 0 1 auto; min-width: 0; }
.results .res-ex { flex: none; margin-left: -4px; }   /* -4 px of the 8 px gap, so the dot sits next to the name */
.xchips { gap: 4px; }
.pic .xchips li { padding: 0 8px; font-size: 12px; line-height: 1.7; }
.pic-t { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.pic-t b { color: var(--ink); }
.bars-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bars-t { margin-bottom: 4px; color: var(--lp-text-3); font-size: 12px; font-weight: 600; }
.pic .bar-row { grid-template-columns: minmax(36px, 62px) minmax(0, 1fr) 28px; gap: 6px; margin-bottom: 3px; font-size: 12px; }
.bar-more { color: var(--lp-text-3); font-size: 12px; }
.pic-coin { justify-items: center; align-content: center; gap: 6px; }
.ring-24 { width: 82px; height: 82px; }
.ring-track, .ring-fill { fill: none; stroke-width: 7; }
.ring-track { stroke: color-mix(in srgb, var(--series-1) 16%, transparent); }
.ring-fill { stroke: var(--series-1); stroke-linecap: round; }
.ring-24 text { fill: var(--ink); font: 650 17px var(--font); }
.chip-open { display: inline-flex; align-items: center; padding: 1px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12.5px; }
.chip-open .dot { margin-right: 6px; }

/* ====== 14 import + API */
.imp-grid { display: grid; gap: clamp(48px, 7vw, 72px); align-items: start; }
.imp-col, .api-col { min-width: 0; }
.imp-col h3, .api-col h3 { margin-bottom: 10px; font-size: clamp(21px, 1vw + 16px, 26px); letter-spacing: -.02em; }
.imp-fig { position: relative; display: grid; gap: 14px; margin: 24px 0; padding: 52px clamp(12px, 2vw, 20px) 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--lp-alt); box-shadow: var(--lp-shadow-2); }
.imp-fig { container: imp / inline-size; }
.imp-fig > * { min-width: 0; }
.imp-fig > .seg { justify-self: start; }
@container imp (max-width: 327px) {
  .imp-fig > .seg { display: flex; flex-wrap: wrap; width: 100%; border-radius: 22px; overflow: visible; }   /* the three source tabs need 328 px at 14 px type: below that they wrap onto a second row instead of clipping in a scroller */
  .imp-fig > .seg button { flex: 1 1 auto; padding: 0 8px; }
}
.imp-fig figcaption { color: var(--lp-text-3); font-size: 13px; }
.imp-stage { display: grid; gap: 22px; }
.lp-js .imp-stage { grid-template-columns: minmax(0, 1fr); }   /* with JS the three previews share one cell: the stage keeps the height of the tallest, whatever tab is open */
.lp-js .imp-stage > .imp-prev { grid-area: 1 / 1; align-self: start; }
.lp-js .imp-stage > .imp-prev[hidden] { display: grid !important; visibility: hidden; }
.imp-prev { display: grid; gap: 12px; min-width: 0; }
.imp-zone { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1.5px dashed var(--baseline); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; }
.imp-drop { display: none; }
.imp-file { padding: 3px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font: 500 13px var(--mono); color: var(--ink); }
.imp-card, .imp-history { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.imp-title { font-size: 14px; font-weight: 650; }
.imp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-chip { padding: 1px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; }
.imp-chip b { color: var(--ink); }
.imp-scroll { overflow-x: auto; }
.imp-rows { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 13px; }
.imp-rows th { padding: 6px 6px; color: var(--lp-text-3); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.imp-rows td { padding: 7px 6px; border-top: 1px solid var(--border); white-space: nowrap; }
.imp-rows .num { text-align: right; }
.imp-rows .c-cb { width: 28px; padding-right: 0; }
.cb { display: block; width: 16px; height: 16px; border: 1.5px solid var(--baseline); border-radius: 4px; background: var(--surface); }
.cb.is-on { border-color: var(--lp-solid); background: var(--lp-solid); }
.cb.is-on::after { content: ""; display: block; height: 100%; background: #fff; -webkit-mask: var(--m-check) center / 90% no-repeat; mask: var(--m-check) center / 90% no-repeat; }
.imp-rows tr.r-dup td, .imp-rows tr.r-skip td { color: var(--lp-text-3); }   /* a colour, not opacity: opacity multiplied with the colours in the row and left them at 2.9:1 */
.st-new { color: var(--good-text); }
.st-err { color: var(--bad-text); }
.st-new .ic { width: 14px; height: 14px; margin: 0 4px -2px 0; }
.imp-note { display: block; color: var(--lp-text-3); font-size: 12px; white-space: normal; max-width: 30ch; }
@container imp (max-width: 570px) {   /* the 540 px table does not fit: each row becomes two lines (symbol and status, then type, date and "quantity @ price") */
  .imp-rows, .imp-rows tbody { display: block; min-width: 0; }
  .imp-rows thead { display: none; }
  .imp-rows tr { display: grid; grid-template-columns: 22px auto auto minmax(0, 1fr) minmax(2.6em, auto) minmax(3.4em, auto); column-gap: 6px; row-gap: 2px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
  .imp-rows td { min-width: 0; padding: 0; border: 0; font-size: 12.5px; }
  .imp-rows .c-line { display: none; }
  .imp-rows .c-cb { grid-area: 1 / 1 / 3 / 2; width: auto; align-self: start; padding-top: 2px; }
  .imp-rows td:nth-child(3) { grid-area: 1 / 2 / 2 / 4; font-size: 13px; }
  .imp-rows td.st { grid-area: 1 / 4 / 2 / 7; justify-self: end; text-align: right; white-space: normal; }
  .imp-rows td:nth-child(4) { grid-area: 2 / 2; color: var(--ink-2); }
  .imp-rows td:nth-child(5) { grid-area: 2 / 3; color: var(--ink-2); }
  .imp-rows td:nth-child(6) { grid-area: 2 / 5; }
  .imp-rows td:nth-child(7) { grid-area: 2 / 6; }
  .imp-rows td:nth-child(7):not(:empty)::before { content: "@ "; color: var(--lp-text-3); }
  .imp-note { max-width: none; }
}
.imp-go { display: inline-block; padding: 9px 20px; border-radius: 999px; background: var(--lp-solid); color: #fff; font-size: 14px; font-weight: 600; }
.imp-history { gap: 6px; font-size: 13px; }
.imp-h-t { color: var(--lp-text-3); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.imp-h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.imp-h-file { font: 500 12.5px var(--mono); }
.undo { margin-left: auto; color: var(--lp-link); text-decoration: underline; text-underline-offset: 3px; }
.imp-col > .fine { margin-top: 20px; max-width: 72ch; }
.imp-col .ticks { margin-top: 4px; }
.term { margin: 22px 0 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--lp-shadow-2); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--code-dim); font-size: 12.5px; }
.term-dots { width: 10px; height: 10px; margin-right: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); box-shadow: 16px 0 rgba(255, 255, 255, .2), 32px 0 rgba(255, 255, 255, .2); }
.term pre { margin: 0; padding: 16px 18px; overflow: auto; font: 13.5px/1.65 var(--mono); tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-k { color: var(--code-key); } .t-n { color: var(--code-num); } .t-s { color: var(--code-str); } .t-p, .t-prompt { color: var(--code-dim); } .t-c, .t-f, .t-u { color: var(--code-ink); }
.t-caret { display: none; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: var(--code-ink); }
.api-chips { margin-bottom: 20px; }
.api-chips li { font: 12.5px var(--mono); }

/* ====== 15 phone */
.phone-grid { display: grid; gap: 44px; align-items: center; }
.phone-text { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.h-sent { display: block; }   /* each sentence of the heading is its own block, so the balanced lines never run across the full stop */
.soon { display: flex; flex-wrap: wrap; gap: 10px; }
.soon li { padding: 6px 16px; border: 1.5px dashed var(--baseline); border-radius: 999px; color: var(--ink-2); font-size: 14px; }
.phone-fig { display: grid; justify-items: center; gap: 16px; order: -1; }
.sec-phone { overflow-x: clip; }   /* the figure is tilted until revealed: its box would widen the page by 1-2 px on a phone; clip (unlike hidden) makes no scroll container */
.phone-fig figcaption { color: var(--ink-2); font-size: 13px; }   /* the caption sits in the phone's drop shadow: --lp-text-3 drops to 3.6-3.7:1 there */
.phone { position: relative; width: 280px; height: 580px; padding: 10px; border-radius: 38px; background: #16181c; box-shadow: 0 34px 60px -24px rgba(11, 11, 11, .45), inset 0 0 0 1.5px #3a3d44, 0 0 0 1px rgba(11, 11, 11, .25); }
.phone-notch { position: absolute; top: 17px; left: 50%; z-index: 2; width: 60px; height: 6px; margin-left: -30px; border-radius: 3px; background: #000; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 28px; background: var(--page); color: var(--ink); }
.phone-scroll { display: grid; gap: 14px; padding: 32px 14px 18px; }
.p-brand { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; }
.p-l { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--lp-text-3); font-size: 12px; }
.p-v { font-size: 30px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.p-s { font-size: 12.5px; }
.phone-spark { display: block; width: 100%; height: 56px; }
.p-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.p-name { display: block; min-width: 0; font-size: 13px; line-height: 1.35; }
.p-name small { display: block; color: var(--lp-text-3); font-size: 12px; }
.p-val { text-align: right; font-size: 13px; font-weight: 600; white-space: nowrap; }
.p-val small { display: block; font-size: 12px; font-weight: 500; }
.p-alloc .bar-row { grid-template-columns: 46px minmax(0, 1fr) 30px; font-size: 12px; }
.p-mkts p { display: flex; align-items: center; margin-bottom: 4px; color: var(--ink-2); font-size: 12px; }
.p-mkts .p-l { margin-bottom: 6px; }
.p-mkts .p-asof { display: block; margin-top: 6px; color: var(--lp-text-3); }
/* the Android app's widgets as it draws them, in the page's theme; 88% page colour keeps the loss red at 4.5:1 */
.wdg-fig { container-type: inline-size; display: grid; gap: 10px; width: 100%; max-width: 480px; margin-top: 6px; }
.wdg-fig figcaption { color: var(--ink-2); font-size: 13px; }
.wdg-home { --wall: radial-gradient(110% 80% at 12% 0%, #f4cf91, #f4cf9100 60%), linear-gradient(160deg, #78a9e8, #2f69bd 55%, #183c70); display: grid; gap: 12px; padding: 14px; border-radius: 24px; background: var(--wall); }
:root[data-theme="dark"] .wdg-home { background: linear-gradient(#0d0d0d59, #0d0d0d59), var(--wall); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wdg-home { background: linear-gradient(#0d0d0d59, #0d0d0d59), var(--wall); } }
@container (min-width: 420px) { .wdg-home { grid-template-columns: 1fr 1.15fr; } }
.wdg { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border-radius: 16px; background: var(--page); background: color-mix(in srgb, var(--page) 88%, transparent); font-variant-numeric: tabular-nums; }
.wdg-h, .wdg-rows p { display: flex; gap: 8px; color: var(--ink-2); font-size: 12.5px; }
.wdg-n, .wdg-t, .wdg-name > * { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wdg-n, .wdg-name, .wdg-rows span:first-child { flex: 1; }
.wdg-v { margin-top: auto; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.wdg-t { margin-top: auto; color: var(--ink-2); font-size: 11px; }
.wdg-pos { height: 226px; padding-bottom: 0; overflow: hidden; }
.wdg-n b, .wdg-name b { display: block; color: var(--ink); font-size: 14px; }
.wdg-n small, .wdg-name small { display: block; color: var(--ink-2); font-size: 11px; }
.wdg-pos li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); line-height: 1.3; }
.wdg-num { text-align: right; font-size: 13px; }
.wdg-num b { display: block; font-size: 12.5px; }

/* ====== 16 start + final panel */
.how-wrap { position: relative; margin-bottom: clamp(48px, 7vw, 88px); }
.how { display: grid; gap: 30px; }
.how-step { position: relative; display: grid; align-content: start; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.how-n { grid-row: 1 / 3; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lp-solid); color: #fff; font-size: 18px; font-weight: 650; box-shadow: 0 0 0 6px var(--page); }
.how-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -30px; width: 2px; background: var(--border); }
.how-step h3 { margin-top: 9px; font-size: 20px; }
.how-step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.how-line { display: none; }
.final { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px); border-radius: 24px; background: linear-gradient(135deg, var(--lp-solid), color-mix(in srgb, var(--lp-solid) 78%, #000)); color: #fff; box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000); mask-image: linear-gradient(100deg, transparent 25%, #000); pointer-events: none; }
.final-body { position: relative; display: grid; justify-items: start; gap: 16px; max-width: 620px; }
.final .fine { margin-top: -8px; }
.final h2, .final .lead { color: #fff; }
.final .lead { color: rgba(255, 255, 255, .94); }
.final .fine { color: rgba(255, 255, 255, .9); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block: 6px; }
.final .btn.primary { background: #fff; color: color-mix(in srgb, var(--lp-solid) 70%, #000); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .5); }
.final .btn.ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.final .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.final .link-btn, .final :focus-visible { color: #fff; outline-color: #fff; }
.final-ticks { position: absolute; top: 50%; right: clamp(24px, 6vw, 80px); display: none; grid-template-columns: repeat(4, 36px); gap: 12px; transform: translateY(-50%); }
.tick-c { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--lp-solid); transition: background-color .25s, color .25s; }
.tick-c .ic { width: 18px; height: 18px; }

/* ====== 17 faq */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 20px 40px 20px 2px; font-size: clamp(16px, .4vw + 14.5px, 18px); line-height: 1.35; }
.faq-item summary::after { right: 4px; }
.faq-a { padding: 0 2px 24px; }
.faq-a p { max-width: 64ch; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.faq-a p + p { margin-top: 12px; }

/* ====== sharing a portfolio (#share) */
.shr-grid { display: grid; gap: 40px; align-items: center; }
.shr-copy h2 { margin-top: 12px; }
.shr-copy .lead { margin: 18px 0 24px; }
.shr-copy .fine { margin-top: 22px; max-width: 60ch; }
.shr-fig { min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; }
.shr { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--lp-shadow-2); }
.shr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.shr-bar .ex { margin-left: auto; }
.shr-ro { padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--lp-link); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.shr-body { display: grid; gap: 16px; padding: 18px; }
.shr-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.shr-sub { color: var(--lp-text-3); font-size: 12.5px; }
.shr-hold { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
.shr-hold .donut { width: 132px; }
.arc-5 { stroke: var(--cat-5); } .swatch-5 { background: var(--cat-5); }
.shr-legend { display: grid; gap: 7px; font-size: 13.5px; }
.shr-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.shr-legend .swatch { width: 10px; height: 10px; }
.shr-legend .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.shr-gain { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.shr-total b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.shr-total span { color: var(--lp-text-3); font-size: 12.5px; }
.shr-months { display: flex; gap: 14px; }
.shr-months li { display: grid; justify-items: center; gap: 2px; min-width: 42px; color: var(--lp-text-3); font-size: 11.5px; line-height: 1.4; }
.shr-col { display: flex; align-items: flex-end; height: 44px; }
.shr-col::after { content: ""; width: 24px; height: calc(var(--h) * 1%); border-radius: 4px 4px 0 0; background: var(--good); transform-origin: bottom; transition: transform .7s var(--ease-out) .5s; }
.is-pending:not(.in) .shr-col::after { transform: scaleY(0); }
.shr-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding: 9px 16px; border: 1px dashed var(--baseline); border-radius: 22px; background: var(--surface); color: var(--ink-2); font-size: 13px; }
.shr-link .ic { color: var(--lp-link); }
.shr-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.shr-for { margin-left: auto; color: var(--lp-text-3); }
.shr-fig figcaption { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 479px) { .shr-bar { gap: 6px 8px; padding-inline: 13px; } .shr-hold { grid-template-columns: minmax(0, 1fr); justify-items: center; } .shr-legend { width: 100%; } }
@media (min-width: 960px) { .shr-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

/* ====== 19 reveal, armed states, keyframes */
[data-reveal] { transition: opacity .6s var(--ease-out) calc(var(--i, 0) * 80ms), transform .6s var(--ease-out) calc(var(--i, 0) * 80ms); }
[data-reveal].is-pending:not(.in) { opacity: 0; transform: translateY(16px); }
.rep.is-pending:not(.in) { transform: translateY(32px); }
.phone-fig.is-pending:not(.in) { transform: rotate(-3deg) translateY(30px); }
@supports not (overflow-x: clip) { @media (max-width: 440px) { .phone-fig.is-pending:not(.in) { transform: translateY(30px); } } }   /* no overflow-x: clip (Safari before 16): no tilt on a phone, so the page does not scroll sideways before the reveal */
.phone-fig { transition-duration: .9s; }
.how-line { transform-origin: left; transition: transform .7s var(--ease-out); }
.how-line.is-pending:not(.in) { transform: scaleX(0); }
.is-pending:not(.in) [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-io); }
.in .cost[data-draw] { transition-delay: .2s; }
.in .ring-fill { transition-duration: .8s; }
.area, .donut .arc { transition: opacity .5s var(--ease-out) .4s; }
.is-pending:not(.in) .area, .is-pending:not(.in) .donut .arc, .is-pending:not(.in) .chart .halo, .is-pending:not(.in) .chart .end { opacity: 0; }
.is-pending:not(.in) .bar::after { width: 0; }
.pos tbody tr { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.is-pending:not(.in) .pos tbody tr { opacity: 0; transform: translateX(12px); }
.pos tbody tr:nth-child(2) { transition-delay: .06s; } .pos tbody tr:nth-child(3) { transition-delay: .12s; } .pos tbody tr:nth-child(4) { transition-delay: .18s; } .pos tbody tr:nth-child(5) { transition-delay: .24s; }
.rep.in .mk { animation: lp-pop .7s var(--ease-pop) .5s both; }
.rep.in .rep-grid > div { animation: lp-fade .5s ease-out calc(.35s + var(--i, 0) * 70ms) both; }
.run.is-armed [data-at] { transition: opacity .32s var(--ease-out), transform .32s var(--ease-out); }
.run.is-armed [data-at]:not(.on) { opacity: 0; transform: translateY(8px); }
.run.is-armed .w { transition: opacity .12s; }
.run.is-armed .w:not(.on) { opacity: 0; }
.run.is-armed .rate[data-flag]:not(.on) { border-style: dashed; background: none; color: var(--lp-text-3); }
.run.is-armed .mk[data-move]:not(.on) { background: var(--surface); color: var(--lp-text-3); box-shadow: inset 0 0 0 1.5px var(--baseline), 0 0 0 3px var(--surface); }
.run.is-armed .res[data-flag]:not(.on) { color: var(--lp-text-3); font-weight: 400; text-decoration: none; }
.run.is-armed .conf:not(.on) .segs i.f { background: color-mix(in srgb, var(--series-1) 18%, transparent); }
.run.is-armed .ai-view.on { animation: lp-badge .5s var(--ease-pop); }
.post-cta.is-armed:not(.on) { display: none; }   /* out of the flow until the first completed run, so the band does not end in an empty gap */
.post-cta.is-armed.on { animation: lp-rise .5s var(--ease-out) both; }
.imp-prev.is-armed [data-at] { transition: opacity .3s var(--ease-out), transform .25s var(--ease-pop), border-color .3s; }
.imp-prev.is-armed .imp-card:not(.on), .imp-prev.is-armed .imp-history:not(.on) { opacity: 0; transform: translateY(8px); }
.imp-prev.is-armed .imp-rows tbody tr:not(.on), .imp-prev.is-armed .imp-go:not(.on) { opacity: 0; }
.imp-prev.is-armed .imp-chip:not(.on) { opacity: 0; transform: scale(.9); }
.imp-prev.is-armed .imp-file:not(.on) { opacity: 0; transform: translateY(-16px); }
.imp-prev.is-armed .imp-zone:not(.on) { border-color: var(--accent); }
.imp-prev.is-armed .imp-zone:not(.on) .imp-drop { display: block; }
@container imp (max-width: 520px) {   /* narrow: the hint lies over the zone, so the zone keeps its 48 px and the shared cell its height */
  .imp-zone { position: relative; }
  .imp-prev.is-armed .imp-zone:not(.on) .imp-drop { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 14px; border-radius: 11px; background: var(--surface); font-size: 13px; line-height: 1.3; }
}
.is-armed .t-row:not(.on) { opacity: 0; }
.is-armed .t-caret { display: inline-block; animation: lp-blink .9s steps(1) 6 forwards; }
.final-ticks.is-armed .tick-c:not(.on) { background: rgba(255, 255, 255, .14); color: transparent; }
/* opacity .01, not 0, at the start of the two entrance animations: Chromium ignores an element animated up from opacity 0 as an LCP candidate, and the hero H1 must be the LCP */
@keyframes lp-rise { from { opacity: .01; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp-art { from { opacity: .01; transform: translateY(28px) rotateX(5deg) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lp-drift { to { transform: translate(12px, 10px); } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-pop { 0% { transform: translateX(-50%) scale(.7); } 60% { transform: translateX(-50%) scale(1.1); } 100% { transform: translateX(-50%); } }
@keyframes lp-badge { 0%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; } 50% { transform: scale(1.06); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 14%, transparent); } }
@keyframes lp-blink { 0%, 50% { opacity: 1; } 50.1%, 100% { opacity: 0; } }
@keyframes lp-phone { 0%, 10% { transform: none; } 45%, 58% { transform: translateY(-150px); } 100% { transform: none; } }
.phone-scroll.is-playing { animation: lp-phone 14s ease-in-out 2 both; }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: lp-drift 20s ease-in-out 2 both; }
  .rise { animation: lp-rise .7s var(--ease-out) var(--d, 0ms) both; }
  .art { animation: lp-art .9s var(--ease-out) .2s both; }
}

/* ====== 20 responsive */
.cta-bar { display: none; }
@media (max-width: 719px) and (min-height: 481px) { .cta-bar { display: block; } }   /* not on screens 480 px high or less: it would cover half of them */
@media (max-width: 719px) { .site-foot { padding-bottom: 96px; } .kpi:last-child { grid-column: 1 / -1; } }
@media (max-width: 559px) {
  :root { --hh: 56px; }
  .hero { padding-top: calc(var(--hh) + 16px); }
  .hero-grid { gap: 16px; }
  .eyebrow { font-size: 12px; letter-spacing: .05em; }
  .hero .lead { margin-top: 12px; }
  .hero-btns { margin-top: 16px; }
  .micro { margin-top: 8px; gap: 4px; }
  .roster li:last-child { grid-column: 1 / -1; }
  .pos .gl { white-space: normal; }
  .hero .more { display: none; }
  .hero-btns { gap: 2px 24px; }
  .hero-btns .btn.primary { width: 100%; }
  .hero-btns .btn.ghost { min-height: 44px; padding: 0; border: 0; background: none; color: var(--lp-link); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
  .win-sym { display: none; }
  .win-head .win-app { flex: 1; }
  .st-line { min-height: 2.7em; }
  .st-count, .st-queue { min-height: 2.9em; }
  .hero .win-status { display: flex; flex-direction: column; }   /* the meter goes on top of the hero card's status block: its place no longer depends on how many lines the status takes */
  .hero .win-status .meter { order: -1; margin: 0 0 10px; }
  .app-bar .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; border-radius: 22px; }   /* 2 x 2: all four portfolios are in view */
  .app-bar .seg button { padding: 0 8px; }
  .chart .x-alt { display: none; }
  .chart text { font-size: clamp(18px, calc(64px - 9.4vw), 32px); }   /* about 11-12.6 px on screen from 320 to 559 px */
  .chart .gridlines text:nth-of-type(odd) { display: none; }
  .chart .line { stroke-width: 4; } .chart .cost { stroke-width: 2.6; }
  .pos th, .pos td { padding: 10px 8px; }
  .pos .nm { display: block; }
  .demo-bar .seg { width: 100%; }
  .demo-bar .seg button { flex: 1; }
  .btns .btn, .cta-row .btn { width: 100%; }
}
/* the player's controls: one row, pinned above the bottom edge (and the call-to-action bar) while the player is in view, under 720 px and on short landscape screens up to 959 px */
@media (max-width: 719px), (max-width: 959px) and (max-height: 520px) {
  .demo.is-live .demo-controls { position: sticky; bottom: 8px; z-index: 5; margin-top: 12px; padding: 7px 0; background: var(--b-bg); box-shadow: 0 0 0 8px var(--b-bg); }
  .demo.is-live .ctl-play, .demo.is-live .ctl-manual { flex-wrap: nowrap; gap: 8px; }
  .demo.is-live .ctl-play .scrub { flex: 1 1 60px; }
  .demo.is-live .ctl-play [data-act="replay"], .demo.is-live .ctl-play [data-act="skip"] { width: 44px; padding: 0; justify-content: center; }
  .demo.is-live .ctl-play [data-act="replay"] span, .demo.is-live .ctl-play [data-act="skip"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .demo.is-live .demo-controls:has(.ctl-manual:not([hidden])) { position: static; box-shadow: none; padding: 0; }   /* reduced motion: nothing plays by itself, Previous / Next stay in the normal flow */
}
@media (max-width: 719px) and (min-height: 481px) {
  body:has(.cta-bar.is-on) .demo.is-live .demo-controls { bottom: 73px; }   /* only where the bar is shown (not from 720 px, not at 480 px high or less: display:none although JS sets .is-on) */
}
@media (max-width: 719px) {
  .demo.is-live .win-body .board { order: 2; border-top: 1px solid var(--border); }   /* on a phone the stage comes before the 553 px roster of the 12 agents, so a tap on a step needs no scroll; only while live: without JS the finished report keeps the board first */
}
@media (max-width: 359px) {
  .seg button { padding: 0 10px; font-size: 13px; }
  .pos th, .pos td { padding: 10px 7px; }   /* the symbol no longer breaks at its hyphen (ZZMR-USD): one pixel less on each side keeps the table inside its box at 320 px */
  .pos .ai-view { white-space: normal; border-radius: 12px; }   /* the table fits again at 320 px */
}
@media (max-width: 479px) {
  .sc-l .hide-sm { display: none; }
  .sc-l .res:nth-child(even) { display: none; }   /* Overweight and Underweight: the marker pill carries the word; Buy, Hold and Sell always stay */
}
@media (min-width: 560px) {
  .strip-item { flex-direction: row; align-items: flex-start; }
  .roster ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .ov { display: block; }
  .art { padding-top: 250px; }
  .desk { width: 78%; margin-left: auto; }
  .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c-day { display: table-cell; }
  .rep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .how-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .how-n { grid-row: auto; }
  .how-step:not(:last-child)::before { display: none; }
  .how-line { position: absolute; top: 22px; left: calc(100% / 6); right: calc(100% / 6); display: block; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); }
  .asset { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px 0; padding: 0 0 0; }
  .asset .pic { grid-row: 1 / 3; margin: 0; border-bottom: 0; border-right: 1px solid var(--border); }
  .asset > h4 { padding-top: 22px; align-self: end; } .asset > p { padding-bottom: 22px; align-self: start; }
}
@media (min-width: 900px) { .final-ticks { display: grid; } }
@media (min-width: 960px) {   /* the header: the links centred on the page between the logo and the buttons; the max-content side tracks keep the buttons from wrapping */
  .top-in { display: grid; grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr); }
  .top-in .brand { justify-self: start; }
  .top-in .nav { display: flex; margin-inline: 0; }
  .top-actions { justify-self: end; margin-left: 0; }
  .top-actions > .top-cta { display: inline-flex; }
  .top-actions > .icon-btn { display: inline-grid; }
  .menu { display: none; }
}
@media (min-width: 860px) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .roster ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  @supports (grid-template-rows: subgrid) { .lim { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; } }   /* shared heading row and text row: the paragraphs start together */
  .ticks.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
  .phone-fig { justify-self: center; }
  .phone-fig { order: 0; }
}
@media (min-width: 560px) and (max-width: 959px) { .alloc { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 28px; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .hero .art, .art-foot { margin-inline: 0 auto; }
  .report-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .app-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .c-opt { display: table-cell; }
  .asset-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset { display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; gap: 10px; padding-bottom: 22px; }   /* the three cards share their picture / title / text rows */
  .asset .pic { grid-row: auto; margin: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .asset > h4 { padding-top: 0; } .asset > p { padding-bottom: 0; }
  .foot-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: start; gap: 40px; }
  .foot-cta { justify-content: flex-end; }
}
/* the copy column stays in view beside the tall report on every desktop height. --rc-h = its height (709 px from 1200 px wide, 757 from 1100, 807 from 960; widest fallback font). Where the viewport is shorter than column plus header, top turns negative and the column is pinned by its bottom: bullets and dial stay visible, the first lines slide under the header */
@media (min-width: 960px) { .report-grid { --rc-h: 807px; } .report-copy { position: sticky; top: min(calc(var(--hh) + 16px), calc(100vh - var(--rc-h) - 16px)); } }
@media (min-width: 1100px) { .report-grid { --rc-h: 757px; } }
@media (min-width: 1200px) { .report-grid { --rc-h: 709px; } }
@media (min-width: 1100px) {
  .imp-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 56px; }
  /* the API column sits beside the heading, the text and the picture; the list and the fine print run full width under both */
  .imp-col { display: contents; }
  .imp-col > h3 { grid-column: 1; grid-row: 1; }
  .imp-col > .sub { grid-column: 1; grid-row: 2; }
  .imp-col > .imp-fig { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .api-col { grid-column: 2; grid-row: 1 / span 3; }
  .imp-col > .ticks { grid-column: 1 / -1; grid-row: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .imp-col > .fine { grid-column: 1 / -1; grid-row: 5; margin-top: 24px; }
  .kpis { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); }
  .kpi-hero { grid-column: auto; }
  .art { max-width: none; }
}
@media (min-width: 1400px) { .hero-grid { max-width: 1320px; } .art-foot { max-width: none; } }
@media (max-height: 480px) { :root { --hh: 52px; } .top { top: calc(var(--hh) * -1); } html:not(.lp-js) .top { position: relative; top: 0; } html { scroll-padding-top: 12px; } }   /* the header scrolls away; sticky with a negative top, not relative (relative throws a rotated phone back to the top) */
@media (pointer: coarse) {
  .btn, .btn.sm, .seg button, .steps button, .menu summary, .link-btn, .faq-item summary, .secs summary { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .foot-links a, .foot-links .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .chart-table summary { padding-block: 12px; }   /* padding, not min-height or flex: the native disclosure triangle stays, and the text stays centred beside it */
}
@media (max-width: 359px) and (pointer: coarse) { .menu summary { width: 44px; } }

/* ====== 21 reduced motion, forced colors, contrast */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .spin { animation: none !important; }
}
html[data-motion="off"], html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html[data-motion="off"] .spin { animation: none !important; }
@media (forced-colors: active) {
  .grad { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
  .btn, .seg, .pill, .card, .panel, .window, .rep, .app, .asset, .mk, .ai-badge, .rate, .chip, .term, .final, .fake-btn, .imp-go { border: 1px solid CanvasText; }
  .pill[data-state="done"] .st::before, .pill[data-state="skipped"] .st::before, .ag[data-state="done"] .st::before, .ag[data-state="skipped"] .st::before, .steps button.is-done::after, .cb.is-on::after, .secs summary::after, .faq-item summary::after { forced-color-adjust: none; background: CanvasText; }
  .seg button[aria-pressed="true"], .steps button[aria-current="step"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .meter::after, .bar::after, .scale::before { background: Highlight; }
  .scrub::-webkit-slider-runnable-track { border: 1px solid CanvasText; }   /* the translucent track fill is dropped: an outline keeps the rail visible. One rule per engine: a list with both pseudo-elements would be dropped whole */
  .scrub::-moz-range-track { border: 1px solid CanvasText; }
  .menu-tools .link-btn[data-motion-switch]::after, .menu-tools .link-btn[data-theme-toggle]::after, .foot-links .link-btn[data-motion-switch]::after { forced-color-adjust: none; border-color: ButtonText; background: radial-gradient(circle closest-side, ButtonText 0 100%) no-repeat left 2px center / 8px 8px; }   /* the switch of the text buttons: forced colours drop gradients, so it uses system colours: off = outline, knob left; on = filled track, knob right */
  .menu-tools .link-btn[aria-pressed="true"]::after, .foot-links .link-btn[data-motion-switch][aria-pressed="true"]::after, .menu-tools .link-btn[data-motion-switch][aria-disabled="true"]::after, .foot-links .link-btn[data-motion-switch][aria-disabled="true"]::after { background: radial-gradient(circle closest-side, Canvas 0 100%) no-repeat right 2px center / 8px 8px, ButtonText; }
}
@media (prefers-contrast: more) {
  :root, :root[data-theme] { --border: color-mix(in srgb, var(--ink) 42%, transparent); --lp-text-3: var(--ink-2); }
  .band { --b-ink-2: #d7e0ec; --b-line: rgba(255, 255, 255, .4); }
}

/* ====== 22 old browsers */
/* No color-mix() (Safari and iOS before 16.2, Chrome before 111, Firefox before 113): --lp-solid, --lp-link and every var() colour mix are invalid there. The things that carry text or a surface get plain values here, at the end so they win; the rest only loses a tint. */
@supports not (color: color-mix(in srgb, red, blue)) {
  :root { --lp-solid: #2260ab; --lp-link: #2360a9; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lp-solid: #2e6cb7; --lp-link: #65a1eb; } }
  :root[data-theme="dark"] { --lp-solid: #2e6cb7; --lp-link: #65a1eb; }
  .top.is-stuck, .cta-bar { background: var(--page); }
  .final { background: var(--lp-solid); }
  .final .btn.primary { color: var(--lp-solid); }
}
