:root {
  --canvas: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f7fafb;
  --navy: #0c172a;
  --navy-2: #14243a;
  --ink: #162334;
  --muted: #778393;
  --line: #dce5eb;
  --teal: #0b9b87;
  --teal-soft: #e3f5f1;
  --blue: #2877cf;
  --blue-soft: #e8f1fc;
  --amber: #c17b19;
  --amber-soft: #fff4dd;
  --coral: #dc6758;
  --coral-soft: #fff0ed;
  --shadow: 0 14px 34px rgba(24, 46, 70, .07);
  --shadow-deep: 0 24px 70px rgba(12, 23, 42, .16);
  --radius: 10px;
}

@font-face { font-family: "IRANSansLocal"; src: local("IRANSans"), local("IRANSansX"), local("IranSans"); font-weight: 100 900; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); direction: rtl; font-family: "IRANSansLocal", "IRANSansX", "Vazirmatn", "Segoe UI", Tahoma, sans-serif; font-feature-settings: "kern" 1, "tnum" 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: 0; }
.latin, .brand, .brand-inline { direction: ltr; unicode-bidi: isolate; }
.number { direction: rtl; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.is-hidden { display: none !important; }
.section-kicker, .eyebrow, .mini-label { margin: 0 0 9px; color: var(--teal); font-size: .72rem; font-weight: 900; }
.section-kicker, .eyebrow { letter-spacing: .02em; }

/* Authentication */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .62fr); gap: 18px; min-height: 100vh; padding: 18px; }
.auth-copy, .auth-panel { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-deep); }
.auth-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 7vw, 100px); color: #fff; background: var(--navy); }
.auth-copy .section-kicker { color: #73d8c6; }
.auth-copy h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 4.65rem); line-height: 1.17; }
.auth-copy > p:not(.section-kicker) { max-width: 730px; color: #b9c8d6; font-size: 1.04rem; line-height: 2; }
.brand-lockup { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.auth-brand { margin-bottom: 72px; }
.brand-mark { display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 9px; color: #fff; background: var(--teal); font-size: .86rem; font-weight: 900; }
.brand-lockup strong { display: block; margin-bottom: 3px; font-size: 1.06rem; }
.brand-lockup span { color: var(--muted); font-size: .76rem; }
.auth-copy .brand-lockup span { color: #93a4b6; }
.auth-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 42px; }
.auth-proof-grid div { min-height: 112px; padding: 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.055); }
.auth-proof-grid strong, .auth-proof-grid span { display: block; }
.auth-proof-grid strong { margin-bottom: 9px; color: #73d8c6; font-size: 1.35rem; }
.auth-proof-grid span { color: #aebdca; font-size: .84rem; line-height: 1.7; }
.auth-panel { align-self: center; padding: clamp(24px, 4vw, 48px); background: var(--surface); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; margin-bottom: 34px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.auth-tab { min-height: 42px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 800; }
.auth-tab.active { color: var(--navy); background: var(--surface); box-shadow: 0 5px 14px rgba(12,23,42,.08); }
.auth-form { display: none; gap: 17px; }
.auth-form.active { display: grid; }
.auth-form h2 { margin-bottom: 8px; font-size: 1.7rem; line-height: 1.4; }
.form-lead { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.auth-form label, .upload-form label { display: grid; gap: 8px; color: var(--ink); font-size: .83rem; font-weight: 800; }
.auth-form input, .upload-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; outline: none; }
.auth-form input:focus, .upload-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11,155,135,.12); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 17px; border: 0; border-radius: 7px; color: #fff; background: var(--teal); font-weight: 900; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: #087d6f; transform: translateY(-1px); }
.auth-hint { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.auth-hint[data-kind="error"] { color: var(--coral); }
.auth-hint[data-kind="success"] { color: var(--teal); }

/* Sales page */
.sales-page { background: #f5f7f9; }
.sales-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 46px; }
.sales-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; margin-bottom: 18px; }
.sales-nav-link, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: var(--surface); font-size: .8rem; font-weight: 900; }
.sales-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 18px; align-items: stretch; margin-bottom: 18px; padding: clamp(24px, 5vw, 54px); border: 1px solid #cad9df; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: var(--shadow-deep); }
.sales-hero .section-kicker { color: #73d8c6; }
.sales-hero h1 { max-width: 780px; margin-bottom: 13px; font-size: clamp(2.35rem, 6vw, 5rem); line-height: 1.15; }
.sales-hero p:not(.section-kicker) { max-width: 760px; color: #b9c8d6; line-height: 2; }
.sales-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sales-hero .secondary-button { color: #e8f3f8; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.sales-proof-card { display: flex; flex-direction: column; justify-content: end; min-height: 270px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #14243a; }
.sales-proof-card span { color: #94a8b9; font-size: .74rem; font-weight: 900; }
.sales-proof-card strong { display: block; margin: 12px 0 10px; color: #73d8c6; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.35; }
.sales-proof-card p { color: #a8b8c5; font-size: .82rem; line-height: 1.8; }
.sales-audit, .sales-grid, .sales-benchmark, .sales-process, .sales-pricing { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sales-audit, .sales-pricing { display: grid; grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr); gap: 22px; align-items: start; }
.sales-audit h2, .sales-grid h2, .sales-benchmark h2, .sales-process h2, .sales-pricing h2 { margin-bottom: 10px; color: var(--navy); font-size: 1.45rem; line-height: 1.55; }
.sales-audit p, .sales-grid p, .sales-benchmark p, .sales-pricing p { color: var(--muted); font-size: .8rem; line-height: 1.9; }
.audit-form { display: grid; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.audit-form label { display: grid; gap: 8px; color: var(--ink); font-size: .8rem; font-weight: 900; }
.audit-form input, .audit-form select { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; outline: none; }
.audit-form output { min-height: 54px; padding: 12px; border: 1px dashed #a9bdc8; border-radius: 7px; color: var(--muted); background: #fff; font-size: .77rem; line-height: 1.8; }
.audit-form output[data-kind="success"] { color: var(--teal); border-color: #9ddbd0; background: var(--teal-soft); }
.audit-form output[data-kind="error"] { color: var(--coral); border-color: #f0bab1; background: var(--coral-soft); }
.sales-grid, .benchmark-grid, .pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sales-grid article, .benchmark-grid article, .price-card { min-height: 185px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.sales-grid span, .benchmark-grid span, .price-card span { color: var(--teal); font-size: .68rem; font-weight: 900; }
.benchmark-heading { margin-bottom: 16px; }
.benchmark-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benchmark-grid h3 { margin: 9px 0; color: var(--navy); font-size: .96rem; line-height: 1.55; }
.sales-process ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sales-process li { min-height: 138px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.sales-process strong, .sales-process span { display: block; }
.sales-process strong { margin-bottom: 8px; color: var(--navy); font-size: .78rem; line-height: 1.55; }
.sales-process span { color: var(--muted); font-size: .68rem; line-height: 1.75; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { min-height: 210px; border-top: 4px solid var(--blue); }
.price-card.featured { border-top-color: var(--teal); background: #f4fbf9; }
.price-card strong { display: block; margin: 10px 0; color: var(--navy); font-size: 1.02rem; line-height: 1.55; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; min-height: 100vh; padding: 18px; }
.sidebar { position: sticky; top: 18px; display: flex; flex-direction: column; height: calc(100vh - 36px); padding: 22px 16px 16px; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: var(--shadow-deep); }
.sidebar .brand-lockup { padding: 0 7px; margin-bottom: 27px; }
.sidebar .brand-lockup span { color: #8292a5; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 11px; margin-bottom: 23px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.055); }
.workspace-chip div { min-width: 0; }
.workspace-chip small, .workspace-chip strong { display: block; }
.workspace-chip small { margin-bottom: 4px; color: #8092a5; font-size: .7rem; }
.workspace-chip strong { overflow: hidden; color: #e9f0f5; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(11,155,135,.14); }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 11px; border-radius: 7px; color: #aebdca; font-size: .84rem; transition: background .18s ease, color .18s ease; }
.side-nav a:hover, .side-nav a:focus-visible, .side-nav a.active { color: #fff; background: rgba(255,255,255,.1); outline: none; }
.nav-icon { display: grid; place-items: center; width: 22px; color: #79cfc1; font-size: 1.08rem; }
.sidebar-footer { margin-top: auto; padding: 15px 13px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-footer span, .sidebar-footer p { color: #8092a5; font-size: .73rem; }
.sidebar-footer strong { display: block; margin: 8px 0; color: #d8e7ee; font-size: .85rem; }
.sidebar-footer p { margin: 0; line-height: 1.8; }
.dashboard { min-width: 0; padding: 5px 2px 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 49px; margin-bottom: 17px; }
.eyebrow { margin-bottom: 4px; color: var(--navy); }
.topbar-date { margin: 0; color: var(--muted); font-size: .75rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.live-status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }
.icon-button { display: grid; place-items: center; width: 39px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: var(--surface); font-size: 1.2rem; }
.text-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .78rem; }
.workspace-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.workspace-bar > div { min-height: 77px; padding: 14px 16px; background: var(--surface); }
.workspace-bar span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .69rem; font-weight: 700; }
.workspace-bar strong { display: block; color: var(--ink); font-size: .86rem; line-height: 1.5; }
.workspace-readiness { background: #ecf8f5 !important; }
.workspace-readiness strong { color: var(--teal); font-size: 1.12rem; }

/* Decision surfaces */
.command-hero { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); gap: 18px; padding: 28px; margin-bottom: 17px; border: 1px solid #cad9df; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow-deep); }
.hero-intro h1 { max-width: 780px; margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.2; }
.hero-intro > p:not(.section-kicker) { max-width: 720px; margin-bottom: 22px; color: #b9c8d6; line-height: 1.95; }
.hero-intro .section-kicker { color: #73d8c6; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button-link { color: #fff; }
.quiet-link { color: #9bb0c1; font-size: .82rem; font-weight: 800; }
.hero-pulse { align-self: stretch; display: flex; flex-direction: column; min-height: 244px; padding: 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #14243a; }
.pulse-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 33px; }
.pulse-label { color: #94a8b9; font-size: .75rem; }
.status-badge, .decision-status, .risk, .tier, .section-tag, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-size: .69rem; font-weight: 900; }
.status-badge { padding: 5px 8px; color: #8fe0d1; background: rgba(11,155,135,.15); }
.hero-pulse > strong { font-size: 1.34rem; line-height: 1.55; }
.hero-pulse > p { min-height: 48px; margin: 7px 0 18px; color: #9bb0c1; font-size: .78rem; line-height: 1.8; }
.pulse-meter { height: 6px; overflow: hidden; margin-bottom: 20px; border-radius: 999px; background: #273c53; }
.pulse-meter span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .35s ease; }
.pulse-foot { display: flex; justify-content: space-between; margin-top: auto; color: #8fa3b4; font-size: .75rem; }
.pulse-foot strong { color: #fff; font-size: 1.15rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 45px; }
.metric-card, .panel, .data-panel, .limitations-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-height: 142px; padding: 17px; border-top: 3px solid var(--teal); }
.metric-2 { border-top-color: var(--coral); }.metric-3 { border-top-color: var(--blue); }.metric-4 { border-top-color: var(--amber); }
.snapshot-panel { margin-bottom: 42px; }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.snapshot-stat { min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.snapshot-stat span, .snapshot-stat small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.7; }
.snapshot-stat strong { display: block; margin: 7px 0 5px; color: var(--navy); font-size: 1.08rem; line-height: 1.45; }
.metric-card span, .metric-card small { display: block; }
.metric-card span { margin-bottom: 19px; color: var(--muted); font-size: .77rem; }
.metric-card strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1.58rem; }
.metric-card small { color: var(--muted); font-size: .7rem; line-height: 1.6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 15px; }
.section-heading h2 { margin-bottom: 8px; font-size: 1.4rem; line-height: 1.45; }
.section-heading p:not(.section-kicker) { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.section-tag { padding: 7px 10px; color: var(--blue); background: var(--blue-soft); white-space: nowrap; }
.decision-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .45fr); gap: 14px; margin-bottom: 42px; }
.panel { padding: 20px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-heading h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.mini-label { margin-bottom: 5px; color: var(--muted); font-size: .65rem; }
.pill { padding: 6px 9px; color: var(--blue); background: var(--blue-soft); white-space: nowrap; }
.pill.save { color: var(--teal); background: var(--teal-soft); }.pill.warn { color: var(--amber); background: var(--amber-soft); }
.decision-table-wrap { overflow-x: auto; }
.decision-table { width: 100%; min-width: 890px; border-collapse: collapse; }
.decision-table th, .decision-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.decision-table th { color: var(--muted); font-size: .67rem; font-weight: 900; white-space: nowrap; }
.decision-table td { color: var(--ink); font-size: .78rem; line-height: 1.65; }
.decision-table td:first-child { min-width: 165px; }.decision-table td:last-child { min-width: 205px; color: var(--muted); }
.decision-table td strong, .decision-table td small { display: block; }.decision-table td small { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.risk, .tier, .decision-status { padding: 5px 8px; white-space: nowrap; }.risk-high { color: #a23d38; background: var(--coral-soft); }.risk-medium { color: #956113; background: var(--amber-soft); }.risk-low { color: #187361; background: var(--teal-soft); }.tier { color: var(--blue); background: var(--blue-soft); }.decision-status { color: var(--muted); background: #eef2f5; }.status-pass { color: #187361; background: var(--teal-soft); }.status-warn { color: #956113; background: var(--amber-soft); }.status-neutral { color: var(--muted); background: #eef2f5; }.action-name { color: var(--navy); }
.decision-aside { background: var(--navy); color: #fff; }.decision-aside .mini-label { color: #88a0b3; }.decision-aside h3 { color: #fff; }.signal-icon { color: #73d8c6; font-size: 1.4rem; }.aside-number { padding: 18px 0 20px; border-bottom: 1px solid rgba(255,255,255,.12); }.aside-number strong { display: block; margin-bottom: 7px; color: #73d8c6; font-size: 1.8rem; }.aside-number span, .stat-line span { color: #91a5b6; font-size: .74rem; line-height: 1.7; }.stat-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }.stat-line strong { color: #fff; }.aside-note { margin-top: 20px; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.05); }.aside-note strong { color: #dce8ee; font-size: .76rem; }.aside-note p { margin: 7px 0 0; color: #91a5b6; font-size: .72rem; line-height: 1.8; }
.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 42px; }
.action-card { min-height: 225px; padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--muted); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.action-card h3 { margin-bottom: 10px; font-size: 1.05rem; }.action-card p { min-height: 65px; margin-bottom: 18px; color: var(--muted); font-size: .77rem; line-height: 1.8; }.action-card small { display: block; margin-top: 13px; color: var(--muted); font-size: .7rem; }.action-bottom { display: flex; align-items: baseline; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }.action-bottom strong { font-size: 1.35rem; }.action-bottom span { color: var(--muted); font-size: .7rem; }.tone-teal { border-top-color: var(--teal); }.tone-amber { border-top-color: var(--amber); }.tone-coral { border-top-color: var(--coral); }.tone-neutral { border-top-color: var(--blue); }
.uplift-lab { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 14px; margin-bottom: 14px; }
.uplift-summary-grid { display: grid; gap: 10px; }
.uplift-stat { min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.uplift-stat span, .uplift-stat small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.7; }
.uplift-stat strong { display: block; margin: 6px 0 3px; color: var(--navy); font-size: 1.08rem; line-height: 1.4; }
.qini-panel, .treatment-panel { min-width: 0; }
.qini-bars { display: grid; gap: 12px; }
.qini-row { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(150px, 1fr) minmax(100px, auto); align-items: center; gap: 12px; }
.qini-copy strong, .qini-copy span { display: block; }
.qini-copy strong { color: var(--ink); font-size: .78rem; line-height: 1.5; }
.qini-copy span { color: var(--muted); font-size: .66rem; line-height: 1.6; }
.qini-track { height: 11px; overflow: hidden; border-radius: 999px; background: #e7edf1; }
.qini-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.qini-row bdi { color: var(--navy); font-size: .74rem; font-weight: 900; text-align: left; }
.reaction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reaction-card { min-height: 142px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.reaction-card span, .reaction-card small { display: block; color: var(--muted); font-size: .66rem; line-height: 1.75; }
.reaction-card strong { display: block; margin: 6px 0; color: var(--ink); font-size: .86rem; }
.reaction-card bdi { display: block; margin-bottom: 6px; color: var(--teal); font-size: 1.5rem; font-weight: 900; }
.decision-table.compact { min-width: 650px; }
.model-card-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 42px; }
.model-card { min-height: 170px; padding: 15px; border: 1px solid var(--line); border-right: 4px solid var(--blue); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.model-card span { color: var(--teal); font-size: .66rem; font-weight: 900; }
.model-card strong { display: block; margin: 8px 0; color: var(--navy); font-size: .96rem; }
.model-card p { margin-bottom: 10px; color: var(--ink); font-size: .75rem; line-height: 1.75; }
.model-card small { color: var(--muted); font-size: .68rem; line-height: 1.7; }
.customer-product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 14px; margin-bottom: 42px; }
.customer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-card { min-height: 230px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.customer-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.customer-card strong, .customer-card span { display: block; }
.customer-card > div:first-child strong { color: var(--navy); font-size: .86rem; }
.customer-card > div:first-child span { color: var(--muted); font-size: .68rem; line-height: 1.6; text-align: left; }
.customer-score { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customer-score bdi { color: var(--coral); font-size: 1.6rem; font-weight: 900; }
.customer-score span { color: var(--muted); font-size: .72rem; }
.customer-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.customer-card dt { color: var(--muted); font-size: .62rem; }
.customer-card dd { margin: 4px 0 0; color: var(--ink); font-size: .68rem; font-weight: 900; line-height: 1.5; }
.customer-card p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.8; }
.finance-grid { display: grid; gap: 10px; }
.finance-stat { min-height: 95px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.finance-stat span, .finance-stat small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.75; }
.finance-stat strong { display: block; margin: 6px 0 4px; color: var(--navy); font-size: 1.12rem; }
.experiment-builder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; margin-bottom: 14px; }
.experiment-copy h3 { margin-bottom: 10px; color: var(--navy); font-size: 1rem; line-height: 1.8; }
.experiment-copy p { color: var(--muted); font-size: .78rem; line-height: 1.8; }
.experiment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.experiment-grid div { min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.experiment-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .64rem; }
.experiment-grid strong { color: var(--ink); font-size: .75rem; line-height: 1.6; }
.flow-panel { margin-bottom: 14px; }.stage-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }.stage-card { min-height: 145px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }.stage-card.passed { border-color: #bfe5dc; background: #f3fbf9; }.stage-card.pending { border-color: #f0d9ab; background: #fffaf0; }.stage-index { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 17px; border-radius: 5px; color: var(--navy); background: #e5edf2; font-size: .7rem; font-weight: 900; }.stage-card.passed .stage-index { color: #fff; background: var(--teal); }.stage-card strong, .stage-card span, .stage-card small { display: block; }.stage-card strong { margin-bottom: 7px; font-size: .75rem; line-height: 1.5; }.stage-card span { margin-bottom: 7px; color: var(--teal); font-size: .68rem; font-weight: 900; }.stage-card.pending span { color: var(--amber); }.stage-card small { color: var(--muted); font-size: .65rem; line-height: 1.7; }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; margin: 14px 0 42px; }.evidence-list { display: grid; gap: 9px; }.evidence-row { display: flex; align-items: center; gap: 11px; min-height: 57px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; }.evidence-state { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 900; }.evidence-state.pass { color: var(--teal); background: var(--teal-soft); }.evidence-state.warn { color: var(--amber); background: var(--amber-soft); }.evidence-row strong, .evidence-row span { display: block; }.evidence-row strong { margin-bottom: 3px; font-size: .78rem; }.evidence-row span:last-child { color: var(--muted); font-size: .7rem; }.contract-card { background: #f8fbfc; }.contract-card dl { display: grid; gap: 0; margin: 0; }.contract-card dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }.contract-card dt { color: var(--muted); font-size: .72rem; }.contract-card dd { margin: 0; color: var(--ink); font-size: .75rem; line-height: 1.65; }
.data-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 30px; align-items: center; padding: 24px; margin-bottom: 14px; }.data-panel h2 { margin-bottom: 10px; font-size: 1.45rem; }.data-panel > div > p:not(.section-kicker) { max-width: 680px; margin-bottom: 17px; color: var(--muted); font-size: .82rem; line-height: 1.9; }.data-contract-tags { display: flex; flex-wrap: wrap; gap: 7px; }.data-contract-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: .68rem; }.upload-form { display: grid; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }.upload-form input[type="file"] { padding: 11px; }.limitations-panel { display: grid; grid-template-columns: 260px 1fr; gap: 25px; align-items: start; padding: 21px; margin-bottom: 24px; }.limitations-panel h3 { margin: 0; font-size: 1rem; }.limitations-panel ul { display: grid; gap: 8px; margin: 0; padding: 0 18px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.8; }.dashboard-footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .7rem; }
.upload-preview { max-width: 560px; margin-top: 16px; padding: 13px; border: 1px dashed #a9bdc8; border-radius: 8px; background: #f8fbfc; }
.upload-preview strong, .upload-preview span { display: block; }
.upload-preview strong { margin-bottom: 5px; color: var(--navy); font-size: .82rem; }
.upload-preview span { color: var(--muted); font-size: .72rem; line-height: 1.7; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-bottom: 14px; }
.readiness-score { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8fbfc; }
.readiness-score strong { color: var(--teal); font-size: 1.55rem; }
.readiness-score span { color: var(--muted); font-size: .74rem; line-height: 1.75; }
.readiness-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.readiness-check { min-height: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.readiness-check span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: 7px; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.readiness-check.passed span { color: var(--teal); background: var(--teal-soft); }
.readiness-check.missing span { color: var(--amber); background: var(--amber-soft); }
.readiness-check strong, .readiness-check small { display: block; }
.readiness-check strong { color: var(--ink); font-size: .7rem; line-height: 1.5; }
.readiness-check small { color: var(--muted); font-size: .62rem; }
.workspace-steps { display: grid; gap: 8px; }
.workspace-step { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.workspace-step bdi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--muted); background: #e8eef2; font-weight: 900; }
.workspace-step.complete bdi { color: #fff; background: var(--teal); }
.workspace-step strong, .workspace-step span { display: block; }
.workspace-step strong { margin-bottom: 2px; color: var(--ink); font-size: .76rem; }
.workspace-step span { color: var(--muted); font-size: .68rem; }
.outcome-panel { margin-bottom: 14px; }
.outcome-layout { display: grid; grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr); gap: 14px; }
.outcome-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.outcome-readout > div { min-height: 86px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.outcome-readout span, .outcome-readout strong { display: block; }
.outcome-readout span { margin-bottom: 7px; color: var(--muted); font-size: .68rem; }
.outcome-readout strong { color: var(--navy); font-size: .82rem; line-height: 1.6; }
.history-panel { margin-bottom: 24px; }
.history-list { display: grid; gap: 9px; }
.history-item, .empty-history { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.history-item strong, .history-item span, .history-item bdi, .history-item time, .empty-history strong, .empty-history span { display: block; }
.history-item strong, .empty-history strong { color: var(--ink); font-size: .8rem; }
.history-item span, .history-item time, .empty-history span { color: var(--muted); font-size: .68rem; line-height: 1.6; }
.history-item bdi { color: var(--teal); font-size: .78rem; font-weight: 900; text-align: left; }

.trust-page { min-height: 100vh; background: var(--canvas); }
.trust-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 24px 0 48px; }
.trust-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; color: var(--muted); font-size: .78rem; }
.trust-nav .brand-lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.trust-nav .brand-lockup small { display: block; color: var(--muted); font-size: .65rem; }
.trust-nav > a:last-child { color: var(--blue); font-weight: 800; }
.trust-document { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.trust-document h1 { max-width: 720px; margin: 8px 0 18px; color: var(--navy); font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1.5; }
.trust-document h2 { margin: 32px 0 8px; color: var(--navy); font-size: 1.05rem; }
.trust-document p, .trust-document li { color: var(--ink); font-size: .86rem; line-height: 2; }
.trust-document ul { display: grid; gap: 8px; padding-right: 22px; }
.trust-lead { max-width: 720px; margin-bottom: 30px; color: var(--muted) !important; font-size: .98rem !important; }
.trust-callout { display: grid; gap: 5px; margin: 26px 0; padding: 16px; border-right: 4px solid var(--teal); background: var(--teal-soft); }
.trust-callout strong { color: var(--navy); }
.trust-callout span { color: var(--ink); font-size: .82rem; line-height: 1.9; }
.deploy-document pre { direction: ltr; overflow-x: auto; margin: 14px 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #16252e; color: #e7f4f2; text-align: left; white-space: pre-wrap; }
.deploy-document code { font: 500 .78rem/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.trust-footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: .72rem; }
.trust-footer a { color: inherit; }
.sales-nav-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sales-footer { width: min(100% - 32px, 1180px); margin: 0 auto; padding: 0 0 34px; }
.dashboard-footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.dashboard-footer a { color: inherit; }

@media (max-width: 560px) { .trust-shell { width: min(100% - 18px, 980px); }.trust-nav { align-items: flex-start; flex-direction: column; }.trust-document { padding: 22px 17px; } }

@media (max-width: 1180px) { .app-shell { grid-template-columns: 220px minmax(0, 1fr); }.stage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.sales-process ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }.benchmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.decision-layout, .uplift-lab, .customer-product-grid, .experiment-builder, .pilot-grid, .outcome-layout { grid-template-columns: 1fr; }.decision-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }.decision-aside .panel-heading, .decision-aside .aside-number { grid-column: 1 / -1; }.decision-aside .aside-note { grid-column: 1 / -1; } }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; }.auth-copy { min-height: 500px; }.auth-panel { max-width: 620px; width: 100%; justify-self: center; }.app-shell { grid-template-columns: 1fr; padding: 10px; }.sidebar { position: static; height: auto; padding: 14px; }.sidebar .brand-lockup { margin-bottom: 15px; }.workspace-chip { max-width: 360px; }.side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }.side-nav a { justify-content: center; padding: 0 5px; font-size: .72rem; text-align: center; }.nav-icon { display: none; }.sidebar-footer { display: none; }.dashboard { padding: 0 2px 22px; }.command-hero, .sales-hero, .sales-audit, .sales-pricing { grid-template-columns: 1fr; }.metric-grid, .action-grid, .model-card-strip, .customer-list, .snapshot-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.experiment-grid, .readiness-checks, .outcome-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }.workspace-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }.evidence-layout, .data-panel { grid-template-columns: 1fr; }.limitations-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .auth-shell { padding: 9px; }.auth-copy { padding: 26px 20px; }.auth-brand { margin-bottom: 45px; }.auth-copy h1 { font-size: 2.15rem; }.auth-proof-grid { grid-template-columns: 1fr; }.auth-proof-grid div { min-height: auto; }.auth-panel { padding: 22px 17px; }.topbar { align-items: flex-start; }.topbar-actions { gap: 8px; }.live-status { display: none; }.sales-shell { width: min(100% - 18px, 1180px); }.sales-nav { align-items: flex-start; flex-direction: column; }.sales-hero, .sales-audit, .sales-grid, .sales-benchmark, .sales-process, .sales-pricing { padding: 16px; }.sales-process ol, .benchmark-grid, .pricing-grid, .workspace-bar, .metric-grid, .action-grid, .reaction-grid, .model-card-strip, .customer-list, .experiment-grid, .snapshot-grid, .readiness-checks, .outcome-readout { grid-template-columns: 1fr; }.readiness-score { grid-template-columns: 1fr; }.customer-card dl { grid-template-columns: 1fr; }.qini-row { grid-template-columns: 1fr; gap: 7px; }.qini-row bdi { text-align: right; }.history-item, .empty-history { align-items: flex-start; flex-direction: column; }.workspace-bar > div { min-height: 67px; }.command-hero { padding: 20px 16px; }.hero-intro h1 { font-size: 2rem; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }.stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.decision-aside { display: block; }.decision-aside .stat-line { display: flex; }.contract-card dl > div { grid-template-columns: 100px 1fr; }.dashboard-footer { flex-direction: column; }.panel, .data-panel, .limitations-panel { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
