/* Readable product evidence, stable demo frames and buyer-focused home copy. */
.company-estimating {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 10%;
  max-width: 1040px;
  margin: 0 auto 52px;
}
.company-estimating h2 {
  max-width: 380px;
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.3;
}
.company-estimating-copy p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 18px;
}
.company-estimating-copy p:last-child {
  margin-bottom: 0;
}
.company-estimating-copy .company-outcome {
  font-weight: 500;
  color: #41444f;
}
.page-home .section-title-muted {
  color: #747680;
}
.page-home .section-title-glint {
  filter: opacity(0.2);
}
.page-home .editorial-section-heading .eyebrow,
.page-home .audience-editorial .editorial-section-heading .eyebrow {
  color: #686b77;
  font-size: 12px;
}
.page-home .context-feature-copy p,
.page-home .audience-content > p,
.page-home .fact-grid p,
.page-home .journey-heading > p {
  font-size: 15px;
  line-height: 1.8;
  color: #656873;
}
.page-home .context-feature-copy p {
  max-width: 500px;
}
.page-home .context-feature {
  display: grid;
  grid-template-rows: 1fr auto;
}
.page-home .sector-list li {
  font-size: 14px;
}
.page-home .proof-boundary {
  font-size: 13px !important;
  color: #656873;
}
.page-home .fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-home .proof-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-home .journey-note,
.page-home .journey-marker {
  color: #656873;
  font-size: 12px;
}
.page-home .context-demo-bar {
  font-size: 12px;
}
.page-home .context-connected,
.page-home .context-input small,
.page-home .context-input b > span,
.page-home .context-priced-heading small,
.page-home .context-priced-item dt > span,
.page-home .context-passage-heading small,
.page-home .context-scope-rows button > small {
  font-size: 11px;
  color: #6e717c;
}
.page-home .context-input strong,
.page-home .context-priced-heading strong,
.page-home .context-priced-item dt,
.page-home .context-priced-total > span,
.page-home .context-passage-heading,
.page-home .context-passage blockquote,
.page-home .context-scope-rows button {
  font-size: 12px;
  color: #5f626e;
}
.page-home .context-input strong {
  white-space: normal;
}
.page-home .context-input b,
.page-home .context-priced-item dd {
  font-size: 13px;
}
.page-home .context-priced-item dt > span {
  margin-top: 2px;
}
.page-home .context-passage .source-citation {
  min-height: 44px;
  font-size: 12px;
  color: #56627c;
}
.page-home .context-scope-rows button {
  min-height: 48px;
}
.page-home .context-scope-rows button[aria-pressed="true"] {
  color: #424f6b;
}
.page-home .context-flow {
  min-height: 320px;
}
.page-home .context-source-body {
  min-height: 320px;
}

/* Keep the controls first in reading order; desktop can display them below. */
.estimator-experience.ew-controls-after {
  display: flex;
  flex-direction: column;
}
.ew-controls-after > .ew-scene-selector {
  order: 2;
  margin: 32px 0 0;
}
.page-home .ew-controls-after > .ew-scene-selector {
  margin: 32px 0 0;
}
.ew-controls-after > .estimator-workspace {
  order: 1;
}
.ew-scene-selector [role="tab"] {
  color: #656873;
  min-height: 44px;
}
.ew-step-index {
  color: #727580;
}
.ew-step-line[data-running="true"] {
  animation-duration: 12s;
}
.estimator-workspace:not([data-theme="dark"]) {
  --ew-muted: #6c6f7b;
}

/* Only embedded previews have a bounded frame. The full workspace remains fluid. */
.estimator-experience:not(.ew-full) .estimator-workspace {
  height: 858px;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  /* Clip the frame without creating an extra touch-scroll boundary. */
  overflow: clip;
}
.estimator-experience:not(.ew-full) .ew-body,
.estimator-experience:not(.ew-full) .ew-main-and-agent,
.estimator-experience:not(.ew-full) .ew-main {
  min-height: 0;
}
.estimator-experience:not(.ew-full) .ew-topbar {
  flex-shrink: 0;
}
.estimator-experience:not(.ew-full) .ew-main {
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ew-line-strong) transparent;
}
.estimator-experience:not(.ew-full) .ew-view-stack {
  min-height: 0;
}
.estimator-experience:not(.ew-full) .ew-agent {
  min-height: 0;
  overflow: hidden;
}
.estimator-experience:not(.ew-full) .ew-conversation {
  min-height: 0;
  max-height: none;
}

@media (min-width: 1600px) {
  .estimator-experience:not(.ew-full) .estimator-workspace {
    height: 944px;
  }
}
@media (max-width: 760px) {
  .company-estimating {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 38px;
  }
  .page-home .context-feature-copy p,
  .page-home .audience-content > p,
  .page-home .fact-grid p,
  .page-home .journey-heading > p {
    font-size: 14px;
    line-height: 1.75;
  }
  .page-home .fact-grid article {
    display: block;
  }
  .page-home .fact-grid {
    grid-template-columns: 1fr;
  }
  .page-home .fact-grid h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .page-home .proof-boundary {
    font-size: 12px !important;
  }
  .page-home .sector-list li {
    font-size: 12px;
  }
  .page-home .journey-note {
    align-items: flex-start;
    line-height: 1.7;
  }
  .page-home .journey-note .pixel-icon {
    margin-top: 4px;
  }
  .ew-scene-selector [role="tablist"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    padding: 5px;
  }
  .ew-scene-selector [role="tab"] {
    font-size: 12px;
    padding: 12px 8px;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
  }
  .ew-step-index {
    display: inline;
    font-size: 10px;
  }
  .ew-controls-after > .ew-scene-selector {
    order: 0;
    margin: 0 0 22px;
  }
  .page-home .ew-controls-after > .ew-scene-selector {
    margin: 0 0 22px;
  }
  .estimator-experience:not(.ew-full) .estimator-workspace {
    height: 900px;
  }
  .estimator-experience:not(.ew-full) .ew-main-and-agent {
    grid-template-rows: minmax(0, 1fr) 340px;
  }
  .estimator-experience:not(.ew-full)
    .ew-main-and-agent:has(> .ew-agent[hidden]) {
    grid-template-rows: minmax(0, 1fr);
  }
  .estimator-experience:not(.ew-full) .ew-agent {
    padding-bottom: 12px;
  }
  .estimator-experience:not(.ew-full) .ew-agent-header {
    padding-block: 12px 9px;
  }
  .estimator-experience:not(.ew-full) .ew-agent-context {
    display: none;
  }
  .estimator-experience:not(.ew-full) .ew-conversation {
    padding-block: 10px;
  }
  .estimator-experience:not(.ew-full) .ew-table-scroll {
    /* One vertical working area; the table keeps horizontal scrolling only. */
    max-height: none;
  }
  .estimator-workspace .ew-metrics small {
    display: none;
  }
  .estimator-workspace .ew-metrics > div > span,
  .estimator-workspace .ew-inner-nav button,
  .estimator-workspace .ew-agent-header small,
  .estimator-workspace .ew-suggestions button {
    font-size: 11px;
  }
  .estimator-workspace .ew-item-button {
    font-size: 12px;
  }
  .estimator-workspace .ew-estimate-table th,
  .estimator-workspace .ew-estimate-table td,
  .estimator-workspace .ew-item-button small {
    font-size: 10px;
  }
  .estimator-workspace .ew-prompt textarea {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .page-home .context-demo-bar {
    padding-inline: 14px;
  }
  .page-home .context-flow {
    gap: 20px;
  }
  .page-home .context-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .page-home .context-input {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 9px 10px;
  }
  .page-home .context-input strong,
  .page-home .context-input small {
    min-height: 0;
  }
  .page-home .context-input b {
    margin-left: auto;
  }
  .page-home .context-priced-item dt > span {
    display: block;
    margin-left: 0;
  }
  .page-home .context-scope-rows button {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12px;
  }
  .page-home .context-scope-rows button > small {
    margin-left: auto;
  }
}

/* A quieter first frame, with stronger navigation once the page is scrolled. */
.site-page:is(.page-home, .page-product)
  .site-header:not(.has-scrolled):not(.menu-open)
  .header-inner {
  background: #14202c2e;
  border-color: #ffffff12;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px) saturate(1);
  backdrop-filter: blur(8px) saturate(1);
}
.site-page:is(.page-home, .page-product)
  .site-header:not(.has-scrolled):not(.menu-open)
  .main-nav
  > a:not(.button) {
  text-shadow: 0 1px 8px #07111e80;
}
.page-home .home-hero-immersive .hero-actions {
  gap: 22px;
}
.page-home .home-hero-immersive .hero-actions .text-link {
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-decoration: underline;
  text-decoration-color: #ffffff70;
  text-underline-offset: 5px;
}
.page-home .home-hero-immersive .hero-actions .text-link:hover {
  background: transparent;
  border-color: transparent;
  text-decoration-color: currentColor;
}
.estimator-experience {
  position: relative;
}
.ew-scene-label-short {
  display: none;
}
@media (min-width: 761px) {
  .page-home .live-workspace-section {
    padding-top: 184px;
  }
}
@media (min-width: 1800px) {
  .page-home .live-workspace-section {
    padding-top: 190px;
  }
}

@media (max-width: 760px) {
  /* One shared tablist stays in reading order and sits inside the preview frame. */
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) > .ew-scene-selector {
    position: absolute;
    top: 47px;
    left: 1px;
    right: 1px;
    height: 44px;
    z-index: 4;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #ededf0;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-selector [role="tablist"] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    height: 44px;
    gap: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .page-home
    .estimator-experience:not(.ew-full):not(.ew-controls-progress)
    .ew-scene-selector
    [role="tablist"] {
    box-shadow: none;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-selector [role="tab"] {
    justify-content: center;
    gap: 0;
    min-height: 44px;
    padding: 0 3px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #6c6f7b;
    font-size: 12px;
    box-shadow: none;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress)
    .ew-scene-selector
    [role="tab"][data-state="active"] {
    border-bottom-color: #687c9b;
    color: #303136;
    font-weight: 550;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-selector .ew-step-index,
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-selector .ew-step-line,
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-label {
    display: none;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-scene-label-short {
    display: inline;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-topbar {
    margin-bottom: 44px;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress) .ew-inner-nav {
    display: none;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress):has(
      .estimator-workspace[data-sidebar-open="true"]
    )
    > .ew-scene-selector {
    visibility: hidden;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress)[data-theme="dark"] > .ew-scene-selector {
    background: #111113;
    border-bottom-color: #252529;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress)[data-theme="dark"]
    .ew-scene-selector
    [role="tab"] {
    color: #b0b1bc;
  }
  .estimator-experience:not(.ew-full):not(.ew-controls-progress)[data-theme="dark"]
    .ew-scene-selector
    [role="tab"][data-state="active"] {
    color: #f2f2f5;
    border-bottom-color: #a1b1cf;
  }
}

/* A small, numbered scene rail at the preview's upper edge. */
.page-home .estimator-experience.ew-controls-progress > .ew-scene-selector {
  position: absolute;
  top: -50px;
  left: 50%;
  right: auto;
  z-index: 4;
  width: min(288px, calc(100% - 40px));
  height: 44px;
  margin: 0;
  transform: translateX(-50%);
  background: none;
  border: 0;
}
.page-home .ew-controls-progress .ew-scene-selector [role="tablist"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-home .ew-controls-progress[data-theme] .ew-scene-selector [role="tab"] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  min-width: 0;
  min-height: 44px;
  gap: 0;
  padding: 5px 0 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #f1f4f7b3;
  box-shadow: none;
  overflow: visible;
  text-shadow: 0 1px 5px #07111ecc;
}
.page-home .ew-controls-progress[data-theme] .ew-scene-selector
  [role="tab"][data-state="active"] {
  background: none;
  border: 0;
  color: #fffaf0;
  box-shadow: none;
}
.page-home .ew-controls-progress .ew-scene-selector [role="tab"]:after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 2px;
  border-radius: 2px;
  background: #fffaf04d;
  box-shadow: 0 1px 3px #07111e40;
}
.page-home .ew-controls-progress .ew-scene-selector .ew-step-index {
  display: block;
  color: inherit;
  font-size: 11px;
  line-height: 1.4;
}
.page-home .ew-controls-progress .ew-scene-selector .ew-step-line {
  display: block;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fffaf0;
}
.page-home .ew-controls-progress .ew-scene-selector
  [role="tab"][data-state="active"] .ew-step-line[data-running="false"] {
  transform: scaleX(1);
}
.page-home .ew-controls-progress[data-visible="false"] .ew-step-line {
  animation-play-state: paused;
}
.page-home .ew-controls-progress .ew-scene-selector .ew-scene-label-short {
  display: none;
}
.page-home .ew-controls-progress .ew-scene-selector .ew-scene-label {
  display: block;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid #ffffff1f;
  border-radius: 6px;
  background: #1c2732f5;
  color: #f7f8fb;
  font: 400 11px/1.5 Inter, sans-serif;
  text-shadow: none;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity .15s ease, transform .15s ease;
}
.page-home .ew-controls-progress .ew-scene-selector
  [role="tab"]:focus-visible {
  outline: 2px solid #fffaf0;
  outline-offset: 3px;
}
.page-home .ew-controls-progress .ew-scene-selector
  [role="tab"]:focus-visible .ew-scene-label {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: hover) {
  .page-home .ew-controls-progress .ew-scene-selector
    [role="tab"]:hover .ew-scene-label {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 760px) {
  .page-home .live-workspace-section {
    padding-top: 90px;
  }
  .page-home .ew-controls-progress .ew-topbar {
    margin-bottom: 0;
  }
  .page-home .ew-controls-progress .ew-inner-nav {
    display: none;
  }
}
