/* =========================================================
   AURESICS — Portfolio · Showcase (Sales / Premium)
   Sophistizierter Hintergrund, Glas-Karten, Top-Nav.
   Gold-Akzent, sehr sparsam.

   Die Werte spiegeln aktien_design/tokens.py — die Site ist statisches
   HTML/CSS und kann die Python-Quelle nicht importieren. Wer dort etwas
   aendert, zieht hier nach (tests/test_site_tokens.py haelt es synchron).
   ========================================================= */

:root{
  --bg:#0A0A0B; --bg-2:#0C0C10; --bg-elev:#121316;
  --surface:#17181C; --surface-2:#212327; --surface-3:#2B2C31;
  --border:#27292D; --border-soft:#1E1F23;
  --fg:#F3F2F0; --fg-muted:#ADAFB5; --fg-dim:#93959B; --fg-faint:#65676D;
  --accent:#B98F55; --accent-strong:#D5AB74; --accent-deep:#8E6C3C;
  --accent-soft:rgb(185 143 85 / .12); --accent-line:rgb(185 143 85 / .30); --accent-ink:#0A0A0B;
  --pos:oklch(.78 .16 148); --pos-soft:oklch(.78 .16 148 / .13);
  --neg:oklch(.70 .175 28); --neg-soft:oklch(.70 .175 28 / .13);
  --warn:oklch(.80 .165 62); --warn-soft:oklch(.80 .165 62 / .13);
  --glass:linear-gradient(180deg, rgb(33 35 39 / .60), rgb(20 21 25 / .56));
  --glass-brd:rgb(255 255 255 / .075);
  --font-sans:'Archivo','Inter',ui-sans-serif,system-ui,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,monospace;
  --r-md:12px; --r-lg:16px; --r-xl:24px;
  --shadow-glass:0 1px 0 rgb(255 255 255 / .07) inset, 0 28px 70px -30px rgb(0 0 0 / .85), 0 3px 10px -3px rgb(0 0 0 / .5);
  --nav-h:70px;
}
@media(max-width:760px){ :root{ --nav-h:62px; } }

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--font-sans);
  background:var(--bg); color:var(--fg);
  font-size:14px; line-height:1.45;
  -webkit-font-smoothing:antialiased; font-feature-settings:"ss01","cv11";
  min-height:100vh;
}
body.menu-open{ overflow:hidden; }
.mono,.num{ font-variant-numeric:tabular-nums; }
.mono{ font-family:var(--font-mono); letter-spacing:.01em; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
input{ font:inherit; color:inherit; }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:var(--surface-2); border-radius:999px; border:2px solid var(--bg); }

/* ---------- Background scene ---------- */
.scene{ position:fixed; inset:0; z-index:-1; overflow:hidden; background:var(--bg); }
.scene .glow{
  position:absolute; inset:-20% -10% auto -10%; height:120%;
  background:
    radial-gradient(60% 50% at 82% 4%, rgb(185 143 85 / .14), transparent 60%),
    radial-gradient(48% 42% at 96% 0%, rgb(213 171 116 / .10), transparent 62%),
    radial-gradient(55% 55% at 6% 96%, rgb(70 96 120 / .10), transparent 60%);
  filter:saturate(1.1);
}
.scene .grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgb(255 255 255 / .022) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .022) 1px, transparent 1px);
  background-size:64px 64px; background-position:center top;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image:radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}
.scene .noise{
  position:absolute; inset:0; opacity:.04; mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scene .vignette{
  position:absolute; inset:0;
  background:radial-gradient(120% 100% at 50% -10%, transparent 55%, rgb(0 0 0 / .55) 100%);
}

/* ---------- Shell ---------- */
.shell{ max-width:1320px; margin:0 auto; padding:0 40px 90px; }
@media(max-width:760px){ .shell{ padding:0 18px 70px; } }

/* ---------- Top nav ---------- */
.topnav{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; gap:28px;
  padding:16px 40px; margin:0 auto; max-width:1320px;
  background:rgb(10 11 15 / .55); -webkit-backdrop-filter:blur(18px) saturate(1.1); backdrop-filter:blur(18px) saturate(1.1);
  border-bottom:1px solid rgb(255 255 255 / .05);
}
@media(max-width:760px){ .topnav{ padding:14px 18px; gap:16px; } }
/* Wortmarke: AURES + Signet + CS. Das Signet IST das "I" — Proportionen
   aus der Reinzeichnung (Balken 1,178x Versalhoehe => .86em, Tracking .14em),
   identisch zu App und PDF. */
.brand{ display:flex; align-items:center; color:var(--fg); text-decoration:none; }
.brand .mk{ display:flex; align-items:center; font-size:18px; margin-right:.14em; }
.brand .mk svg{ height:.86em; width:.358em; display:block; }
.brand .wm{ font-weight:600; letter-spacing:.14em; font-size:18px; }
.nav-links{ display:flex; align-items:center; gap:4px; }
@media(max-width:880px){ .nav-links{ display:none; } }
.nav-links a{
  padding:7px 14px; border-radius:999px; font-size:13.5px; color:var(--fg-dim);
  font-weight:500; transition:color .15s, background .15s;
}
.nav-links a:hover{ color:var(--fg); background:rgb(255 255 255 / .04); }
.nav-links a.on{ color:var(--accent); }

/* Mobile menu */
.nav-toggle{ display:none; width:36px; height:36px; border-radius:999px; place-items:center; color:var(--fg-muted);
  border:1px solid rgb(255 255 255 / .06); }
.nav-toggle:hover{ color:var(--fg); background:rgb(255 255 255 / .04); }
.nav-toggle .bars{ position:relative; width:16px; height:12px; }
.nav-toggle .bars span{ position:absolute; left:0; width:100%; height:1.6px; border-radius:2px; background:currentColor;
  transition:transform .22s ease, opacity .18s ease; }
.nav-toggle .bars span:nth-child(1){ top:0; }
.nav-toggle .bars span:nth-child(2){ top:5px; }
.nav-toggle .bars span:nth-child(3){ top:10px; }
.topnav.menu-open .nav-toggle .bars span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.topnav.menu-open .nav-toggle .bars span:nth-child(2){ opacity:0; }
.topnav.menu-open .nav-toggle .bars span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }
@media(max-width:880px){ .nav-toggle{ display:grid; } }

.mobile-menu{
  display:none; position:fixed; left:12px; right:12px; top:calc(var(--nav-h) + 8px); z-index:29;
  flex-direction:column; gap:2px; padding:10px;
  background:linear-gradient(180deg, rgb(24 28 36 / .96), rgb(14 17 22 / .96));
  border:1px solid var(--glass-brd); border-radius:var(--r-lg);
  box-shadow:var(--shadow-glass); -webkit-backdrop-filter:blur(20px) saturate(1.12); backdrop-filter:blur(20px) saturate(1.12);
  opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity .2s ease, transform .2s ease;
}
.topnav.menu-open + .mobile-menu{ opacity:1; transform:none; pointer-events:auto; }
@media(min-width:881px){ .mobile-menu{ display:none !important; } }
@media(max-width:880px){ .mobile-menu{ display:flex; } }
.mobile-menu a{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 14px; border-radius:12px; font-size:15px; color:var(--fg-muted); font-weight:500;
}
.mobile-menu a:hover{ background:rgb(255 255 255 / .04); color:var(--fg); }
.mobile-menu a.on{ color:var(--accent); background:var(--accent-soft); }
.mobile-menu a .dot{ width:6px; height:6px; border-radius:999px; background:currentColor; opacity:.0; }
.mobile-menu a.on .dot{ opacity:1; }
.menu-scrim{ display:none; position:fixed; inset:0; z-index:28; background:rgb(6 7 10 / .5); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  opacity:0; transition:opacity .2s ease; }
.menu-scrim.show{ display:block; opacity:1; }
.nav-right{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.search{
  display:flex; align-items:center; gap:8px; color:var(--fg-dim); font-size:13px;
  background:rgb(255 255 255 / .04); border:1px solid rgb(255 255 255 / .06);
  padding:8px 12px; border-radius:999px; width:230px; max-width:28vw;
}
@media(max-width:980px){ .search{ width:auto; } .search input,.search .kbd{ display:none; } }
.search input{ background:none; border:0; outline:0; color:var(--fg); flex:1; min-width:0; }
.search .kbd{ font-family:var(--font-mono); font-size:10px; padding:1px 5px; border-radius:5px;
  background:rgb(255 255 255 / .05); color:var(--fg-muted); }
.icon-btn{ width:36px; height:36px; border-radius:999px; display:grid; place-items:center; color:var(--fg-muted);
  border:1px solid rgb(255 255 255 / .06); position:relative; transition:.15s; }
.icon-btn:hover{ color:var(--fg); background:rgb(255 255 255 / .04); }
.avatar{ width:34px; height:34px; border-radius:999px; display:grid; place-items:center; font-size:12px; font-weight:600;
  color:var(--accent-ink); background:linear-gradient(150deg, var(--accent-strong), var(--accent-deep));
  box-shadow:0 0 0 1px rgb(255 255 255 / .08); }

/* ---------- Hero ---------- */
.hero-head{ display:flex; align-items:flex-end; gap:20px; flex-wrap:wrap; padding:42px 4px 22px; }
.hero-head .eyebrow{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--fg-dim); font-weight:600; }
.hero-head h1{ margin:8px 0 0; font-size:clamp(26px,3.4vw,34px); font-weight:600; letter-spacing:-.02em; }
.hero-head .stand{ margin-left:auto; display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--fg-dim);
  font-variant-numeric:tabular-nums; }
.hero-head .stand .live{ width:7px; height:7px; border-radius:999px; background:var(--pos); box-shadow:0 0 0 3px var(--pos-soft); }

.gcard{
  background:var(--glass); border:1px solid var(--glass-brd); border-radius:var(--r-lg);
  box-shadow:var(--shadow-glass); -webkit-backdrop-filter:blur(18px) saturate(1.12); backdrop-filter:blur(18px) saturate(1.12);
}

.hero{ position:relative; padding:30px 32px 8px; overflow:hidden; }
.hero::after{ /* champagne ambient inside hero */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(70% 80% at 88% 110%, rgb(185 143 85 / .10), transparent 60%);
}
.hero .head{ position:relative; z-index:2; display:flex; align-items:flex-start; gap:24px; flex-wrap:wrap; }
.hero .value{ font-size:clamp(40px,6vw,60px); font-weight:600; letter-spacing:-.03em; line-height:1; font-variant-numeric:tabular-nums; }
.hero .label{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--fg-dim); font-weight:600; margin-bottom:12px; }
.hero .deltas{ display:flex; align-items:center; gap:12px; margin-top:16px; flex-wrap:wrap; }
.hero .chart-toolbar{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.hero #hero-chart{ position:relative; z-index:2; height:300px; width:100%; margin-top:6px; }
@media(max-width:760px){ .hero #hero-chart{ height:230px; } }

.pill{ display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:7px; font-size:12px;
  font-variant-numeric:tabular-nums; background:var(--surface-2); color:var(--fg-muted); white-space:nowrap; }
.pos-pill{ color:var(--pos); background:var(--pos-soft); }
.neg-pill{ color:var(--neg); background:var(--neg-soft); }

.seg{ display:inline-flex; background:rgb(255 255 255 / .04); border:1px solid rgb(255 255 255 / .07); border-radius:9px; padding:3px; }
.seg button{ padding:5px 11px; border-radius:6px; font-size:12px; color:var(--fg-dim); font-weight:500; transition:.15s; }
.seg button[aria-pressed="true"]{ background:rgb(255 255 255 / .08); color:var(--fg); }
.chips{ display:flex; gap:7px; }
.chips button{ padding:5px 11px; border-radius:999px; font-size:12.5px; color:var(--fg-dim); border:1px solid rgb(255 255 255 / .06); transition:.15s; white-space:nowrap; }
.chips button:hover{ color:var(--fg); }
.chips button[aria-pressed="true"]{ background:rgb(255 255 255 / .08); color:var(--fg); border-color:rgb(255 255 255 / .12); font-weight:600; }

/* ---------- KPI chips row ---------- */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:16px; }
@media(max-width:880px){ .kpis{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .kpis{ grid-template-columns:1fr; } }
.kpi{ padding:18px 20px; border-radius:var(--r-md); }
.kpi .k{ font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--fg-dim); font-weight:600; }
.kpi .v{ font-size:24px; font-weight:600; letter-spacing:-.015em; margin-top:10px; font-variant-numeric:tabular-nums; }
.kpi .s{ font-size:12.5px; color:var(--fg-muted); margin-top:7px; display:flex; align-items:center; gap:7px; }

/* ---------- Section grid ---------- */
.grid-2{ display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr); gap:16px; margin-top:16px; }
@media(max-width:980px){ .grid-2{ grid-template-columns:1fr; } }
.panel{ padding:22px 24px; }
.panel-head{ display:flex; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.panel-head h2{ margin:0; font-size:15px; font-weight:600; letter-spacing:-.005em; }
.panel-head .meta{ color:var(--fg-dim); font-size:12.5px; }
.panel-head .right{ margin-left:auto; display:flex; gap:8px; align-items:center; }

/* ---------- Allocation donut ---------- */
.donut-wrap{ display:flex; align-items:center; gap:20px; }
@media(max-width:520px){ .donut-wrap{ flex-direction:column; } }
#alloc-donut{ width:168px; height:168px; flex:0 0 auto; }
.legend{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.legend .lrow{ display:grid; grid-template-columns:10px 1fr auto; gap:10px; align-items:center; padding:7px 0; }
.legend .ldot{ width:9px; height:9px; border-radius:3px; }
.legend .lname{ font-size:13px; color:var(--fg); }
.legend .lsub{ font-size:11px; color:var(--fg-dim); }
.legend .lpct{ font-size:13px; font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }

/* ---------- Top positions list ---------- */
.poslist{ display:flex; flex-direction:column; }
.posrow{ display:grid; grid-template-columns:38px minmax(0,1.5fr) 88px 96px; gap:14px; align-items:center;
  padding:13px 6px; border-bottom:1px solid rgb(255 255 255 / .05); transition:background .15s; border-radius:10px; }
.posrow:last-child{ border-bottom:0; }
.posrow:hover{ background:rgb(255 255 255 / .025); }
.av{ width:38px; height:38px; border-radius:10px; background:var(--surface-2); display:grid; place-items:center;
  font-size:11px; font-weight:600; color:var(--fg-muted); letter-spacing:.02em; }
.posrow .nm{ font-size:14px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.posrow .sy{ font-size:11.5px; color:var(--fg-dim); }
.posrow .spark{ width:84px; height:26px; display:block; }
.spark .line{ fill:none; stroke-width:1.6; }
.spark .area{ opacity:.16; }
.spark.pos .line{ stroke:var(--pos); } .spark.pos .area{ fill:var(--pos); }
.spark.neg .line{ stroke:var(--neg); } .spark.neg .area{ fill:var(--neg); }
.posrow .rt{ text-align:right; }
.posrow .wt{ font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.posrow .ch{ font-size:11.5px; font-variant-numeric:tabular-nums; margin-top:2px; }
.text-pos{ color:var(--pos); } .text-neg{ color:var(--neg); } .text-acc{ color:var(--accent); }
.text-dim{ color:var(--fg-dim); } .text-muted{ color:var(--fg-muted); }

/* ---------- Dividend strip ---------- */
.divstrip{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px; }
@media(max-width:760px){ .divstrip{ grid-template-columns:1fr; } }
.divcard{ padding:18px 20px; display:flex; align-items:center; gap:14px; }
.divdate{ width:46px; height:46px; border-radius:11px; background:var(--surface-2); display:flex; flex-direction:column;
  align-items:center; justify-content:center; line-height:1.05; flex:0 0 auto; }
.divdate .d{ font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; }
.divdate .m{ font-size:9px; text-transform:uppercase; letter-spacing:.06em; color:var(--fg-dim); }
.divcard .nm{ font-size:13.5px; font-weight:500; }
.divcard .sy{ font-size:11.5px; color:var(--fg-dim); }
.divcard .amt{ margin-left:auto; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }

/* ---------- Marketing footer ---------- */
.mfoot{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:48px; color:var(--fg-dim); font-size:13px; }
.mfoot .mk{ height:14px; width:5.8px; color:var(--fg-dim); }

/* =========================================================
   KI-Analyse (Showcase-Familie)
   ========================================================= */

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:999px;
  font-size:13px; font-weight:600; white-space:nowrap; color:var(--fg);
  background:rgb(255 255 255 / .05); border:1px solid rgb(255 255 255 / .08); transition:.15s; cursor:pointer; }
.btn:hover{ background:rgb(255 255 255 / .09); }
.btn svg{ width:14px; height:14px; }
.btn-primary{ background:linear-gradient(150deg, var(--accent-strong), var(--accent-deep)); color:var(--accent-ink); border-color:transparent; }
.btn-primary:hover{ filter:brightness(1.05); }

/* Analyse hero header */
.hero-head .id-row{ display:flex; align-items:center; gap:14px; margin-top:10px; }
.tavatar{ width:46px; height:46px; border-radius:12px; background:var(--surface-2); display:grid; place-items:center;
  font-size:13px; font-weight:600; color:var(--fg); letter-spacing:.02em; flex:0 0 auto; }
.hero-head .id-row h1{ margin:0; }
.hero-head .id-meta{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:5px; font-size:13px; color:var(--fg-dim); }
.hero-head .id-meta .price{ color:var(--fg); font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hero-head .actions{ margin-left:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
@media(max-width:640px){ .hero-head .actions{ margin-left:0; width:100%; } }

/* Stock switch */
.stock-switch{ display:flex; gap:6px; }
@media(max-width:640px){ .stock-switch{ overflow-x:auto; scrollbar-width:none; } .stock-switch::-webkit-scrollbar{ display:none; } }
.stock-switch button{ display:flex; align-items:center; gap:7px; padding:5px 12px 5px 6px; border-radius:999px;
  border:1px solid rgb(255 255 255 / .07); background:rgb(255 255 255 / .03); font-size:13px; color:var(--fg-dim); white-space:nowrap; cursor:pointer; }
.stock-switch button .mini-av{ width:20px; height:20px; border-radius:6px; background:var(--surface-3); display:grid; place-items:center; font-size:9px; font-weight:600; color:var(--fg-muted); }
.stock-switch button[aria-pressed="true"]{ background:rgb(255 255 255 / .08); color:var(--fg); border-color:rgb(255 255 255 / .14); font-weight:600; }

/* Verdict pill */
.verdict{ display:inline-flex; align-items:center; gap:8px; padding:7px 13px 7px 10px; border-radius:999px;
  font-size:13px; font-weight:600; background:var(--pos-soft); color:var(--pos); border:1px solid color-mix(in oklch, var(--pos) 32%, transparent); }
.verdict .vd-dot{ width:8px; height:8px; border-radius:999px; background:currentColor; }
.verdict.hold{ background:var(--accent-soft); color:var(--accent-strong); border-color:var(--accent-line); }
.verdict.sell{ background:var(--neg-soft); color:var(--neg); border-color:color-mix(in oklch, var(--neg) 32%, transparent); }
.panel-head .verdict{ margin-left:auto; }

/* Confidence layout */
.ki-hero{ display:grid; grid-template-columns:minmax(260px,340px) minmax(0,1fr); gap:18px; align-items:center; }
@media(max-width:720px){ .ki-hero{ grid-template-columns:1fr; } }
.gauge-wrap{ position:relative; display:grid; place-items:center; }
#ki-gauge{ width:100%; height:240px; }
.gauge-center{ position:absolute; top:56%; left:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; pointer-events:none; }
.gauge-center .lab{ font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--fg-dim); font-weight:600; margin-bottom:10px; }
.gauge-center .gnum{ font-size:52px; font-weight:600; letter-spacing:-.03em; line-height:1; }
.gauge-center .of{ font-size:13px; color:var(--fg-dim); margin-top:4px; }
.ki-meta{ display:flex; flex-direction:column; }
.ki-meta .mrow{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid rgb(255 255 255 / .05); }
.ki-meta .mrow:last-child{ border-bottom:0; }
.ki-meta .mk{ font-size:13px; color:var(--fg-muted); }
.ki-meta .mv{ font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; text-align:right; }
.ki-meta .mv small{ display:block; font-size:11px; font-weight:400; color:var(--fg-dim); margin-top:2px; }

/* Factor bars */
.factor{ display:grid; grid-template-columns:128px 1fr 40px; gap:14px; align-items:center; padding:13px 0; border-bottom:1px solid rgb(255 255 255 / .05); }
.factor:last-child{ border-bottom:0; }
.factor .fname{ display:flex; align-items:center; gap:9px; font-size:13px; }
.factor .fname svg{ width:15px; height:15px; color:var(--fg-dim); }
.factor .ftrack{ position:relative; height:8px; border-radius:999px; background:rgb(255 255 255 / .05); overflow:hidden; }
.factor .ffill{ position:absolute; left:0; top:0; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--accent-deep),var(--accent-strong)); }
.factor .ffill.pos{ background:var(--pos); }
.factor .ffill.neu{ background:var(--fg-faint); }
.factor .fscore{ font-size:13px; font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
.factor .fnote{ grid-column:1/-1; font-size:12.5px; color:var(--fg-dim); margin-top:-2px; }

/* Metric vs sector */
.metric{ display:grid; grid-template-columns:130px 64px 1fr; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid rgb(255 255 255 / .05); }
.metric:last-child{ border-bottom:0; }
.metric .mlabel{ font-size:13px; } .metric .mlabel small{ display:block; color:var(--fg-dim); font-size:11px; }
.metric .mval{ font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.rng{ position:relative; height:28px; }
.rng-track{ position:absolute; left:0; right:0; top:50%; height:4px; transform:translateY(-50%); background:rgb(255 255 255 / .06); border-radius:999px; }
.rng-fill{ position:absolute; top:50%; height:4px; transform:translateY(-50%); background:linear-gradient(90deg,var(--accent-deep),var(--accent)); border-radius:999px; }
.rng-marker{ position:absolute; top:50%; width:8px; height:8px; transform:translate(-50%,-50%); background:var(--accent-strong); border-radius:999px; box-shadow:0 0 0 3px rgb(185 143 85 / .2); }
.rng-labels{ position:absolute; left:0; right:0; bottom:-3px; display:flex; justify-content:space-between; font-size:10px; color:var(--fg-faint); font-family:var(--font-mono); }

/* Bull / Bear */
.th-head{ display:flex; align-items:center; gap:9px; margin-bottom:14px; flex-wrap:wrap; }
.th-head .tag{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; padding:3px 9px; border-radius:6px; white-space:nowrap; }
.th-head h3{ margin:0; font-size:13px; font-weight:600; white-space:nowrap; }
.th-head.bull .tag{ background:var(--pos-soft); color:var(--pos); }
.th-head.bear .tag{ background:var(--neg-soft); color:var(--neg); }
.th-head .w{ margin-left:auto; font-size:12.5px; color:var(--fg-dim); white-space:nowrap; }
.thesis{ display:flex; flex-direction:column; gap:11px; }
.thesis .th-item{ display:grid; grid-template-columns:18px 1fr; gap:11px; font-size:13px; color:var(--fg-muted); line-height:1.5; }
.thesis .th-item svg{ width:15px; height:15px; margin-top:2px; }
.thesis.bull .th-item svg{ color:var(--pos); }
.thesis.bear .th-item svg{ color:var(--neg); }

/* Equal 2-col */
.grid-2-eq{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:16px; }
@media(max-width:860px){ .grid-2-eq{ grid-template-columns:1fr; } }

/* KI callout */
.ki-callout{ display:flex; gap:14px; align-items:flex-start; padding:18px 22px; margin-top:16px;
  background:var(--accent-soft); border:1px solid var(--accent-line); }
.ki-callout svg{ width:18px; height:18px; color:var(--accent-strong); flex-shrink:0; margin-top:1px; }
.ki-callout .ct{ font-size:13px; color:var(--fg-muted); line-height:1.55; }
.ki-callout .ct b{ color:var(--fg); font-weight:600; }

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(14px); animation:rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal.d1{ animation-delay:.05s; } .reveal.d2{ animation-delay:.12s; }
  .reveal.d3{ animation-delay:.19s; } .reveal.d4{ animation-delay:.26s; }
  @keyframes rise{ to{ opacity:1; transform:none; } }
}
