:root {
  --navy: #0e2948;
  --navy-2: #173b61;
  --navy-3: #244d77;
  --ink: #12263d;
  --muted: #6f8091;
  --paper: #ffffff;
  --canvas: #edf1f4;
  --line: #dfe5ea;
  --soft: #f5f7f8;
  --coral: #7f95aa;
  --green: #27a36a;
  --shadow: 0 26px 70px rgba(14, 41, 72, .15);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #dfe5ea;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .82), transparent 35%),
    linear-gradient(145deg, #e9eef2, #d9e1e7);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-shell {
  width: min(1440px, calc(100vw - 32px));
  min-height: min(900px, calc(100vh - 32px));
  margin: 16px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 38px;
  box-shadow: 0 35px 90px rgba(14, 41, 72, .18);
}

.demo-header {
  height: 92px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 38px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.brand-mark span {
  display: block;
  height: 4px;
  border-radius: 20px;
  background: var(--navy);
}

.brand-mark span:nth-child(2) {
  width: 76%;
}

.brand-mark span:nth-child(3) {
  width: 52%;
}

.brand-mark.small {
  width: 34px;
  height: 28px;
  gap: 4px;
}

.brand-mark.small span {
  height: 3px;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: -.04em;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.header-center {
  justify-self: center;
  display: grid;
  gap: 8px;
  text-align: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 7px;
}

.step {
  padding: 7px 13px;
  color: #8b98a4;
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: color .35s ease, background .35s ease, transform .35s ease;
}

.step.is-active {
  color: #fff;
  background: var(--navy);
  transform: translateY(-1px);
}

.step.is-complete {
  color: var(--navy);
  background: #e5edf4;
}

.demo-disclaimer {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(240, 78, 69, .12);
}

.stage {
  position: relative;
  height: 690px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 25%, rgba(23, 59, 97, .07), transparent 32%),
    linear-gradient(180deg, #f9fafb, #eef2f5);
}

.scene {
  position: absolute;
  inset: 0;
  padding: 52px 62px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.992);
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scene-copy {
  max-width: 460px;
}

.scene-copy.compact {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.scene-kicker,
.final-kicker {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.scene-copy h1,
.scene-copy h2,
.result-panel h2,
.final-overlay h2 {
  margin: 14px 0 16px;
  color: var(--navy);
  font-size: clamp(35px, 3.5vw, 56px);
  line-height: .99;
  letter-spacing: -.055em;
}

.scene-copy h2 {
  font-size: clamp(34px, 3vw, 48px);
}

.scene-copy p,
.result-panel > p,
.final-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.mini-note {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 700;
}

.mini-note-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.scene-form {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(620px, 1.2fr);
  align-items: center;
  gap: 58px;
}

.browser-window {
  overflow: hidden;
  border: 1px solid #d7dee4;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-bar {
  height: 54px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 92px 1fr 40px;
  align-items: center;
  gap: 14px;
  background: #f1f3f5;
  border-bottom: 1px solid #dde3e7;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7cfd6;
}

.window-dots span:first-child {
  background: #f4776f;
}

.address-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #6f7c88;
  background: #fff;
  border-radius: 10px;
  font-size: 12px;
}

.lock {
  color: var(--green);
  font-size: 7px;
}

.browser-menu {
  color: #8a97a2;
  font-size: 15px;
  letter-spacing: .12em;
}

.site-form-panel {
  position: relative;
  min-height: 540px;
  padding: 34px 38px 38px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(14, 41, 72, .98), rgba(23, 59, 97, .94)),
    var(--navy);
}

.site-form-panel::before,
.site-form-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .14;
}

.site-form-panel::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border: 70px solid #fff;
}

.site-form-panel::after {
  width: 160px;
  height: 160px;
  left: -90px;
  bottom: -100px;
  background: var(--coral);
}

.site-form-heading,
.lead-form {
  position: relative;
  z-index: 1;
}

.site-form-heading > span {
  color: #a9c3dc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.site-form-heading h2 {
  max-width: 560px;
  margin: 8px 0 7px;
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.site-form-heading p {
  margin: 0;
  color: #b9c9d8;
  font-size: 13px;
}

.lead-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form label > span:first-child {
  color: #c8d6e3;
  font-size: 11px;
  font-weight: 700;
}

.lead-form input,
.fake-select {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  color: var(--navy);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 15px;
  outline: 0;
  font-size: 15px;
  font-weight: 700;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.lead-form input.is-typing {
  border-color: #86a8c7;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .1);
}

.fake-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a97a2;
}

.fake-select.is-selected {
  color: var(--navy);
  border-color: #86a8c7;
}

.fake-select svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lead-form .consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d6e3;
  font-size: 11px;
}

.checkbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 7px;
  transition: background .25s ease, border-color .25s ease;
}

.checkbox svg {
  width: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .2s ease;
}

.checkbox.is-checked {
  background: var(--coral);
  border-color: var(--coral);
}

.checkbox.is-checked svg {
  opacity: 1;
  transform: scale(1);
}

.site-submit {
  grid-column: 1 / -1;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.site-submit svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-submit.is-clicked {
  color: #fff;
  background: var(--coral);
  transform: scale(.985);
  box-shadow: 0 10px 30px rgba(240, 78, 69, .35);
}

.success-toast {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  min-width: 280px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce4e9;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
}

.success-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #dff5ea;
  border-radius: 50%;
}

.toast-icon svg {
  width: 16px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-toast > span:last-child {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}

.success-toast strong {
  color: var(--ink);
  font-size: 13px;
}

.scene-transfer {
  padding-top: 42px;
}

.transfer-flow {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 310px 1fr;
  align-items: center;
}

.flow-card {
  min-height: 238px;
  padding: 26px;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(14, 41, 72, .11);
}

.flow-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
}

.flow-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crm-icon {
  background: #1fb5ad;
  font-size: 24px;
  font-weight: 500;
}

.flow-label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.flow-state {
  margin-left: auto;
  padding: 6px 9px;
  color: var(--green);
  background: #e5f6ee;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.flow-state.pending {
  color: #997229;
  background: #fff1cc;
  transition: color .3s ease, background .3s ease;
}

.flow-state.pending.is-ready {
  color: var(--green);
  background: #e5f6ee;
}

.flow-card h3 {
  margin: 35px 0 6px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -.04em;
}

.flow-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.channel-chip,
.task-chip {
  display: inline-flex;
  padding: 8px 11px;
  color: var(--navy);
  background: #e9eff5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.task-chip {
  color: #fff;
  background: var(--navy);
}

.data-route {
  position: relative;
  height: 110px;
}

.route-line {
  position: absolute;
  top: 54px;
  left: 18px;
  right: 18px;
  height: 2px;
  overflow: hidden;
  background: #cdd8e1;
}

.route-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  transform: translateX(-100%);
}

.scene-transfer.is-routing .route-line::after {
  animation: route-glow 1.35s linear infinite;
}

.route-arrow {
  position: absolute;
  top: 34px;
  right: 10px;
  color: var(--navy);
  font-size: 32px;
}

.data-packet {
  position: absolute;
  top: 37px;
  left: 5px;
  z-index: 2;
  padding: 7px 10px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(240, 78, 69, .28);
}

.scene-transfer.is-routing .data-packet {
  animation: packet 2.2s ease-in-out infinite;
}

.scene-transfer.is-routing .p2 {
  animation-delay: .65s;
}

.scene-transfer.is-routing .p3 {
  animation-delay: 1.3s;
}

.crm-skeleton {
  margin-top: 38px;
  display: grid;
  gap: 12px;
  transition: opacity .35s ease;
}

.crm-skeleton span {
  height: 14px;
  background: linear-gradient(90deg, #edf1f4, #f8fafb, #edf1f4);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.2s linear infinite;
}

.crm-skeleton span:nth-child(2) {
  width: 78%;
}

.crm-skeleton span:nth-child(3) {
  width: 58%;
}

.crm-ready {
  display: none;
}

.crm-card.is-ready .crm-skeleton {
  display: none;
}

.crm-card.is-ready .crm-ready {
  display: block;
  animation: rise .45s ease both;
}

.automation-strip {
  width: min(960px, 100%);
  margin: 28px auto 0;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  gap: 46px;
  color: var(--muted);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
}

.automation-strip span {
  opacity: .32;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
}

.automation-strip span.is-done {
  color: var(--navy);
  opacity: 1;
  transform: translateY(0);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
}

.scene-crm {
  padding: 35px 48px;
}

.crm-shell {
  height: 620px;
  display: grid;
  grid-template-columns: 68px 1fr;
  overflow: hidden;
  background: #f5f6f7;
  border: 1px solid #d6dce1;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.crm-sidebar {
  padding-top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  background: #172838;
}

.crm-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1fb5ad;
  border-radius: 10px;
  font-size: 22px;
}

.side-dot {
  width: 24px;
  height: 7px;
  background: #40505f;
  border-radius: 99px;
}

.side-dot.is-active {
  background: #1fb5ad;
}

.crm-workspace {
  padding: 28px 32px 32px;
}

.crm-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce1e5;
}

.crumb {
  color: #8b969f;
  font-size: 11px;
}

.crm-topbar h2 {
  margin: 5px 0 0;
  color: #23384a;
  font-size: 25px;
  letter-spacing: -.035em;
}

.deal-status,
.auto-badge {
  padding: 8px 11px;
  color: #78599b;
  background: #eee5f8;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.crm-columns {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
}

.contact-panel,
.qualification-panel {
  min-height: 480px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe4e8;
  border-radius: 18px;
}

.contact-panel h3,
.qualification-panel h3 {
  margin: 0;
  color: #2b4052;
  font-size: 16px;
}

.contact-list {
  margin: 22px 0;
  display: grid;
  gap: 18px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

.contact-list dt {
  color: #98a3ad;
  font-size: 11px;
}

.contact-list dd {
  margin: 0;
  color: #2e4354;
  font-size: 12px;
  font-weight: 700;
}

.source-badge {
  padding: 5px 8px;
  color: #276b9e;
  background: #e6f2fb;
  border-radius: 6px;
}

.task-box {
  margin-top: 28px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334a5b;
  background: #fff6dd;
  border: 1px solid #f1dfaa;
  border-radius: 13px;
}

.task-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #dfb646;
  border-radius: 6px;
}

.task-box > span:last-child {
  display: grid;
  gap: 3px;
}

.task-box strong {
  font-size: 11px;
}

.task-box small {
  color: #95815a;
  font-size: 9px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-heading .scene-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
}

.auto-badge {
  color: #25755a;
  background: #e1f4ec;
}

.qualification-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.crm-field {
  display: grid;
  gap: 7px;
  color: #8a97a1;
  font-size: 10px;
}

.crm-input {
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #263d4f;
  background: #f7f8f9;
  border: 1px solid #e1e5e8;
  border-radius: 11px;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.crm-field.is-filled .crm-input {
  background: #fff;
  border-color: #63b9b4;
  box-shadow: 0 0 0 4px rgba(31, 181, 173, .08);
}

.crm-input b {
  font-size: 12px;
}

.crm-input i {
  color: #8e9aa3;
  font-size: 10px;
  font-style: normal;
}

.addons {
  margin-top: 22px;
}

.addons > span {
  color: #8a97a1;
  font-size: 10px;
}

.addons-row {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.addon {
  padding: 8px 10px;
  color: #7e8b95;
  background: #f3f5f6;
  border: 1px solid #e2e6e9;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}

.addon.is-selected {
  color: #fff;
  background: #1fb5ad;
  border-color: #1fb5ad;
}

.calc-status {
  margin-top: 25px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c7d89;
  background: #eef8f7;
  border: 1px solid #cee8e5;
  border-radius: 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.calc-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calc-status > span:last-child {
  display: grid;
  gap: 2px;
}

.calc-status strong {
  color: #2f5d5a;
  font-size: 10px;
}

.calc-status small {
  font-size: 9px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #c6e7e4;
  border-top-color: #1fb5ad;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.scene-estimate {
  padding: 42px 58px;
}

.estimate-layout {
  height: 606px;
  display: grid;
  grid-template-columns: minmax(580px, 1.12fr) minmax(420px, .88fr);
  gap: 48px;
  align-items: center;
}

.estimate-document {
  min-height: 574px;
  padding: 34px 38px;
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform: rotate(-.7deg) translateY(8px);
  opacity: 0;
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.scene-estimate.is-active .estimate-document {
  opacity: 1;
  transform: rotate(-.7deg) translateY(0);
}

.document-header,
.document-logo,
.estimate-row,
.estimate-total {
  display: flex;
  align-items: center;
}

.document-header {
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.document-logo {
  gap: 9px;
  color: var(--navy);
}

.document-logo > span:last-child {
  display: grid;
}

.document-logo strong {
  font-size: 13px;
}

.document-logo small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.document-number {
  color: var(--muted);
  font-size: 10px;
}

.estimate-title {
  padding: 30px 0 25px;
}

.estimate-title > span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.estimate-title h2 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-size: 34px;
  letter-spacing: -.045em;
}

.estimate-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.estimate-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.estimate-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr;
  align-items: center;
  padding: 0 16px;
  color: #4e6171;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.estimate-row:last-child {
  border-bottom: 0;
}

.estimate-row.head {
  min-height: 38px;
  color: #88959f;
  background: #f5f7f8;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.estimate-row strong {
  justify-self: end;
  color: var(--navy);
  font-size: 11px;
}

.estimate-row.muted strong {
  color: #a27b31;
}

.estimate-total {
  justify-content: space-between;
  margin-top: 22px;
  padding: 19px 20px;
  color: #fff;
  background: var(--navy);
  border-radius: 15px;
}

.estimate-total span {
  font-size: 10px;
}

.estimate-total strong {
  font-size: 23px;
  letter-spacing: -.035em;
}

.estimate-footnote {
  margin: 18px 0 0;
  color: #8997a2;
  font-size: 9px;
  line-height: 1.5;
}

.result-panel {
  padding-right: 20px;
}

.result-panel h2 {
  font-size: clamp(34px, 3.1vw, 48px);
}

.result-list {
  margin-top: 29px;
  display: grid;
  gap: 12px;
}

.result-list > div {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.result-icon.accent {
  background: var(--coral);
}

.result-list > div > span:last-child {
  display: grid;
  gap: 3px;
}

.result-list strong {
  color: var(--navy);
  font-size: 11px;
}

.result-list small {
  color: var(--muted);
  font-size: 9px;
}

.result-message {
  margin-top: 24px;
  padding: 19px 20px;
  display: grid;
  gap: 3px;
  color: #fff;
  background: var(--navy);
  border-radius: 17px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.result-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.result-message strong {
  font-size: 14px;
}

.result-message span {
  color: #b7c8d7;
  font-size: 11px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Первый экран повторяет визуальную систему формы на vse-rovno.ru. */
.scene-form {
  display: block;
  padding: 18px;
}

.reference-form-card {
  position: relative;
  height: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 18px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 30px;
}

.reference-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 23px;
}

.reference-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 25, 44, .52));
  pointer-events: none;
}

.reference-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.photo-label {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .91);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(7, 25, 44, .18);
  backdrop-filter: blur(12px);
}

.photo-label > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.photo-label > span:last-child {
  display: grid;
  gap: 2px;
}

.photo-label strong {
  color: var(--navy);
  font-size: 11px;
}

.photo-label small {
  color: #72869a;
  font-size: 8px;
}

.reference-form-card .site-form-panel {
  min-height: 0;
  padding: 7px 3px 0 5px;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.reference-form-card .site-form-panel::before,
.reference-form-card .site-form-panel::after {
  display: none;
}

.reference-form-card .site-form-heading h1 {
  max-width: none;
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(28px, 2.55vw, 39px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
}

.reference-form-card .site-form-heading p {
  margin: 0;
  color: #7f95aa;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.25;
}

.reference-form-card .lead-form {
  flex: 1;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reference-form-card .lead-form > label {
  display: block;
}

.reference-form-card .lead-form input,
.reference-form-card .fake-select {
  height: 68px;
  padding: 0 20px;
  color: #667d92;
  background: #fff;
  border: 0;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 400;
}

.reference-form-card .lead-form input::placeholder {
  color: #7f95aa;
  opacity: 1;
}

.reference-form-card .lead-form input.is-typing {
  color: var(--navy);
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.reference-form-card .channel-field {
  margin-top: 5px;
}

.reference-form-card .channel-field > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.15;
}

.reference-form-card .fake-select.is-selected {
  color: var(--navy);
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.reference-form-card .lead-form .consent {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: clamp(10px, .95vw, 14px);
  line-height: 1.2;
}

.reference-form-card .checkbox {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 0;
  border-radius: 6px;
}

.reference-form-card .checkbox.is-checked {
  background: #fff;
  border-color: #fff;
}

.reference-form-card .checkbox.is-checked svg {
  stroke: var(--navy);
}

.reference-form-card .site-submit {
  flex: 0 0 65px;
  height: 65px;
  color: var(--navy);
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
  font-size: 17px;
  font-weight: 400;
}

.reference-form-card .site-submit.is-clicked {
  color: var(--navy);
  background: #dfe8ef;
  box-shadow: inset 0 0 0 3px #fff;
}

.reference-form-card .success-toast {
  right: 20px;
  bottom: 20px;
}

.scene-transfer {
  color: #fff;
  background: var(--navy);
}

.scene-transfer .scene-copy h2,
.scene-transfer .scene-copy p {
  color: #fff;
}

.scene-transfer .scene-copy p {
  color: #91a5b8;
}

.scene-transfer .scene-kicker {
  color: #91a5b8;
}

.scene-transfer .automation-strip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
}

.scene-transfer .automation-strip span {
  color: #d7e1e9;
}

.scene-transfer .automation-strip span.is-done {
  color: #fff;
}

.scene-estimate {
  color: #fff;
  background: var(--navy);
}

.scene-estimate .result-panel h2 {
  color: #fff;
}

.scene-estimate .result-panel > p {
  color: #9eb0c0;
}

.scene-estimate .result-list > div {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
}

.scene-estimate .result-list strong {
  color: #fff;
}

.scene-estimate .result-list small {
  color: #9eb0c0;
}

.scene-estimate .result-message {
  color: var(--navy);
  background: #fff;
}

.scene-estimate .result-message span {
  color: #71879b;
}

.final-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 60px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(75, 120, 161, .42), transparent 34%),
    rgba(9, 31, 54, .96);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity .65s ease, visibility .65s, transform .65s ease;
}

.final-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.final-overlay h2 {
  max-width: 900px;
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(46px, 5.2vw, 76px);
}

.final-overlay p {
  max-width: 670px;
  color: #b7c8d7;
  font-size: 18px;
}

.final-overlay button {
  margin-top: 30px;
  padding: 15px 21px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}

.final-overlay button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.final-overlay small {
  margin-top: 18px;
  color: #7890a5;
  font-size: 10px;
}

.demo-controls {
  min-height: 100px;
  padding: 20px 34px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: #e9edf0;
  border-radius: 99px;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--coral));
  border-radius: inherit;
}

.progress-fill.is-playing {
  animation: progress 37s linear forwards;
}

.control-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--navy);
  background: #f1f4f6;
  border: 1px solid #dfe5e9;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.control-button.primary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.control-button.primary.is-playing {
  background: var(--coral);
  border-color: var(--coral);
}

.control-button svg {
  width: 16px;
  fill: currentColor;
}

.timer {
  margin-left: 8px;
  color: #8b98a3;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.timer b {
  color: var(--navy);
}

.control-note {
  margin-left: auto;
  color: #98a3ad;
  font-size: 11px;
}

@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes route-glow {
  to { transform: translateX(100%); }
}

@keyframes packet {
  0% { left: 5px; opacity: 0; transform: scale(.8); }
  12% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; }
  100% { left: 245px; opacity: 0; transform: scale(.9); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1100px) {
  .demo-header {
    grid-template-columns: 210px 1fr 150px;
    padding-inline: 24px;
  }

  .scene {
    padding-inline: 34px;
  }

  .scene-form {
    grid-template-columns: .75fr 1.25fr;
    gap: 32px;
  }

  .transfer-flow {
    grid-template-columns: 1fr 220px 1fr;
  }

  .crm-columns {
    grid-template-columns: 280px 1fr;
  }

  .estimate-layout {
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
  }
}

@media (max-width: 800px) {
  .demo-shell {
    width: calc(100vw - 16px);
    margin: 8px;
    border-radius: 24px;
  }

  .demo-header {
    height: auto;
    padding: 18px;
    grid-template-columns: 1fr auto;
  }

  .header-center {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 10px;
  }

  .stepper {
    justify-content: center;
    flex-wrap: wrap;
  }

  .demo-disclaimer {
    padding: 8px 10px;
  }

  .stage {
    height: 880px;
  }

  .scene {
    padding: 30px 20px;
  }

  .scene-form {
    display: block;
    padding: 10px;
    overflow-y: auto;
  }

  .reference-form-card {
    height: auto;
    min-height: 850px;
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 22px;
  }

  .reference-photo {
    height: 300px;
    border-radius: 17px;
  }

  .reference-photo img {
    object-position: 50% 56%;
  }

  .reference-form-card .site-form-panel {
    padding: 4px 8px 10px;
  }

  .reference-form-card .site-form-heading h1 {
    font-size: 34px;
  }

  .reference-form-card .site-form-heading p {
    font-size: 15px;
  }

  .reference-form-card .lead-form {
    margin-top: 18px;
  }

  .reference-form-card .lead-form input,
  .reference-form-card .fake-select {
    height: 58px;
    border-radius: 15px;
    font-size: 15px;
  }

  .reference-form-card .channel-field > span:first-child {
    font-size: 18px;
  }

  .reference-form-card .site-submit {
    flex-basis: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .scene-copy {
    max-width: none;
  }

  .scene-copy h1,
  .scene-copy h2 {
    font-size: 38px;
  }

  .browser-window {
    flex: 0 0 auto;
  }

  .site-form-panel {
    padding: 28px 22px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form .consent,
  .site-submit {
    grid-column: 1;
  }

  .transfer-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .data-route {
    height: 62px;
    transform: rotate(90deg);
  }

  .route-line {
    left: 30%;
    right: 30%;
  }

  .data-packet,
  .route-arrow {
    display: none;
  }

  .automation-strip {
    gap: 12px;
    flex-wrap: wrap;
  }

  .scene-transfer {
    overflow-y: auto;
  }

  .scene-crm {
    padding: 20px 14px;
    overflow-y: auto;
  }

  .crm-shell {
    height: auto;
    min-height: 820px;
    grid-template-columns: 44px 1fr;
  }

  .crm-workspace {
    padding: 20px 14px;
  }

  .crm-topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .crm-columns {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .qualification-panel {
    min-height: auto;
  }

  .estimate-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .scene-estimate {
    overflow-y: auto;
  }

  .estimate-document {
    min-height: auto;
    padding: 24px 20px;
  }

  .result-panel {
    padding: 10px 0 50px;
  }

  .final-overlay {
    padding: 36px 22px;
  }

  .final-overlay h2 {
    font-size: 44px;
  }

  .control-row {
    flex-wrap: wrap;
  }

  .control-note {
    width: 100%;
    margin-left: 0;
  }
}

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