:root {
  --bg: #f7f6f3;
  --surface: #efede8;
  --surface-2: #e5e2db;
  --fg: #37352f;
  --muted: #787774;
  --dim: #9b9a97;
  --line: rgba(55,53,47,.09);
  --line-strong: rgba(55,53,47,.16);
  --panel: #ffffff;
  --panel-2: #fbfaf7;
  --accent: #d9730d;
  --accent-2: #e9654b;
  --amber: #d9730d;
  --amber-soft: rgba(217,115,13,.12);
  --red: #e03e3e;
  --blue: #0b6e99;
  --violet: #6940a5;
  --green: #0f7b6c;
  --coral: #ad1a72;
  --max: 1400px;
  --gutter: 56px;
  --radius: 8px;
  font-feature-settings: "cv11", "ss01", "ss03";
}
@supports (font-variation-settings: normal) {
  :root { font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 540; letter-spacing: -0.022em; color: var(--fg); }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: rgba(135,131,120,.15); padding: 1px 5px; border-radius: 3px; color: #eb5757; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,246,243,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 580; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: 36px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.link { color: var(--muted); font-size: 15px; }
.link:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 520; transition: transform .1s, background .15s, border-color .15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--fg); color: #ffffff; }
.btn-light:hover { background: #504e46; }
.btn-dark { background: var(--panel); color: var(--fg); border: 1px solid var(--line-strong); }
.btn-dark:hover { background: var(--surface); }

/* ===== Layout ===== */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal h1.reveal, .reveal > .reveal { transition-delay: .05s; }
.hero h1.reveal { transition-delay: 0s; }
.hero p.sub.reveal { transition-delay: .12s; }
.hero .hero-ctas.reveal { transition-delay: .22s; }
.hero .hero-shot.reveal { transition-delay: .34s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Hero ===== */
.hero { padding: 120px 0 0; }
.hero h1 { font-size: 60px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 540; }
.hero .sub { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 580px; line-height: 1.5; }
.hero-ctas { margin-top: 32px; display: flex; gap: 10px; }
.hero-ctas .btn { padding: 10px 22px; font-size: 14.5px; }
.hero-shot { position: relative; margin-top: 90px; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 80px -20px rgba(15,15,15,.14), 0 2px 10px rgba(15,15,15,.05); }
.shot-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,246,243,.5) 0%, rgba(247,246,243,.1) 20%, rgba(247,246,243,0) 55%); pointer-events: none; z-index: 2; }

.app { display: grid; grid-template-columns: 220px 1fr 252px; min-height: 540px; font-size: 13px; background: var(--panel); }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; color: var(--muted); display: flex; flex-direction: column; }
.side-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; color: var(--fg); font-weight: 540; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-top .dot { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg,var(--accent),#e9654b); display: inline-block; flex-shrink: 0; }
.ws-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ws-info strong { font-size: 13px; color: var(--fg); font-weight: 540; }
.ws-info small { font-size: 11px; color: var(--muted); }
.chev { color: var(--dim); }
.side-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin: 0 2px 14px; color: var(--dim); font-size: 12.5px; }
.side-search span { font-size: 11.5px; }
.side-icons { margin-left: auto; display: flex; gap: 10px; color: var(--muted); }
.side-nav { list-style: none; margin: 0 0 10px; padding: 0; }
.side-nav li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.side-nav li:hover { background: rgba(55,53,47,.06); color: var(--fg); }
.side-nav li.sel { background: rgba(217,115,13,.1); color: var(--fg); font-weight: 540; }
.side-nav li .i { opacity: .7; width: 14px; display: inline-block; font-size: 12px; }
.side-badge { margin-left: auto; font-size: 10px; background: rgba(55,53,47,.08); color: var(--muted); padding: 1px 6px; border-radius: 8px; font-weight: 540; font-variant-numeric: tabular-nums; }
.side-badge.red { background: rgba(224,62,62,.14); color: var(--red); }
.side-badge.amber { background: rgba(217,115,13,.14); color: var(--amber); }
.side-nav.agents li { padding: 5px 10px; font-size: 12.5px; }
.side-nav.agents .st { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.side-nav.agents .st.green { background: var(--green); box-shadow: 0 0 6px rgba(15,123,108,.5); }
.side-nav.agents .st.amber { background: var(--amber); }
.side-nav.agents .st.red { background: var(--red); animation: pulse 2s ease-in-out infinite; }
.side-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 10px 10px 6px; font-weight: 540; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.app-main { padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.app-crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.app-crumbs strong { color: var(--fg); font-weight: 540; }
.app-crumbs .sep { color: var(--dim); }
.period-pill { margin-left: auto; background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 10px; font-size: 11.5px; color: var(--fg); font-family: ui-monospace, Menlo, monospace; }
.app-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -20px; padding: 0 20px; }
.tab { padding: 8px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); font-weight: 540; border-bottom-color: var(--accent); }
.tab.ghost { color: var(--dim); }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; line-height: 1; }
.chip-amber { color: var(--amber); }
.chip-green { color: var(--green); }
.chip-coral { color: var(--coral); }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,#d9730d,#e9654b); display: inline-block; flex-shrink: 0; opacity: .9; }
.avatar.sm { width: 18px; height: 18px; }
.avatar.sm.teal { background: linear-gradient(135deg,#0f7b6c,#4ac0a7); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi-tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 76px; transition: transform .25s, border-color .25s; }
.kpi-tile:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.kpi-label { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 540; }
.kpi-value { font-size: 22px; font-weight: 540; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.kpi-unit { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi-trend { font-size: 11px; color: var(--muted); margin-left: auto; font-weight: 500; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.kpi-bar { width: 100%; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: auto; }
.kpi-bar span { display: block; height: 100%; border-radius: 3px; }
.spark { width: 100%; height: 26px; display: block; margin-top: auto; }
.spark.small { width: 70px; height: 18px; }
.chip-row { display: flex; gap: 3px; margin-top: auto; }
.dot-chip { width: 11px; height: 6px; border-radius: 2px; background: var(--surface-2); }
.dot-chip.g { background: var(--green); }
.dot-chip.a { background: var(--amber); }
.dot-chip.r { background: var(--red); }
.dot-chip.m { background: var(--surface-2); }

/* Chart card */
.chart-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 6px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.chart-head strong { font-size: 12.5px; color: var(--fg); font-weight: 540; }
.chart-legend { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: middle; }
.chart-legend .l-blue { background: #0b6e99; }
.chart-legend .l-amber { background: rgba(217,115,13,.5); }
.area-chart { width: 100%; height: 110px; display: block; }

/* SKU list */
.sku-list { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sku-list-head, .sku-list-row { display: grid; grid-template-columns: 2.2fr .9fr .6fr 1.1fr .6fr .5fr; gap: 12px; align-items: center; padding: 7px 14px; font-size: 12.5px; }
.sku-list-head { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); background: var(--surface); font-weight: 540; }
.sku-list-row { border-bottom: 1px solid var(--line); color: var(--muted); transition: background .15s; }
.sku-list-row:last-child { border-bottom: none; }
.sku-list-row:hover { background: var(--surface); }
.sku-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sku-cell strong { display: block; color: var(--fg); font-size: 13px; font-weight: 540; }
.sku-cell small { color: var(--muted); font-size: 11.5px; }
.num { color: var(--fg); font-weight: 540; font-variant-numeric: tabular-nums; text-align: right; }
.num.pos { color: var(--green); }
.num.neg { color: var(--red); }
.cover-bar { display: flex; align-items: center; gap: 8px; }
.cover-bar i { flex: 1; max-width: 60px; height: 5px; background: var(--surface-2); border-radius: 3px; display: block; min-width: 10px; }
.cover-bar em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Right panel: approval queue */
.app-right { padding: 14px 12px; color: var(--muted); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.r-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.r-head strong { color: var(--fg); font-size: 13px; font-weight: 540; }
.chip-count { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.r-card.alert-r { border-color: rgba(224,62,62,.3); background: #fef4f3; }
.r-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.r-top strong { color: var(--fg); font-weight: 540; flex: 1; }
.r-time { color: var(--dim); font-size: 11px; }
.r-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.r-cta { display: flex; gap: 6px; }
.btn-tiny { font-size: 11px; padding: 4px 10px; border-radius: 5px; font-weight: 540; cursor: pointer; }
.btn-tiny.light { background: var(--fg); color: #fff; }
.btn-tiny.dark { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.r-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 2px; padding: 6px; font-weight: 540; }
.r-label.mt { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.r-feed { display: flex; flex-direction: column; gap: 6px; }
.feed-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 4px 6px; }
.feed-row strong { color: var(--fg); font-weight: 540; }
.feed-row small { color: var(--dim); font-size: 11px; margin-left: 4px; }

/* ===== Logos (marquee) ===== */
.logos { padding: 110px 0 20px; }
.eyebrow { color: var(--dim); font-size: 11px; letter-spacing: .14em; }
.eyebrow-top { margin-bottom: 36px; text-align: center; }
.logos-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.logos-track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.logos-track:hover { animation-play-state: paused; }
.logo { color: var(--fg); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; opacity: .66; white-space: nowrap; transition: opacity .2s; }
.logo:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Statement ===== */
.statement { padding: 120px 0 100px; }
.statement p { font-size: 44px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 540; max-width: 1100px; }
.statement strong { color: var(--fg); font-weight: 540; }
.statement .dim { color: #a9a69f; font-weight: 540; }

/* ===== Pillars (Lovable-style gradient cards) ===== */
.pillars { padding: 20px 0 100px; }
.pillars-head { max-width: 740px; margin-bottom: 48px; }
.pillars-head h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.024em; margin-bottom: 14px; }
.pillars-head .dim { color: var(--muted); font-size: 17px; line-height: 1.5; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(55,53,47,.14); }
.pillar-visual { height: 200px; border-radius: 10px; position: relative; overflow: hidden; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.pv-1 { background: linear-gradient(135deg, #ffe9d1 0%, #fdf3e8 55%, #fff 100%); }
.pv-2 { background: linear-gradient(135deg, #fde2db 0%, #fdeeea 55%, #fff 100%); }
.pv-3 { background: linear-gradient(135deg, #e4e9f3 0%, #eef1f7 55%, #fff 100%); }
.pv-sheet { position: absolute; width: 170px; height: 100px; background: #fff; border: 1px solid rgba(55,53,47,.12); border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.1); }
.pv-sheet-2 { transform: translate(-18px, -14px) rotate(-6deg); background: #fff8ee; }
.pv-sheet-3 { transform: translate(18px, 14px) rotate(5deg); background: #fdeae0; }
.pv-chart { width: 85%; height: 100px; }
.pv-chart svg { width: 100%; height: 100%; }
.pv-chat { width: 85%; display: flex; flex-direction: column; gap: 8px; }
.pv-row { background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 6px; padding: 8px 12px; font-size: 12px; color: var(--fg); display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.06); }
.pv-row-a { background: #e8f3ef; border-color: rgba(15,123,108,.3); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #d9730d; display: inline-block; flex-shrink: 0; }
.pv-chk { color: #0f7b6c; font-weight: 600; }
.pv-row code { background: rgba(217,115,13,.14); color: #d9730d; }

/* Pillar 3: minimal AI → ✓ handoff visual */
.pv-handoff-min { display: flex; align-items: center; gap: 14px; }
.pv-ring-min { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 10px 24px -10px rgba(55,53,47,.18); border: 2px solid rgba(55,53,47,.08); }
.pv-ring-ai { background: linear-gradient(135deg,#d9730d,#e9654b); border-color: #e9654b; color: #fff; }
.pv-ring-you { background: #fff; border-color: #0f7b6c; color: #0f7b6c; animation: ring-check-pulse 2.4s ease-in-out infinite; }
@keyframes ring-check-pulse { 0%,100% { box-shadow: 0 10px 24px -10px rgba(55,53,47,.18), 0 0 0 0 rgba(15,123,108,0); } 50% { box-shadow: 0 10px 24px -10px rgba(55,53,47,.18), 0 0 0 6px rgba(15,123,108,.14); } }
.pv-glyph { font-size: 20px; font-weight: 600; line-height: 1; }
.pv-flow { width: 60px; height: 20px; color: rgba(55,53,47,.3); }
.pillar-card h4 { font-size: 20px; letter-spacing: -0.018em; margin-bottom: 8px; }
.pillar-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.art-disc .disc { width: 160px; height: 32px; border: 1px solid rgba(55,53,47,.18); border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, 10px); }
.art-disc .disc:nth-child(2) { transform: translate(-50%, -14px); }
.art-disc .disc.d-top { transform: translate(-50%, -38px); border-color: rgba(55,53,47,.26); }
.art-cubes .cube { width: 70px; height: 70px; border: 1px solid rgba(55,53,47,.18); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg) skew(-10deg, -10deg); }
.art-cubes .c2 { transform: translate(-120%, -50%) rotate(45deg) skew(-10deg, -10deg); }
.art-cubes .c3 { transform: translate(20%, -20%) rotate(45deg) skew(-10deg, -10deg); border-color: rgba(55,53,47,.26); }
.art-stack .sheet { width: 170px; height: 110px; border: 1px solid rgba(55,53,47,.18); border-radius: 6px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--panel); }
.art-stack .sheet:nth-child(2) { transform: translate(-45%, -45%); border-color: rgba(55,53,47,.22); }
.art-stack .sheet:nth-child(3) { transform: translate(-40%, -40%); border-color: rgba(55,53,47,.26); }

/* ===== Ingest dashboard (hero-style) ===== */
.ingest-app { grid-template-columns: 220px 1fr 268px; min-height: 680px; }
.src-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.src-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.src-list li:hover { background: rgba(55,53,47,.05); }
.src-list li > div { flex: 1; min-width: 0; }
.src-list li strong { display: block; color: var(--fg); font-size: 12.5px; font-weight: 540; }
.src-list li small { display: block; color: var(--muted); font-size: 11px; }
.src-list li .rows { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 540; }
.src-list .st { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.src-list .st.green { background: var(--green); box-shadow: 0 0 6px rgba(15,123,108,.5); }
.src-list .st.amber { background: var(--amber); }
.src-list .st.grey { background: var(--surface-2); }
.ingest-row { grid-template-columns: 2.6fr 1.4fr 1.1fr 1.1fr .4fr; }
.conf { display: flex; align-items: center; gap: 8px; }
.conf i { flex: 1; max-width: 70px; height: 5px; background: var(--surface-2); border-radius: 3px; display: block; }
.conf em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 540; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.chip-count.amber { background: var(--amber); }
.chart-legend .l-green { background: #0f7b6c; }
.chart-legend .l-red   { background: var(--red); }
.area-chart.stack { height: 140px; }

/* ===== Split feature layout (left list, right card) ===== */
.feature-split { padding: 100px 0 120px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.split-left h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.024em; margin-bottom: 20px; }
.split-sub { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 40px; max-width: 520px; }
.split-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.split-item { position: relative; padding: 16px 0 16px 24px; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; transition: opacity .25s; opacity: .55; }
.split-item strong { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; font-weight: 540; }
.split-item small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.split-item .split-bar { position: absolute; left: -1px; top: 16px; bottom: 16px; width: 2px; background: transparent; border-radius: 2px; transition: background .25s; }
.split-item.active { opacity: 1; }
.split-item.active .split-bar { background: var(--accent); }
.split-right { position: relative; min-height: 480px; }
.split-glow { position: absolute; inset: -40px; background: radial-gradient(50% 50% at 50% 50%, rgba(217,115,13,.14), transparent 70%); pointer-events: none; z-index: 0; filter: blur(20px); }
.ws-stack { position: relative; z-index: 1; min-height: 440px; }
.ws-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 80px -24px rgba(55,53,47,.18); display: flex; flex-direction: column; }
.ws-panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.ws-stack .ws-panel ~ .ws-panel { position: absolute; }

/* ===== Workspace panel visuals (design pieces, not screenshots) ===== */
.ws-visual { position: relative; flex: 1; min-height: 360px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 32px; }
.wv-bg { position: absolute; inset: 0; z-index: 0; }
.wv-tables .wv-bg   { background: radial-gradient(60% 60% at 50% 40%, #ffe9d1 0%, #fdf3e8 55%, #ffffff 100%); }
.wv-formulas .wv-bg { background: radial-gradient(60% 60% at 50% 40%, #fde2db 0%, #fdeeea 55%, #ffffff 100%); }
.wv-roles .wv-bg    { background: radial-gradient(60% 60% at 50% 40%, #e4e9f3 0%, #eef1f7 55%, #ffffff 100%); }
.wv-comments .wv-bg { background: radial-gradient(60% 60% at 50% 40%, #e8e9d6 0%, #f1f1e6 55%, #ffffff 100%); }
.ws-visual > *:not(.wv-bg) { position: relative; z-index: 1; }

/* --- Panel 1: Sheet stack --- */
.sheet-stack { position: relative; width: 320px; height: 220px; }
.sheet { position: absolute; background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 10px; box-shadow: 0 20px 40px -16px rgba(55,53,47,.14); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.sheet-back  { inset: 0; transform: translate(-24px, -16px) rotate(-6deg); background: #fff8ee; opacity: .9; }
.sheet-mid   { inset: 0; transform: translate(-12px, -8px)  rotate(-3deg); background: #fdeae0; }
.sheet-front { inset: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ws-panel.active .sheet-back  { animation: sheet-fan 1.2s cubic-bezier(.2,.7,.2,1) both; }
.ws-panel.active .sheet-mid   { animation: sheet-fan 1.2s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes sheet-fan { from { transform: translate(0, 0) rotate(0); opacity: 0; } }
.sheet-rows { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.sheet-rows i { height: 10px; background: rgba(55,53,47,.08); border-radius: 3px; display: block; }
.sheet-tag { position: absolute; top: -8px; right: 14px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px; letter-spacing: .04em; }
.sheet-mini-table { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.smt-row { display: grid; grid-template-columns: 1.5fr .6fr .6fr; gap: 12px; padding: 7px 10px; background: var(--panel-2); border-radius: 6px; font-size: 11.5px; color: var(--muted); align-items: center; font-variant-numeric: tabular-nums; }
.smt-row span:first-child { color: var(--fg); font-weight: 540; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.smt-g { color: var(--green); font-weight: 540; text-align: right; }
.smt-r { color: var(--red); font-weight: 540; text-align: right; }
.smt-row.edited { background: rgba(217,115,13,.1); box-shadow: inset 0 0 0 1px rgba(217,115,13,.3); animation: cell-pulse 2.4s ease-in-out infinite; }
@keyframes cell-pulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(217,115,13,.3); } 50% { box-shadow: inset 0 0 0 1px rgba(217,115,13,.6), 0 0 0 3px rgba(217,115,13,.1); } }
.ver-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.ver-d { width: 7px; height: 7px; border-radius: 50%; background: rgba(55,53,47,.18); }
.ver-d.active { background: var(--accent); box-shadow: 0 0 0 3px rgba(217,115,13,.18); }

/* --- Panel 2: Formulas --- */
.fx-float { background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 40px -16px rgba(55,53,47,.14); display: flex; align-items: center; gap: 14px; max-width: 460px; width: 100%; }
.fx-sigma-big { font-family: ui-monospace, Menlo, monospace; font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }
.fx-code { display: flex; flex-wrap: wrap; gap: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.fx-token { padding: 2px 6px; border-radius: 4px; }
.fx-token.var { background: rgba(217,115,13,.14); color: var(--accent); font-weight: 540; }
.fx-token.op  { color: var(--dim); }
.fx-token.fn  { background: rgba(55,53,47,.06); color: var(--fg); }
.fx-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fx-chip { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(55,53,47,.1); font-size: 11.5px; color: var(--muted); font-weight: 540; }
.fx-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fx-result { margin-top: 18px; background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 10px; overflow: hidden; max-width: 320px; width: 100%; box-shadow: 0 12px 32px -16px rgba(55,53,47,.1); }
.fxr-row { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fxr-row:last-child { border-bottom: none; }
.fxr-row span:first-child { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--fg); }
.fxr-val { background: rgba(217,115,13,.1); color: var(--accent); padding: 2px 8px; border-radius: 4px; font-weight: 540; }
.wv-formulas { flex-direction: column; }
.fx-mini { color: var(--accent); font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }

/* --- Panel 3: Roles & approvals --- */
.wv-roles { flex-direction: column; }
.role-flow { display: flex; align-items: center; gap: 0; }
.role-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 90px; }
.role-node small { font-size: 11px; color: var(--muted); font-weight: 540; }
.role-node.current small { color: var(--fg); }
.avatar-ring { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(55,53,47,.14); border: 2px solid rgba(55,53,47,.08); }
.avatar-ring .avatar { width: 36px; height: 36px; }
.avatar-ring.pulse { border-color: var(--amber); animation: ring-pulse 2.4s ease-in-out infinite; }
@keyframes ring-pulse { 0%,100% { box-shadow: 0 8px 20px -8px rgba(55,53,47,.14), 0 0 0 0 rgba(217,115,13,0); } 50% { box-shadow: 0 8px 20px -8px rgba(55,53,47,.14), 0 0 0 6px rgba(217,115,13,.12); } }
.role-step { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: rgba(55,53,47,.08); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.role-step.done { background: rgba(15,123,108,.14); color: var(--green); }
.role-step.current { background: var(--amber); color: #fff; }
.role-arrow { flex: 1; height: 20px; color: rgba(55,53,47,.2); display: flex; align-items: center; margin-bottom: 24px; max-width: 60px; }
.role-arrow svg { width: 100%; height: 20px; }
.role-arrow.done { color: var(--green); }

.appr-float { margin-top: 28px; background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 12px; padding: 16px 18px; box-shadow: 0 16px 40px -16px rgba(55,53,47,.16); max-width: 340px; width: 100%; }
.appr-float-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.appr-float-top strong { font-size: 14px; color: var(--fg); font-weight: 540; flex: 1; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
.appr-float-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.appr-float-cta { display: flex; gap: 8px; }
.btn-approve { flex: 1; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 540; text-align: center; cursor: pointer; }
.btn-edit { padding: 8px 14px; border-radius: 6px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); cursor: pointer; }

/* --- Panel 4: Comments (iMessage-style chat thread) --- */
.wv-comments { padding: 28px 28px; align-items: flex-start; }
.chat-thread { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.chat-row { display: flex; align-items: flex-end; gap: 10px; max-width: 100%; }
.chat-row.chat-right { justify-content: flex-end; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#d9730d,#e9654b); display: inline-block; flex-shrink: 0; box-shadow: 0 2px 6px -2px rgba(55,53,47,.2); }
.chat-avatar.teal { background: linear-gradient(135deg,#0f7b6c,#4ac0a7); }
.chat-stack { display: flex; flex-direction: column; gap: 4px; max-width: 72%; min-width: 0; }
.chat-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 0 4px; }
.chat-meta strong { color: var(--fg); font-weight: 540; font-size: 11.5px; }
.chat-meta .chat-time { color: var(--dim); }
.chat-right .chat-meta { justify-content: flex-end; }
.chat-bubble { background: #fff; border: 1px solid rgba(55,53,47,.08); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 13px; color: var(--fg); line-height: 1.45; box-shadow: 0 10px 24px -14px rgba(55,53,47,.18); word-wrap: break-word; }
.chat-bubble strong { font-weight: 540; }
.chat-bubble-me { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 14px 14px 4px 14px; }
.chat-bubble-me .mention { background: rgba(255,255,255,.22); color: #fff; }

/* --- Shared panel footer --- */
.ws-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.ws-foot strong { color: var(--fg); font-weight: 540; }
.ws-foot-time { margin-left: auto; color: var(--dim); font-size: 11.5px; }

/* Panel active state animations for visuals */
.ws-panel .ws-visual > *:not(.wv-bg) { opacity: 0; transform: translateY(10px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.ws-panel.active .ws-visual > *:not(.wv-bg) { opacity: 1; transform: none; }
.ws-panel.active .ws-visual > *:not(.wv-bg):nth-child(2) { transition-delay: .05s; }
.ws-panel.active .ws-visual > *:not(.wv-bg):nth-child(3) { transition-delay: .15s; }
.ws-panel.active .ws-visual > *:not(.wv-bg):nth-child(4) { transition-delay: .25s; }
.ws-panel.active .ws-visual > *:not(.wv-bg):nth-child(5) { transition-delay: .35s; }
.split-card { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px -24px rgba(55,53,47,.18); }
.split-card-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.split-dots { display: flex; gap: 6px; }
.split-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d3ca; display: inline-block; }
.split-dots i:nth-child(1) { background: #e9654b; }
.split-dots i:nth-child(2) { background: #d9730d; opacity: .6; }
.split-tab { font-size: 13px; font-weight: 540; color: var(--fg); padding: 4px 10px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); }
.split-tab.muted { color: var(--muted); background: transparent; border-color: transparent; font-weight: 500; }
.split-table { padding: 4px 0; }
.st-head, .st-row { display: grid; grid-template-columns: 1.8fr .7fr .6fr .9fr .9fr .8fr; gap: 10px; padding: 10px 20px; font-size: 13px; align-items: center; }
.st-head { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); font-weight: 540; }
.st-row { border-bottom: 1px solid var(--line); color: var(--fg); font-variant-numeric: tabular-nums; }
.st-row:last-child { border-bottom: none; }
.st-row.hl { background: rgba(217,115,13,.06); }
.st-row .pos { color: var(--green); font-weight: 540; }
.st-row .neg { color: var(--red); font-weight: 540; }
.split-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; background: var(--panel-2); }
.split-foot strong { color: var(--fg); font-weight: 540; }
.split-table.compact .st-head, .split-table.compact .st-row { padding: 9px 20px; font-size: 12.5px; }
.st-row.s4, .split-table .st-head.s4 { grid-template-columns: 1.8fr .6fr .9fr .7fr; }
.st-row.s3, .split-table .st-head.s3 { grid-template-columns: 1.8fr 1fr .7fr; }
.split-table:not(.compact) .st-head { grid-template-columns: 1.8fr .6fr .9fr .7fr; }
.split-table:not(.compact) .st-row { grid-template-columns: 1.8fr .6fr .9fr .7fr; }
.split-table.compact .st-head { grid-template-columns: 1.8fr 1fr .7fr; }
.split-table.compact .st-row { grid-template-columns: 1.8fr 1fr .7fr; }
.edit-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; color: var(--muted); }
.edit-foot strong { color: var(--fg); font-weight: 540; }
.edit-foot .undo { margin-left: auto; color: var(--accent); font-size: 12px; cursor: pointer; font-weight: 540; }
.compact-flow { padding: 16px 20px; grid-template-columns: auto 1fr auto 1fr auto; }
.compact-flow .flow-step strong { font-size: 12px; }

/* Panel 1: history */
.st-row.edited { position: relative; }
.cell-edited { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cell-edited::before { content: ""; position: absolute; left: -8px; right: -4px; top: -4px; bottom: -4px; background: rgba(217,115,13,.14); border: 1px dashed rgba(217,115,13,.5); border-radius: 4px; z-index: -1; }
.cell-edited em { font-style: normal; font-size: 10px; color: var(--dim); text-decoration: line-through; }
.ws-side-panel { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.ws-side-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 10px; font-weight: 540; }
.ver-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--muted); }
.ver-row strong { display: block; color: var(--fg); font-size: 12.5px; font-weight: 540; }
.ver-row small { display: block; color: var(--dim); font-size: 11px; }
.ver-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; }
.ver-row.current .ver-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(217,115,13,.14); }

/* Panel 2: formulas */
.fx-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fx-sigma { color: var(--accent); font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 16px; }
.fx-bar code { flex: 1; background: transparent; color: var(--fg); padding: 0; font-size: 12px; }
.fx-ok { color: var(--green); font-size: 11px; font-weight: 540; }
.views-row { display: flex; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.view-pill { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.view-pill:hover { background: var(--panel); color: var(--fg); }
.view-pill.active { background: rgba(217,115,13,.1); color: var(--accent); border-color: rgba(217,115,13,.3); font-weight: 540; }
.view-pill.ghost { background: transparent; border-style: dashed; color: var(--dim); }
.fx-col { color: var(--accent) !important; font-weight: 540; }
.fx-cell { background: rgba(217,115,13,.06); color: var(--fg); font-weight: 540; padding: 2px 6px; border-radius: 3px; display: inline-block; }

/* Panel 3: approvals */
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; gap: 0; padding: 20px 20px; align-items: center; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.flow-step { display: flex; align-items: center; gap: 8px; }
.flow-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--dim); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.flow-step strong { display: block; font-size: 12px; color: var(--muted); font-weight: 540; }
.flow-step small { display: block; font-size: 10px; color: var(--dim); }
.flow-step.done span { background: var(--green); color: #fff; }
.flow-step.done strong { color: var(--fg); }
.flow-step.current span { background: var(--amber); color: #fff; box-shadow: 0 0 0 4px rgba(217,115,13,.14); }
.flow-step.current strong { color: var(--fg); }
.flow-sep { height: 2px; background: var(--surface-2); margin: 0 10px; }
.flow-sep.done { background: var(--green); }
.appr-list { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.appr-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.appr-card.urgent { border-color: rgba(217,115,13,.3); background: #fff8ee; }
.appr-top { display: flex; align-items: center; gap: 10px; }
.appr-top strong { color: var(--fg); font-size: 13px; font-weight: 540; flex: 1; }
.appr-time { font-size: 11px; color: var(--muted); font-weight: 540; }
.appr-card.urgent .appr-time { color: var(--accent); }
.appr-body { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding-left: 26px; }
.appr-cta { display: flex; gap: 6px; padding-left: 26px; margin-top: 2px; }

/* Panel 4: comments */
.row-ctx { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.row-ctx > div { flex: 1; min-width: 0; }
.row-ctx strong { display: block; color: var(--fg); font-size: 13px; font-weight: 540; }
.row-ctx small { display: block; color: var(--muted); font-size: 11.5px; }
.thread { padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.cmt { display: flex; gap: 10px; }
.cmt > div { flex: 1; }
.cmt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.cmt-top strong { color: var(--fg); font-size: 13px; font-weight: 540; }
.cmt-time { color: var(--dim); font-size: 11px; }
.cmt-body { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cmt-body em { color: var(--fg); font-style: normal; font-weight: 540; }
.cmt-compose { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.cmt-input { flex: 1; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--dim); font-size: 12.5px; }

/* ===== Asym feature layout (hero card right, copy left) ===== */
.feature-asym { padding: 100px 0 120px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.asym-left h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.024em; margin-bottom: 22px; }
.asym-left p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.asym-right { position: relative; }
.asym-glow { position: absolute; inset: -60px; background: radial-gradient(60% 60% at 30% 30%, rgba(217,115,13,.2), transparent 60%), radial-gradient(50% 50% at 80% 70%, rgba(233,101,75,.18), transparent 60%); pointer-events: none; z-index: 0; filter: blur(30px); animation: glow-float 10s ease-in-out infinite; }
@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -8px) scale(1.05); }
}
.asym-card { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 24px; box-shadow: 0 30px 100px -30px rgba(55,53,47,.22); }
.asym-top { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: 14px; }
.asym-top strong { color: var(--fg); font-weight: 540; }
.asym-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.kpi { background: var(--panel-2); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi-k { font-size: 24px; font-weight: 540; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.asym-budget { padding: 4px 0; }
.budget-track { position: relative; height: 14px; background: var(--surface); border-radius: 7px; overflow: hidden; margin-bottom: 14px; }
.seg-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; }
.budget-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 12.5px; color: var(--muted); }
.budget-legend span { display: flex; align-items: center; gap: 8px; }
.budget-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ===== RFQ Scenario cards (design-piece) ===== */
.scn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scn-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.scn-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px -16px rgba(55,53,47,.18); border-color: var(--line-strong); }
.scn-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scn-cons .scn-bg { background: radial-gradient(80% 60% at 50% 0%, #e5efe9 0%, #eff6f1 40%, var(--panel) 80%); }
.scn-bal .scn-bg  { background: radial-gradient(80% 60% at 50% 0%, #ffe9d1 0%, #fdf3e8 40%, var(--panel) 80%); }
.scn-agg .scn-bg  { background: radial-gradient(80% 60% at 50% 0%, #fde2db 0%, #fdeeea 40%, var(--panel) 80%); }
.scn-card > *:not(.scn-bg) { position: relative; z-index: 1; }
.scn-card.featured { border-color: rgba(217,115,13,.4); box-shadow: 0 24px 60px -24px rgba(217,115,13,.3); }
.scn-ribbon-float { position: absolute; top: 14px; right: 14px; z-index: 2; background: linear-gradient(90deg, var(--accent), #e9654b, var(--accent)); background-size: 200% 100%; animation: ribbon-shimmer 3s linear infinite; color: #fff; font-size: 10px; letter-spacing: .08em; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; font-weight: 600; }
.scn-risk-ring { position: relative; width: 48px; height: 48px; }
.scn-risk-ring svg { width: 100%; height: 100%; }
.risk-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--fg); text-transform: uppercase; letter-spacing: .04em; }
.scn-name-row strong { font-size: 15px; color: var(--fg); font-weight: 540; letter-spacing: -0.01em; }
.scn-money-big { font-size: 42px; font-weight: 540; letter-spacing: -0.03em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.scn-money-big em { font-style: normal; font-size: 20px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.scn-sub { font-size: 12.5px; color: var(--muted); }
.scn-chips { display: flex; flex-direction: column; gap: 5px; }
.scn-chip { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.6); padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(55,53,47,.06); backdrop-filter: blur(6px); align-self: flex-start; }
.scn-chip.accent { color: var(--accent); background: rgba(217,115,13,.1); border-color: rgba(217,115,13,.2); font-weight: 540; }
.scn-wave { margin-top: auto; margin-left: -18px; margin-right: -18px; margin-bottom: -20px; height: 50px; }
.scn-wave svg { width: 100%; height: 100%; display: block; }

.scn-foot-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; background: var(--surface); border-radius: 10px; flex-wrap: wrap; }
.scn-foot-tag { font-size: 12px; color: var(--muted); margin-right: auto; }
.scn-foot-tag strong { color: var(--fg); font-weight: 540; }
.accent-chip { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; font-weight: 540; }

/* kept legacy classes used elsewhere */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.scenario { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, border-color .2s; }
.scenario:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.scenario-active { background: #fff8ee; border: 1px solid rgba(217,115,13,.4); box-shadow: 0 10px 32px -14px rgba(217,115,13,.3); }
.scn-ribbon { position: absolute; top: -9px; left: 14px; background: var(--accent); color: #fff; font-size: 10px; letter-spacing: .08em; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; font-weight: 600; }
.scn-head { display: flex; align-items: center; justify-content: space-between; }
.scn-name { font-weight: 540; font-size: 14px; color: var(--fg); }
.scn-tag { font-size: 10px; padding: 2px 6px; border-radius: 10px; letter-spacing: .04em; font-weight: 540; }
.scn-tag-low { background: rgba(15,123,108,.14); color: #0f7b6c; }
.scn-tag-mid { background: rgba(217,115,13,.14); color: #d9730d; }
.scn-tag-high { background: rgba(224,62,62,.14); color: #c43d3d; }
.scn-k { display: flex; flex-direction: column; margin: 4px 0 6px; }
.scn-k span { font-size: 22px; font-weight: 540; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.scn-k small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-top: 2px; }
.scn-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.scn-row b { color: var(--fg); font-weight: 540; font-variant-numeric: tabular-nums; }
.scn-foot { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.asym-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-chip { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s; }
.action-chip:hover { background: var(--panel); color: var(--fg); }

/* ===== Complaints dashboard ===== */
.complaints-wrap { display: flex; flex-direction: column; gap: 16px; }
.complaint-banner { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: linear-gradient(90deg, #fdebec 0%, #fef4e8 100%); border: 1px solid rgba(224,62,62,.25); border-radius: 10px; animation: banner-pulse 3s ease-in-out infinite; }
@keyframes banner-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,62,62,0); } 50% { box-shadow: 0 0 0 6px rgba(224,62,62,.08); } }
.cb-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(224,62,62,.14); color: #c43d3d; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cb-text strong { color: var(--fg); font-weight: 540; }
.cb-text .dim { font-size: 13px; }
.cb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cb-btn { font-size: 13px; padding: 7px 14px; }

.complaints { display: grid; grid-template-columns: 220px 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 360px; }
.cmp-side { background: var(--panel-2); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cmp-side-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 10px 6px 4px; font-weight: 540; }
.cmp-side-h.mt { margin-top: 10px; }
.cmp-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.cmp-chip:hover { background: rgba(55,53,47,.05); color: var(--fg); }
.cmp-chip.active { background: var(--panel); color: var(--fg); font-weight: 540; border: 1px solid var(--line); }
.cmp-chip .n { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; }
.cmp-chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cmp-chip .dot.red { background: var(--red); }
.cmp-chip .dot.amber { background: var(--amber); }
.cmp-chip .dot.green { background: var(--green); }
.cmp-skill { padding: 7px 10px; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.cmp-skill:hover { background: rgba(217,115,13,.08); color: var(--accent); }

.cmp-main { background: var(--panel); display: flex; flex-direction: column; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 2.4fr .8fr .9fr 1.1fr .8fr .8fr; gap: 12px; align-items: center; padding: 9px 18px; font-size: 13px; }
.cmp-head { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); font-weight: 540; background: var(--panel-2); }
.cmp-row { border-bottom: 1px solid var(--line); color: var(--muted); transition: background .15s; }
.cmp-row:hover { background: var(--surface); }
.cmp-row-alert { background: rgba(224,62,62,.05); border-left: 3px solid var(--red); padding-left: 17px; }
.cmp-row-alert:hover { background: rgba(224,62,62,.08); }
.cmp-sku { display: flex; align-items: center; gap: 10px; }
.cmp-sku strong { display: block; color: var(--fg); font-weight: 540; font-size: 13.5px; }
.cmp-sku small { color: var(--muted); font-size: 12px; }
.sku-img { width: 32px; height: 32px; border-radius: 6px; display: inline-block; flex-shrink: 0; position: relative; overflow: hidden; }
.sku-img::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 2px; }
.sku-img.amber { background: linear-gradient(135deg,#f5c488,#e2965a); }
.sku-img.rose  { background: linear-gradient(135deg,#f3a99d,#d57464); }
.sku-img.sky   { background: linear-gradient(135deg,#a9c4e0,#7c9fc9); }
.sku-img.lime  { background: linear-gradient(135deg,#c7d99a,#a3bf6b); }
.pill-sla { font-size: 11px; font-weight: 540; padding: 3px 8px; border-radius: 10px; width: fit-content; letter-spacing: .02em; }
.pill-sla.red   { background: rgba(224,62,62,.14); color: #c43d3d; }
.pill-sla.amber { background: rgba(217,115,13,.14); color: #d9730d; }
.pill-sla.green { background: rgba(135,131,120,.14); color: var(--muted); }
.cmp-cta { color: var(--fg); font-size: 12.5px; cursor: pointer; opacity: .6; font-weight: 540; }
.cmp-row:hover .cmp-cta { opacity: 1; }
.cmp-foot { padding: 12px 20px; display: flex; align-items: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel-2); }

/* SKU card variant (for intake board) */
.sku-card .sku-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sku-card .sku-row .t { font-size: 13px; color: var(--fg); font-weight: 540; }
.sku-card .sku-row .dim { font-size: 11.5px; margin-top: 2px; }
.sku-card .sku-img { width: 28px; height: 28px; border-radius: 5px; }

/* ===== Onboarding / Connect-data flow ===== */
.onboard { display: flex; flex-direction: column; gap: 20px; }
.onb-section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 8px 32px -16px rgba(55,53,47,.08); }
.onb-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.onb-head strong { font-size: 15px; color: var(--fg); font-weight: 540; }
.onb-head code { background: rgba(217,115,13,.08); color: var(--accent); padding: 2px 6px; font-size: 13px; }
.onb-head .dim { font-size: 12.5px; }

.connector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.conn-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; transition: transform .25s, border-color .25s, box-shadow .25s; cursor: pointer; }
.conn-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px -12px rgba(55,53,47,.14); }
.conn-card.ghost { border-style: dashed; background: transparent; }
.conn-card > div { flex: 1; min-width: 0; }
.conn-card strong { display: block; color: var(--fg); font-size: 13px; font-weight: 540; }
.conn-card small { display: block; color: var(--muted); font-size: 11.5px; }
.conn-logo { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.cl-ml   { background: linear-gradient(135deg,#ffe600,#ffb800); color: #1a1a1a; }
.cl-nubi { background: linear-gradient(135deg,#2d7fff,#4ecdc4); }
.cl-xls  { background: linear-gradient(135deg,#107c41,#4caf7a); }
.cl-pdf  { background: linear-gradient(135deg,#e03e3e,#f66868); font-size: 10px; }
.cl-mail { background: linear-gradient(135deg,#6940a5,#a78bfa); }
.cl-shop { background: linear-gradient(135deg,#95bf47,#5e8e3e); }
.cl-amz  { background: linear-gradient(135deg,#232f3e,#ff9900); color: #fff; }
.cl-wa   { background: linear-gradient(135deg,#25d366,#128c7e); }
.conn-card.ghost .conn-logo { background: var(--surface-2); color: var(--dim); }
.conn-tag { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: var(--surface); color: var(--muted); font-weight: 540; flex-shrink: 0; }
.conn-tag.green { background: rgba(15,123,108,.14); color: var(--green); }

.step-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 540; padding: 2px 10px 2px 0; border-right: 1px solid var(--line); flex-shrink: 0; }
.step:last-child { border-right: none; }
.step span { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--dim); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.step.done span { background: var(--green); color: #fff; }
.step.done { color: var(--fg); }
.step.current span { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(217,115,13,.14); animation: pulse 2s ease-in-out infinite; }
.step.current { color: var(--fg); }

.map-review { display: flex; flex-direction: column; gap: 10px; }
.map-row { display: grid; grid-template-columns: 1.1fr 24px 1.6fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s; }
.map-row:hover { border-color: var(--line-strong); }
.map-row.warn { border-color: rgba(217,115,13,.3); background: #fff8ee; }
.map-row.ghost { opacity: .62; }
.src-col { min-width: 0; }
.src-name { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--fg); font-weight: 540; margin-bottom: 4px; }
.samples { display: flex; gap: 6px; flex-wrap: wrap; }
.samples span { font-size: 10.5px; color: var(--muted); background: rgba(55,53,47,.05); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; }
.arrow { color: var(--dim); font-size: 16px; text-align: center; }
.tgt-col { min-width: 0; }
.tgt-name { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tgt-name strong { color: var(--fg); font-weight: 540; }
.tgt-chip { width: 18px; height: 18px; border-radius: 4px; background: rgba(217,115,13,.14); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.conf-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.conf-bar { flex: 0 0 60px; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: inline-block; }
.conf-bar span { display: block; height: 100%; border-radius: 3px; animation: conf-grow 1.1s cubic-bezier(.2,.7,.2,1) both; }
.conf-row em { font-style: normal; color: var(--fg); font-weight: 540; font-variant-numeric: tabular-nums; }
.warn-text { color: var(--accent); font-weight: 540; }
.map-act { display: flex; gap: 6px; flex-shrink: 0; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 10px 14px 0; border-top: 1px solid var(--line); }

/* ===== Global animations ===== */

/* Sparkline draw-in */
.spark polyline, .cmp-kpi .spark polyline, .sku-list-row .spark polyline { stroke-dasharray: 240; stroke-dashoffset: 240; }
.reveal.in .spark polyline { animation: spark-draw 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }

/* Area chart lines draw-in */
.area-chart path:not([fill="url(#ag1)"]) { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.reveal.in .area-chart path:not([fill="url(#ag1)"]) { animation: area-draw 2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes area-draw { to { stroke-dashoffset: 0; } }
.area-chart path[fill="url(#ag1)"] { opacity: 0; }
.reveal.in .area-chart path[fill="url(#ag1)"] { animation: fade-in 1.2s ease-out .4s both; }

/* Bars grow */
.area-chart g rect, .cmp-trend .ct-bar i, .agent-chart rect, .cs-bar i, .cover-bar i, .scn-alloc span, .kpi-bar span, .conf i span { transform-origin: 0 100%; }
.reveal.in .area-chart g rect { animation: bar-grow .9s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in .area-chart g g:nth-child(1) rect { animation-delay: .05s }
.reveal.in .area-chart g g:nth-child(2) rect { animation-delay: .08s }
.reveal.in .area-chart g g:nth-child(3) rect { animation-delay: .11s }
.reveal.in .area-chart g g:nth-child(4) rect { animation-delay: .14s }
.reveal.in .area-chart g g:nth-child(5) rect { animation-delay: .17s }
.reveal.in .area-chart g g:nth-child(6) rect { animation-delay: .2s }
.reveal.in .area-chart g g:nth-child(7) rect { animation-delay: .23s }
.reveal.in .agent-chart rect { animation: bar-grow .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: .3s; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Horizontal bars (cover bars, kpi bar fill, allocation strips) */
.reveal.in .ct-bar i, .reveal.in .cs-bar i, .reveal.in .cover-bar i, .reveal.in .kpi-bar span, .reveal.in .scn-alloc span, .reveal.in .conf-bar span { animation: hbar-grow 1s cubic-bezier(.2,.7,.2,1) both; transform-origin: 0 0; }
@keyframes hbar-grow { from { transform: scaleX(0); } }
@keyframes conf-grow { from { transform: scaleX(0); } }

/* KPI tile stagger */
.reveal .kpi-tile, .reveal .cmp-kpi, .reveal .conn-card, .reveal .agent-card, .reveal .scenario, .reveal .pillar-card { opacity: 0; transform: translateY(14px); }
.reveal.in .kpi-tile, .reveal.in .cmp-kpi, .reveal.in .conn-card, .reveal.in .agent-card, .reveal.in .scenario, .reveal.in .pillar-card { animation: tile-up .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in .kpi-tile:nth-child(1), .reveal.in .cmp-kpi:nth-child(1), .reveal.in .conn-card:nth-child(1), .reveal.in .agent-card:nth-child(1), .reveal.in .scenario:nth-child(1), .reveal.in .pillar-card:nth-child(1) { animation-delay: .05s; }
.reveal.in .kpi-tile:nth-child(2), .reveal.in .cmp-kpi:nth-child(2), .reveal.in .conn-card:nth-child(2), .reveal.in .agent-card:nth-child(2), .reveal.in .scenario:nth-child(2), .reveal.in .pillar-card:nth-child(2) { animation-delay: .12s; }
.reveal.in .kpi-tile:nth-child(3), .reveal.in .cmp-kpi:nth-child(3), .reveal.in .conn-card:nth-child(3), .reveal.in .agent-card:nth-child(3), .reveal.in .scenario:nth-child(3), .reveal.in .pillar-card:nth-child(3) { animation-delay: .19s; }
.reveal.in .kpi-tile:nth-child(4), .reveal.in .cmp-kpi:nth-child(4), .reveal.in .conn-card:nth-child(4), .reveal.in .agent-card:nth-child(4) { animation-delay: .26s; }
.reveal.in .conn-card:nth-child(5) { animation-delay: .33s; }
.reveal.in .conn-card:nth-child(6) { animation-delay: .4s; }
.reveal.in .conn-card:nth-child(7) { animation-delay: .47s; }
.reveal.in .conn-card:nth-child(8) { animation-delay: .54s; }
.reveal.in .conn-card:nth-child(9) { animation-delay: .61s; }
@keyframes tile-up { to { opacity: 1; transform: none; } }

/* SKU rows stagger */
.reveal .sku-list-row, .reveal .cmp-row, .reveal .map-row { opacity: 0; transform: translateX(-8px); }
.reveal.in .sku-list-row, .reveal.in .cmp-row, .reveal.in .map-row { animation: row-in .6s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in .sku-list-row:nth-child(2), .reveal.in .cmp-row:nth-child(2), .reveal.in .map-row:nth-child(2) { animation-delay: .1s; }
.reveal.in .sku-list-row:nth-child(3), .reveal.in .cmp-row:nth-child(3), .reveal.in .map-row:nth-child(3) { animation-delay: .18s; }
.reveal.in .sku-list-row:nth-child(4), .reveal.in .cmp-row:nth-child(4), .reveal.in .map-row:nth-child(4) { animation-delay: .26s; }
.reveal.in .sku-list-row:nth-child(5), .reveal.in .cmp-row:nth-child(5), .reveal.in .map-row:nth-child(5) { animation-delay: .34s; }
.reveal.in .sku-list-row:nth-child(6), .reveal.in .cmp-row:nth-child(6) { animation-delay: .42s; }
@keyframes row-in { to { opacity: 1; transform: none; } }

/* Donut chart draw */
.agent-donut svg circle:not([stroke="var(--surface-2)"]) { stroke-dasharray: 0 290; transition: stroke-dasharray 1.2s cubic-bezier(.2,.7,.2,1); }
.reveal.in .agent-donut svg circle:nth-child(3) { animation: donut-1 1.2s cubic-bezier(.2,.7,.2,1) .3s both; }
.reveal.in .agent-donut svg circle:nth-child(4) { animation: donut-2 1.2s cubic-bezier(.2,.7,.2,1) .5s both; }
.reveal.in .agent-donut svg circle:nth-child(5) { animation: donut-3 1.2s cubic-bezier(.2,.7,.2,1) .7s both; }
.reveal.in .agent-donut svg circle:nth-child(6) { animation: donut-4 1.2s cubic-bezier(.2,.7,.2,1) .9s both; }
@keyframes donut-1 { from { stroke-dasharray: 0 290; } to { stroke-dasharray: 107 290; } }
@keyframes donut-2 { from { stroke-dasharray: 0 290; } to { stroke-dasharray: 66 290; } }
@keyframes donut-3 { from { stroke-dasharray: 0 290; } to { stroke-dasharray: 68 290; } }
@keyframes donut-4 { from { stroke-dasharray: 0 290; } to { stroke-dasharray: 32 290; } }

/* Approval card urgency pulse */
.appr-card.urgent { animation: urgent-glow 3s ease-in-out infinite; }
@keyframes urgent-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(217,115,13,0); } 50% { box-shadow: 0 0 0 4px rgba(217,115,13,.1); } }

/* Scenario recommended ribbon shimmer */
.scn-ribbon { background: linear-gradient(90deg, var(--accent), #e9654b, var(--accent)); background-size: 200% 100%; animation: ribbon-shimmer 3s linear infinite; }
@keyframes ribbon-shimmer { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* Alert / stock cover bars subtle shimmer on reveal */
.cs-bar i, .ct-bar i, .cover-bar i { position: relative; overflow: hidden; }

/* Agent icon idle wobble on red/pulse dots */
.agent-dot.pulse { animation: pulse 2s ease-in-out infinite; }
.agent-dot.red { animation: pulse 2.4s ease-in-out infinite; }

/* Fade helper */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Tab underline slide */
.tab { position: relative; }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); animation: tab-underline .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes tab-underline { from { transform: scaleX(0); transform-origin: 0 0; } }
.tab.active { border-bottom-color: transparent; }

/* Button micro-hover */
.btn:hover, .btn-tiny:hover { transform: translateY(-1px); transition: transform .15s, background .15s; }

/* Learn-link arrow bob */
.learn:hover span { animation: arrow-bob .6s ease-in-out; }
@keyframes arrow-bob { 50% { transform: translateX(6px); } }

/* Status/alert icon ambient breathe */
.cb-ico { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Hero shot subtle float */
.hero-shot { animation: float-up 10s ease-in-out infinite; }
@keyframes float-up { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Pillar card visuals: parallax on hover */
.pillar-card:hover .pv-sheet { transform: translate(-18px, -18px) rotate(-6deg); }
.pillar-visual > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }

/* ===== Feature sections (original wide-art layout, kept for 2 sections) ===== */
.feature { padding: 80px 0 80px; border-bottom: 1px solid var(--line); }
.feature-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.feature-head h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.024em; }
.feature-copy p { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 540px; }
.learn { color: var(--fg); display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 15px; font-weight: 500; }
.learn span { transition: transform .2s; }
.learn:hover span { transform: translateX(4px); }
.feature-art { margin-top: 80px; position: relative; }

/* intake art */
.art-intake { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 420px; }
.slack { background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.slack-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.slack-top .s-icon { color: var(--muted); }
.slack-top .more { margin-left: auto; color: var(--muted); }
.s-msg { display: flex; gap: 10px; }
.s-msg strong { font-weight: 540; color: var(--fg); }
.s-msg > div { color: #504e46; }
.s-compose { margin-top: auto; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.mention { color: #d9730d; background: rgba(217,115,13,.14); padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.caret { color: var(--muted); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.board { background: var(--surface); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.col-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 6px 8px; }
.col-head .count { margin-left: 6px; color: var(--dim); }
.col-head .plus { margin-left: auto; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.card .t { color: var(--fg); font-size: 13px; }
.card .meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.card .bar { display: inline-block; width: 14px; height: 10px; background: linear-gradient(to top, #c7c3b9 30%, #a9a69f 30% 60%, #787774 60%); clip-path: polygon(0 100%, 0 70%, 25% 70%, 25% 40%, 50% 40%, 50% 10%, 75% 10%, 75% 55%, 100% 55%, 100% 100%); }
.tag { padding: 2px 6px; border-radius: 3px; background: rgba(55,53,47,.06); font-size: 11px; }
.tag.red { color: var(--red); }
.tag.blue { color: var(--blue); }
.tag.violet { color: var(--violet); }
.tag.green { color: var(--green); }
.tag.amber { color: var(--amber); }

/* plan art */
.art-plan { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 420px; }
.timeline { background: var(--panel); padding: 20px 24px; }
.tl-head { display: grid; grid-template-columns: repeat(19, 1fr); gap: 4px; color: var(--dim); font-size: 10px; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px dashed rgba(55,53,47,.1); }
.tl-head .mon { color: var(--muted); }
.tl-row { padding: 22px 0 10px; border-bottom: 1px dashed rgba(55,53,47,.07); }
.tl-title { font-size: 13px; color: var(--fg); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tl-title .emoji { opacity: .8; }
.tl-title .check { color: var(--green); font-size: 11px; }
.tl-bar { position: relative; height: 22px; display: flex; }
.seg { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 10px; }
.seg.a { width: 36%; background: rgba(217,115,13,.18); margin-left: 8%; }
.seg.b { width: 18%; background: rgba(217,115,13,.18); margin-left: 2px; }
.seg.c { width: 20%; background: rgba(224,62,62,.15); border: 1px dashed rgba(224,62,62,.4); margin-left: 2px; }
.seg.d { width: 42%; background: rgba(11,110,153,.15); margin-left: 24%; }
.seg.e { width: 32%; background: rgba(55,53,47,.08); margin-left: 56%; opacity: .7; }
.tl-caps { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 6px; padding: 0 6px; }

.scatter { background: var(--panel); padding: 18px 22px; display: flex; flex-direction: column; }
.scatter-top { font-size: 13px; color: var(--fg); font-weight: 540; margin-bottom: 10px; }
.scatter-svg { width: 100%; flex: 1; min-height: 280px; }
.scatter-foot { display: flex; justify-content: space-around; color: var(--dim); font-size: 11px; margin-top: 6px; }

/* Agents grid - visual portrait cards */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 440px; }
.agent-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.agent-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px -16px rgba(55,53,47,.18); border-color: var(--line-strong); }
.ag-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ag-stock .ag-bg      { background: radial-gradient(80% 60% at 50% 0%, #ffe9d1 0%, #fdf3e8 40%, var(--panel) 80%); }
.ag-complaints .ag-bg { background: radial-gradient(80% 60% at 50% 0%, #fde2db 0%, #fdeeea 40%, var(--panel) 80%); }
.ag-reorder .ag-bg    { background: radial-gradient(80% 60% at 50% 0%, #e5efe9 0%, #eff6f1 40%, var(--panel) 80%); }
.ag-cost .ag-bg       { background: radial-gradient(80% 60% at 50% 0%, #e4e9f3 0%, #eef1f7 40%, var(--panel) 80%); }
.agent-card > *:not(.ag-bg) { position: relative; z-index: 1; }
.agent-active { border-color: rgba(15,123,108,.3); box-shadow: 0 24px 60px -24px rgba(15,123,108,.25); }

.ag-top { display: flex; align-items: center; justify-content: space-between; }
.ag-icon-ring { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(55,53,47,.14); border: 2px solid rgba(55,53,47,.08); }
.ag-icon-ring .ag-icon { font-size: 18px; line-height: 1; }
.ring-amber { border-color: var(--amber); color: var(--amber); }
.ring-red   { border-color: var(--red); color: var(--red); }
.ring-blue  { border-color: var(--blue); color: var(--blue); }
.ring-grad  { border: none; background: linear-gradient(135deg, #0f7b6c, #4ac0a7); color: #fff; padding: 0; }
.ring-grad .ag-icon { color: #fff; }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; }
.ag-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(15,123,108,.5); }
.ag-dot.amber { background: var(--amber); }
.ag-dot.red { background: var(--red); }
.ag-dot.pulse { animation: pulse 2s ease-in-out infinite; }

.ag-headline { }
.ag-headline strong { display: block; color: var(--fg); font-size: 14px; font-weight: 540; letter-spacing: -0.01em; }
.ag-headline small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }

.ag-hero { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.ag-big-num { font-size: 42px; font-weight: 540; letter-spacing: -0.03em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.ag-big-num em { font-style: normal; font-size: 20px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.ag-caption { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ag-caption strong { color: var(--fg); font-weight: 540; }

.ag-viz { background: rgba(255,255,255,.6); border-radius: 10px; padding: 12px; backdrop-filter: blur(6px); border: 1px solid rgba(55,53,47,.06); }

.ag-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.ag-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ag-bar i { display: block; width: 100%; min-height: 4px; border-radius: 3px 3px 0 0; background: var(--surface-2); }
.ag-bar.critical i { background: linear-gradient(to top, #c43d3d, #e26d6d); box-shadow: 0 0 12px rgba(224,62,62,.3); animation: bar-flash 1.8s ease-in-out infinite; }
.ag-bar.warn i { background: linear-gradient(to top, #d9730d, #e9a04b); }
.ag-bar.ok i { background: linear-gradient(to top, #0f7b6c, #4ac0a7); }
.ag-bar small { font-size: 9px; color: var(--dim); font-family: ui-monospace, Menlo, monospace; }
@keyframes bar-flash { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.ag-spike { display: flex; flex-direction: column; gap: 6px; }
.ag-spike svg { width: 100%; height: 60px; }
.ag-spike-tag { font-size: 10.5px; color: var(--red); font-weight: 540; text-align: right; }

.ag-donut-wrap { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.6); border-radius: 10px; padding: 10px; backdrop-filter: blur(6px); border: 1px solid rgba(55,53,47,.06); }
.ag-donut { width: 108px; height: 108px; flex-shrink: 0; }
.ag-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; font-size: 11px; color: var(--muted); }
.ag-legend li { display: flex; align-items: center; gap: 6px; }
.ag-legend i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

.ag-line svg { width: 100%; height: 60px; display: block; }
.ag-line-tags { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.ag-line-tags strong { color: var(--fg); font-weight: 540; margin-left: 4px; }

.ag-float-card { background: #fff; border: 1px solid rgba(55,53,47,.1); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 24px -10px rgba(55,53,47,.14); margin-top: auto; }
.afc-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--fg); }
.afc-top strong { font-weight: 540; }
.afc-chip { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.afc-chip.amber { background: rgba(217,115,13,.14); color: var(--amber); }
.afc-chip.red { background: rgba(224,62,62,.14); color: var(--red); }
.afc-chip.grad { background: linear-gradient(135deg,#0f7b6c,#4ac0a7); color: #fff; }
.afc-cta { display: flex; gap: 6px; }
.afc-btn { flex: 1; text-align: center; background: var(--fg); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 540; cursor: pointer; transition: background .15s; }
.afc-btn:hover { background: #504e46; }
.agent-head { display: flex; align-items: center; gap: 10px; }
.agent-head strong { display: block; color: var(--fg); font-size: 13.5px; font-weight: 540; }
.agent-head small { display: block; color: var(--muted); font-size: 11px; }
.agent-head > div { flex: 1; min-width: 0; }
.agent-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.ai-amber { background: rgba(217,115,13,.14); color: var(--amber); }
.ai-coral { background: rgba(224,62,62,.14); color: var(--red); }
.ai-grad { background: linear-gradient(135deg,var(--accent),#e9654b); color: #fff; position: relative; }
.ai-grad::before { content: "◆"; font-size: 14px; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.agent-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(15,123,108,.4); }
.agent-dot.amber { background: var(--amber); }
.agent-dot.red { background: var(--red); }
.agent-dot.pulse { animation: pulse 2s ease-in-out infinite; }

.agent-metric { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.am-k { font-size: 28px; font-weight: 540; letter-spacing: -0.025em; color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }
.am-u { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.am-l { font-size: 12px; color: var(--muted); line-height: 1.4; }
.am-l strong { color: var(--fg); font-weight: 540; }
.am-trend { font-size: 11px; color: var(--muted); font-weight: 540; margin-top: 2px; }
.am-trend.neg { color: var(--red); }
.am-trend.pos { color: var(--green); }

.cover-stack { display: flex; flex-direction: column; gap: 6px; }
.cs-row { display: grid; grid-template-columns: 1fr 70px 24px; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.cs-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.cs-bar i { display: block; height: 100%; border-radius: 3px; }
.cs-row small.num { color: var(--fg); font-weight: 540; text-align: right; font-size: 11px; }

.agent-chart { width: 100%; height: 70px; display: block; }

.agent-breakdown { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 11.5px; color: var(--muted); }
.agent-breakdown span { display: flex; align-items: center; gap: 4px; }
.agent-breakdown i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.agent-breakdown strong { color: var(--fg); font-weight: 540; margin: 0 3px; }
.agent-breakdown em { font-style: normal; }
.agent-breakdown em.pos { color: var(--green); }
.agent-breakdown em.neg { color: var(--red); }

.agent-donut { display: flex; align-items: center; gap: 12px; }
.agent-donut svg { width: 92px; height: 92px; flex-shrink: 0; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; font-size: 11px; color: var(--muted); }
.donut-legend li { display: flex; align-items: center; gap: 6px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.donut-legend small { margin-left: auto; color: var(--fg); font-weight: 540; font-variant-numeric: tabular-nums; }

.agent-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; }
.agent-pill { flex: 1; font-size: 11.5px; color: var(--fg); background: var(--surface); padding: 6px 10px; border-radius: 6px; font-weight: 540; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-pill.coral { background: rgba(224,62,62,.08); color: #c43d3d; }
.agent-cta { font-size: 11.5px; color: var(--accent); font-weight: 540; cursor: pointer; flex-shrink: 0; }

/* Enhanced RFQ scenarios */
.scn-money { font-size: 28px; font-weight: 540; letter-spacing: -0.025em; color: var(--fg); font-variant-numeric: tabular-nums; margin: 4px 0 6px; }
.scn-alloc { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.scn-alloc span { display: block; height: 100%; }
.scn-stats { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.scn-stats li { display: flex; flex-direction: column; gap: 1px; }
.scn-stats small { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.scn-stats b { font-size: 13px; color: var(--fg); font-weight: 540; font-variant-numeric: tabular-nums; }
.scn-cash { padding-top: 10px; border-top: 1px dashed var(--line); }
.scn-cash small { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.scn-cash svg { width: 100%; height: 36px; display: block; }
.asym-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; padding: 10px 12px; background: var(--surface); border-radius: 6px; }
.asym-legend span { display: flex; align-items: center; gap: 6px; }
.asym-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Complaints KPI tiles + trend */
.cmp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cmp-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 82px; transition: transform .25s, border-color .25s; }
.cmp-kpi:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.cmp-kpi-k { font-size: 24px; font-weight: 540; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cmp-kpi-l { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 540; }
.cmp-kpi .spark { margin-top: auto; height: 24px; }
.cmp-kpi-sku { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cmp-kpi-sku strong { display: block; color: var(--fg); font-size: 12.5px; font-weight: 540; }
.cmp-kpi-sku small { display: block; color: var(--muted); font-size: 11px; }
.cmp-trend { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.cmp-trend-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cmp-trend-head strong { color: var(--fg); font-size: 13px; font-weight: 540; }
.cmp-trend-head .dim { font-size: 12px; }
.cmp-trend-rows { display: flex; flex-direction: column; gap: 6px; }
.ctr { display: grid; grid-template-columns: 180px 1fr 30px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.ctr small { font-size: 12px; }
.ctr .num { color: var(--fg); font-weight: 540; text-align: right; font-size: 12px; }
.ct-bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.ct-bar i { display: block; height: 100%; border-radius: 4px; }

/* build art */
.art-build { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 420px; font-size: 13px; }
.prlist { background: var(--panel); padding: 10px 6px; }
.group { display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 8px 10px; font-size: 12px; }
.group .caret { color: var(--dim); font-size: 10px; }
.pr { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 26px; color: var(--muted); border-radius: 4px; }
.pr:hover { background: var(--surface); color: var(--fg); }
.pr .code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--dim); background: none; padding: 0; min-width: 190px; }
.pr .chip { font-size: 10px; }

.diff { background: var(--surface); display: flex; flex-direction: column; }
.diff-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--panel); }
.diff-top .file { font-family: ui-monospace, Menlo, monospace; }
.diff-top .dim { margin-left: auto; }
.code-pane { margin: 0; padding: 12px 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.7; color: #504e46; white-space: pre; overflow-x: auto; }
.code-pane .ln { display: inline-block; width: 36px; padding-right: 10px; text-align: right; color: var(--dim); user-select: none; }
.code-pane .ln.rm { color: var(--red); }
.code-pane .rm-l { background: rgba(224,62,62,.08); display: inline-block; padding-right: 60px; }
.code-pane .kw { color: var(--violet); }
.code-pane .str { color: #0f7b6c; }
.code-pane .fn { color: var(--blue); }
.code-pane .tag2 { color: var(--accent); }

/* ===== Changelog ===== */
.changelog { padding: 60px 0 100px; }
.changelog h2 { font-size: 44px; letter-spacing: -0.022em; margin-bottom: 60px; }
.cl-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 72px; }
.cl-line { position: absolute; top: 20px; left: 0; right: 0; height: 1px; background: var(--line); }
.cl-item { position: relative; }
.cl-dot { position: absolute; top: -56px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #c7c3b9; }
.cl-dot.active { background: var(--accent); box-shadow: 0 0 0 4px rgba(217,115,13,.18); }
.cl-item h4 { font-size: 16px; margin-bottom: 10px; margin-top: 8px; }
.cl-item p { color: var(--muted); font-size: 14px; }
.cl-item time { display: block; color: var(--dim); font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .08em; margin-top: 18px; }
.viewall { margin-top: 48px; }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0 40px; }
.quote { position: relative; border-radius: 10px; padding: 44px 44px 36px; min-height: 420px; color: var(--fg); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.q-blue { background: #fdebec; }
.q-lime { background: #f1f1ef; }
.quote blockquote { margin: 0; font-size: 26px; line-height: 1.25; letter-spacing: -0.018em; font-weight: 500; max-width: 520px; }
.quote-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote-foot strong { font-weight: 560; }
.quote-foot .dim { color: var(--muted); font-size: 13px; }
.qlogo { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: rgba(55,53,47,.08); color: var(--fg); }

.customers-foot { display: flex; justify-content: space-between; align-items: center; padding: 40px 0 100px; color: var(--muted); border-bottom: 1px solid var(--line); gap: 20px; }
.customers-foot strong { color: var(--fg); font-weight: 540; }

/* ===== CTA ===== */
.cta { text-align: center; padding: 140px 0 160px; }
.cta h2 { font-size: 60px; line-height: 1.08; letter-spacing: -0.028em; font-weight: 540; }
.cta-row { margin-top: 48px; display: flex; justify-content: center; gap: 12px; }
.cta .btn { padding: 12px 24px; font-size: 15px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 60px var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 40px; }
.footer h5 { font-size: 13px; margin-bottom: 16px; color: var(--fg); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; }
.footer a { color: var(--muted); font-size: 13px; }
.footer a:hover { color: var(--fg); }
.foot-brand .brand-mark { width: 28px; height: 28px; }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 44px; }
  .statement p, .feature-head h2, .changelog h2, .pillars-head h2, .split-left h2, .asym-left h2 { font-size: 32px; }
  .cta h2 { font-size: 44px; }
  .feature-head { grid-template-columns: 1fr; gap: 28px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .feature-split, .feature-asym { grid-template-columns: 1fr; gap: 48px; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .art-intake, .art-build { grid-template-columns: 1fr; }
  .cl-track { grid-template-columns: 1fr 1fr; }
  .cl-line { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .scenarios { grid-template-columns: 1fr; }
  .cmp-kpis { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .budget-legend { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 34px; }
  .hero h1 br { display: none; }
  .statement p, .feature-head h2, .changelog h2, .cta h2 { font-size: 28px; }
  .app { grid-template-columns: 1fr; }
  .app-side, .app-right { display: none; }
  .logos-row { justify-content: center; }
  .art-ai { grid-template-columns: 1fr; }
  .cl-track { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .customers-foot { flex-direction: column; align-items: flex-start; }
}
