@font-face {
  font-family: "Estedad";
  src: url("/fonts/Estedad-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "MarginLift Numerals";
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111418;
  --ink-soft: #343a43;
  --muted: #626a76;
  --muted-soft: #7b8490;
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #ecf0f3;
  --surface-strong: #e3e8ed;
  --line: #d9dee5;
  --line-strong: #bdc5cf;
  --profit: #007b5e;
  --profit-deep: #005c47;
  --profit-bright: #57d6ab;
  --profit-soft: #e7f7f1;
  --decision: #315dde;
  --decision-soft: #eef2ff;
  --warning: #a65a00;
  --warning-soft: #fff4e5;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --focus: 0 0 0 3px rgba(49, 93, 222, .24);
  --shadow-float: 0 2px 8px rgba(17, 20, 24, .08);
  --shadow-modal: 0 16px 40px rgba(17, 20, 24, .16);
  --sidebar-width: 236px;
  --content-width: 1480px;
  --font-fa: "Estedad", Tahoma, sans-serif;
  --motion-fast: 160ms;
  --motion-base: 320ms;
  --motion-slow: 520ms;
  --ease-standard: cubic-bezier(.22, 1, .36, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--canvas);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-fa);
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  word-spacing: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body *, body *::before, body *::after { letter-spacing: 0; }
body.nav-open { overflow: hidden; }

::selection { color: #fff; background: var(--profit); }

h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
p { overflow-wrap: break-word; text-wrap: pretty; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-position: from-font; }
img { display: block; max-width: 100%; }
bdi, code, .number, [dir="ltr"] { unicode-bidi: isolate; }
bdi, code, [dir="ltr"] { direction: ltr; }
.number { font-family: "MarginLift Numerals", var(--font-fa); font-variant-numeric: tabular-nums; word-spacing: 0; }
.is-hidden { display: none !important; }

/* Motion system: calm, state-led, and compositor-friendly. */
.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--motion-slow) var(--ease-standard), transform var(--motion-slow) var(--ease-standard);
  transition-delay: calc(var(--motion-order, 0) * 45ms);
  will-change: opacity, transform;
}

.motion-enabled .motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.motion-enabled .site-product-stage.motion-reveal { transform: translate3d(0, 20px, 0) scale(.985); }
.motion-enabled .site-product-stage.motion-reveal.is-visible { transform: translate3d(0, 0, 0) scale(1); }

.motion-enabled .qini-track span,
.motion-enabled .signal-rule span,
.motion-enabled .pulse-meter span {
  transform: scaleX(0);
  transform-origin: right center;
  transition: width var(--motion-base) var(--ease-standard), transform var(--motion-slow) var(--ease-standard);
}

.motion-enabled .motion-data-ready span { transform: scaleX(1); }

.message-pop { animation: status-pop var(--motion-base) var(--ease-standard); }
.auth-form.active { animation: form-enter var(--motion-base) var(--ease-standard); }

button[aria-busy="true"], .is-busy {
  cursor: progress;
  opacity: .78;
}

button[aria-busy="true"]::before, .is-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  animation: busy-spin 700ms linear infinite;
}

@keyframes status-pop {
  from { opacity: .2; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes form-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes busy-spin { to { transform: rotate(1turn); } }

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-md);
  transform: translateY(-160%);
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--decision);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-md);
  font: 800 16px/1 Arial, sans-serif;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid rgba(0, 123, 94, .18);
  border-radius: 50%;
  background: var(--profit);
}

.section-kicker, .mini-label, .eyebrow, .nav-group-label, .site-kicker {
  display: block;
  margin-block-end: 8px;
  color: var(--profit);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.6;
}

.primary-button, .secondary-button, .text-button, .icon-button, .mobile-nav-toggle,
.sidebar-close, .site-primary, .site-secondary, .site-cta, .site-login {
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition-property: color, background-color, border-color, transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.primary-button, .site-primary, .site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.primary-button:hover, .site-primary:hover, .site-cta:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.primary-button:active, .site-primary:active, .site-cta:active { transform: scale(.96); }

.secondary-button, .site-secondary, .site-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.secondary-button:hover, .site-secondary:hover, .site-login:hover { border-color: var(--ink); }
.secondary-button:active, .site-secondary:active, .site-login:active { transform: scale(.96); }

.text-button {
  padding-inline: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.text-button:hover { color: var(--ink); }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 1.05rem;
}

.icon-button:hover { border-color: var(--ink); }
.quiet-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .88rem; font-weight: 750; text-underline-offset: 5px; }

/* Public site */
.site-page { background: #fff; font-size: 16px; }

.site-header {
  position: sticky;
  z-index: 50;
  inset-block-start: 0;
  min-height: 64px;
  border-block-end: 1px solid rgba(217, 222, 229, .82);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(150%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 40px), 1240px);
  min-height: 64px;
  margin-inline: auto;
}

.site-brand, .sidebar-brand, .auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.site-brand > bdi, .auth-home-link > bdi, .sidebar-brand bdi { font-family: Arial, sans-serif; }

.site-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline-end: auto;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}

.site-links a { text-decoration: none; }
.site-links a:hover { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-login, .site-cta { min-height: 44px; }

.site-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 24px 72px;
  background: #fff;
}

.site-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin-inline: auto;
  text-align: center;
}

.site-hero-copy h1 {
  margin-block-end: 12px;
  color: var(--ink);
  font: 850 76px/1.05 Arial, sans-serif;
}

.hero-statement {
  margin-block-end: 22px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 850;
  line-height: 1.28;
}

.hero-description, .site-hero-copy > p:not(.site-kicker):not(.hero-statement) {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.site-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.site-hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-block-start: 24px; color: var(--muted); font-size: .77rem; }
.site-hero-proof span { position: relative; padding-inline-start: 14px; }
.site-hero-proof span::before { content: ""; position: absolute; inset-block-start: .7em; inset-inline-start: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--profit); }

.site-product-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  margin: 72px auto 0;
  padding: 12px 12px 0;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 20, 24, .14);
}

.site-product-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2px 4px 14px; color: #fff; font-size: .78rem; }
.site-product-stage figcaption span { color: var(--profit-bright); }
.site-product-stage img { width: 100%; border-radius: 4px 4px 0 0; outline: 1px solid rgba(255, 255, 255, .12); }

@media (hover: hover) and (pointer: fine) {
  .site-feature-grid article, .plans-grid article, .metric-card, .action-card, .panel {
    transition: border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
  }

  .site-feature-grid article:hover, .plans-grid article:not(.plan-primary):hover, .metric-card:hover, .action-card:hover {
    transform: translate3d(0, -1px, 0);
    border-color: var(--line-strong);
  }
}

.site-outcome-band {
  padding: 88px 24px;
  color: #fff;
  background: var(--ink);
}

.site-outcome-band > span, .site-outcome-band > h2, .outcome-list { width: min(100%, 1180px); margin-inline: auto; }
.site-outcome-band > span { display: block; margin-block-end: 14px; color: var(--profit-bright); font-size: .8rem; font-weight: 750; }
.site-outcome-band > h2 { max-width: 840px; margin-block-end: 56px; font-size: 40px; line-height: 1.4; }
.outcome-list { display: grid; grid-template-columns: repeat(3, 1fr); border-block-start: 1px solid #343a43; }
.outcome-list article { min-width: 0; padding: 28px 0 0 28px; }
.outcome-list article + article { padding-inline-start: 28px; border-inline-start: 1px solid #343a43; }
.outcome-step { color: var(--profit-bright); font-size: .78rem; font-weight: 700; line-height: 1; }
.outcome-list h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.outcome-list p { max-width: 32ch; margin: 0; color: #bcc2c9; line-height: 1.75; }

.site-product, .site-method, .site-estimator, .site-trust, .site-plans {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
  padding-block: 104px;
}

.site-product + .site-method, .site-method + .site-estimator, .site-estimator + .site-trust, .site-trust + .site-plans { border-block-start: 1px solid var(--line); }
.site-section-head { max-width: 760px; margin-block-end: 46px; }
.site-section-head h2, .site-estimator h2, .site-final-cta h2 { margin-block-end: 14px; font-size: 38px; line-height: 1.45; }
.site-section-head > p:last-child, .site-estimator > div > p:last-child, .site-final-cta > p { max-width: 66ch; margin-block-end: 0; color: var(--muted); line-height: 1.75; }

.site-feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.site-feature-grid article { grid-column: span 4; min-height: 260px; padding: 30px; background: var(--surface); }
.site-feature-grid .feature-wide { grid-column: span 8; }
.site-feature-grid .feature-dark { color: #fff; background: var(--ink); }
.site-feature-grid article > span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.site-feature-grid .feature-dark > span { color: var(--profit-bright); }
.site-feature-grid strong { display: block; margin-block: 24px 34px; color: var(--profit); font-size: 2rem; line-height: 1.4; }
.site-feature-grid .feature-dark strong { color: var(--profit-bright); }
.site-feature-grid h3 { margin-block-end: 10px; font-size: 1.18rem; }
.site-feature-grid p { max-width: 46ch; margin: 0; color: var(--muted); line-height: 1.72; }
.site-feature-grid .feature-dark p { color: #c1c7ce; }

.method-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: method; }
.method-flow li { position: relative; min-width: 0; padding: 28px 0 0 32px; border-block-start: 1px solid var(--line-strong); counter-increment: method; }
.method-flow li + li { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.method-flow li::before { content: counter(method, decimal-leading-zero); display: block; margin-block-end: 34px; color: var(--profit); font: 700 .78rem/1 Arial, sans-serif; direction: ltr; }
.method-flow span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.method-flow h3 { margin: 10px 0; font-size: 1.25rem; }
.method-flow p { max-width: 34ch; margin: 0; color: var(--muted); line-height: 1.72; }

.site-estimator { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); gap: 72px; align-items: start; }
.audit-form { display: grid; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.audit-form label { margin-block-start: 6px; font-size: .8rem; font-weight: 750; }
.audit-form input, .audit-form select { width: 100%; min-height: 48px; padding-inline: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); background: #fff; }
.audit-form output { display: block; min-height: 58px; margin-block-start: 8px; padding: 14px; color: var(--muted); background: #fff; border-radius: var(--radius-md); line-height: 1.7; }
.audit-form output[data-kind="error"] { color: var(--danger); background: var(--danger-soft); }
.audit-form output[data-kind="success"] { color: var(--profit-deep); background: var(--profit-soft); }

.trust-rail { border-block-start: 1px solid var(--line); }
.trust-rail article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 22px; border-block-end: 1px solid var(--line); }
.trust-state { display: grid; place-items: center; width: 32px; height: 32px; color: var(--profit); background: var(--profit-soft); border-radius: 50%; font-weight: 800; }
.trust-rail h3 { margin-block-end: 4px; font-size: 1rem; }
.trust-rail p { margin: 0; color: var(--muted); line-height: 1.7; }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-block-start: 24px; font-size: .85rem; font-weight: 700; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plans-grid article { display: flex; flex-direction: column; min-height: 300px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.plans-grid .plan-primary { color: #fff; border-color: var(--ink); background: var(--ink); }
.plans-grid article > span { color: var(--profit); font-size: .78rem; font-weight: 750; }
.plans-grid .plan-primary > span { color: var(--profit-bright); }
.plans-grid h3 { margin: 34px 0 10px; font-size: 1.4rem; }
.plans-grid p { margin: 0 0 28px; color: var(--muted); line-height: 1.72; }
.plans-grid .plan-primary p { color: #c1c7ce; }
.plans-grid a { margin-block-start: auto; font-weight: 750; text-underline-offset: 5px; }

.site-final-cta { padding: 100px 24px; color: #fff; text-align: center; background: var(--profit-deep); }
.site-final-cta > * { max-width: 760px; margin-inline: auto; }
.site-final-cta .site-kicker { color: var(--profit-bright); }
.site-final-cta > p { color: #c7e9dd; }
.site-final-cta > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.site-final-cta .site-primary { color: var(--ink); border-color: #fff; background: #fff; }
.site-final-cta .site-secondary { color: #fff; border-color: rgba(255, 255, 255, .42); background: transparent; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; width: min(calc(100% - 48px), 1180px); margin-inline: auto; padding-block: 42px; }
.site-footer p { margin: 0; color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; gap: 20px; color: var(--muted); font-size: .78rem; }

/* Authentication */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); min-height: 100svh; background: var(--surface); }
.auth-home-link { position: absolute; z-index: 4; inset-block-start: 28px; inset-inline-start: 32px; color: #fff; }
.auth-story { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 112px 8vw 46px; color: #fff; background: var(--ink); }
.auth-story-copy { max-width: 700px; }
.auth-story .section-kicker { color: var(--profit-bright); }
.auth-story h1 { max-width: 680px; margin-block-end: 20px; font-size: 48px; font-weight: 850; line-height: 1.38; }
.auth-story-copy > p:last-child { max-width: 64ch; margin: 0; color: #c1c7ce; font-size: 1rem; line-height: 1.78; }
.auth-signal { width: min(100%, 560px); margin-block-start: 52px; padding-block: 22px; border-block: 1px solid #343a43; }
.auth-signal-head, .auth-signal-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.auth-signal-head, .auth-signal-meta span { color: #929aa4; font-size: .78rem; }
.auth-signal > strong { display: block; margin-block: 16px 8px; color: var(--profit-bright); font-size: 2.3rem; line-height: 1.35; }
.auth-signal > p { margin-block-end: 18px; color: #c1c7ce; font-size: .83rem; }
.signal-rule { height: 4px; margin-block-end: 18px; overflow: hidden; background: #343a43; }
.signal-rule span { display: block; height: 100%; background: var(--profit-bright); }
.auth-signal-meta strong { font-size: .78rem; }
.auth-proof-line { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block-start: auto; padding-block-start: 48px; color: #929aa4; font-size: .76rem; }
.auth-proof-line span { position: relative; padding-inline-start: 14px; }
.auth-proof-line span::before { content: ""; position: absolute; inset-block-start: .65em; inset-inline-start: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--profit-bright); }
.auth-panel-wrap { display: grid; place-items: center; padding: 86px 7vw 42px; }
.auth-panel { width: min(100%, 430px); }
.auth-panel-heading { margin-block-end: 26px; }
.auth-panel-heading h2 { margin-block-end: 8px; font-size: 1.8rem; line-height: 1.5; }
.auth-panel-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.72; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-block-end: 24px; background: var(--surface-subtle); border-radius: var(--radius-lg); }
.auth-tab { min-height: 44px; border: 0; border-radius: var(--radius-md); color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.auth-tab.active { color: var(--ink); background: #fff; box-shadow: var(--shadow-float); }
.auth-form { display: none; gap: 8px; }
.auth-form.active { display: grid; }
.auth-form label, .upload-form label { margin-block-start: 9px; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.auth-form label span { color: var(--muted); font-size: .72rem; font-weight: 500; }
.auth-form input, .upload-form input { width: 100%; min-height: 48px; padding-inline: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); background: #fff; }
.auth-form input:focus, .upload-form input:focus, .audit-form input:focus, .audit-form select:focus { border-color: var(--decision); outline: 0; box-shadow: var(--focus); }
.password-field { position: relative; }
.password-field input { padding-inline-end: 76px; }
.password-field button { position: absolute; inset-block: 4px; inset-inline-end: 4px; min-width: 66px; border: 0; border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-subtle); font-size: .76rem; font-weight: 700; cursor: pointer; }
.field-help { color: var(--muted); font-size: .72rem; line-height: 1.7; }
.auth-form .primary-button { margin-block-start: 14px; }
.auth-hint { min-height: 24px; margin: 4px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.75; }
.auth-hint[data-kind="error"] { color: var(--danger); }
.auth-hint[data-kind="success"] { color: var(--profit-deep); }
.auth-legal { margin-block-start: 22px; padding-block-start: 17px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .7rem; line-height: 1.8; }

/* Product shell */
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; background: var(--canvas); }
.sidebar { position: sticky; z-index: 30; inset-block-start: 0; display: flex; flex-direction: column; min-width: 0; height: 100vh; padding: 20px 14px; border-inline-end: 1px solid var(--line); background: var(--surface); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.sidebar-brand span:last-child { display: grid; gap: 4px; }
.sidebar-brand small { color: var(--muted); font: 500 .67rem/1.4 var(--font-fa); }
.sidebar-close { display: none; width: 40px; border: 0; color: var(--muted); background: transparent; font-size: 1.5rem; }
.workspace-chip { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: center; margin-block: 24px 18px; padding: 12px; background: var(--surface-subtle); border-radius: var(--radius-md); }
.workspace-chip small { display: block; margin-block-end: 3px; color: var(--muted); font-size: .68rem; }
.workspace-chip strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: grid; gap: 3px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nav-group-label { margin: 16px 10px 4px; color: var(--muted-soft); font-size: .67rem; }
.side-nav a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: var(--radius-md); color: var(--ink-soft); font-size: .8rem; font-weight: 650; text-decoration: none; }
.side-nav a:hover { background: var(--canvas); }
.side-nav a.active { color: var(--ink); background: var(--surface-subtle); font-weight: 800; }
.nav-index { color: var(--muted-soft); font: 700 .66rem/1 Arial, sans-serif; direction: ltr; }
.side-nav a.active .nav-index { color: var(--profit); }
.sidebar-footer { margin-block-start: auto; padding: 18px 10px 2px; border-block-start: 1px solid var(--line); }
.sidebar-footer > span { color: var(--muted); font-size: .68rem; }
.sidebar-footer strong { display: flex; gap: 8px; align-items: center; margin-block: 8px; font-size: .76rem; }
.sidebar-footer p { margin: 0 0 12px; color: var(--muted); font-size: .69rem; line-height: 1.75; }
.sidebar-footer a { font-size: .72rem; font-weight: 700; }
.sidebar-scrim { position: fixed; z-index: 25; inset: 0; background: rgba(17, 20, 24, .48); }
.sidebar-scrim[hidden] { display: none; }

.dashboard { min-width: 0; padding: 0 24px 48px; }
.topbar { position: sticky; z-index: 20; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; margin-inline: -24px; padding-inline: 24px; border-block-end: 1px solid rgba(217, 222, 229, .86); background: rgba(244, 246, 248, .94); backdrop-filter: blur(14px) saturate(140%); }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.eyebrow { margin-block-end: 0; color: var(--ink); font-size: .86rem; }
.topbar-date { margin: 2px 0 0; color: var(--muted); font-size: .69rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.live-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .74rem; }
.mobile-nav-toggle { display: none; padding-inline: 12px; border: 1px solid var(--line-strong); color: var(--ink); background: #fff; font-weight: 700; }

.workspace-bar { display: grid; grid-template-columns: 1fr 2fr 1fr .72fr; width: min(100%, var(--content-width)); margin: 20px auto 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.workspace-bar > div { min-width: 0; padding: 14px 16px; }
.workspace-bar > div + div { border-inline-start: 1px solid var(--line); }
.workspace-bar span { display: block; margin-block-end: 4px; color: var(--muted); font-size: .67rem; }
.workspace-bar strong { display: block; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-readiness { background: var(--profit-soft); }
.workspace-readiness strong { color: var(--profit-deep); font-size: 1rem; }

.command-hero, .panel, .metric-grid, .content-section, .dashboard-footer { width: min(100%, var(--content-width)); margin-inline: auto; }
.command-hero { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.hero-intro { min-width: 0; padding: 28px 32px; }
.decision-brief-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 20px; }
.decision-label { display: inline-flex; align-items: center; gap: 8px; color: var(--profit-deep); font-size: .75rem; font-weight: 800; }
.evidence-label { color: var(--muted); font-size: .7rem; font-weight: 700; }
.hero-intro h1 { max-width: 780px; margin-block-end: 10px; font-size: 2rem; font-weight: 850; line-height: 1.5; }
.hero-intro > p { max-width: 68ch; margin-block-end: 22px; color: var(--muted); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.button-link { text-decoration: none; }
.hero-pulse { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--surface-subtle); }
.pulse-top, .pulse-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pulse-label { color: var(--muted); font-size: .72rem; }
.status-badge, .pill, .section-tag, .risk, .tier, .decision-status { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding-inline: 9px; border-radius: 999px; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.status-badge, .pill, .section-tag { color: var(--ink-soft); background: var(--surface-strong); }
.pill.save, .status-badge.ready, .decision-status.status-proceed { color: var(--profit-deep); background: var(--profit-soft); }
.pill.warn, .decision-status.status-review { color: var(--warning); background: var(--warning-soft); }
.decision-status.status-stop { color: var(--danger); background: var(--danger-soft); }
.pulse-score { display: flex; align-items: baseline; gap: 8px; margin-block: 28px 14px; }
.pulse-score strong { color: var(--ink); font-size: 2.5rem; line-height: 1; }
.pulse-score span { color: var(--muted); font-size: .72rem; }
.pulse-meter { height: 5px; overflow: hidden; background: var(--line); border-radius: 999px; }
.pulse-meter span { display: block; width: 0; height: 100%; background: var(--profit); transition: width 220ms cubic-bezier(.22, 1, .36, 1); }
.pulse-foot { margin-block-start: auto; padding-block-start: 20px; color: var(--muted); font-size: .72rem; }
.pulse-foot strong { color: var(--ink); font-size: 1rem; }

.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.snapshot-panel { margin-block-start: 14px; padding: 22px 24px; }
.panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading { margin-block-end: 20px; }
.panel-heading h2, .panel-heading h3 { margin: 0; }
.panel-heading h2 { font-size: 1.2rem; line-height: 1.55; }
.panel-heading h3 { font-size: 1rem; line-height: 1.65; }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block-start: 1px solid var(--line); }
.snapshot-stat { min-width: 0; padding: 20px 0 0 18px; }
.snapshot-stat + .snapshot-stat { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.snapshot-stat span, .snapshot-stat small { display: block; color: var(--muted); font-size: .7rem; line-height: 1.7; }
.snapshot-stat strong { display: block; margin-block: 10px 4px; font-size: 1.45rem; line-height: 1.4; overflow-wrap: break-word; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-block-start: 10px; }
.metric-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: .69rem; line-height: 1.65; }
.metric-card strong { display: block; margin-block: 12px 5px; font-size: 1.28rem; line-height: 1.35; }

.content-section { padding-block-start: 56px; scroll-margin-top: 76px; }
.section-heading { margin-block-end: 22px; }
.section-heading > div { max-width: 720px; }
.section-heading h2 { margin-block-end: 7px; font-size: 1.65rem; line-height: 1.55; }
.section-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.72; }

.decision-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, .8fr); gap: 10px; }
.decision-layout > *, .uplift-lab > *, .customer-product-grid > *, .evidence-layout > *, .pilot-grid > * { min-width: 0; }
.decision-panel, .decision-aside, .uplift-summary, .qini-panel, .reaction-panel, .treatment-panel,
.customer-panel, .finance-panel, .flow-panel, .experiment-builder, .data-panel, .readiness-panel,
.workspace-panel, .outcome-panel, .history-panel, .limitations-panel, .evidence-layout > .panel { padding: 22px; }
.decision-table-wrap, .treatment-table-wrap { overflow-x: auto; scrollbar-width: thin; }
.decision-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: start; }
.decision-table.compact { min-width: 560px; table-layout: fixed; }
.decision-table th { padding: 0 10px 11px; border-block-end: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 700; text-align: start; }
.decision-table td { padding: 14px 10px; border-block-end: 1px solid var(--line); font-size: .76rem; vertical-align: middle; }
.decision-table tbody tr:last-child td { border-block-end: 0; }
.decision-table small { display: block; margin-block-start: 4px; color: var(--muted); font-size: .65rem; line-height: 1.6; }
.action-name { font-size: .78rem; }
.reason-cell { min-width: 190px; color: var(--muted); line-height: 1.75; }
.risk { color: var(--warning); background: var(--warning-soft); }
.risk-low { color: var(--profit-deep); background: var(--profit-soft); }
.risk-high { color: var(--danger); background: var(--danger-soft); }
.tier { color: var(--decision); background: var(--decision-soft); }
.signal-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--profit); background: var(--profit-soft); border-radius: 50%; font-weight: 800; }
.aside-number { padding-block: 12px 20px; border-block-end: 1px solid var(--line); }
.aside-number strong { display: block; margin-block-end: 6px; font-size: 1.7rem; }
.aside-number span { color: var(--muted); font-size: .7rem; }
.stat-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 13px; border-block-end: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.stat-line strong { color: var(--ink); font-size: .85rem; }
.aside-note { margin-block-start: 18px; padding: 14px; background: var(--surface-subtle); border-radius: var(--radius-md); }
.aside-note strong { font-size: .75rem; }
.aside-note p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.75; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.action-card { display: flex; flex-direction: column; min-height: 230px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.action-card h3 { margin: 14px 0 8px; font-size: 1rem; }
.action-card p { margin: 0 0 20px; color: var(--muted); font-size: .76rem; line-height: 1.8; }
.action-bottom { display: flex; align-items: baseline; gap: 7px; margin-block-start: auto; }
.action-bottom strong { font-size: 1.4rem; }
.action-bottom span, .action-card > small { color: var(--muted); font-size: .67rem; }
.action-card > small { margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--line); line-height: 1.65; }

.uplift-lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uplift-summary-grid, .finance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.uplift-stat, .finance-stat { min-width: 0; padding: 16px; background: var(--surface-subtle); }
.uplift-stat span, .uplift-stat small, .finance-stat span, .finance-stat small { display: block; color: var(--muted); font-size: .66rem; line-height: 1.65; }
.uplift-stat strong, .finance-stat strong { display: block; margin-block: 8px 4px; font-size: 1.1rem; overflow-wrap: break-word; }
.qini-bars { display: grid; gap: 14px; }
.qini-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(120px, 1fr) auto; gap: 14px; align-items: center; }
.qini-copy strong, .qini-copy span { display: block; }
.qini-copy strong { font-size: .73rem; }
.qini-copy span { color: var(--muted); font-size: .64rem; }
.qini-track { height: 7px; overflow: hidden; background: var(--surface-strong); border-radius: 999px; }
.qini-track span { display: block; height: 100%; background: var(--decision); }
.qini-row > bdi { color: var(--muted); font-size: .67rem; }
.reaction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.reaction-card { min-width: 0; padding: 14px; background: var(--surface-subtle); border-radius: var(--radius-md); }
.reaction-card span, .reaction-card strong, .reaction-card bdi, .reaction-card small { display: block; }
.reaction-card span { color: var(--muted); font-size: .65rem; }
.reaction-card strong { margin-block: 6px; font-size: .75rem; }
.reaction-card bdi { margin-block-end: 4px; color: var(--profit-deep); font-size: 1.15rem; }
.reaction-card small { color: var(--muted); font-size: .62rem; line-height: 1.6; }
.model-card-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block-start: 10px; }
.model-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.model-card span, .model-card small { color: var(--muted); font-size: .65rem; }
.model-card strong { display: block; margin-block: 10px 6px; font-size: .88rem; }
.model-card p { margin: 0 0 12px; color: var(--muted); font-size: .7rem; line-height: 1.7; }

.customer-product-grid, .evidence-layout, .pilot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-list { display: grid; gap: 1px; background: var(--line); }
.customer-card { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 16px; padding: 16px; background: var(--surface); }
.customer-card h4 { margin: 0 0 5px; font-size: .82rem; }
.customer-card p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.7; }
.customer-score { text-align: end; }
.customer-score bdi, .customer-score span { display: block; }
.customer-score bdi { color: var(--warning); font-size: 1.1rem; }
.customer-score span { color: var(--muted); font-size: .63rem; }

.experiment-builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 42px; align-items: start; margin-block-end: 10px; }
.experiment-copy h3 { margin-block-end: 8px; font-size: 1rem; line-height: 1.75; }
.experiment-copy p { margin: 0; color: var(--muted); font-size: .75rem; }
.experiment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.experiment-grid > div { padding: 13px; background: var(--surface-subtle); }
.experiment-grid span, .experiment-grid strong { display: block; }
.experiment-grid span { color: var(--muted); font-size: .64rem; }
.experiment-grid strong { margin-block-start: 5px; font-size: .75rem; }
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stage-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 14px; background: var(--surface-subtle); border-radius: var(--radius-md); }
.stage-index { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); background: #fff; border-radius: 50%; font-size: .68rem; }
.stage-card.passed .stage-index { color: var(--profit-deep); background: var(--profit-soft); }
.stage-card strong, .stage-card span, .stage-card small { display: block; }
.stage-card strong { font-size: .72rem; }
.stage-card span, .stage-card small { margin-block-start: 4px; color: var(--muted); font-size: .62rem; line-height: 1.55; }
.evidence-layout { margin-block-start: 10px; }
.evidence-list { display: grid; gap: 1px; background: var(--line); }
.evidence-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px; background: var(--surface); }
.evidence-state { display: grid; place-items: center; width: 26px; height: 26px; color: var(--warning); background: var(--warning-soft); border-radius: 50%; font-weight: 800; }
.evidence-state.pass { color: var(--profit-deep); background: var(--profit-soft); }
.evidence-row strong, .evidence-row span { display: block; }
.evidence-row strong { font-size: .72rem; }
.evidence-row span { color: var(--muted); font-size: .65rem; }
.contract-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); }
.contract-card dl > div { padding: 13px; background: var(--surface-subtle); }
.contract-card dt { color: var(--muted); font-size: .64rem; }
.contract-card dd { margin: 5px 0 0; font-size: .73rem; font-weight: 700; }

.data-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 48px; align-items: start; }
.data-copy h3 { margin-block-end: 8px; font-size: 1.12rem; }
.data-copy > p { color: var(--muted); line-height: 1.72; }
.data-contract-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 18px; direction: ltr; }
.data-contract-tags span { padding: 5px 8px; color: var(--decision); background: var(--decision-soft); border-radius: var(--radius-sm); font: 600 .66rem/1.4 Arial, sans-serif; }
.upload-preview { display: grid; gap: 4px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--muted); }
.upload-preview strong { color: var(--ink); font-size: .74rem; }
.upload-preview span { font-size: .66rem; line-height: 1.6; }
.upload-form { display: grid; gap: 10px; }
.upload-form input[type="file"] { direction: ltr; text-align: left; padding: 9px; font-family: Arial, sans-serif; font-size: .76rem; }
.upload-form input[type="file"]::file-selector-button { min-height: 30px; margin-inline-end: 10px; padding-inline: 10px; border: 0; border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-subtle); font: inherit; cursor: pointer; }
.pilot-grid { margin-block-start: 10px; }
.readiness-score { display: flex; align-items: baseline; gap: 12px; margin-block-end: 18px; }
.readiness-score strong { color: var(--profit-deep); font-size: 2rem; }
.readiness-score span { color: var(--muted); font-size: .7rem; }
.readiness-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.readiness-check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: center; padding: 11px; background: var(--surface-subtle); border-radius: var(--radius-md); }
.readiness-check > span { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; color: var(--warning); background: var(--warning-soft); border-radius: 50%; font-weight: 800; }
.readiness-check.passed > span { color: var(--profit-deep); background: var(--profit-soft); }
.readiness-check strong, .readiness-check small { display: block; }
.readiness-check strong { font-size: .68rem; }
.readiness-check small { color: var(--muted); font-size: .61rem; }
.workspace-steps { display: grid; gap: 1px; background: var(--line); }
.workspace-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; background: var(--surface); }
.workspace-step > bdi { display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); background: var(--surface-subtle); border-radius: 50%; font-size: .67rem; }
.workspace-step.complete > bdi { color: var(--profit-deep); background: var(--profit-soft); }
.workspace-step strong, .workspace-step span { display: block; }
.workspace-step strong { font-size: .7rem; }
.workspace-step span { color: var(--muted); font-size: .62rem; }
.outcome-panel, .history-panel { margin-block-start: 10px; }
.outcome-layout { display: grid; grid-template-columns: minmax(320px, .62fr) minmax(0, 1.38fr); gap: 28px; align-items: start; }
.outcome-panel .upload-form { position: sticky; top: 88px; }
.outcome-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.outcome-readout > div { min-width: 0; min-height: 92px; padding: 16px; background: var(--surface-subtle); }
.outcome-readout span, .outcome-readout strong { display: block; }
.outcome-readout span { color: var(--muted); font-size: .68rem; line-height: 1.7; }
.outcome-readout strong { margin-block-start: 6px; color: var(--ink); font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.empty-history { grid-column: 1 / -1; padding: 20px !important; background: var(--surface-subtle) !important; }
.empty-history strong, .empty-history span { display: block; }
.empty-history strong { margin-block-end: 5px; font-size: .78rem; }
.empty-history span { color: var(--muted); font-size: .68rem; line-height: 1.7; }
.history-list { display: grid; gap: 1px; background: var(--line); }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px; background: var(--surface); }
.history-item strong, .history-item span, .history-item small { display: block; }
.history-item strong { font-size: .73rem; }
.history-item span, .history-item small { color: var(--muted); font-size: .62rem; }

.limitations-panel { display: grid; grid-template-columns: minmax(200px, .35fr) minmax(0, 1fr); gap: 40px; margin-block-start: 56px; padding: 24px; }
.limitations-panel h2 { margin: 0; font-size: 1.25rem; }
.limitations-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.limitations-panel li { position: relative; padding-inline-start: 16px; color: var(--muted); font-size: .72rem; line-height: 1.75; }
.limitations-panel li::before { content: ""; position: absolute; inset-block-start: .75em; inset-inline-start: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }
.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; margin-block-start: 28px; padding-block: 20px; color: var(--muted); font-size: .66rem; }
.dashboard-footer-links { display: flex; gap: 16px; }

@media (max-width: 1180px) {
  .site-links { display: none; }
  .site-actions { margin-inline-start: auto; }
  .site-feature-grid article, .site-feature-grid .feature-wide { grid-column: span 6; }
  .action-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-bar { grid-template-columns: repeat(2, 1fr); }
  .workspace-bar > div:nth-child(3) { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .workspace-bar > div:nth-child(4) { border-block-start: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .site-hero-copy h1 { font-size: 62px; }
  .hero-statement { font-size: 40px; }
  .outcome-list, .method-flow, .plans-grid { grid-template-columns: 1fr; }
  .outcome-list article, .outcome-list article + article { padding: 24px 0; border-inline-start: 0; border-block-end: 1px solid #343a43; }
  .method-flow li, .method-flow li + li { padding: 24px 0; border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .site-estimator { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-home-link { color: #fff; }
  .auth-story { min-height: 620px; padding-inline: 8vw; }
  .auth-panel-wrap { padding-block: 64px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; inset-block: 0; inset-inline-start: 0; width: min(86vw, 300px); height: 100dvh; visibility: hidden; transform: translateX(110%); box-shadow: var(--shadow-modal); transition: transform 220ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 220ms; }
  .sidebar.is-open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .sidebar-close, .mobile-nav-toggle { display: inline-grid; place-items: center; }
  .dashboard { padding-inline: 18px; }
  .topbar { margin-inline: -18px; padding-inline: 18px; }
  .command-hero, .decision-layout, .data-panel, .experiment-builder { grid-template-columns: minmax(0, 1fr); }
  .hero-pulse { min-height: 210px; }
  .decision-layout, .data-panel, .experiment-builder { gap: 10px; }
  .uplift-lab, .customer-product-grid, .evidence-layout, .pilot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  input, select, textarea { font-size: 16px !important; }
  .site-nav { width: min(calc(100% - 24px), 1240px); gap: 12px; }
  .site-brand .brand-symbol { width: 32px; height: 32px; }
  .site-login { display: none; }
  .site-cta { min-height: 44px; padding-inline: 12px; font-size: .76rem; }
  .site-hero { padding: 80px 16px 48px; }
  .site-hero-copy h1 { font-size: 46px; }
  .hero-statement { font-size: 32px; }
  .hero-description, .site-hero-copy > p:not(.site-kicker):not(.hero-statement) { font-size: .96rem; line-height: 1.75; }
  .site-hero-actions { display: grid; }
  .site-primary, .site-secondary { width: 100%; }
  .site-product-stage { margin-block-start: 46px; padding: 8px 8px 0; }
  .site-product-stage figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .site-outcome-band { padding: 64px 20px; }
  .site-outcome-band > h2, .site-section-head h2, .site-estimator h2, .site-final-cta h2 { font-size: 29px; }
  .site-product, .site-method, .site-estimator, .site-trust, .site-plans { width: min(calc(100% - 32px), 1180px); padding-block: 72px; }
  .site-feature-grid { display: block; border-radius: var(--radius-lg); }
  .site-feature-grid article { min-height: auto; border-block-end: 1px solid var(--line); }
  .site-feature-grid strong { margin-block: 18px 24px; font-size: 1.55rem; }
  .audit-form { padding: 18px; }
  .plans-grid article { min-height: 260px; }
  .site-footer { width: min(calc(100% - 32px), 1180px); }
  .auth-story { min-height: 520px; padding: 100px 24px 34px; }
  .auth-story h1 { font-size: 34px; }
  .auth-story-copy > p:last-child { font-size: .9rem; }
  .auth-signal { margin-block-start: 34px; }
  .auth-signal > strong { font-size: 1.8rem; }
  .auth-proof-line { padding-block-start: 30px; }
  .auth-panel-wrap { padding: 52px 20px 34px; }
  .topbar { min-height: 62px; }
  .live-status { display: none; }
  .workspace-bar { grid-template-columns: 1fr; margin-block-start: 14px; }
  .workspace-bar > div + div, .workspace-bar > div:nth-child(3) { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .command-hero { grid-template-columns: 1fr; }
  .hero-intro { padding: 22px; }
  .decision-brief-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-intro h1 { font-size: 1.55rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .primary-button { width: 100%; }
  .snapshot-grid, .metric-grid, .action-grid, .uplift-summary-grid, .finance-grid, .reaction-grid,
  .model-card-strip, .experiment-grid, .stage-grid, .readiness-checks, .outcome-readout { grid-template-columns: 1fr; }
  .snapshot-stat, .snapshot-stat + .snapshot-stat { padding: 16px 0; border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .snapshot-stat:first-child { border-block-start: 0; }
  .panel-heading, .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 1.4rem; }
  .decision-panel, .decision-aside, .uplift-summary, .qini-panel, .reaction-panel, .treatment-panel,
  .customer-panel, .finance-panel, .flow-panel, .experiment-builder, .data-panel, .readiness-panel,
  .workspace-panel, .outcome-panel, .history-panel, .limitations-panel, .evidence-layout > .panel { padding: 18px; }
  .qini-row { grid-template-columns: 1fr; gap: 7px; }
  .customer-card { grid-template-columns: 1fr; }
  .customer-score { text-align: start; }
  .outcome-layout, .limitations-panel { grid-template-columns: 1fr; gap: 22px; }
  .outcome-panel .upload-form { position: static; }
  .contract-card dl { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; }
  .dashboard-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .motion-enabled .motion-reveal, .motion-enabled .site-product-stage.motion-reveal { opacity: 1 !important; transform: none !important; }
  .motion-enabled .qini-track span, .motion-enabled .signal-rule span, .motion-enabled .pulse-meter span { transform: none !important; }
  button[aria-busy="true"]::before, .is-busy::before { border-inline-start-color: currentColor; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .topbar { background: var(--surface); backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #404650; --line: #aab2bd; --line-strong: #7e8793; }
}

/* Executive report */
.report-page { background: #e9edf2; }
.executive-report { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 18px 0 42px; color: var(--ink); }
.report-toolbar { position: sticky; z-index: 10; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin-block-end: 18px; padding: 10px 0; background: rgba(233, 237, 242, .88); backdrop-filter: blur(14px); }
.report-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-cover { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: stretch; margin-block-end: 14px; padding: 34px; background: #fff; }
.report-cover h1 { max-width: 720px; margin-block: 8px 14px; font-size: 2.6rem; line-height: 1.35; text-wrap: balance; }
.report-cover p { max-width: 760px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 2; }
.report-decision-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 22px; color: #fff; background: var(--ink); border-radius: var(--radius-lg); }
.report-decision-card.review { background: #5e4a10; }
.report-decision-card.positive { background: var(--profit-deep); }
.report-decision-card.negative { background: #7a202c; }
.report-decision-card.pending { background: var(--decision); }
.report-decision-card span, .report-decision-card small { color: rgba(255, 255, 255, .76); line-height: 1.8; }
.report-decision-card strong { font-size: 1.45rem; line-height: 1.55; }
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-block-end: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.report-kpi-card { min-width: 0; min-height: 148px; padding: 18px; background: #fff; }
.report-kpi-card span, .report-kpi-card small { display: block; color: var(--muted); line-height: 1.8; }
.report-kpi-card span { font-size: .72rem; font-weight: 800; }
.report-kpi-card strong { display: block; margin-block: 16px 8px; font-size: 1.38rem; line-height: 1.35; overflow-wrap: anywhere; }
.report-kpi-card small { font-size: .72rem; }
.report-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-end: 14px; }
.report-narrative, .report-section { padding: 24px; background: #fff; }
.report-narrative h2, .report-section h2 { margin-block: 6px 12px; font-size: 1.18rem; line-height: 1.6; }
.report-narrative p { margin: 0; color: var(--ink-soft); line-height: 2; text-wrap: pretty; }
.report-section { margin-block-end: 14px; }
.report-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-block-end: 18px; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.report-table th { padding: 12px; color: var(--muted); background: var(--surface-subtle); font-size: .7rem; text-align: right; white-space: nowrap; }
.report-table td { padding: 14px 12px; border-block-start: 1px solid var(--line); color: var(--ink-soft); line-height: 1.8; vertical-align: top; }
.report-table td:nth-child(2) { color: var(--ink); font-weight: 850; white-space: nowrap; }
.report-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.report-list li { position: relative; padding: 12px 38px 12px 14px; color: var(--ink-soft); background: var(--surface-subtle); border-radius: var(--radius-md); line-height: 1.85; }
.report-list li::before { content: ""; position: absolute; inset-block-start: 1.1em; inset-inline-start: 16px; width: 8px; height: 8px; background: var(--warning); border-radius: 50%; }
.report-list.numbered { counter-reset: action; }
.report-list.numbered li { counter-increment: action; }
.report-list.numbered li::before { content: counter(action, persian); inset-block-start: 12px; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: var(--profit); font-size: .68rem; font-weight: 850; }
.report-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); }
.report-step { min-width: 0; min-height: 116px; padding: 14px; background: var(--surface-subtle); }
.report-step span { display: grid; place-items: center; width: 28px; height: 28px; margin-block-end: 16px; color: var(--muted); background: #fff; border-radius: 50%; font-weight: 850; }
.report-step.complete span { color: var(--profit-deep); background: var(--profit-soft); }
.report-step strong, .report-step small { display: block; line-height: 1.7; }
.report-step strong { font-size: .76rem; }
.report-step small { color: var(--muted); font-size: .68rem; }
.report-footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .72rem; line-height: 1.8; }
.report-error { max-width: 640px; margin: 80px auto; padding: 32px; background: #fff; }

@media (max-width: 980px) {
  .report-cover, .report-two-column { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .report-grid, .report-steps { grid-template-columns: 1fr; }
  .report-toolbar { position: static; align-items: flex-start; flex-direction: column; }
  .report-cover { padding: 24px; }
  .report-cover h1 { font-size: 2rem; }
}

@page { size: A4; margin: 12mm; }
@media print {
  body.report-page { background: #fff; }
  .report-toolbar { display: none; }
  .executive-report { width: 100%; padding: 0; }
  .panel, .report-kpi-card, .report-decision-card { break-inside: avoid; box-shadow: none !important; }
  .report-cover, .report-two-column, .report-section, .report-grid { margin-block-end: 10mm; }
  .report-cover { grid-template-columns: 1fr 70mm; padding: 0; border: 0; }
  .report-cover h1 { font-size: 25pt; }
  .report-cover p, .report-narrative p, .report-table td, .report-list li { font-size: 9.5pt; }
  .report-grid { grid-template-columns: repeat(4, 1fr); border-color: #d9dee5; }
  .report-kpi-card { min-height: 32mm; }
  .report-two-column { grid-template-columns: repeat(2, 1fr); }
  .report-steps { grid-template-columns: repeat(7, 1fr); }
  .report-footer { border-block-start: 1px solid #d9dee5; padding-block-start: 5mm; }
}
