:root {
  --navy: #061c4c;
  --navy-2: #102c66;
  --cyan: #00bff0;
  --ice: #eaf1fa;
  --ink: #13213b;
  --muted: #62708d;
  --line: #d9e2ef;
  --surface: #ffffff;
  --warm: #b95f40;
  --warm-dark: #8e432e;
  --cream: #f7efe5;
  --cream-2: #fffaf4;
  --success: #197b57;
  --success-soft: #e9f7f0;
  --warning: #a84a34;
  --shadow: 0 22px 60px rgba(6, 28, 76, 0.12);
  --radius: 16px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2f5fa;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--navy-2);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(6, 28, 76, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.back-link,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link {
  justify-self: start;
  color: var(--muted);
}

.back-link:hover {
  color: var(--navy);
}

.brand-lockup {
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
}

.concept-label {
  justify-self: end;
  border: 1px solid #e4d1c4;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--warm-dark);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(56px, 8vw, 100px) 0 64px;
}

.eyebrow {
  color: var(--warm-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 770px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fact-strip > div {
  padding: 16px 18px;
}

.fact-strip > div + div {
  border-left: 1px solid var(--line);
}

.fact-strip strong,
.fact-strip span {
  display: block;
}

.fact-strip strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.fact-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.source-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.story-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px 24px 90px 24px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.story-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 28, 76, 0.6));
  content: "";
  pointer-events: none;
}

.story-image img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.story-image figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.experience {
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.experience-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 24px;
}

.experience-heading h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.text-button {
  flex: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--navy);
  padding: 2px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.progress {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.progress ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  min-width: 780px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.progress li {
  position: relative;
  padding: 16px 10px 14px;
  color: #8a95ac;
}

.progress li::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.progress li span,
.progress li strong {
  display: block;
}

.progress li span {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.progress li strong {
  font-size: 12px;
}

.progress li.done {
  color: var(--warm-dark);
}

.progress li.done::after {
  background: #dca88f;
}

.progress li.active {
  color: var(--navy);
}

.progress li.active::after {
  background: var(--cyan);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  min-height: 610px;
}

.stage {
  padding: clamp(26px, 4vw, 48px);
  outline: none;
}

.agent-panel {
  border-left: 1px solid var(--line);
  background: #f7f9fd;
  font-size: 12px;
}

.agent-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  padding: 17px 16px;
  cursor: pointer;
  text-align: left;
}

.agent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.agent-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #b6c1d4;
}

.agent-dot.live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(25, 123, 87, 0.15);
}

.protocol-badge {
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

#agent-panel-body {
  padding: 0 16px 18px;
}

.agent-panel.collapsed #agent-panel-body {
  display: none;
}

.agent-status {
  min-height: 36px;
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.35;
}

.agent-section-label {
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-list,
.call-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list {
  display: grid;
  gap: 5px;
}

.tool-list li,
.call-log li {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.tool-list li {
  color: var(--navy-2);
}

.call-log {
  display: grid;
  gap: 5px;
  max-height: 220px;
  overflow: auto;
}

.call-log li.agent {
  border-left: 3px solid var(--cyan);
}

.call-log li.ui {
  border-left: 3px solid #c8a28e;
}

.call-source {
  float: right;
  color: var(--muted);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.call-result {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.muted {
  color: var(--muted) !important;
}

.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--warm-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stage-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}

.stage h3 {
  max-width: 780px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stage-lede {
  max-width: 730px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.disclosure.verified {
  background: var(--ice);
  color: var(--navy-2);
}

.disclosure.simulated {
  background: var(--cream);
  color: var(--warm-dark);
}

.before-grid,
.summary-grid,
.analytics-grid,
.decision-grid {
  display: grid;
  gap: 14px;
}

.before-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.before-card,
.panel-card,
.summary-card,
.metric,
.decision-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.before-card {
  padding: 18px;
}

.before-card .icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--warm-dark);
  font-weight: 800;
}

.before-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
}

.before-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quote-card {
  margin: 0 0 22px;
  border-left: 4px solid var(--cyan);
  background: var(--ice);
  padding: 16px 18px;
}

.quote-card p {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

.quote-card cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 5px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.primary-button:hover {
  background: var(--navy-2);
}

.secondary-button {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.action-note {
  color: var(--muted);
  font-size: 11px;
}

.request-card {
  overflow: hidden;
  border: 1px solid #e7d2c4;
  border-radius: 14px;
  background: var(--cream-2);
}

.request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #eadbce;
}

.request-card-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 22px 18px;
}

.request-card h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.request-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  flex: none;
  border-radius: 999px;
  background: #fbe2d8;
  color: var(--warning);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  margin: 0;
  font-size: 12px;
}

.data-list dt {
  color: var(--muted);
}

.data-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.workorder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.panel-card {
  padding: 18px;
}

.panel-card h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 15px;
}

.workorder-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.workorder-id strong {
  color: var(--navy);
  font-size: 20px;
}

.status-open,
.status-complete {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-open {
  background: #fff1cf;
  color: #8a5a00;
}

.status-complete {
  background: var(--success-soft);
  color: var(--success);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline li {
  position: relative;
  padding: 0 0 17px 24px;
  color: var(--muted);
  font-size: 12px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
  content: "";
}

.timeline strong {
  display: block;
  color: var(--ink);
}

.completion-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid #bfe4d3;
  border-left: 4px solid var(--success);
  border-radius: 12px;
  background: var(--success-soft);
  padding: 16px 18px;
}

.completion-check {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: 900;
}

.completion-banner strong {
  display: block;
  color: #115c41;
}

.completion-banner span {
  color: #39705d;
  font-size: 12px;
}

.invoice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.invoice-row > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 12px;
}

.invoice-row span,
.invoice-row strong {
  display: block;
}

.invoice-row span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.invoice-row strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 13px;
}

.analytics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric {
  padding: 18px;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.metric span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.chart-card h4 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 32px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ice);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.bar-row.highlight .bar-fill {
  background: var(--warm);
}

.bar-row.highlight {
  color: var(--warm-dark);
  font-weight: 800;
}

.decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.decision-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
}

.decision-card.recommended {
  border: 2px solid var(--navy);
  background: #f8fbff;
}

.recommendation-label {
  position: absolute;
  top: -10px;
  right: 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-card h4 {
  margin: 0 0 7px;
  color: var(--navy);
}

.decision-card p {
  color: var(--muted);
  font-size: 12px;
}

.decision-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
}

.outcome {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.outcome-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.outcome-head .completion-check {
  background: var(--navy);
}

.outcome-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.outcome-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
  padding: 14px;
}

.summary-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 12px;
}

.summary-card span {
  color: var(--muted);
  font-size: 10px;
}

.conversion {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  padding: 22px;
}

.conversion h4 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 20px;
}

.conversion p {
  margin: 0;
  color: #c5d1e7;
  font-size: 12px;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  color: #dce5f4;
  font-size: 10px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 39px;
  border: 1px solid #60749d;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 8px 9px;
  font-size: 12px;
}

.booking-form .primary-button {
  grid-column: 1 / -1;
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--navy);
}

.booking-disclosure {
  grid-column: 1 / -1;
  margin: 0;
  color: #aebdd8 !important;
  font-size: 9px !important;
}

.booking-confirmation {
  border: 1px solid #4a7592;
  border-radius: 10px;
  background: #0e3567;
  padding: 18px;
}

.booking-confirmation strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 16px;
}

.booking-confirmation p {
  margin-bottom: 8px;
}

.booking-ref {
  display: inline-block;
  border-radius: 4px;
  background: var(--cyan);
  color: var(--navy);
  padding: 3px 7px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.error-banner {
  margin-bottom: 18px;
  border: 1px solid #efc0b4;
  border-radius: 8px;
  background: #fff2ef;
  color: var(--warning);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 28px 0 24px;
}

.demo-intro h1 {
  max-width: 700px;
  margin: 7px 0 12px;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.02;
}

.demo-intro .hero-lede {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(16px, 1.7vw, 19px);
}

.demo-role {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e4d1c4;
  border-radius: 10px;
  background: var(--cream-2);
  padding: 10px 13px 10px 10px;
}

.role-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--warm);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.demo-role strong,
.demo-role span {
  display: block;
}

.demo-role strong {
  color: var(--navy);
  font-size: 13px;
}

.demo-role div span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.customer-context {
  display: grid;
  grid-template-columns: 104px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 28, 76, 0.08);
}

.customer-context img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.customer-context > div {
  align-self: center;
  padding: 14px 16px;
}

.customer-context .context-label,
.customer-context strong,
.customer-context a {
  display: block;
}

.context-label {
  margin-bottom: 5px;
  color: var(--warm-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.customer-context strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.4;
}

.customer-context a {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.customer-context a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.experience {
  overflow: hidden;
  border-radius: 18px;
}

.product-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid #18376e;
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
}

.product-brand,
.product-account {
  display: flex;
  align-items: center;
}

.product-brand {
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-mark {
  color: var(--cyan);
  font-size: 23px;
}

.product-account {
  gap: 12px;
  font-size: 11px;
}

.account-company {
  font-weight: 800;
}

.account-user {
  border-left: 1px solid #49608c;
  color: #c6d2e7;
  padding-left: 12px;
}

.product-layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 680px;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f7f9fc;
  padding: 22px 12px 16px;
}

.sidebar-label {
  margin: 0 11px 9px;
  color: #8b96ab;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-sidebar ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-sidebar li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 6px;
  color: #53617b;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.product-sidebar li.active {
  background: #e6eef9;
  color: var(--navy);
}

.product-sidebar li.done .nav-icon {
  color: var(--success);
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #7e8ba4;
  font-size: 15px;
}

.product-sidebar li.active .nav-icon {
  color: var(--navy);
}

.sidebar-context {
  display: grid;
  gap: 3px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.sidebar-context span,
.sidebar-context small {
  color: var(--muted);
  font-size: 9px;
}

.sidebar-context span {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.product-workspace {
  min-width: 0;
  background: #fff;
}

.product-workspace .experience-heading {
  align-items: center;
  min-height: 78px;
  padding: 17px 24px 15px;
}

.product-workspace .experience-heading h2 {
  margin-top: 2px;
  font-size: 23px;
}

.workspace-route {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workspace-actions > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-workspace .progress ol {
  min-width: 700px;
  padding: 0 14px;
}

.product-workspace .progress li {
  padding: 12px 8px 11px;
}

.product-workspace .stage {
  min-height: 520px;
  padding: clamp(26px, 3vw, 38px);
}

.product-workspace .stage h3 {
  max-width: 820px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.product-workspace .stage-lede {
  margin-bottom: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-metrics article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 13px 14px;
}

.dashboard-metrics span,
.dashboard-metrics strong,
.dashboard-metrics small {
  display: block;
}

.dashboard-metrics span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-metrics strong {
  margin: 4px 0 2px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.05;
}

.dashboard-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(250px, 0.78fr);
  gap: 14px;
}

.operations-card,
.guided-task-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.card-toolbar,
.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-toolbar {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}

.table-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-toolbar h4 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 13px;
}

.status-pill.neutral {
  background: var(--ice);
  color: var(--navy-2);
}

.operations-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 61px;
  padding: 10px 15px;
}

.operations-row + .operations-row {
  border-top: 1px solid #edf1f6;
}

.row-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--ice);
  color: var(--navy-2);
  font-size: 12px;
}

.operations-row strong,
.operations-row div span {
  display: block;
}

.operations-row strong {
  color: var(--ink);
  font-size: 11px;
}

.operations-row div span {
  color: var(--muted);
  font-size: 10px;
}

.row-state {
  border-radius: 999px;
  background: #f4f0ed;
  color: var(--warm-dark);
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.row-state.centralized {
  background: var(--success-soft);
  color: var(--success);
}

.guided-task-card {
  border-color: #dec7b8;
  background: var(--cream-2);
  padding: 15px;
}

.task-label {
  color: var(--warm-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-location {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.guided-task-card h4 {
  margin: 4px 0 7px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.guided-task-card p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
}

.guided-task-card .primary-button {
  width: 100%;
}

.guided-task-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.agent-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid #bfcde0;
  border-radius: 12px;
  background: #f7f9fd;
  box-shadow: 0 18px 55px rgba(6, 28, 76, 0.2);
  font-size: 12px;
}

.agent-panel.collapsed {
  width: auto;
  border-color: #c6d2e4;
  background: #fff;
}

.agent-panel .agent-panel-head {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 11px 13px;
}

.agent-panel.collapsed .agent-panel-head {
  gap: 14px;
  border-bottom: 0;
  border-radius: inherit;
}

.agent-tool-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 9px;
}

.agent-panel-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
}

.agent-panel .agent-status {
  min-height: 0;
  margin: 0;
}

.agent-panel #agent-panel-body {
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 0 14px 16px;
}

.agent-panel.collapsed #agent-panel-body {
  display: none;
}

.story-guide {
  overflow: hidden;
  scroll-margin-top: 130px;
  margin: 30px 0 22px;
  border: 1px solid #dfc9b9;
  border-radius: 18px;
  background: var(--cream-2);
  box-shadow: 0 14px 34px rgba(87, 49, 35, 0.08);
}

.story-guide-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
}

.story-intro {
  border-right: 1px solid #dfc9b9;
  background: #f1e2d5;
  padding: 24px 26px;
}

.story-intro h1 {
  margin: 6px 0 9px;
  color: #632f22;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.02;
}

.story-intro p {
  max-width: 420px;
  margin: 0;
  color: #765a51;
  font-size: 13px;
}

.chapter-context {
  position: relative;
  padding: 22px 28px 20px 32px;
}

.chapter-context::before {
  position: absolute;
  top: 22px;
  bottom: 20px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--warm);
  content: "";
}

.chapter-context-top,
.chapter-context-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chapter-context-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chapter-context-badge.verified {
  background: #e7efe9;
  color: #255b43;
}

.chapter-context-badge.simulated {
  background: #f4dfd2;
  color: var(--warm-dark);
}

.chapter-context-badge.mixed {
  background: #efe5d4;
  color: #6f4d25;
}

.chapter-step {
  color: #967268;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-context h2 {
  max-width: 760px;
  margin: 12px 0 7px;
  color: #632f22;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.chapter-context > p {
  max-width: 820px;
  margin-bottom: 16px;
  color: #765a51;
  font-size: 13px;
}

.chapter-context-foot {
  border-top: 1px solid #ead9cc;
  padding-top: 10px;
  color: #92766d;
  font-size: 9px;
}

.chapter-context-foot a {
  flex: none;
  color: var(--warm-dark);
  font-weight: 800;
  text-decoration: none;
}

.chapter-context-foot a:hover {
  text-decoration: underline;
}

.story-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid #dfc9b9;
  background: #fffaf5;
}

.story-controls .progress {
  border: 0;
}

.story-controls .progress ol {
  min-width: 720px;
  padding: 0 14px;
}

.story-controls .progress li {
  padding: 12px 8px 11px;
}

.story-controls .progress li.active {
  color: #632f22;
}

.story-controls .progress li.active::after {
  background: var(--warm);
}

.story-controls .progress li.done {
  color: #9b4c34;
}

.story-restart {
  min-width: 116px;
  border: 0;
  border-left: 1px solid #dfc9b9;
  background: #f5e8dd;
  color: #632f22;
  padding: 0 17px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.story-restart:hover {
  background: #edd9ca;
}

.workspace-boundary {
  margin-bottom: 28px;
}

.workspace-boundary-label {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 8px 8px;
  border: 1px solid #bad6e5;
  border-radius: 9px;
  background: #eaf6fb;
  color: #31566d;
  padding: 8px 12px;
  box-shadow: 0 7px 18px rgba(6, 28, 76, 0.08);
  font-size: 9px;
}

.workspace-boundary-label > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-boundary-label strong {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-label-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}

.workspace-boundary .experience {
  margin-bottom: 0;
}

.queue-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.queue-summary article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 13px 14px;
}

.queue-summary span,
.queue-summary strong {
  display: block;
}

.queue-summary span,
.queue-field-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.queue-summary strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 21px;
}

.request-queue-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.request-queue-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(180px, 1fr) minmax(80px, 0.45fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 15px;
}

.queue-location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-location strong,
.queue-location span,
.request-queue-row > div > strong {
  display: block;
}

.queue-location strong,
.request-queue-row > div > strong {
  color: var(--ink);
  font-size: 11px;
}

.queue-location div span {
  color: var(--muted);
  font-size: 10px;
}

.queue-row-action {
  justify-self: end;
}

.conversion-stage {
  margin-bottom: 72px;
}

.conversion-stage .conversion {
  margin-top: 0;
  border: 1px solid #234579;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.conversion-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

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

@media (max-width: 980px) {
  .story-hero {
    grid-template-columns: 1fr;
  }

  .story-copy {
    order: 1;
  }

  .story-image {
    max-height: 420px;
  }

  .story-image img {
    min-height: 0;
  }

  .workorder-layout {
    grid-template-columns: 1fr;
  }

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

  .story-guide-main {
    grid-template-columns: 1fr;
  }

  .story-intro {
    border-right: 0;
    border-bottom: 1px solid #dfc9b9;
  }

  .demo-intro {
    grid-template-columns: 1fr;
  }

  .customer-context {
    max-width: 620px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    display: block;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
  }

  .product-sidebar .sidebar-label,
  .product-sidebar .sidebar-context {
    display: none;
  }

  .product-sidebar ol {
    display: flex;
    min-width: 590px;
  }

  .product-sidebar li {
    flex: 1;
    justify-content: center;
  }

  .request-queue-row {
    grid-template-columns: minmax(190px, 1fr) minmax(160px, 0.8fr) auto;
  }

  .request-queue-row > div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    justify-self: end;
  }

  .concept-label {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  main {
    width: min(100% - 24px, 1220px);
  }

  .story-hero {
    padding: 42px 0;
  }

  .fact-strip,
  .before-grid,
  .dashboard-metrics,
  .queue-summary,
  .analytics-grid,
  .decision-grid,
  .summary-grid,
  .conversion {
    grid-template-columns: 1fr;
  }

  .fact-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .experience-heading {
    align-items: start;
    flex-direction: column;
    padding: 24px 20px 18px;
  }

  .demo-intro {
    gap: 20px;
    padding: 28px 0 20px;
  }

  .story-guide {
    margin-top: 18px;
  }

  .story-intro,
  .chapter-context {
    padding: 20px;
  }

  .chapter-context::before {
    top: 20px;
    bottom: 20px;
  }

  .chapter-context-top,
  .chapter-context-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .story-controls {
    grid-template-columns: 1fr;
  }

  .story-restart {
    min-height: 42px;
    border-top: 1px solid #dfc9b9;
    border-left: 0;
  }

  .workspace-boundary-label {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-right: 0;
    margin-left: 0;
  }

  .demo-intro h1 {
    font-size: 38px;
  }

  .customer-context {
    grid-template-columns: 82px 1fr;
  }

  .product-chrome {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 14px;
  }

  .product-account {
    width: 100%;
    justify-content: space-between;
  }

  .account-user {
    border-left: 0;
    padding-left: 0;
  }

  .product-sidebar li {
    min-height: 36px;
    padding: 7px 9px;
  }

  .product-sidebar li span:last-child {
    font-size: 11px;
  }

  .product-workspace .experience-heading {
    gap: 9px;
    min-height: 0;
    padding: 16px 18px 14px;
  }

  .workspace-actions {
    width: 100%;
    justify-content: space-between;
  }

  .stage {
    padding: 28px 20px 34px;
  }

  .request-queue-row {
    grid-template-columns: 1fr;
  }

  .request-queue-row > div:nth-child(3) {
    display: block;
  }

  .queue-row-action {
    justify-self: stretch;
  }

  .queue-row-action .primary-button {
    width: 100%;
  }

  .request-card-body {
    grid-template-columns: 1fr;
  }

  .invoice-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .booking-form .primary-button,
  .booking-disclosure {
    grid-column: auto;
  }

  .agent-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border: 1px solid #bfcde0;
  }

  .agent-panel.collapsed {
    width: auto;
  }

  .agent-panel #agent-panel-body {
    max-height: calc(100vh - 82px);
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
