/* The reference page owns the visual system through its original inline
   styles. These rules are limited to the shared components, homepage FAQ,
   focus-tab motion, and responsive adaptation. */

html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  overflow-x: hidden;
}

.mrs-shared-header-spacer {
  height: 72px;
  background: #fff;
}

salesman-header,
salesman-footer {
  display: block;
}

salesman-header .header--solid,
salesman-header .header--solid.header--scrolled,
salesman-header .header--solid.scrolled {
  box-shadow: none !important;
}

.mrs-page,
.mrs-page > section,
.mrs-page [style*="display:grid"] > *,
.mrs-page [style*="display:flex"] > *,
.mrs-focus-layout > * {
  min-width: 0;
}

.mrs-hero h1,
.mrs-hero p,
.mrs-hero > div > div {
  width: 100%;
}

.mrs-hero span[style*="border-radius:999px"] {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.mrs-page img,
.mrs-page svg {
  max-width: 100%;
}

.mrs-page h1,
.mrs-page h2,
.mrs-page h3,
.mrs-page p {
  overflow-wrap: break-word;
}

/* Restrained interaction motion: short travel, no looping effects. */
.mrs-page [style-hover],
.mrs-page [data-focus-tab],
.mrs-page a[style*="border-radius:999px"] {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .mrs-page [style-hover]:hover,
  .mrs-page a[style*="border-radius:999px"]:hover {
    transform: translateY(-2px);
  }

  .mrs-page [data-focus-tab]:hover {
    transform: translateY(-1px);
  }
}

.mrs-page [style-hover]:active,
.mrs-page a[style*="border-radius:999px"]:active,
.mrs-page [data-focus-tab]:active {
  transform: translateY(0);
}

/* FOCUS section
   The panel artwork carries its own pale lavender backdrop (#F4EFFF) that is
   within a few values of the section gradient behind it (#F2F0FA), so an
   edge-to-edge image dissolves into the page. Inset the artwork inside a
   defined white card so the card border -- not the image -- separates them. */
#mrs-focus-visual {
  position: relative;
  display: flex;
  padding: 14px;
  background: #fff;
  border: 1px solid #E4E0F2;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(16, 12, 52, .04),
    0 18px 40px -12px rgba(16, 12, 52, .16);
}

#mrs-focus-visual .mrs-focus-panel {
  border-radius: 14px;
  background: #F6F4FD;
}

/* Tab rail.
   Closed items previously sat directly on the section gradient with only a
   hairline, so they read as loose text rather than choosable options. Give
   every item its own surface, and let elevation + the accent rail carry the
   selected state. */
.mrs-focus-rail {
  align-self: stretch;
  justify-content: center;
  gap: 10px;
}

.mrs-page .mrs-focus-tab {
  position: relative;
  overflow: hidden;
  border: 1px solid #E6E2F3;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(16, 12, 52, .04);
}

/* Accent rail on the left edge; only the open item reveals it. */
.mrs-page .mrs-focus-tab::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #5B57D6;
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 200ms ease;
}

.mrs-page .mrs-focus-tab.is-open {
  border-color: #5B57D6;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 12, 52, .04),
    0 14px 30px -14px rgba(91, 87, 214, .45);
}

.mrs-page .mrs-focus-tab.is-open::after {
  transform: scaleY(1);
}

@media (hover: hover) and (pointer: fine) {
  .mrs-page .mrs-focus-tab:not(.is-open):hover {
    background: #fff;
    border-color: #CFC9EE;
    box-shadow: 0 6px 16px -8px rgba(16, 12, 52, .22);
  }

  .mrs-page .mrs-focus-tab:not(.is-open):hover h3 {
    color: #2C2B45 !important;
  }
}

.mrs-page .mrs-focus-tab:focus-visible {
  outline: 2px solid #5B57D6;
  outline-offset: 2px;
}

/* Mobile insight dropdown.
   Mirrors the homepage stage selector (.salesmanai-new-stage-dropdown):
   a trigger + listbox that replaces the tab rail on small screens. */
.mrs-focus-dropdown {
  display: none;
  position: relative;
  width: 100%;
  z-index: 8;
}

.mrs-focus-dropdown-trigger {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #E4E0F2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 12, 52, .04);
  color: #0B0A1F;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.mrs-focus-dropdown.is-open .mrs-focus-dropdown-trigger {
  border-color: #5B57D6;
  box-shadow: 0 10px 24px -12px rgba(91, 87, 214, .45);
}

.mrs-focus-dropdown-trigger:focus-visible {
  outline: 2px solid #5B57D6;
  outline-offset: 2px;
}

.mrs-focus-dropdown-label {
  min-width: 0;
  flex: 1 1 auto;
}

.mrs-focus-dropdown-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5B57D6;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.mrs-focus-dropdown-icon > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mrs-focus-dropdown.is-open .mrs-focus-dropdown-icon {
  transform: rotate(180deg);
}

.mrs-focus-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid #E4E0F2;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 24px 48px rgba(12, 3, 40, .18),
    0 8px 18px rgba(12, 3, 40, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 220ms;
}

.mrs-focus-dropdown.is-open .mrs-focus-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.mrs-focus-option {
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #55566A;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.mrs-focus-option:hover,
.mrs-focus-option:focus-visible {
  outline: 0;
  color: #0B0A1F;
  background: rgba(91, 87, 214, .08);
}

.mrs-focus-option.is-active {
  color: #0B0A1F;
  font-weight: 600;
  background: rgba(91, 87, 214, .12);
  box-shadow: inset 0 0 0 1px rgba(91, 87, 214, .18);
}

.mrs-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.mrs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .mrs-page > section,
  .mrs-faq {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  .mrs-focus-layout {
    gap: 42px !important;
  }

  #mrs-focus-visual {
    padding: 12px;
  }

  .mrs-stats [style*="font-size:52px"] {
    font-size: 44px !important;
  }
}

@media (max-width: 980px) {
  .mrs-hero {
    padding-top: 64px !important;
    padding-bottom: 80px !important;
  }

  .mrs-page > section:not(.mrs-hero),
  .mrs-faq {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .mrs-page h1[style*="font-size:66px"] {
    font-size: 52px !important;
    line-height: 1.08 !important;
  }

  .mrs-page h2[style*="font-size:50px"],
  .mrs-page h2[style*="font-size:44px"] {
    font-size: 38px !important;
  }

  .mrs-howitworks-grid,
  .mrs-usecases > div > div[style*="display:grid"],
  .mrs-stats > div > div[style*="display:grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mrs-stats > div > div[style*="display:grid"] > :last-child {
    grid-column: 1 / -1;
  }

  .mrs-focus-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  #mrs-focus-visual {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 22px;
    aspect-ratio: auto !important;
  }

  /* height:100% + object-fit:cover collapses once aspect-ratio is auto. */
  #mrs-focus-visual .mrs-focus-panel {
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
  }

  /* Dropdown replaces the tab rail once the layout stacks. */
  .mrs-focus-dropdown {
    display: block;
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .mrs-focus-rail {
    display: none !important;
  }

  .mrs-process-row {
    max-width: 520px !important;
  }

  .mrs-final-card {
    padding: 60px 40px !important;
  }
}

@media (max-width: 720px) {
  .mrs-page h1[style*="font-size:66px"] {
    font-size: 44px !important;
  }

  .mrs-page h2[style*="font-size:50px"],
  .mrs-page h2[style*="font-size:44px"] {
    font-size: 34px !important;
  }

  .mrs-comparison-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mrs-final-card h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 640px) {
  .mrs-shared-header-spacer {
    height: 64px;
  }

  .mrs-page > section,
  .mrs-faq {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .mrs-hero {
    padding-top: 48px !important;
    padding-bottom: 60px !important;
  }

  .mrs-howitworks-grid,
  .mrs-usecases > div > div[style*="display:grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mrs-stats > div > div[style*="display:grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mrs-process-row {
    max-width: 100% !important;
  }

  .mrs-process-row > div[style*="width:180px"] {
    width: 92px !important;
  }

  .mrs-process-row span[style*="font-size:15.5px"] {
    font-size: 13px !important;
    text-align: center;
  }

  #mrs-focus-visual {
    padding: 10px;
    border-radius: 18px;
  }

  #mrs-focus-visual .mrs-focus-panel {
    border-radius: 10px;
  }

  .mrs-focus-dropdown-trigger {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .mrs-focus-dropdown-menu {
    top: calc(100% + 6px);
    padding: 6px;
    border-radius: 16px;
  }

  .mrs-focus-option {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .mrs-problem-card,
  .mrs-final-card {
    padding: 40px 26px !important;
  }

  .mrs-problem-card h2,
  .mrs-final-card h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 420px) {
  .mrs-page h1[style*="font-size:66px"] {
    font-size: 32px !important;
  }

  .mrs-page h2[style*="font-size:50px"],
  .mrs-page h2[style*="font-size:44px"] {
    font-size: 26px !important;
  }

  .mrs-hero span[style*="border-radius:999px"] {
    font-size: 12px !important;
    padding: 7px 14px !important;
  }

  #mrs-focus-visual {
    padding: 8px;
    border-radius: 16px;
  }

  .mrs-focus-dropdown-trigger {
    min-height: 50px;
    padding: 0 14px;
    font-size: 14.5px;
  }

}

.mrs-hero,
.mrs-hero * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .mrs-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mrs-page [style-hover],
  .mrs-page a[style*="border-radius:999px"],
  .mrs-page [data-focus-tab] {
    transition: none !important;
  }

  .mrs-page .mrs-focus-tab::after,
  .mrs-focus-dropdown-icon,
  .mrs-focus-dropdown-menu {
    transition: none !important;
  }
}
