/* CorTIF redesign layer — "Trust & Authority" / Swiss-minimal refinement.
   Visual + UX only: no content changes. Loaded after style.css/theme.css on
   every page except the contact pages. Brand lime and Sora/Inter are kept. */

:root {
  /* one radius scale instead of 6/7/8/12/13/16/26px */
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  /* sharper, quieter elevation */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -14px rgba(0, 0, 0, .6);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -24px rgba(0, 0, 0, .75);
  --dur-fast: .18s;
  --dur: .24s;
}
html[data-theme="light"] {
  --shadow-1: 0 1px 2px rgba(16, 20, 16, .06), 0 8px 24px -16px rgba(16, 20, 16, .18);
  --shadow-2: 0 24px 48px -28px rgba(16, 20, 16, .28);
}

/* ---------- typography rhythm ---------- */
body { line-height: 1.7; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.028em; }
h3 { letter-spacing: -.015em; }
p { text-wrap: pretty; }
.section-head p, .hero-sub { max-width: 62ch; }
.kicker, [class*="eyebrow"] { letter-spacing: .14em; }

/* ---------- spacing rhythm ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tight { padding-block: clamp(44px, 6vw, 72px); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- header ---------- */
.site-header { transition: background var(--dur), box-shadow var(--dur), border-color var(--dur); }
.site-header.scrolled { backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.main-nav a { transition: color var(--dur-fast), background var(--dur-fast); }
.main-nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ---------- buttons: 44px targets, crisp states ---------- */
.btn { min-height: 44px; cursor: pointer; transition: transform var(--dur-fast), background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur), border-color var(--dur-fast); }
.btn-sm { min-height: 38px; }
.btn-ghost { border-width: 1px; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn[disabled], .btn.is-loading { cursor: progress; opacity: .7; }
a, button, [role="button"], label[for], select, summary, .tab, .chip-tag[onclick] { cursor: pointer; }

/* ---------- cards & surfaces ---------- */
.card, [class$="-card"], [class*="-card "] {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.card:hover, [class$="-card"]:hover { box-shadow: var(--shadow-2); }
.chip-tag, .tag, [class$="-tag"], .badge, .pill {
  border-radius: 999px; font-weight: 600; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.ic { flex-shrink: 0; color: var(--primary); }

/* ---------- forms ---------- */
.field input, .field select, .field textarea { min-height: 46px; border-radius: var(--r-md); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field label { letter-spacing: .01em; }

/* ---------- tables & data ---------- */
table { font-variant-numeric: tabular-nums; }
table tbody tr { transition: background var(--dur-fast); }
table tbody tr:hover { background: var(--primary-soft); }
[class*="price"], [class*="num"], [class*="stat"] { font-variant-numeric: tabular-nums; }

/* ---------- images: no layout shift, soft corners ---------- */
main img:not(.brand-logo), section img:not(.brand-logo) { border-radius: var(--r-lg); }

/* ---------- footer ---------- */
.site-footer a { transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--primary); }

/* ---------- tiny text floor (readability) ---------- */
small, .fine, .note, [class*="-note"] { font-size: max(.78rem, 12px); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .btn { min-height: 46px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- no AI-look decoration ---------- */
.orb, .grid-pattern, [class*="halo"], [class*="-glow"] { display: none !important; }
.brand .dot { text-shadow: none; }

/* ---------- float-up hover ---------- */
.fx-card {
  transition: transform .28s cubic-bezier(.22, .8, .28, 1), opacity .45s ease, box-shadow .28s ease, border-color .2s ease;
}
.fx-card.fx-pending { opacity: 0; transform: translateY(18px); }
.fx-card.fx-pending:hover { transform: translateY(18px); }
.fx-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.chip-tag:hover, .tag:hover { transform: translateY(-2px); }
.chip-tag, .tag { transition: transform .2s ease, border-color .2s ease; }
@media (hover: none) { .fx-card:hover, .btn:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-card:hover, .btn:hover, .chip-tag:hover { transform: none; } }

/* ---------- "The Problem" scroll sequence (js/motion.js) ---------- */
.gap-seq-on .num-card { transition: border-color .3s ease, box-shadow .3s ease, transform .28s cubic-bezier(.22, .8, .28, 1); }
.gap-seq-on .num-card.is-active { border-color: var(--primary); box-shadow: var(--shadow-2); }
.gap-seq-on .num-card.is-active .n { color: var(--primary); }

/* =====================================================================
   PREMIUM STRUCTURE PASS
   ===================================================================== */

/* ---------- layout width & hero ---------- */
.container { max-width: 1240px; }
.hero { padding: calc(var(--header-h) + 56px) 0 72px; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero > .container { width: 100%; }
.hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.06; margin-bottom: 20px; }
.hero-line { letter-spacing: .12em; font-size: .74rem; margin: 2px 0 18px; }
.hero-sub { font-size: 1.08rem; color: var(--muted); }
/* artwork: calm float, no glow or wobble */
.hero-art { animation: heroFloat 9s ease-in-out infinite alternate; }
.hero-art::before { display: none; }
.hero-art img { animation: none; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
html[data-theme="light"] .hero-art img { filter: drop-shadow(0 26px 40px rgba(16, 20, 16, .18)); }
@keyframes heroFloat { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-art { max-width: 440px; }
}

/* ---------- section rhythm: alternate surfaces + hairlines ---------- */
body > section.section:not(.dark-panel):nth-of-type(odd) { background: var(--bg) !important; }
body > section.section:not(.dark-panel):nth-of-type(even) { background: var(--bg-soft) !important; }
section.section + section.section { border-top: 1px solid var(--line); }


/* section heads: one consistent scale */
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; color: var(--muted); max-width: 64ch; }
.section-head.center p { margin-inline: auto; }
.kicker { font-size: .72rem; padding: 6px 12px; }

/* ---------- grids: no orphan cards ---------- */
.grid { gap: 20px; }
.g-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.g-3 > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ---------- cards: generous, consistent interiors ---------- */
.card, .num-card, .ghost-card, .eco-card { padding: clamp(22px, 2.4vw, 30px); }
.card h3, .num-card h3, .ghost-card h3, .eco-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p, .num-card p, .ghost-card p, .eco-card p { font-size: .95rem; line-height: 1.65; margin-bottom: 0; }
.num-card .n {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  color: var(--faint); margin-bottom: 18px;
}
/* icon badges inside cards */
.card > svg:first-child, .card .ic-box, .card .icon, [class*="-card"] .ic-box {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}

/* ---------- header: calmer, centered nav ---------- */
.site-header { border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.main-nav a { font-weight: 500; font-size: .92rem; }
.nav-actions { gap: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer h5 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.site-footer li a { font-size: .92rem; }

/* =====================================================================
   WHY CORTIF — interactive flowchart (js/flow.js)
   ===================================================================== */
.cf-flow { position: relative; display: grid; gap: 64px; justify-items: center; margin-top: 8px; }
.cf-inputs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; width: 100%; position: relative; z-index: 2; }
.cf-out { position: relative; z-index: 2; width: min(360px, 100%); }
.cf-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }

.cf-node {
  appearance: none; font: inherit; color: inherit; text-align: center; cursor: pointer; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .45s cubic-bezier(.22, .8, .28, 1), opacity .35s ease, border-color .3s ease, box-shadow .4s ease, background .3s ease;
}
.cf-node b { font-family: var(--font-head); font-size: 1rem; color: var(--ink); line-height: 1.25; }
.cf-node .cf-desc { display: none; }            /* shown in the detail panel */
.cf-ic {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  transition: transform .45s cubic-bezier(.22, .8, .28, 1), background .3s ease, color .3s ease;
}
.cf-ic svg { width: 24px; height: 24px; }
.cf-node:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.cf-node:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

/* selected: grows, others step back */
.cf-flow.has-sel .cf-node:not(.is-on) { opacity: .55; }
.cf-flow.has-sel .cf-node:not(.is-on):hover { opacity: .9; }
.cf-node.is-on { transform: scale(1.1); border-color: var(--primary); box-shadow: var(--shadow-2); opacity: 1; }
.cf-node.is-on .cf-ic { background: var(--primary); color: var(--lime-ink); transform: scale(1.08); }

/* outputs read as results */
.cf-result, .cf-final { flex-direction: row; justify-content: center; padding: 18px 22px; }
.cf-result b, .cf-final b { font-size: 1.12rem; }
.cf-final { background: var(--primary-soft); border-color: rgba(93, 214, 44, .35); }

/* connectors: base line + travelling pulse */
.cf-line { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .35s ease, stroke-width .35s ease; }
.cf-line.is-on { stroke: var(--primary); stroke-width: 2.2; }
.cf-pulse {
  fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 10 600; stroke-dashoffset: 610;
  animation: cfPulse 2.6s linear infinite;
}
.cf-pulse-out { stroke-dasharray: 8 120; stroke-dashoffset: 128; animation-duration: 1.4s; }
@keyframes cfPulse { to { stroke-dashoffset: 0; } }

/* detail panel */
.cf-detail {
  width: min(760px, 100%); display: flex; gap: 22px; align-items: flex-start;
  padding: 28px 30px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, .8, .28, 1);
}
.cf-detail.is-in { opacity: 1; transform: none; }
.cf-detail-ic {
  flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px;
  background: var(--primary); color: var(--lime-ink);
}
.cf-detail-ic svg { width: 30px; height: 30px; }
.cf-detail h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 4px 0 8px; }
.cf-detail p { margin: 0; font-size: 1.02rem; color: var(--muted); }
.cf-detail p strong { color: var(--ink); }

/* tablet / phone: stack, CSS arrows instead of SVG curves */
@media (max-width: 900px) {
  .cf-flow { gap: 34px; }
  .cf-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-lines { display: none; }
  .cf-out::before {
    content: ""; position: absolute; left: 50%; top: -26px; width: 2px; height: 18px;
    background: var(--primary); transform: translateX(-50%); border-radius: 2px;
  }
  .cf-node.is-on { transform: scale(1.05); }
}
@media (max-width: 560px) {
  .cf-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-inputs .cf-node:last-child { grid-column: 1 / -1; }
  .cf-detail { flex-direction: column; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-pulse { animation: none; display: none; }
  .cf-node, .cf-detail, .cf-ic { transition: none; }
}

/* light mode: logo.png has a white background; blend it into the header */
html[data-theme="light"] img.brand-logo { mix-blend-mode: multiply; }

/* =====================================================================
   CORTIF AI page (ai.html + js/ai-chat.js)
   ===================================================================== */
.ai-wrap { max-width: 900px; }
.ai-head { padding: 22px 2px 16px; }
.ai-orb, .msg.ai .av { background: var(--surface) !important; border: 1px solid var(--line-2); box-shadow: none !important; }
.ai-head h1 { font-size: 1.25rem; letter-spacing: -.02em; }
.ai-beta { display: inline-flex; align-items: center; gap: 6px; }
.ai-beta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: aiLive 1.8s ease-in-out infinite; }
@keyframes aiLive { 50% { opacity: .3; } }

/* live market strip */
.ai-market { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 2px 4px; }
.ai-tick {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lbl sp" "val sp" "chg sp";
  align-items: center; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.ai-tick .lbl { grid-area: lbl; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ai-tick b { grid-area: val; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.ai-tick em { grid-area: chg; font-style: normal; font-size: .76rem; font-weight: 700; }
.ai-tick .sp { grid-area: sp; color: var(--faint); }
.ai-tick.up .sp, .up { color: var(--primary); }
.ai-tick.dn .sp, .dn { color: var(--red); }

/* messages */
.ai-msgs { gap: 18px; padding: 22px 2px; scroll-behavior: smooth; }
.msg { animation: aiIn .4s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes aiIn { from { opacity: 0; transform: translateY(10px); } }
.bubble { font-size: .95rem; line-height: 1.7; }
.msg.ai .bubble { padding: 14px 18px; }
.bubble p, .bubble ul, .bubble ol { color: var(--ink-2) !important; }
.bubble ol { margin: .2em 0; padding-left: 1.3em; }
.bubble h4 { font-size: .98rem; margin: .6em 0 .3em; }
.bubble .ai-disc { display: block; margin-top: .6em; font-size: .8rem; color: var(--faint); }
.bubble code { background: var(--bg) !important; color: var(--primary) !important; }
.ai-caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--primary); border-radius: 2px; animation: aiCaret 1s steps(2) infinite; }
@keyframes aiCaret { 50% { opacity: 0; } }

/* thinking steps */
.ai-think { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px !important; }
.ai-think .st { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--faint); transition: color .3s; }
.ai-think .st i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; transition: .3s; }
.ai-think .st.on { color: var(--ink); }
.ai-think .st.on i { border-color: var(--primary); border-top-color: transparent; animation: aiSpin .8s linear infinite; }
.ai-think .st.done { color: var(--muted); }
.ai-think .st.done i { background: var(--primary); border-color: var(--primary); }
@keyframes aiSpin { to { transform: rotate(360deg); } }

/* live quote cards under an answer */
.ai-quotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-q {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; font-size: .82rem;
  color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease;
}
.ai-q:hover { transform: translateY(-2px); border-color: var(--primary); }
.ai-q b { font-family: var(--font-head); }
.ai-q span { color: var(--muted); }
.ai-q em { font-style: normal; font-weight: 700; }

/* message actions */
.ai-actions { display: flex; gap: 6px; margin-top: 10px; opacity: 0; transition: opacity .2s; }
.msg:hover .ai-actions, .ai-actions:focus-within { opacity: 1; }
.ai-actions button {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .74rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.ai-actions button:hover { color: var(--primary); border-color: var(--primary); }
@media (hover: none) { .ai-actions { opacity: 1; } }

/* composer */
.ai-composer { padding: 10px 10px 10px 20px; border-radius: 20px; box-shadow: var(--shadow-1); }
.ai-composer:focus-within { box-shadow: var(--shadow-2), 0 0 0 3px var(--primary-soft); }
.ai-mic {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.ai-mic:hover { color: var(--primary); border-color: var(--primary); }
.ai-mic.on { color: var(--lime-ink); background: var(--red); border-color: var(--red); animation: aiLive 1s ease-in-out infinite; }
.ai-chip { color: var(--ink-2) !important; }

@media (max-width: 640px) {
  .ai-market { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ai-tick { padding: 8px 10px; grid-template-columns: 1fr; grid-template-areas: "lbl" "val" "chg"; }
  .ai-tick .sp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .ai-beta::before, .ai-caret, .ai-think .st.on i { animation: none; }
}

/* =====================================================================
   HOME: CorTIF AI preview, market pipeline, Areas of Focus (js/home-fx.js)
   ===================================================================== */

/* ---------- AI section: three feature cards in one row ---------- */
.dark-panel .grid.g-2 .grid.g-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px !important; }
.dark-panel .grid.g-2 .grid.g-2 > * { grid-column: auto !important; }
.dark-panel .ghost-card { padding: 18px; }
.dark-panel .ghost-card h3 { font-size: .98rem; }
.dark-panel .ghost-card p { font-size: .86rem; }
.dark-panel .ghost-card .icon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s; }
.dark-panel .ghost-card:hover .icon { transform: rotate(-8deg) scale(1.12); }
@media (max-width: 760px) { .dark-panel .grid.g-2 .grid.g-2 { grid-template-columns: 1fr; } }

/* ---------- AI chat preview ---------- */
.ai-demo {
  width: min(460px, 100%); margin-inline: auto; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  font-size: .9rem; text-align: left;
}
.ad-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ad-bar b { font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.ad-logo img { display: block; border-radius: 6px; }
.ad-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: var(--primary); }
.ad-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: aiLive 1.8s ease-in-out infinite; }
.ad-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.ad-msg { max-width: 92%; padding: 11px 14px; border-radius: 14px; line-height: 1.55; }
.ad-user {
  align-self: flex-end; background: var(--primary-soft); border: 1px solid rgba(93, 214, 44, .3);
  color: var(--ink); border-top-right-radius: 4px; min-height: 1.6em;
}
.ad-type::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); animation: aiCaret 1s steps(2) infinite; }
.ai-demo:not([data-state="typing"]) .ad-type::after { display: none; }
.ad-ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-top-left-radius: 4px; width: 92%; }
.ad-ai p { margin: 0 0 6px; color: var(--ink-2); font-size: .88rem; }
.ad-ai ul { margin: 0 0 12px; padding-left: 1.1em; color: var(--ink-2); font-size: .86rem; list-style: disc; }
.ad-steps { display: flex; flex-direction: column; gap: 7px; }
.ad-steps span { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--faint); }
.ad-steps i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
.ad-steps .on { color: var(--ink); }
.ad-steps .on i { border-color: var(--primary); border-top-color: transparent; animation: aiSpin .8s linear infinite; }
.ad-steps .done { color: var(--muted); }
.ad-steps .done i { background: var(--primary); border-color: var(--primary); }
.ad-mix { display: flex; flex-direction: column; gap: 6px; }
.ad-mix span { position: relative; isolation: isolate; display: flex; justify-content: space-between; flex-direction: row-reverse; font-size: .76rem; color: var(--muted); padding: 5px 8px; border-radius: 6px; overflow: hidden; }
.ad-mix span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--primary-soft); border-right: 2px solid var(--primary); transition: width 1s cubic-bezier(.22, .8, .28, 1); z-index: -1; }
.ad-mix em { font-style: normal; font-weight: 700; color: var(--ink); }
.ad-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px 18px; padding: 11px 12px 11px 16px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--faint); font-size: .8rem; }
.ad-input i { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); flex-shrink: 0; }
/* states */
.ai-demo .ad-msg { transition: opacity .4s ease, transform .45s cubic-bezier(.22, .8, .28, 1); }
.ai-demo:not([data-state]) .ad-msg, .ai-demo[data-state="reset"] .ad-msg { opacity: 0; transform: translateY(8px); }
.ai-demo[data-state="typing"] .ad-ai { opacity: 0; transform: translateY(8px); }
.ai-demo .ad-answer { display: none; }
.ai-demo[data-state="answer"] .ad-steps { display: none; }
.ai-demo[data-state="answer"] .ad-answer { display: block; animation: aiIn .5s cubic-bezier(.22, .8, .28, 1) both; }
.ai-demo[data-state="answer"] .ad-mix span::before { width: var(--w); }
@keyframes aiLive { 50% { opacity: .3; } }
@keyframes aiCaret { 50% { opacity: 0; } }
@keyframes aiSpin { to { transform: rotate(360deg); } }
@keyframes aiIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- market pipeline ---------- */
.mkt-pipe { position: relative; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; margin: 26px 0 22px; }
.mp-track { position: absolute; left: 10%; right: 10%; top: 28px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.mp-track i { position: absolute; inset: 0; width: 0; background: var(--primary); transition: width 2.2s cubic-bezier(.65, 0, .35, 1); }
.mkt-pipe.run .mp-track i { width: 100%; }
.mkt-pipe.run .mp-track::after {
  content: ""; position: absolute; top: 0; width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: mpPulse 2.8s linear 2.4s infinite; opacity: .8;
}
@keyframes mpPulse { from { left: -60px; } to { left: 100%; } }
.mp-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: none !important; border: 0 !important; padding: 0 !important; }
.mp-ic {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--faint);
  transition: background .45s ease, color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s ease;
}
.mp-ic svg { width: 24px; height: 24px; }
.mp-node b { font-family: var(--font-head); font-size: .9rem; color: var(--muted); transition: color .4s; line-height: 1.3; }
.mp-node.lit .mp-ic { color: var(--primary); border-color: var(--primary); }
.mp-node.lit b { color: var(--ink); }
.mp-node.end.lit .mp-ic { background: var(--primary); color: var(--lime-ink); }
.mp-node.hot .mp-ic { transform: translateY(-6px) scale(1.06); box-shadow: var(--shadow-2); }
@media (max-width: 760px) {
  .mkt-pipe { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
  .mp-track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .mp-track i { width: 100% !important; height: 0; transition: height 2.2s cubic-bezier(.65, 0, .35, 1); }
  .mkt-pipe.run .mp-track i { height: 100%; }
  .mkt-pipe.run .mp-track::after { display: none; }
  .mp-node { flex-direction: row; text-align: left; }
}

/* ---------- Areas of Focus graphics ---------- */
.fv-wrap { display: block; height: 56px; margin: -4px 0 14px; color: var(--primary); }
.fv { width: 100%; max-width: 150px; height: 56px; overflow: visible; }
.fv .fv-grid { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.fv .fv-line { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); }
.fv .fv-alt { stroke: var(--faint); }
.fv-on .fv-line { animation: fvDraw 1.4s cubic-bezier(.65, 0, .35, 1) forwards; }
.fv-on .fv-alt { animation-delay: .25s; }
@keyframes fvDraw { to { stroke-dashoffset: 0; } }
.fv-c line { stroke: var(--faint); stroke-width: 1.2; }
.fv-c rect.up { fill: var(--primary); }
.fv-c rect.dn { fill: var(--red); }
.fv-c { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; }
.fv-on .fv-c { animation: fvGrow .5s cubic-bezier(.34, 1.56, .64, 1) var(--d) forwards; }
@keyframes fvGrow { to { transform: scaleY(1); opacity: 1; } }
.fv-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.fv-on .fv-dot { animation: fvPop .35s cubic-bezier(.34, 1.56, .64, 1) var(--d) forwards; }
@keyframes fvPop { to { opacity: 1; transform: scale(1); } }
.fv-b { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 1.4; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.fv-on .fv-b { animation: fvGrow .6s cubic-bezier(.22, .8, .28, 1) var(--d) forwards; }
.fv-needle line { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.fv-needle circle { fill: var(--primary); }
.fv-needle { transform-box: view-box; transform-origin: 60px 44px; transform: rotate(-70deg); }
.fv-on .fv-needle { animation: fvNeedle 1.6s cubic-bezier(.34, 1.4, .64, 1) .2s forwards; }
@keyframes fvNeedle { 60% { transform: rotate(48deg); } to { transform: rotate(34deg); } }
.fv-row { fill: var(--line-2); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.fv-on .fv-row { animation: fvRow .5s ease var(--d) forwards; }
@keyframes fvRow { to { transform: scaleX(1); } }
.fv-lens circle { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2; }
.fv-lens line { stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; }
.fv-lens { transform: translate(20px, 18px); }
.fv-on .fv-lens { animation: fvScan 2.4s ease-in-out .3s forwards; }
@keyframes fvScan { 40% { transform: translate(80px, 14px); } 70% { transform: translate(44px, 30px); } to { transform: translate(92px, 24px); } }
.fv-card:hover { border-color: rgba(93, 214, 44, .35); }

@media (prefers-reduced-motion: reduce) {
  .fv .fv-line { stroke-dashoffset: 0; animation: none; }
  .fv-c, .fv-b, .fv-row, .fv-dot { transform: none; opacity: 1; animation: none; }
  .fv-needle { transform: rotate(34deg); animation: none; }
  .mp-track i { width: 100%; transition: none; }
}

/* neutralise the old pill styling inside the new pipeline */
.mkt-pipe span { font: inherit; letter-spacing: normal; text-transform: none; white-space: normal; box-shadow: none; }
.mkt-pipe .mp-node, .mkt-pipe .mp-node.end { background: none; color: inherit; border-radius: 0; }
.mkt-pipe .mp-track { padding: 0; border: 0; border-radius: 2px; background: var(--line-2); }
.mkt-pipe .mp-ic { padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.mkt-pipe .mp-node.lit .mp-ic { border-color: var(--primary); }
.mkt-pipe .mp-node.end.lit .mp-ic { background: var(--primary); }

/* Equity Markets: live sector heatmap */
.fv-heat .fv-t { fill: var(--primary); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: fill .9s ease, opacity .9s ease; }
.fv-on .fv-heat .fv-t { animation: fvTile .45s cubic-bezier(.34, 1.56, .64, 1) var(--d) forwards; }
@keyframes fvTile { to { opacity: var(--o, .75); transform: scale(1); } }
.fv-heat .fv-t.dn { fill: var(--red); }
@media (prefers-reduced-motion: reduce) { .fv-heat .fv-t { opacity: .7; transform: none; animation: none; } }
.fv-on .fv-heat .fv-t.settled { animation: none; opacity: var(--o, .75); transform: none; }

/* ---------- centered hero (no artwork) ---------- */
.hero-center .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-center .hero-inner > div { max-width: 880px; }
.hero-center h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; }
.hero-center .hero-sub { margin-inline: auto; max-width: 640px; }
.hero-center .hero-cta { justify-content: center; }
.hero-center .kicker { display: inline-flex; }
.hero-center { min-height: min(86vh, 800px); }

/* ---------- branded loading screen (theme.js adds html.is-loading) ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center;
  background: var(--bg); transition: opacity .55s ease, visibility .55s ease;
}
.site-loader .sl-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.site-loader img { width: 168px; height: auto; animation: slIn .7s cubic-bezier(.22, .8, .28, 1) both; }
html[data-theme="light"] .site-loader img { mix-blend-mode: multiply; }
.site-loader .sl-bar { width: 180px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.site-loader .sl-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 2px; transition: width .35s ease; }
.site-loader.done { opacity: 0; visibility: hidden; }
html.is-loading body { overflow: hidden; }
@keyframes slIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .site-loader img { animation: none; } }

html.motion-ready .hero-center .hero-inner > div:first-child p { text-align: center !important; }

/* =====================================================================
   HERO: 3D globe (js/globe.js)
   ===================================================================== */
.hero-center { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 38vh; align-items: flex-start; }
.hero-center .hero-inner { position: relative; z-index: 2; }
.hero-center .hero-inner > div:first-child { max-width: 1040px; }
.hero-center h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; margin-bottom: 18px; }
.hero-center .hero-sub { max-width: 620px; font-size: 1.08rem; line-height: 1.7; }
.hero-center .hero-cta { margin-top: 28px; }
.hero-center .hero-cta .btn { min-height: 50px; padding-inline: 26px; font-size: 1rem; }
.hero-center .kicker { margin-bottom: 14px; }

.hero-globe { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease .2s; }
.hero-globe.on { opacity: 1; }
.hero-globe canvas { width: 100% !important; height: 100% !important; display: block; }
/* soft fade at the top so the copy always sits on clean background */
.hero-center::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 72%, transparent); }
.hero-center::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--bg), transparent); }

/* scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 40px; border-radius: 14px; border: 1.5px solid var(--line-2);
  display: flex; justify-content: center; padding-top: 7px; transition: border-color .2s;
}
.hero-scroll:hover { border-color: var(--primary); }
.hero-scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--primary); animation: heroScroll 1.8s ease-in-out infinite; }
@keyframes heroScroll { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

@media (max-width: 700px) {
  .hero-center { padding-bottom: 46vh; min-height: 0; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } .hero-globe { transition: none; } }

/* =====================================================================
   HERO VARIANTS (js/hero-variants.js): terminal | dash | globe
   ===================================================================== */
.hv-term, .hv-dash { display: none; }
.hero-center:not([data-hero="globe"]) .hero-globe { display: none; }
.hero-center:not([data-hero="globe"])::before, .hero-center:not([data-hero="globe"])::after { display: none; }
.hero-center:not([data-hero="globe"]) { padding-bottom: 72px; min-height: auto; }

/* shared mini window chrome */
.tm-dots { display: inline-flex; gap: 6px; }
.tm-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.tm-ai-ic img { display: block; border-radius: 5px; }

/* ---------------- TERMINAL ---------------- */
.hero-center[data-hero="terminal"] { min-height: 100vh; min-height: 100svh; align-items: center; }
.hero-center[data-hero="terminal"] .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); justify-items: stretch; text-align: left; gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-center[data-hero="terminal"] .hero-inner > div:first-child { max-width: 600px; }
html.motion-ready .hero-center[data-hero="terminal"] .hero-inner > div:first-child p { text-align: left !important; }
.hero-center[data-hero="terminal"] h1 { font-size: clamp(2.3rem, 3.9vw, 3.6rem); }
.hero-center[data-hero="terminal"] .hero-cta { justify-content: flex-start; }
.hero-center[data-hero="terminal"] .hero-sub { margin-inline: 0; }
.hero-center[data-hero="terminal"] .hv-term { display: block; }

.hv-term {
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); font-variant-numeric: tabular-nums;
  animation: hvIn .9s cubic-bezier(.22, .8, .28, 1) .2s both;
}
@keyframes hvIn { from { opacity: 0; transform: translateY(24px); } }
.tm-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.tm-bar b { font-family: var(--font-head); color: var(--ink); font-size: .86rem; }
.tm-sym { padding: 3px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .74rem; }
.tm-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.tm-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.tm-live.real { color: var(--primary); }
.tm-live.real::before { background: var(--primary); animation: aiLive 1.8s ease-in-out infinite; }
.tm-main { display: grid; grid-template-columns: minmax(0, 1fr) 150px; }
.tm-chart { padding: 14px 16px 10px; border-right: 1px solid var(--line); position: relative; }
.tm-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tm-price b { font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); letter-spacing: -.02em; border-radius: 4px; }
.tm-price b.flash { animation: tmFlash .6s ease; }
@keyframes tmFlash { 30% { background: var(--primary-soft); } }
.tm-price em { font-style: normal; font-weight: 700; font-size: .82rem; }
.tm-price em.up, .tm-r.bid span:first-child { color: var(--primary); }
.tm-price em.dn, .tm-r.ask span:first-child { color: var(--red); }
.tm-price span { margin-left: auto; font-size: .72rem; color: var(--faint); }
.tm-canvas { width: 100%; height: 210px; display: block; }
.tm-tf { display: flex; gap: 4px; margin-top: 8px; }
.tm-tf span { font-size: .7rem; padding: 3px 8px; border-radius: 6px; color: var(--faint); }
.tm-tf span.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tm-book { padding: 10px 0; font-size: .74rem; }
.tm-bh { display: flex; justify-content: space-between; padding: 0 12px 6px; color: var(--faint); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.tm-r { position: relative; display: flex; justify-content: space-between; padding: 3px 12px; color: var(--ink-2); }
.tm-r::before { content: ""; position: absolute; top: 1px; bottom: 1px; right: 0; width: var(--w); opacity: .14; transition: width .5s ease; }
.tm-r.ask::before { background: var(--red); }
.tm-r.bid::before { background: var(--primary); }
.tm-r span { position: relative; }
.tm-mid { text-align: center; padding: 6px 0; margin: 4px 0; border-block: 1px solid var(--line); font-family: var(--font-head); color: var(--ink); font-size: .86rem; }
.tm-ai { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); min-height: 46px; }
.tm-ai-t::after { content: ""; display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); animation: aiCaret 1s steps(2) infinite; }

@media (max-width: 960px) {
  .hero-center[data-hero="terminal"] .hero-inner { grid-template-columns: 1fr; }
  .hero-center[data-hero="terminal"] { min-height: auto; }
}
@media (max-width: 560px) {
  .tm-main { grid-template-columns: 1fr; }
  .tm-book { display: none; }
  .tm-chart { border-right: 0; }
  .tm-canvas { height: 170px; }
}

/* ---------------- DASHBOARD 3D ---------------- */
.hero-center[data-hero="dash"] .hv-dash { display: block; }
.hero-center[data-hero="dash"] { padding-bottom: 40px; }
.hv-dash { width: min(1120px, 100%); margin: 52px auto 0; perspective: 1600px; }
.db-frame {
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), var(--shadow-1);
  transform: perspective(1600px) rotateX(24deg) scale(.94); transform-origin: 50% 0;
  opacity: 0; transition: opacity .9s ease .15s; will-change: transform; text-align: left;
}
html[data-theme="light"] .db-frame { box-shadow: 0 50px 100px -40px rgba(16, 20, 16, .35), var(--shadow-1); }
.hv-dash.in .db-frame { opacity: 1; }
.db-top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.db-url { flex: 1; max-width: 320px; margin-inline: auto; text-align: center; font-size: .72rem; color: var(--faint); padding: 4px 10px; border-radius: 6px; background: var(--bg); }
.db-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 380px; }
.db-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--line); font-size: .82rem; }
.db-side b { font-family: var(--font-head); color: var(--ink); margin-bottom: 14px; padding-left: 10px; }
.db-side span { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.db-side span.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.db-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.db-kpis > div { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.db-kpis small, .db-chart small, .db-alloc small { display: block; font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.db-kpis b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.db-kpis em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--muted); }
.db-kpis em.up { color: var(--primary); } .db-kpis em.dn { color: var(--red); }
.db-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.db-chart, .db-alloc { padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.db-chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.db-line { fill: none; stroke: var(--primary); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.db-area { fill: var(--primary-soft); opacity: 0; transition: opacity 1s ease 1.6s; }
.hv-dash.in .db-line { animation: fvDraw 1.8s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.hv-dash.in .db-area { opacity: 1; }
.db-alloc { display: flex; flex-direction: column; }
.db-alloc svg { width: 110px; height: 110px; margin: 4px auto 10px; transform: rotate(-90deg); }
.db-ring { fill: none; stroke: var(--line-2); stroke-width: 5; }
.db-seg { fill: none; stroke-width: 5; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.22, .8, .28, 1) .8s; }
.db-seg.s1 { stroke: var(--primary); } .db-seg.s2 { stroke: #2f8f9d; } .db-seg.s3 { stroke: #c9a227; }
.hv-dash.in .db-seg.s1 { stroke-dasharray: 55 45; }
.hv-dash.in .db-seg.s2 { stroke-dasharray: 30 70; stroke-dashoffset: -55; }
.hv-dash.in .db-seg.s3 { stroke-dasharray: 15 85; stroke-dashoffset: -85; }
.db-alloc ul { margin: 0; padding: 0; list-style: none; font-size: .76rem; color: var(--ink-2); display: grid; gap: 4px; }
.db-alloc li { display: flex; align-items: center; gap: 8px; }
.db-alloc li i { width: 8px; height: 8px; border-radius: 2px; }
.db-alloc .c1 { background: var(--primary); } .db-alloc .c2 { background: #2f8f9d; } .db-alloc .c3 { background: #c9a227; }
.db-ai { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(93, 214, 44, .3); background: var(--primary-soft); font-size: .84rem; color: var(--ink); min-height: 44px; }
@media (max-width: 900px) {
  .db-body { grid-template-columns: 1fr; }
  .db-side { display: none; }
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .db-frame { transform: none !important; opacity: 1; transition: none; }
  .db-line { stroke-dashoffset: 0; animation: none; }
  .db-area { opacity: 1; }
  .hv-term { animation: none; }
}

/* ---------------- preview switcher ---------------- */
.hv-switch {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); font-size: .82rem;
}
.hv-switch span { padding: 0 10px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.hv-switch a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.hv-switch a.on { background: var(--primary); color: var(--lime-ink); }

/* ---------- terminal: intelligence console (no charts) ---------- */
.hv-term .tm-live { color: var(--primary); }
.hv-term .tm-live::before { background: var(--primary); animation: aiLive 1.8s ease-in-out infinite; }
.tm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tm-tiles > div { padding: 16px 18px; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tm-tiles > div:last-child { border-right: 0; }
.tm-tiles small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.tm-tiles b { display: inline-block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; border-radius: 4px; }
.tm-tiles b.flash { animation: tmFlash .8s ease; }
@keyframes tmFlash { 30% { background: var(--primary-soft); } }
.tm-tiles em { display: block; font-style: normal; font-size: .78rem; font-weight: 700; margin-top: 2px; color: var(--faint); }
.tm-tiles em.up { color: var(--primary); } .tm-tiles em.dn { color: var(--red); }
.tm-feed { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 252px; }
.tm-card {
  padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  animation: tmCard .5s cubic-bezier(.22, .8, .28, 1) both;
}
.tm-card:first-child { border-color: rgba(93, 214, 44, .35); }
.tm-card:nth-child(3) { opacity: .55; }
@keyframes tmCard { from { opacity: 0; transform: translateY(-10px); } }
.tm-tag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }
.tm-card p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--ink-2); min-height: 1.55em; }
.tm-ask { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 11px 12px 11px 14px; border-radius: 14px;
  border: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); }
.tm-ask [data-tm="ask"]::after { content: ""; display: inline-block; width: 6px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); animation: aiCaret 1s steps(2) infinite; }
.tm-ask i { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--primary); flex-shrink: 0; }
@media (max-width: 560px) {
  .tm-tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tm-tiles > div { padding: 12px; }
  .tm-tiles b { font-size: 1.02rem; }
  .tm-feed { min-height: 0; }
}

/* ---------- dashboard: lists instead of charts ---------- */
.db-list { padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.db-list small { display: block; font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.db-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.db-list li { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 8px; transition: background .2s; }
.db-list li:hover { background: var(--surface); }
.db-list li b { font-size: .86rem; color: var(--ink); font-family: var(--font-head); }
.db-list li span { font-size: .78rem; color: var(--muted); }
.hv-dash.in .db-list li { animation: aiIn .5s cubic-bezier(.22, .8, .28, 1) both; }
.hv-dash.in .db-list li:nth-child(2) { animation-delay: .1s; }
.hv-dash.in .db-list li:nth-child(3) { animation-delay: .2s; }
.hv-dash.in .db-list li:nth-child(4) { animation-delay: .3s; }
.db-path li { flex-direction: row; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); }
.db-path li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.db-path li.done { color: var(--ink-2); }
.db-path li.done::before { background: var(--primary); border-color: var(--primary);
  -webkit-mask: none; box-shadow: inset 0 0 0 3px var(--bg); }
.db-path li.now { color: var(--ink); font-weight: 600; }
.db-path li.now::before { border-color: var(--primary); border-top-color: transparent; animation: aiSpin 1.2s linear infinite; }

/* =====================================================================
   HERO polish: dot-grid backdrop, living dashboard, toasts (js/hero-dash.js)
   ===================================================================== */
.hero-center[data-hero="dash"] { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--header-h) + 64px); }
.hero-center[data-hero="dash"]::before {
  content: ""; display: block !important; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  height: auto;
}
.hero-center[data-hero="dash"] .hero-inner { position: relative; z-index: 1; }

/* headline block: crisper rhythm */
.hero-center[data-hero="dash"] .kicker { font-size: .74rem; padding: 7px 14px; letter-spacing: .02em; }
.hero-center[data-hero="dash"] .hero-line { margin: 0 0 22px; font-size: .72rem; letter-spacing: .16em; color: var(--faint); }
.hero-center[data-hero="dash"] h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.03; letter-spacing: -.04em; margin-bottom: 22px; }
.hero-center[data-hero="dash"] .hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.hero-center[data-hero="dash"] .hero-cta { margin-top: 30px; gap: 12px; }

/* dashboard frame: crisper edge */
.hv-dash { position: relative; margin-top: 64px; }
.db-frame { transition: opacity .9s ease .15s; border-color: var(--line-2); }
.db-top { background: var(--bg-soft); }

/* living sidebar + panels */
.db-side span { transition: background .35s ease, color .35s ease; }
.db-main [data-k] { transition: border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.22, .8, .28, 1); }
.db-main [data-k].db-hot { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); transform: translateY(-2px); }
.db-kpis > div { min-height: 92px; }
.db-kpis b { font-size: 1rem; line-height: 1.25; margin-bottom: 4px; }

/* toasts */
.db-toasts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.db-toast {
  position: absolute; display: flex; align-items: center; gap: 12px; min-width: 250px;
  padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); font-size: .8rem;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22, .8, .28, 1);
}
.db-toast.show { opacity: 1; transform: none; }
.db-toast b { display: block; color: var(--ink); font-family: var(--font-head); font-size: .84rem; }
.db-toast span { color: var(--muted); }
.db-toast.t-left { left: -36px; top: 22%; }
.db-toast.t-right { right: -36px; top: 8%; }
.db-toast.t-low { top: 58%; }
.tt-ic { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-soft); }
.tt-ic::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--primary); }
.tt-ic.a::before { border-radius: 50%; }
.tt-ic.c::before { width: 7px; height: 12px; border-radius: 0; background: none; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }

@media (max-width: 1200px) { .db-toast.t-left { left: 12px; } .db-toast.t-right { right: 12px; } }
@media (max-width: 760px) { .db-toasts { display: none; } .hv-dash { margin-top: 44px; } }
@media (prefers-reduced-motion: reduce) { .db-toasts { display: none; } .db-main [data-k] { transition: none; } }

/* =====================================================================
   WHO WE SERVE: CorTIF hub with animated connectors (js/home-fx.js)
   ===================================================================== */
.ws-hub { position: relative; display: grid; grid-template-columns: 1fr 220px 1fr; grid-template-rows: auto auto; gap: 26px 40px; align-items: center; }
.ws-hub .ww8-grid { display: contents; }
.ws-hub .ww8-tile:nth-child(1) { grid-column: 1; grid-row: 1; }
.ws-hub .ww8-tile:nth-child(2) { grid-column: 3; grid-row: 1; }
.ws-hub .ww8-tile:nth-child(3) { grid-column: 1; grid-row: 2; }
.ws-hub .ww8-tile:nth-child(4) { grid-column: 3; grid-row: 2; }
.ws-core { grid-column: 2; grid-row: 1 / span 2; justify-self: center; position: relative; z-index: 2;
  width: 168px; height: 168px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
.ws-core img { border-radius: 10px; }
.ws-core b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.ws-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--line-2); animation: wsSpin 40s linear infinite; }
.ws-ring.r2 { inset: -32px; border-style: solid; border-color: var(--line); animation-duration: 70s; animation-direction: reverse; }
@keyframes wsSpin { to { transform: rotate(360deg); } }

.ws-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.ws-line { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .35s ease, stroke-width .35s ease; }
.ws-in .ws-line { animation: wsDraw 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.ws-line.on { stroke: var(--primary); stroke-width: 2.2; }
@keyframes wsDraw { to { stroke-dashoffset: 0; } }
.ws-pulse { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 1; stroke-dashoffset: 1.05; opacity: 0; }
.ws-in .ws-pulse { opacity: 1; animation: wsPulse 2.4s linear 1.3s infinite; }
@keyframes wsPulse { to { stroke-dashoffset: 0; } }

/* tiles fly out from the hub */
.ws-hub .ww8-tile { position: relative; z-index: 2; min-height: 0; padding: 26px 24px 22px; background: var(--surface);
  opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.22, .8, .28, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.ws-hub .ww8-tile:nth-child(1) { transform: translate(40%, 30%) scale(.85); }
.ws-hub .ww8-tile:nth-child(2) { transform: translate(-40%, 30%) scale(.85); }
.ws-hub .ww8-tile:nth-child(3) { transform: translate(40%, -30%) scale(.85); }
.ws-hub .ww8-tile:nth-child(4) { transform: translate(-40%, -30%) scale(.85); }
.ws-in .ww8-tile { opacity: 1; transform: none !important; }
.ws-in .ww8-tile:nth-child(1) { transition-delay: .7s; }
.ws-in .ww8-tile:nth-child(2) { transition-delay: .82s; }
.ws-in .ww8-tile:nth-child(3) { transition-delay: .94s; }
.ws-in .ww8-tile:nth-child(4) { transition-delay: 1.06s; }
.ws-in .ww8-tile { transition-delay: 0s; }
.ws-hub .ww8-ic { margin-bottom: 0; }
.ws-hub .ww8-tile b { margin: 16px 0 6px; }
.ws-focus .ww8-tile:not(.ws-on) { opacity: .5; }
.ws-hub .ww8-tile.ws-on { border-color: var(--primary); box-shadow: var(--shadow-2); }
.ws-hub .ww8-tile.ws-on .ww8-line { transform: scaleX(1); }
.ws-hub .ww8-tile.ws-on .ww8-ic { background: var(--primary); color: var(--lime-ink); transform: rotate(-6deg) scale(1.05); }

@media (max-width: 860px) {
  .ws-hub { grid-template-columns: 1fr; gap: 14px; }
  .ws-hub .ww8-tile:nth-child(n) { grid-column: 1; grid-row: auto; transform: translateY(16px); }
  .ws-core { grid-column: 1; grid-row: auto; width: 128px; height: 128px; margin-bottom: 18px; }
  .ws-lines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-hub .ww8-tile { opacity: 1; transform: none !important; transition: none; }
  .ws-ring { animation: none; }
  .ws-line { stroke-dashoffset: 0; animation: none; }
  .ws-pulse { display: none; }
}

/* Who We Serve scroll sequence (motion.js adds .ws-seq on desktop) */
.ws-seq .ww8-tile { opacity: 0 !important; transform: translateY(26px) scale(.96) !important; transition: opacity .5s ease, transform .6s cubic-bezier(.22, .8, .28, 1), border-color .3s ease, box-shadow .3s ease !important; transition-delay: 0s !important; }
.ws-seq .ww8-tile.ws-show { opacity: 1 !important; transform: none !important; }
.ws-seq .ws-line { animation: none !important; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.65, 0, .35, 1), stroke .3s ease; }
.ws-seq .ws-line.show { stroke-dashoffset: 0; }
.ws-seq .ws-pulse { opacity: 0 !important; }
.ws-seq .ws-pulse.show { opacity: 1 !important; animation: wsPulse 2.4s linear infinite; }

/* =====================================================================
   HERO dashboard: clickable views (js/hero-dash.js)
   ===================================================================== */
.db-side button {
  appearance: none; font: inherit; text-align: left; cursor: pointer; border: 0; background: none;
  padding: 8px 10px; border-radius: 8px; color: var(--muted); transition: background .25s ease, color .25s ease;
}
.db-side button:hover { background: var(--bg); color: var(--ink); }
.db-side button.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.db-side button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.db-url i { font-style: normal; color: var(--ink-2); }

[data-go] { cursor: pointer; }
[data-go]:hover { border-color: var(--line-2); transform: translateY(-2px); }
[data-go]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.db-view { display: flex; flex-direction: column; gap: 14px; }
.db-view[hidden] { display: none; }
.db-view.on { animation: dvIn .45s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes dvIn { from { opacity: 0; transform: translateY(10px); } }

.dv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 2px 2px; }
.dv-head small { display: block; font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.dv-head h3, .dv-head h4 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.dv-open {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  background: var(--primary); color: var(--lime-ink); font-weight: 700; font-size: .82rem; transition: transform .2s ease, background .2s ease;
}
.dv-open:hover { color: var(--lime-ink); background: var(--primary-2); transform: translateY(-1px); }
.dv-open span { transition: transform .2s ease; }
.dv-open:hover span { transform: translateX(3px); }

.dv-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dv-rows li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  padding: 13px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.dv-rows li:hover { border-color: var(--line-2); transform: translateX(3px); }
.dv-rows li > i { width: 10px; height: 10px; border-radius: 3px; }
.dv-rows .c1 { background: var(--primary); } .dv-rows .c2 { background: #2f8f9d; } .dv-rows .c3 { background: #c9a227; }
.dv-rows b { font-family: var(--font-head); font-size: .9rem; color: var(--ink); }
.dv-rows li > span { grid-column: 2; font-size: .8rem; color: var(--muted); }
.dv-rows li:not(:has(> i)) { grid-template-columns: minmax(0, 1fr) auto; }
.dv-rows li:not(:has(> i)) > span { grid-column: 1; }
.dv-rows li > b { grid-row: 1; }
.dv-rows .tag { grid-row: 1 / span 2; grid-column: -2; font-style: normal; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.dv-rows .tag.warn { background: rgba(201, 162, 39, .15); color: #c9a227; }
.view-li-anim .dv-rows li { animation: aiIn .4s ease both; }
.db-view.on .dv-rows li:nth-child(2) { animation: aiIn .4s ease .06s both; }
.db-view.on .dv-rows li:nth-child(3) { animation: aiIn .4s ease .12s both; }
.db-view.on .dv-rows li:nth-child(4) { animation: aiIn .4s ease .18s both; }

.dv-tick b { letter-spacing: .04em; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-chips span { font-size: .76rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.dv-chips span.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); font-weight: 700; }

.dv-path li { grid-template-columns: auto minmax(0, 1fr) !important; }
.dv-path li::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
.dv-path li > b, .dv-path li > span { grid-column: 2 !important; }
.dv-path li.done::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--bg); }
.dv-path li.now::before { border-color: var(--primary); border-top-color: transparent; animation: aiSpin 1.2s linear infinite; }
.dv-path li.now { border-color: rgba(93, 214, 44, .35); }

.dv-chat { display: flex; flex-direction: column; gap: 10px; }
.dv-chat p { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.6; max-width: 88%; }
.dv-chat .q { align-self: flex-end; background: var(--primary-soft); border: 1px solid rgba(93, 214, 44, .3); color: var(--ink); border-top-right-radius: 4px; }
.dv-chat .a { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); border-top-left-radius: 4px; }
.db-view.on .dv-chat .a { animation: aiIn .5s ease .35s both; }

@media (max-width: 900px) {
  .dv-head { flex-direction: column; align-items: flex-start; }
}

/* restore the earlier hero proportions (dashboard sits higher, reads larger) */
.hero-center[data-hero="dash"] { padding-top: calc(var(--header-h) + 48px); }
.hero-center[data-hero="dash"] h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; margin-bottom: 18px; }
.hero-center[data-hero="dash"] .hero-line { margin: -2px 0 18px; }
.hero-center[data-hero="dash"] .hero-cta { margin-top: 28px; }
.hv-dash { margin-top: 52px; }

/* dashboard: full designed width (was capped at 880px by the centered-hero rule) */
.hero-center .hero-inner > .hv-dash { max-width: none; width: min(1160px, 100%); }
/* laptops: bring the dashboard up into the first screen */
@media (max-height: 860px) and (min-width: 901px) {
  .hero-center[data-hero="dash"] { padding-top: calc(var(--header-h) + 28px); }
  .hero-center[data-hero="dash"] h1 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); margin-bottom: 14px; }
  .hero-center[data-hero="dash"] .kicker { margin-bottom: 10px; }
  .hero-center[data-hero="dash"] .hero-line { margin-bottom: 12px; }
  .hero-center[data-hero="dash"] .hero-sub { font-size: 1rem; }
  .hero-center[data-hero="dash"] .hero-cta { margin-top: 20px; }
  .hv-dash { margin-top: 34px; }
}

/* =====================================================================
   UI/UX Pro Max audit fixes (accessibility, touch, typography)
   ===================================================================== */
/* contrast: --faint text was 3.8:1; now >= 4.5:1 in both themes */
:root { --faint: #8f8f8f; }
html[data-theme="light"] { --faint: #636b60; }

/* readable minimum text size (was down to 10.9px) */
small, .kicker, .hero-line, .db-url, .m-note, .db-kpis em, .db-kpis small,
.db-list small, .dv-head small, .ad-steps span, .tm-tag, .hg-label, .tag,
.dv-chips span, .ws-core b, .fit-kicker, .eco-n, [class*="-tag"], .ww8-tag {
  font-size: max(.75rem, 12px);
}

/* touch targets: inline text links inside cards and the legal links */
.card a:not(.btn), [class*="-card"] a:not(.btn), .eco-card a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-bottom a, .site-footer .legal a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; }

/* skip link for keyboard users */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100001; padding: 10px 16px; border-radius: 10px;
  background: var(--primary); color: var(--lime-ink); font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--lime-ink); }
/* audit follow-up: floor wins over more specific rules; footer + menu note */
small, .kicker, .hero-line, .m-note, .eco-total, .ad-live, .mk-label, .mk-n, .db-url, .db-kpis small, .db-kpis em,
.db-list small, .dv-head small, .tm-tag, .hg-live, .tm-live, .ws-core b, .fit-kicker, [class*="-tag"] { font-size: max(.75rem, 12px) !important; }
.m-note { color: var(--muted) !important; }
.site-footer a { display: inline-flex; align-items: center; min-height: 24px; }
.site-footer h5, .site-footer [class^="sf-"], .site-footer small, .site-footer span, .site-footer i { font-size: max(.75rem, 12px); }
/* light mode: brand green as TEXT needs a deeper shade for 4.5:1; buttons get white text */
html[data-theme="light"] { --primary: #23790a; --primary-2: #1d6608; }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn-lime, html[data-theme="light"] .dv-open,
html[data-theme="light"] .ai-send, html[data-theme="light"] .db-side button.on { color: #fff !important; }
html[data-theme="light"] .db-side button.on { background: var(--primary); }
html[data-theme="light"] { --lime: #23790a; }
html[data-theme="light"] .kicker.lime, html[data-theme="light"] .skip-link { color: #fff !important; }
html[data-theme="light"] .keep-dark .btn-lime, html[data-theme="light"] .keep-dark .btn-primary { color: #0f0f0f !important; }
html[data-theme="light"] .m-note { color: var(--ink-2) !important; }
html[data-theme="light"] .mobile-nav .sheet { background: var(--surface) !important; border-color: var(--line) !important; }
.site-footer h5, .site-footer [class^="sf-"] span, .site-footer [class^="sf-"] small { font-size: max(.75rem, 12px) !important; }

/* =====================================================================
   IMPECCABLE POLISH (critique 2026-11): clean-up + calmer hero
   ===================================================================== */

/* --- leftover "AI look": gradient text, glows, shine, idle pulsing --- */
.eco-digit { color: var(--primary) !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; opacity: .7; }
.eco-card:hover .eco-digit { opacity: 1; }
.eco-card:hover .eco-mask, .eco-card .eco-mask { filter: none !important; }
.cta-panel .btn-lime::after, .hero .btn-primary::after, .btn-primary::before { content: none !important; display: none !important; }
.cf-glow, .ws-ring { display: none !important; }
.w3-p::before { content: none !important; }
/* status dots stay as dots; only the genuine "live" badges keep a slow pulse */
.kicker::before, .fit-kicker i, .hc-signal i, .hero-chip .dot, .hc-legend .hc-live b, .live-chip i { animation: none !important; }

/* --- motion: no overshoot ("bounce"); exponential ease-out instead --- */
.dark-panel .ghost-card .icon,
.mp-ic,
.fv-on .fv-c, .fv-on .fv-dot, .fv-on .fv-heat .fv-t {
  transition-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
}

/* --- contrast spots the detector found --- */
.brand .mark, .ai-avatar, .user-btn .avatar { background: var(--primary) !important; color: var(--lime-ink) !important; }
.keep-dark, .dark-panel, .fit-card, .cta-panel { --faint: #a9b3a4; }
.btn-primary:hover, .btn-lime:hover { color: var(--lime-ink); }
html[data-theme="light"] .btn-primary:hover, html[data-theme="light"] .btn-lime:hover { color: #fff; }

/* --- type: tame letter-spaced caps on body-size text --- */
.ww8-tile b { letter-spacing: .04em; }
.w3-result { letter-spacing: .02em; }
.hv-m span { letter-spacing: .08em; }

/* --- hero: the headline leads; the two identity lines become one quiet byline --- */
.hero-center .kicker.lime {
  background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important;
  color: var(--muted) !important; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
.hero-center .kicker.lime::before { display: none !important; }
.hero-center .hero-line {
  display: inline; margin: 0 !important; color: var(--faint); font-weight: 600;
  letter-spacing: .02em; text-transform: none;
}
.hero-center .kicker.lime + .hero-line::before { content: "\00B7"; margin: 0 .6em; color: var(--faint); }
.hero-center .hero-inner > div:first-child > .kicker.lime { margin-bottom: 0 !important; }
.hero-center .hero-inner > div:first-child > .hero-line { display: inline-block; margin-bottom: 26px !important; }
.hero-center h1 { margin-top: 0; }
@media (max-width: 640px) {
  .hero-center .kicker.lime + .hero-line::before { content: none; }
  .hero-center .hero-inner > div:first-child > .hero-line { display: block; margin-top: 4px !important; }
}
.dv-head .dv-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: var(--ink); letter-spacing: -.015em; }
.hero-center .hero-line { text-transform: none !important; letter-spacing: .02em !important; font-size: max(.8rem, 12.5px) !important; }
.hero-center .kicker.lime { font-size: max(.8rem, 12.5px) !important; }
.cf-dot { animation: none !important; }

/* =====================================================================
   MARKET DESK PAGES (.mkp): polish
   ===================================================================== */
/* readable labels (were 10.5-11.8px) */
.mkp .mkp-kicker, .mkp .mkp-status, .mkp .mkp-tile .mkp-tile-top > b, .mkp .mkp-tile .mkp-tile-top > span,
.mkp-panel-cap > span, .mkp-list > h3, .mkp-tile-top > b, .mkp-tile-top > span { font-size: max(.75rem, 12px) !important; }

/* desk tabs: stay reachable while scrolling, clear current state */
.mkp-tabs { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--line); }
.mkp-tabs a { transition: background .2s ease, color .2s ease; }
.mkp-tabs a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* panels and tiles: quiet lift on hover, tabular numerals */
.mkp-tile, .mkp-panel, .mkp-list { transition: border-color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease; }
.mkp-tile:hover, .mkp-related a:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.mkp-px, .mkp-chg, .mkp-row span, .mkp-row em { font-variant-numeric: tabular-nums; }
/* a price that just updated briefly tints, then settles */
.mkp-px { transition: color .6s ease; }
.mkp-row { transition: background .2s ease; border-radius: 8px; }
.mkp-row:hover { background: var(--primary-soft); }

/* loading and empty states read as states, not as content */
.mkp-empty { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; padding: 14px 4px; }
.mkp-empty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.mkp-status.off { color: var(--muted); }

/* staggered entrance for desk sections (reveal system already fades them) */
.mkp > .reveal:nth-child(2) { transition-delay: .06s; }
.mkp > .reveal:nth-child(3) { transition-delay: .12s; }
.mkp > .reveal:nth-child(4) { transition-delay: .18s; }

@media (max-width: 760px) {
  .mkp-tabs { position: static; overflow-x: auto; scrollbar-width: none; }
  .mkp-tabs::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mkp-tile:hover, .mkp-related a:hover { transform: none; }
}
