html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
  --flow-ink: #17142f;
  --flow-muted: #74758c;
  --flow-violet: #6f5cf6;
  --flow-violet-dark: #5440dc;
  --flow-teal: #20c7a8;
  --flow-surface: #ffffff;
  --flow-canvas: #f5f6fb;
  --flow-border: #e8e8f2;
}

body {
  color: var(--flow-ink);
  background: var(--flow-canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
  position: relative;
  z-index: 20;
  min-height: 68px;
  padding: .6rem clamp(1rem, 3vw, 2.75rem);
  background: #17142f;
  box-shadow: 0 9px 30px rgba(26, 20, 60, .13);
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, .72) !important;
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 550;
  padding: .55rem .65rem !important;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
}

.app-navbar .app-user-name {
  color: rgba(255, 255, 255, .48) !important;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: 1.5rem;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.app-brand b {
  color: #9f92ff;
}

.app-brand__mark,
.auth-brand__mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(145deg, #8e7cff, #6050e7);
  box-shadow: 0 8px 20px rgba(111, 92, 246, .3);
  font-weight: 800;
}

/* Login */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
}

.auth-body main.pb-3 {
  padding-bottom: 0 !important;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 100vh;
  overflow: hidden;
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 4.5rem);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(122, 104, 255, .2), transparent 29%),
    linear-gradient(145deg, #16132f 0%, #21194b 55%, #18132f 100%);
}

.auth-story::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .26;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-story__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.auth-story__glow--one {
  top: 10%;
  right: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(132, 113, 255, .2);
  box-shadow: inset 0 0 100px rgba(112, 91, 246, .08);
}

.auth-story__glow--two {
  bottom: -17rem;
  left: -12rem;
  width: 36rem;
  height: 36rem;
  background: rgba(39, 204, 174, .08);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .8rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.auth-brand:hover { color: #fff; }
.auth-brand b { color: #9c8cff; }

.auth-story__copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: auto 0;
  padding: 5rem 0 3rem;
}

.auth-kicker,
.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #bdb5ff;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-kicker span {
  width: 1.8rem;
  height: 1px;
  background: #7968ff;
}

.auth-story h1 {
  margin: 1.15rem 0 1.35rem;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  font-weight: 720;
  line-height: .99;
  letter-spacing: -.065em;
}

.auth-story h1 em {
  color: #8b79ff;
  font-style: normal;
}

.auth-story__copy > p {
  max-width: 590px;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.auth-flow-preview {
  display: flex;
  align-items: center;
  width: min(700px, 100%);
  margin-top: clamp(3rem, 7vh, 5.75rem);
}

.auth-flow-preview > i {
  flex: 1;
  height: 1px;
  margin: 0 1rem;
  background: linear-gradient(90deg, rgba(112, 92, 246, .85), rgba(255, 255, 255, .12));
}

.auth-flow-step {
  display: flex;
  min-width: 145px;
  align-items: center;
  gap: .7rem;
}

.auth-flow-step > span {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .55);
  font-size: .66rem;
  font-weight: 750;
}

.auth-flow-step.is-done > span {
  border-color: rgba(41, 205, 174, .38);
  color: #47dfc2;
  background: rgba(41, 205, 174, .12);
}

.auth-flow-step.is-active > span {
  border-color: #8170ff;
  color: #fff;
  background: #6f5cf6;
  box-shadow: 0 0 0 7px rgba(112, 92, 246, .12), 0 0 24px rgba(112, 92, 246, .5);
}

.auth-flow-step div { display: grid; gap: .1rem; }
.auth-flow-step strong { font-size: .82rem; font-weight: 650; }
.auth-flow-step small { color: rgba(255, 255, 255, .4); font-size: .65rem; white-space: nowrap; }

.auth-story__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, .42);
  font-size: .72rem;
}

.auth-story__footer span:first-child {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.auth-story__footer b {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #2bd1af;
  box-shadow: 0 0 12px rgba(43, 209, 175, .8);
}

.auth-login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 3rem clamp(2rem, 7vw, 7rem);
  background: #fff;
}

.auth-login-wrap { width: min(440px, 100%); }
.auth-mobile-brand { display: none; }

.auth-login-heading > span {
  color: var(--flow-violet);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.auth-login-heading h2 {
  margin: .55rem 0 .45rem;
  color: #17142f;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 750;
  letter-spacing: -.055em;
}

.auth-login-heading p {
  margin: 0;
  color: #858597;
  font-size: .95rem;
}

.auth-form { margin-top: 2.4rem; }
.auth-field { margin-bottom: 1.35rem; }

.auth-field > label,
.auth-label-row label {
  margin-bottom: .55rem;
  color: #343247;
  font-size: .8rem;
  font-weight: 680;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label-row a {
  color: var(--flow-violet);
  font-size: .75rem;
  text-decoration: none;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg {
  position: absolute;
  left: 1rem;
  width: 1.1rem;
  fill: none;
  stroke: #a5a5b5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-input-wrap input {
  width: 100%;
  height: 3.45rem;
  padding: 0 3rem 0 3rem;
  border: 1px solid #e1e1eb;
  border-radius: .9rem;
  outline: none;
  color: #201d38;
  background: #fbfbfd;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input-wrap input:focus {
  border-color: #8878f4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111, 92, 246, .1);
}

.auth-input-wrap button {
  position: absolute;
  right: .65rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 0;
  border-radius: .6rem;
  color: #9999aa;
  background: transparent;
}

.auth-input-wrap button:hover { background: #f0effa; }
.auth-input-wrap button svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.auth-input-wrap button.is-visible { color: var(--flow-violet); }
.auth-field-error { display: block; margin-top: .3rem; color: #c63d57; font-size: .74rem; }

.auth-validation {
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid #f1c7ce;
  border-radius: .75rem;
  color: #a52d43;
  background: #fff3f5;
  font-size: .8rem;
}

.auth-validation.validation-summary-valid { display: none; }
.auth-validation ul { margin: 0; padding-left: 1rem; }

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: .1rem 0 1.6rem;
  cursor: pointer;
}

.auth-remember input { position: absolute; opacity: 0; pointer-events: none; }
.auth-remember > span {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid #ceceda;
  border-radius: .35rem;
  background: #fff;
}

.auth-remember input:checked + span { border-color: var(--flow-violet); background: var(--flow-violet); }
.auth-remember input:checked + span::after {
  position: absolute;
  top: .17rem;
  left: .35rem;
  width: .32rem;
  height: .58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.auth-remember b { color: #555366; font-size: .8rem; font-weight: 520; }

.auth-submit,
.demo-primary-button {
  display: flex;
  width: 100%;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 0;
  border-radius: .9rem;
  color: #fff;
  background: linear-gradient(135deg, #765ff8, #5d4ae6);
  box-shadow: 0 14px 30px rgba(100, 79, 231, .24);
  font-size: .87rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.auth-submit:hover,
.demo-primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 17px 34px rgba(100, 79, 231, .32);
}

.auth-submit svg,
.demo-primary-button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-setup-link {
  margin-top: 1.35rem;
  color: #aaa9b6;
  text-align: center;
  font-size: .72rem;
}

.auth-setup-link a { color: #777587; }

.auth-security-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid #eeeeF3;
  color: #a09faf;
  font-size: .7rem;
  line-height: 1.5;
}

.auth-security-note svg { width: 1.35rem; flex: 0 0 auto; fill: none; stroke: #8070ea; stroke-width: 1.5; }

/* Sales demo */
.demo-body {
  margin-bottom: 0;
  background: #f3f4f9;
}

.demo-body main.pb-3 { padding-bottom: 0 !important; }

.demo-page {
  min-height: calc(100vh - 68px);
  background:
    radial-gradient(circle at 90% 20%, rgba(118, 95, 248, .055), transparent 25rem),
    #f3f4f9;
}

.demo-hero {
  position: relative;
  display: grid;
  min-height: 355px;
  grid-template-columns: minmax(0, 1.2fr) minmax(370px, .8fr);
  align-items: center;
  padding: 3.2rem clamp(1.25rem, 6vw, 7rem) 5.2rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(125deg, #17142f, #241a50 70%, #1d1640);
}

.demo-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .24) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 70%, transparent);
}

.demo-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.demo-hero__glow--one { top: -11rem; right: 4%; width: 29rem; height: 29rem; background: rgba(113, 91, 247, .14); }
.demo-hero__glow--two { bottom: -15rem; left: 38%; width: 26rem; height: 26rem; background: rgba(32, 199, 168, .08); }
.demo-hero__content { position: relative; z-index: 2; }
.demo-live-dot { width: .48rem; height: .48rem; border-radius: 50%; background: #35dab9; box-shadow: 0 0 0 5px rgba(53, 218, 185, .1), 0 0 18px #35dab9; }

.demo-hero h1 {
  margin: .8rem 0 .9rem;
  font-size: clamp(2.5rem, 4.3vw, 4.7rem);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.demo-hero h1 span { color: #9483ff; }
.demo-hero__content > p { max-width: 710px; margin: 0; color: rgba(255,255,255,.59); font-size: .98rem; line-height: 1.65; }

.demo-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.demo-hero__chips span { padding: .42rem .72rem; border: 1px solid rgba(255,255,255,.1); border-radius: 2rem; color: rgba(255,255,255,.7); background: rgba(255,255,255,.045); font-size: .69rem; }
.demo-hero__chips span::before { margin-right: .4rem; color: #4cddc0; content: "✓"; }

.demo-hero__visual {
  position: relative;
  z-index: 2;
  width: 410px;
  height: 245px;
  justify-self: end;
}

.demo-document-card,
.demo-data-card {
  position: absolute;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.075);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
}

.demo-document-card {
  top: 5px;
  left: 0;
  width: 205px;
  height: 235px;
  padding: 1.6rem;
  border-radius: 1.15rem;
  transform: rotate(-5deg);
}

.demo-document-card__label,
.demo-data-card > span { color: #a79bdb; font-size: .54rem; font-weight: 800; letter-spacing: .13em; }
.demo-document-card__line { width: 78%; height: 5px; margin-top: .95rem; border-radius: 1rem; background: rgba(255,255,255,.13); }
.demo-document-card__line--wide { width: 100%; margin-top: 2rem; }
.demo-document-card__line--short { width: 48%; }
.demo-document-card__amount { margin-top: 3rem; color: #fff; font-size: 1.65rem; font-weight: 720; letter-spacing: -.04em; }
.demo-document-card__amount small { color: #8c80bd; font-size: .6rem; letter-spacing: .08em; }

.demo-ai-orbit {
  position: absolute;
  z-index: 3;
  top: 89px;
  left: 184px;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(150, 134, 255, .55);
  border-radius: 50%;
  background: #6f5cf6;
  box-shadow: 0 0 0 10px rgba(111,92,246,.1), 0 0 45px rgba(111,92,246,.5);
  font-size: .84rem;
  font-weight: 800;
}

.demo-data-card {
  right: 0;
  bottom: 15px;
  display: flex;
  width: 185px;
  height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  transform: rotate(4deg);
}

.demo-data-card strong { margin-top: .35rem; color: #46dfc0; font-size: 2.2rem; line-height: 1; letter-spacing: -.06em; }
.demo-data-card small { margin-top: .25rem; color: rgba(255,255,255,.42); font-size: .62rem; }

.demo-workspace {
  position: relative;
  z-index: 5;
  display: grid;
  max-width: 1720px;
  grid-template-columns: 350px minmax(500px, 1fr) 320px;
  gap: 1.1rem;
  margin: -2.8rem auto 0;
  padding: 0 clamp(1rem, 3vw, 3rem) 3.5rem;
}

.demo-card {
  border: 1px solid rgba(227, 227, 239, .95);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 50px rgba(39, 34, 76, .075);
}

.demo-upload-card,
.demo-process-card,
.demo-history-card { padding: 1.45rem; }

.demo-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.demo-card__heading > div { display: flex; align-items: center; gap: .7rem; }
.demo-section-number { color: #8573f4; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.demo-card__heading h2 { margin: 0; color: #252139; font-size: .97rem; font-weight: 720; letter-spacing: -.025em; }
.demo-secure-badge { padding: .32rem .55rem; border-radius: 1rem; color: #1a917c; background: #e9faf6; font-size: .58rem; font-weight: 700; white-space: nowrap; }

.demo-dropzone {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.2rem;
  border: 1.5px dashed #cfcbed;
  border-radius: 1rem;
  outline: none;
  cursor: pointer;
  background: linear-gradient(145deg, #fbfaff, #f8f8fc);
  transition: border-color .2s, background .2s, transform .2s;
}

.demo-dropzone:hover,
.demo-dropzone:focus,
.demo-dropzone.is-dragging { border-color: #7966f3; background: #f5f2ff; transform: translateY(-1px); }
.demo-dropzone__icon { display: grid; width: 3.1rem; height: 3.1rem; margin-bottom: .8rem; place-items: center; border-radius: .9rem; color: #705cf0; background: #ece9ff; }
.demo-dropzone__icon svg { width: 1.45rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.demo-dropzone strong { color: #322e4a; font-size: .9rem; }
.demo-dropzone > span { margin-top: .2rem; color: #8e8ca0; font-size: .72rem; }
.demo-dropzone small { margin-top: 1rem; color: #b0afbc; font-size: .58rem; letter-spacing: .04em; }

.demo-selected-file { display: flex; min-height: 82px; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid #e3e1f0; border-radius: .85rem; background: #faf9fe; }
.demo-selected-file__icon { display: grid; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; place-items: center; border-radius: .7rem; color: #6453df; background: #ebe8ff; font-size: .58rem; font-weight: 800; }
.demo-selected-file__meta { display: grid; min-width: 0; flex: 1; }
.demo-selected-file__meta strong { overflow: hidden; color: #302c45; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-selected-file__meta span { color: #9694a4; font-size: .65rem; }
.demo-selected-file > button { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 0; border-radius: .5rem; color: #8e8b9e; background: transparent; font-size: 1.2rem; }
.demo-selected-file > button:hover { color: #c33953; background: #fff0f3; }
.demo-file-list { display: grid; gap: .65rem; max-height: 28rem; overflow-y: auto; margin: .8rem 0; }
.demo-file-list:empty { display: none; }
.demo-file-list .demo-upload-file-progress { display: block; }
.demo-file-list .demo-selected-file__meta .demo-file-message { margin-top: .25rem; color: #655c82; white-space: normal; overflow-wrap: anywhere; }
.demo-file-list .is-error { border-color: #df9da8; background: #fff6f8; }
.demo-file-list .is-error .demo-file-message { color: #a42d47; }
.demo-file-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.demo-file-actions button { border: 0; border-radius: .4rem; padding: .25rem .4rem; font-size: .7rem; color: #6453df; background: #ebe8ff; }
.demo-file-actions button:disabled { opacity: .45; }
.demo-file-actions button:focus-visible { outline: 2px solid #6453df; outline-offset: 2px; }
.demo-queue-summary { color: #655c82; font-size: .78rem; margin: .7rem 0; }
.demo-queue-actions { margin-bottom: .6rem; }
.demo-dropzone[aria-disabled="true"] { opacity: .55; cursor: wait; }

.demo-field-label { display: block; margin: 1.15rem 0 .45rem; color: #49465b; font-size: .72rem; font-weight: 670; }
.demo-field-label span { color: #aaa8b4; font-weight: 450; }
.demo-upload-card textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #e1e0e9; border-radius: .75rem; outline: none; resize: vertical; color: #343044; background: #fbfbfd; font-size: .75rem; }
.demo-upload-card textarea:focus { border-color: #8d7cf5; box-shadow: 0 0 0 3px rgba(111,92,246,.09); }
.demo-primary-button { min-height: 3rem; margin-top: 1rem; border-radius: .75rem; font-size: .78rem; }
.demo-primary-button:disabled { cursor: not-allowed; opacity: .44; box-shadow: none; }
.demo-primary-button.is-busy svg { animation: demo-spin 1s linear infinite; }
.demo-inline-error { margin-top: .8rem; padding: .65rem .75rem; border-radius: .65rem; color: #a33448; background: #fff0f3; font-size: .7rem; }

.demo-process-card { min-height: 600px; }
.demo-process-heading { margin-bottom: 1.15rem; }
.demo-icon-button { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border: 1px solid #e4e3ec; border-radius: .65rem; color: #777487; background: #fff; }
.demo-icon-button:hover { color: #6856e9; background: #f6f4ff; }
.demo-icon-button svg { width: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.demo-empty-state { display: grid; min-height: 480px; place-items: center; align-content: center; text-align: center; }
.demo-empty-state__graphic { position: relative; width: 130px; height: 95px; margin-bottom: 1.2rem; }
.demo-empty-state__graphic span { position: absolute; top: 10px; left: 40px; width: 55px; height: 72px; border: 1px solid #dad7ef; border-radius: .6rem; background: #f9f8ff; box-shadow: 0 10px 25px rgba(50,40,100,.05); }
.demo-empty-state__graphic span:nth-child(1) { transform: translateX(-25px) rotate(-12deg); }
.demo-empty-state__graphic span:nth-child(2) { z-index: 2; border-color: #b9b1ed; background: #f4f1ff; }
.demo-empty-state__graphic span:nth-child(3) { transform: translateX(25px) rotate(12deg); }
.demo-empty-state h3 { margin: 0 0 .35rem; color: #3a3650; font-size: 1rem; }
.demo-empty-state p { max-width: 320px; margin: 0; color: #9a98a8; font-size: .75rem; line-height: 1.6; }

.demo-process-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.05rem; border-radius: .9rem; background: #f8f8fb; }
.demo-process-file { display: block; max-width: 500px; overflow: hidden; color: #8c899b; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-process-summary h3 { margin: .25rem 0 0; color: #29253d; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.demo-state-badge { flex: 0 0 auto; padding: .38rem .62rem; border-radius: 2rem; font-size: .61rem; font-weight: 750; }
.demo-state-badge.is-processing { color: #5c4bd4; background: #ebe8ff; }
.demo-state-badge.is-complete { color: #11826d; background: #e4f9f3; }
.demo-state-badge.is-review { color: #a56a12; background: #fff4db; }
.demo-state-badge.is-error { color: #aa354a; background: #ffeaee; }

.demo-progress-track { height: 5px; margin-top: 1rem; overflow: hidden; border-radius: 1rem; background: #ebeaf1; }
.demo-progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e59f1, #8370ff, #28c9ab); transition: width .55s ease; }
.demo-progress-caption { display: flex; justify-content: space-between; margin-top: .4rem; color: #a2a0ad; font-size: .58rem; }
.demo-progress-caption span:first-child { color: #6757d9; font-weight: 700; }

.demo-timeline { display: grid; gap: 0; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.demo-timeline-item { position: relative; display: grid; min-height: 68px; grid-template-columns: 2rem 1fr; gap: .75rem; }
.demo-timeline-item:not(:last-child)::before { position: absolute; top: 1.85rem; bottom: 0; left: .93rem; width: 1px; content: ""; background: #e5e4ec; }
.demo-timeline-item__marker { position: relative; z-index: 1; display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border: 1px solid #dfdee8; border-radius: 50%; color: #aaa8b5; background: #fff; font-size: .72rem; font-weight: 750; }
.demo-timeline-item strong { display: block; margin-top: .08rem; color: #383448; font-size: .76rem; }
.demo-timeline-item p { margin: .15rem 0 0; color: #9492a0; font-size: .66rem; line-height: 1.45; }
.demo-timeline-item time { display: block; margin-top: .2rem; color: #b4b2be; font-size: .55rem; }
.demo-timeline-item.is-complete .demo-timeline-item__marker { border-color: #a9eadc; color: #15917a; background: #eafaf6; }
.demo-timeline-item.is-current .demo-timeline-item__marker { border-color: #7966f3; color: #fff; background: #705cf1; box-shadow: 0 0 0 5px rgba(112,92,241,.08); animation: demo-pulse 1.8s ease-in-out infinite; }
.demo-timeline-item.is-warning .demo-timeline-item__marker { border-color: #edcf8a; color: #9b6715; background: #fff5de; }
.demo-timeline-item.is-error .demo-timeline-item__marker { border-color: #e9aebb; color: #b83e55; background: #fff0f3; }
.demo-timeline-item.is-unavailable .demo-timeline-item__marker { border-color: #d4d1de; color: #777281; background: #f4f3f7; }
.demo-timeline-item.is-pending { opacity: .6; }

.demo-result { margin-top: .75rem; padding: 1.15rem; border: 1px solid #dcd8fa; border-radius: 1rem; background: linear-gradient(145deg, #f9f8ff, #f4fffc); }
.demo-result__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-result__eyebrow { color: #7764e9; font-size: .54rem; font-weight: 800; letter-spacing: .13em; }
.demo-result h3 { margin: .25rem 0 .1rem; color: #26213d; font-size: 1.3rem; font-weight: 750; }
.demo-result__top p { margin: 0; color: #868393; font-size: .72rem; }
.demo-confidence { position: relative; display: grid; width: 86px; height: 86px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(#2bc7aa var(--confidence-angle), #e4e2ee 0); }
.demo-confidence::before { position: absolute; inset: 8px; border-radius: 50%; content: ""; background: #f8fcfb; }
.demo-confidence > div { position: relative; z-index: 1; display: grid; text-align: center; }
.demo-confidence strong { color: #25213a; font-size: 1rem; }
.demo-confidence span { color: #9693a1; font-size: .5rem; }
.demo-result__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .55rem; margin-top: 1rem; }
.demo-result__grid > div { display: grid; gap: .15rem; padding: .65rem; border-radius: .65rem; background: rgba(255,255,255,.72); }
.demo-result__grid span { color: #9a97a6; font-size: .55rem; }
.demo-result__grid strong { overflow: hidden; color: #3c374d; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-secondary-button { display: inline-flex; margin-top: .9rem; padding: .55rem .75rem; border: 1px solid #d8d3fa; border-radius: .65rem; color: #5f4fd4; text-decoration: none; font-size: .65rem; font-weight: 700; }
.demo-secondary-button:hover { color: #4e3dc7; background: #eeebff; }

.demo-history { display: grid; gap: .5rem; }
.demo-history__empty { padding: 2.5rem 1rem; color: #aaa8b6; text-align: center; font-size: .7rem; line-height: 1.55; }
.demo-history-item { display: grid; width: 100%; grid-template-columns: 2.3rem minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .65rem; border: 1px solid transparent; border-radius: .75rem; color: inherit; text-align: left; background: transparent; transition: background .18s, border-color .18s; }
.demo-history-item:hover { background: #f8f7fd; }
.demo-history-item.is-selected { border-color: #ded9fb; background: #f6f4ff; }
.demo-history-item__icon { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border-radius: .6rem; color: #6a58df; background: #ebe8ff; font-size: .49rem; font-weight: 800; }
.demo-history-item__body { display: grid; min-width: 0; }
.demo-history-item__body strong { overflow: hidden; color: #3b374b; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-history-item__body small { color: #aaa8b5; font-size: .55rem; }
.demo-history-item__status { display: grid; justify-items: end; gap: .12rem; color: #8d8a99; font-size: .53rem; white-space: nowrap; }
.demo-history-item__status::before { display: inline-block; width: .38rem; height: .38rem; margin-right: .25rem; border-radius: 50%; background: currentColor; content: ""; }
.demo-history-item__status b { color: #504a61; font-size: .58rem; }
.demo-history-item__status.is-complete { color: #15957d; }
.demo-history-item__status.is-active { color: #6e59eb; }
.demo-history-item__status.is-review { color: #b27716; }
.demo-history-item__status.is-error { color: #bb3d55; }
.demo-all-documents { display: flex; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #eeeeF3; color: #7061ce; text-decoration: none; font-size: .65rem; font-weight: 680; }
.demo-all-documents:hover { color: #5544c8; }

@keyframes demo-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(112,92,241,.08); }
  50% { box-shadow: 0 0 0 8px rgba(112,92,241,.02); }
}

@keyframes demo-spin { to { transform: rotate(360deg); } }

@media (max-width: 1320px) {
  .demo-workspace { grid-template-columns: 330px minmax(500px, 1fr); }
  .demo-history-card { grid-column: 1 / -1; }
  .demo-history { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1050px) {
  .auth-page { grid-template-columns: 1fr 460px; }
  .auth-flow-preview { display: grid; gap: .85rem; }
  .auth-flow-preview > i { display: none; }
  .auth-story h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
  .demo-hero { grid-template-columns: 1fr; padding-bottom: 5.5rem; }
  .demo-hero__visual { display: none; }
}

@media (max-width: 850px) {
  .auth-page { display: block; background: #f7f7fb; }
  .auth-story { display: none; }
  .auth-login-panel { min-height: 100vh; padding: 2rem 1.25rem; background: radial-gradient(circle at top left, rgba(111,92,246,.08), transparent 18rem), #fff; }
  .auth-mobile-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 4rem; color: #211d3d; font-size: 1rem; }
  .auth-mobile-brand b { color: #6f5cf6; }
  .auth-login-wrap { max-width: 430px; }
  .demo-workspace { grid-template-columns: 1fr; margin-top: -2.25rem; }
  .demo-history-card { grid-column: auto; }
  .demo-history { grid-template-columns: 1fr 1fr; }
  .demo-process-card { min-height: auto; }
}

@media (max-width: 575px) {
  .app-navbar { padding-inline: .8rem; }
  .demo-hero { min-height: 330px; padding: 2.6rem 1.1rem 4.7rem; }
  .demo-hero h1 { font-size: 2.55rem; }
  .demo-hero__content > p { font-size: .84rem; }
  .demo-workspace { padding-inline: .65rem; }
  .demo-upload-card, .demo-process-card, .demo-history-card { padding: 1rem; border-radius: 1rem; }
  .demo-history { grid-template-columns: 1fr; }
  .demo-result__grid { grid-template-columns: 1fr 1fr; }
  .demo-process-summary { align-items: flex-start; flex-direction: column; }
  .demo-process-file { max-width: 260px; }
  .auth-login-heading h2 { font-size: 2.3rem; }
  .auth-security-note { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Guided sales-demo flow */
.demo-story-shell {
  position: relative;
  z-index: 6;
  max-width: 1520px;
  margin: -3.15rem auto 1.15rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.demo-story-card {
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(227, 227, 239, .95);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.985);
  box-shadow: 0 18px 50px rgba(39, 34, 76, .085);
}

.demo-story-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.demo-card-kicker {
  display: block;
  color: #7a68e9;
  font-size: .54rem;
  font-weight: 820;
  letter-spacing: .13em;
  white-space: nowrap;
}

.demo-story-card__top h2 {
  margin: .18rem 0 0;
  color: #252139;
  font-size: 1.05rem;
  font-weight: 740;
  letter-spacing: -.025em;
}

.demo-workspace-badge {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border: 1px solid #d8f0ea;
  border-radius: 2rem;
  color: #147d6b;
  background: #effbf8;
  font-size: .62rem;
  font-weight: 710;
}

.demo-workspace-badge i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #22b99c;
  box-shadow: 0 0 0 4px rgba(34,185,156,.1);
}

.demo-story-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0,1fr));
  gap: .65rem;
  margin: 1.1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

.demo-story-rail li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  padding: .65rem .7rem;
  border: 1px solid #ebeaf1;
  border-radius: .8rem;
  background: #fafafd;
  transition: border-color .25s, background .25s, transform .25s;
}

.demo-story-rail li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #a4a1b0;
  background: #efeff4;
  font-size: .53rem;
  font-weight: 800;
}

.demo-story-rail li > div { display: grid; min-width: 0; }
.demo-story-rail strong { overflow: hidden; color: #4a4658; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-story-rail small { color: #aaa8b5; font-size: .53rem; }
.demo-story-rail li.is-complete { border-color: #d7f0ea; background: #f4fcfa; }
.demo-story-rail li.is-complete > span { color: #fff; background: #20aa91; }
.demo-story-rail li.is-current { border-color: #cfc7ff; background: #f5f2ff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(103,84,220,.09); }
.demo-story-rail li.is-current > span { color: #fff; background: #705cf1; animation: demo-pulse 1.8s ease-in-out infinite; }
.demo-story-rail li.is-warning { border-color: #f0d79e; background: #fff9ec; }
.demo-story-rail li.is-unavailable { border-color: #ddd9e5; background: #f6f5f8; }
.demo-story-rail li.is-warning > span { color: #8d5d0f; background: #ffe9b7; }
.demo-story-rail li.is-error { border-color: #efc2cb; background: #fff4f6; }
.demo-story-rail li.is-error > span { color: #fff; background: #c3465d; }
.demo-story-rail li.is-pending { opacity: .68; }

.demo-access-panel {
  display: grid;
  grid-template-columns: minmax(210px,1.05fr) minmax(230px,1fr) 58px minmax(230px,1fr);
  align-items: stretch;
  gap: .75rem;
  padding-top: 1.05rem;
  border-top: 1px solid #efedf5;
}

.demo-access-panel__copy { align-self: center; padding-right: .8rem; }
.demo-access-panel__copy h3 { margin: .28rem 0 .3rem; color: #302b45; font-size: .84rem; font-weight: 720; }
.demo-access-panel__copy p { max-width: 390px; margin: 0; color: #8f8c9c; font-size: .64rem; line-height: 1.52; }

.demo-role-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 2.35rem minmax(0,1fr);
  align-items: center;
  gap: .7rem;
  padding: .8rem;
  border: 1px solid #e8e6f0;
  border-radius: .85rem;
  background: #fafafd;
}

.demo-role-card__icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: .7rem;
  color: #fff;
  background: #6e59eb;
  font-size: .68rem;
  font-weight: 820;
}

.demo-role-card.is-partner .demo-role-card__icon { color: #268d7a; background: #e4f8f3; }
.demo-role-card > div:nth-child(2) { display: grid; min-width: 0; gap: .12rem; }
.demo-role-card strong { color: #373247; font-size: .68rem; }
.demo-role-card span { color: #9693a1; font-size: .56rem; line-height: 1.4; }
.demo-role-card b { grid-column: 1 / -1; justify-self: start; padding: .22rem .43rem; border-radius: 1rem; color: #6654dc; background: #ece9ff; font-size: .5rem; font-weight: 750; }
.demo-role-card.is-partner b { color: #23806f; background: #e7f8f4; }

.demo-access-boundary { position: relative; display: grid; min-height: 74px; place-items: center; }
.demo-access-boundary::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; content: ""; background: linear-gradient(transparent, #d8d3ec 18%, #d8d3ec 82%, transparent); }
.demo-access-boundary span { position: relative; padding: .28rem .18rem; color: #9b96b4; background: #fff; font-size: .45rem; font-weight: 700; letter-spacing: .06em; text-align: center; writing-mode: vertical-rl; }

.demo-workspace {
  max-width: 1520px;
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
  margin: 0 auto;
}

.demo-history-card { grid-column: 1 / -1; }
.demo-history { grid-template-columns: repeat(4, minmax(0,1fr)); }
.demo-card__heading > div { align-items: flex-start; flex-direction: column; gap: .15rem; }

.demo-dropzone { min-height: 260px; }
.demo-drop-visual { display: grid; width: 185px; height: 86px; grid-template-columns: 58px 1fr 58px; align-items: center; margin-bottom: 1rem; }
.demo-drop-page { display: grid; width: 52px; height: 68px; align-content: center; gap: 6px; padding: 11px 9px; border: 1px solid #cfc9ef; border-radius: .65rem; background: #fff; box-shadow: 0 10px 24px rgba(70,55,145,.08); animation: demo-drop-float 3.2s ease-in-out infinite; }
.demo-drop-page i { display: block; height: 4px; border-radius: 1rem; background: #e6e2f7; }
.demo-drop-page i:nth-child(2) { width: 78%; }
.demo-drop-page i:nth-child(3) { width: 56%; }
.demo-drop-route { position: relative; height: 1px; background: linear-gradient(90deg, #cec7f4, #a9e7da); }
.demo-drop-route i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #745ff1; opacity: .35; animation: demo-drop-dot 2.2s linear infinite; }
.demo-drop-route i:nth-child(2) { animation-delay: .72s; }
.demo-drop-route i:nth-child(3) { animation-delay: 1.44s; }
.demo-drop-vault { display: grid; width: 52px; height: 52px; justify-self: end; place-items: center; border-radius: 1rem; color: #208c78; background: #e5f9f4; box-shadow: 0 0 0 7px rgba(41,190,162,.07); }
.demo-drop-vault svg { width: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.demo-dropzone.is-dragging .demo-drop-page { transform: translateY(-8px) rotate(-3deg); animation: none; }
.demo-dropzone.is-dragging .demo-drop-route i { opacity: 1; animation-duration: .9s; }
.demo-dropzone.is-dragging .demo-drop-vault { box-shadow: 0 0 0 11px rgba(41,190,162,.1); }

.demo-upload-file-progress { display: none; height: 4px; margin-top: .45rem; overflow: hidden; border-radius: 1rem; background: #e7e5ef; }
.demo-upload-file-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #705cf1, #27c6aa); transition: width .28s ease; }
.demo-selected-file.is-uploading .demo-upload-file-progress { display: block; }
.demo-selected-file.is-uploading > button { visibility: hidden; }

.demo-process-card { min-height: 700px; }
.demo-motion {
  display: grid;
  grid-template-columns: minmax(330px, 1.25fr) minmax(180px, .75fr);
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.05rem;
  padding: 1.05rem;
  border: 1px solid #e7e3f8;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at 72% 20%, rgba(112,92,241,.11), transparent 9rem), linear-gradient(145deg, #f8f7ff, #f7fcfb);
}

.demo-motion__scene { display: grid; min-width: 0; grid-template-columns: 64px 1fr 60px 1fr 70px; align-items: center; }
.demo-motion-document { position: relative; display: grid; width: 58px; height: 76px; align-content: center; gap: 6px; padding: 12px 9px; overflow: hidden; border: 1px solid #cbc5eb; border-radius: .65rem; background: #fff; box-shadow: 0 11px 26px rgba(60,48,120,.09); }
.demo-motion-document i { display: block; height: 4px; border-radius: 1rem; background: #e6e3f3; }
.demo-motion-document i:nth-child(2) { width: 78%; }
.demo-motion-document i:nth-child(3) { width: 58%; }
.demo-motion-document span { position: absolute; right: 4px; left: 4px; top: -4px; height: 3px; border-radius: 1rem; background: #6e59ef; box-shadow: 0 0 10px #6e59ef; opacity: 0; }
.demo-motion-route { position: relative; height: 1px; background: linear-gradient(90deg, #d5d0ed, #a8e4d8); }
.demo-motion-route--out { background: linear-gradient(90deg, #a8e4d8, #d5d0ed); }
.demo-motion-route i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #765ff4; opacity: 0; }
.demo-motion-route i:nth-child(2) { animation-delay: .55s !important; }
.demo-motion-route i:nth-child(3) { animation-delay: 1.1s !important; }
.demo-motion-core { position: relative; display: grid; width: 58px; height: 58px; justify-self: center; place-items: center; border-radius: 50%; color: #fff; background: #705cf1; box-shadow: 0 0 0 8px rgba(112,92,241,.08); }
.demo-motion-core > span { position: relative; z-index: 2; font-size: .58rem; font-weight: 840; letter-spacing: -.02em; }
.demo-motion-core > i { position: absolute; inset: -1px; border: 1px solid rgba(112,92,241,.32); border-radius: 50%; opacity: 0; }
.demo-motion-core > i:nth-of-type(2) { animation-delay: .8s !important; }
.demo-motion-output { display: grid; width: 66px; height: 70px; grid-template-columns: 11px 1fr; grid-template-rows: repeat(3, 1fr); align-items: center; gap: 4px; padding: 10px 8px; border: 1px solid #cfe9e3; border-radius: .65rem; color: #29907d; background: #fff; box-shadow: 0 11px 26px rgba(35,123,105,.07); }
.demo-motion-output b { grid-row: 1 / 4; align-self: center; font-size: 1.2rem; font-weight: 400; }
.demo-motion-output b:last-child { grid-column: 3; }
.demo-motion-output i { display: block; width: 30px; height: 4px; border-radius: 1rem; background: #dcefe9; }
.demo-motion__copy { min-width: 0; }
.demo-motion__copy > span { color: #7967e7; font-size: .51rem; font-weight: 820; letter-spacing: .12em; }
.demo-motion__copy > strong { display: block; margin-top: .25rem; color: #302b45; font-size: .82rem; line-height: 1.3; }
.demo-motion__copy p { margin: .35rem 0 0; color: #918e9d; font-size: .61rem; line-height: 1.5; }

.demo-motion.is-upload .demo-motion-route--in i,
.demo-motion.is-osa-lookup .demo-motion-route i,
.demo-motion.is-ai-waiting .demo-motion-route--in i,
.demo-motion.is-ai-running .demo-motion-route i,
.demo-motion.is-manual-review-waiting .demo-motion-route--in i,
.demo-motion.is-manual-review-running .demo-motion-route i,
.demo-motion.is-ai-lease-expired .demo-motion-route--in i { opacity: 1; animation: demo-data-flow 1.65s linear infinite; }
.demo-motion.is-ocr-running .demo-motion-document span { opacity: 1; animation: demo-scan 1.6s ease-in-out infinite; }
.demo-motion.is-ocr-running .demo-motion-document i { animation: demo-text-read 1.6s ease-in-out infinite; }
.demo-motion.is-ai-waiting .demo-motion-core > i,
.demo-motion.is-ai-running .demo-motion-core > i,
.demo-motion.is-manual-review-waiting .demo-motion-core > i,
.demo-motion.is-manual-review-running .demo-motion-core > i,
.demo-motion.is-ai-lease-expired .demo-motion-core > i { opacity: 1; animation: demo-core-wave 1.65s ease-out infinite; }
.demo-motion.is-security .demo-motion-core,
.demo-motion.is-osa-lookup .demo-motion-core,
.demo-motion.is-completed .demo-motion-core { background: #20a98f; box-shadow: 0 0 0 8px rgba(32,169,143,.09); }
.demo-motion.is-needs-review .demo-motion-core { color: #6d470b; background: #f4bd50; box-shadow: 0 0 0 8px rgba(244,189,80,.12); }
.demo-motion.is-failed { border-color: #f0c6ce; background: #fff7f8; }
.demo-motion.is-failed .demo-motion-core { background: #c6475e; box-shadow: 0 0 0 8px rgba(198,71,94,.09); }

.demo-timeline { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 1.3rem; }
.demo-timeline-item { min-height: 72px; }
.demo-timeline-item:nth-child(4)::before,
.demo-timeline-item:nth-child(7)::before { display: none; }

.demo-result-state { display: inline-flex; margin-top: .55rem; padding: .25rem .5rem; border-radius: 1rem; font-size: .54rem; font-weight: 750; }
.demo-result-state.is-success { color: #147d6a; background: #e5f8f3; }
.demo-result-state.is-review { color: #98620f; background: #fff0cb; }
.demo-confidence.is-review { background: conic-gradient(#e6aa39 var(--confidence-angle), #e4e2ee 0); }
.demo-confidence-breakdown { display: grid; gap: .55rem; margin-top: .85rem; padding-top: .8rem; border-top: 1px solid #e7e4f3; }
.demo-confidence-breakdown > div { display: grid; grid-template-columns: 135px 1fr 46px; align-items: center; gap: .65rem; }
.demo-confidence-breakdown span { color: #817e8e; font-size: .58rem; }
.demo-confidence-breakdown i { display: block; height: 5px; overflow: hidden; border-radius: 1rem; background: #e5e3ed; }
.demo-confidence-breakdown i b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7763ed, #2bc7aa); transition: width .55s ease; }
.demo-confidence-breakdown strong { color: #4a455c; font-size: .58rem; text-align: right; }
.demo-page [hidden] { display: none !important; }
.demo-quality { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dedcec; }
.demo-quality__heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.demo-quality__heading h4 { margin: 0; color: #29253e; font-size: 1rem; font-weight: 750; }
.demo-quality__heading > strong { color: #29253e; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.demo-quality__explanation { margin: .55rem 0; color: #605b72; font-size: .78rem; line-height: 1.5; }
.demo-quality__vat { padding: .65rem .75rem; border-radius: .45rem; background: #eef2f7; color: #46576b; }
.demo-quality__derived { padding: .65rem .75rem; border: 1px solid #b8dce8; border-radius: .45rem; background: #eef9fc; color: #315d6b; }
.demo-quality summary { margin-top: .75rem; padding: .35rem 0; color: #4c4276; cursor: pointer; font-size: .82rem; font-weight: 700; }
.demo-quality summary:focus-visible { outline: 2px solid #7763ed; outline-offset: 3px; border-radius: .2rem; }
.demo-quality__checks { display: grid; gap: .6rem; margin: .65rem 0; padding: 0; list-style: none; }
.demo-quality-check { padding: .7rem .8rem; border: 1px solid #dedcea; border-left: 3px solid #777187; border-radius: .5rem; background: rgba(255,255,255,.8); }
.demo-quality-check.is-pass { border-left-color: #147d6a; }
.demo-quality-check.is-fail { border-left-color: #98620f; }
.demo-quality-check.is-not_applicable { border-left-color: #657d96; background: #f3f6fa; }
.demo-quality-check__heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; }
.demo-quality-check__heading strong { color: #39334c; font-size: .8rem; }
.demo-quality-check__heading b { flex-shrink: 0; color: #514b62; font-size: .74rem; font-variant-numeric: tabular-nums; }
.demo-quality-check__state { display: inline-block; margin: .3rem 0; color: #625b70; font-size: .7rem; font-weight: 700; }
.demo-quality-check.is-pass .demo-quality-check__state { color: #126f5e; }
.demo-quality-check.is-fail .demo-quality-check__state { color: #865409; }
.demo-quality-check.is-not_applicable .demo-quality-check__state { color: #46576b; }
.quality-not-applicable { background-color: #eef2f7; color: #46576b; }
.demo-quality-check p { margin: 0; color: #605b72; font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.demo-result__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .95rem; }
.demo-result__actions .demo-secondary-button { min-height: 2.55rem; align-items: center; margin-top: 0; }
.demo-excel-button { display: inline-flex; min-height: 2.55rem; align-items: center; gap: .45rem; padding: .55rem .78rem; border-radius: .65rem; color: #fff; text-decoration: none; background: #188b75; box-shadow: 0 8px 18px rgba(24,139,117,.16); font-size: .65rem; font-weight: 720; }
.demo-excel-button:hover { color: #fff; background: #117763; }
.demo-excel-button svg { width: .9rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.demo-excel-note { display: block; margin-top: .55rem; color: #a09dac; font-size: .53rem; }

@keyframes demo-drop-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes demo-drop-dot {
  0% { transform: translateX(0); opacity: 0; }
  15%, 80% { opacity: .75; }
  100% { transform: translateX(68px); opacity: 0; }
}

@keyframes demo-data-flow {
  0% { left: 0; opacity: 0; }
  14%, 82% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}

@keyframes demo-scan {
  0%, 100% { top: 8px; }
  50% { top: calc(100% - 9px); }
}

@keyframes demo-text-read {
  0%, 20% { background: #e6e3f3; }
  55%, 75% { background: #b9eadf; }
  100% { background: #e6e3f3; }
}

@keyframes demo-core-wave {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 1150px) {
  .demo-story-rail { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .demo-access-panel { grid-template-columns: 1fr 1fr; }
  .demo-access-panel__copy { grid-column: 1 / -1; }
  .demo-access-boundary { display: none; }
  .demo-workspace { grid-template-columns: 330px minmax(500px,1fr); }
  .demo-history { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .demo-motion { grid-template-columns: 1fr; }
  .demo-motion__copy { text-align: center; }
}

@media (max-width: 900px) {
  .demo-story-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .demo-workspace { grid-template-columns: 1fr; }
  .demo-history { grid-template-columns: 1fr 1fr; }
  .demo-process-card { min-height: auto; }
}

@media (max-width: 650px) {
  .demo-story-shell { margin-top: -2.45rem; padding-inline: .65rem; }
  .demo-story-card { padding: 1rem; border-radius: 1rem; }
  .demo-story-card__top { align-items: flex-start; flex-direction: column; }
  .demo-story-rail { grid-template-columns: 1fr 1fr; gap: .45rem; }
  .demo-story-rail li { padding: .55rem; }
  .demo-access-panel { grid-template-columns: 1fr; }
  .demo-motion { padding: .8rem; }
  .demo-motion__scene { grid-template-columns: 52px 1fr 50px 1fr 56px; }
  .demo-motion-document { width: 50px; height: 66px; }
  .demo-motion-core { width: 48px; height: 48px; }
  .demo-motion-output { width: 54px; height: 62px; padding-inline: 5px; }
  .demo-motion-output i { width: 22px; }
  .demo-timeline { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .demo-timeline-item:nth-child(4)::before { display: block; }
  .demo-timeline-item:nth-child(7)::before { display: none; }
  .demo-history { grid-template-columns: 1fr; }
  .demo-confidence-breakdown > div { grid-template-columns: 112px 1fr 42px; }
  .demo-result__actions { display: grid; grid-template-columns: 1fr; }
  .demo-result__actions a { justify-content: center; width: 100%; }
}
