/* Production-readiness overrides: local review build only. */

html {
  scroll-padding-top: 92px;
}

#customerProblem,
#smartBizTransformation,
#smartBizOnboarding,
#smartBizPricing,
#smartBizFinal,
#smartBizFaq {
  scroll-margin-top: 92px;
}

/* Stable hero: retain one accessible H1 and remove carousel movement. */
.hero-slider--static .slide[hidden],
.hero-slider--static .slider-controls[hidden] {
  display: none !important;
}

.hero-slider--static .slide[data-index="0"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.hero-slider--static .desktop-hero-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(249, 246, 239, .98) 0%, rgba(249, 246, 239, .94) 34%, rgba(249, 246, 239, .55) 48%, transparent 65%);
  pointer-events: none;
}

@media (min-width: 861px) {
  .hero-slider--static {
    height: calc((100vw - (var(--page-pad) * 2)) / 2 + 70px) !important;
    min-height: 620px !important;
  }

  .hero-slider--static .photo-slide-inner h1 {
    font-size: clamp(42px, 3.35vw, 58px) !important;
  }
}

/* Give the header enough room before switching to the compact menu. */
@media (max-width: 1320px) {
  .primary-nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
  }

  .header-inner {
    gap: 18px !important;
  }

  .header-utilities {
    margin-left: auto;
  }
}

@media (min-width: 1321px) {
  .menu-toggle {
    display: none !important;
  }
}

.site-header.is-sticky {
  z-index: 90;
}

.tablet-menu[hidden] {
  display: none !important;
}

.tablet-menu:not([hidden]) {
  border-top: 1px solid #ecece8;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* Only show industry transformations backed by genuinely distinct imagery. */
.smartbiz-industry-slide[data-industry="beauty"],
.smartbiz-industry-dot[data-industry-index="3"] {
  display: none !important;
}

.smartbiz-industry-controls {
  justify-content: center;
}

.smartbiz-industry-dot {
  min-height: 44px;
  padding-inline: 22px;
}

.smartbiz-image-credit {
  font-size: 13px !important;
  line-height: 1.5;
}

.smartbiz-image-credit a {
  display: inline-block;
  min-height: 24px;
  padding-block: 3px;
}

/* Transformation is user-controlled; remove redundant auto/replay controls. */
.smartbiz-auto-toggle,
.smartbiz-replay {
  display: none !important;
}

.smartbiz-stage[data-state="upcoming"] .smartbiz-mobile-toggle,
.smartbiz-stage[data-state="upcoming"] .stage-heading,
.smartbiz-stage[data-state="upcoming"] .stage-state {
  opacity: 1 !important;
}

.smartbiz-stage[data-state="upcoming"] .smartbiz-mobile-toggle {
  color: #d8d8d2 !important;
}

.smartbiz-visual.has-image-error::after {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #151515;
  font-weight: 800;
}

/* Compact, optional video treatment. */
.sb-video-disclosure {
  width: min(1120px, 100%);
  margin: clamp(38px, 5vw, 64px) auto clamp(54px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid #d9d9d3;
  border-radius: 22px;
  background: #fff;
}

.sb-video-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 24px;
  cursor: pointer;
  color: #111;
  font-weight: 800;
  list-style: none;
}

.sb-video-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sb-video-disclosure > summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #0b0b0c;
  border-radius: 50%;
  background: #0b0b0c;
  color: #ffcb05;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.sb-video-disclosure[open] > summary::after {
  content: "−";
}

.sb-video-disclosure > summary span {
  font-size: clamp(18px, 2vw, 24px);
}

.sb-video-disclosure > summary small {
  margin-left: auto;
  color: #5e5e59;
  font-size: 13px;
  font-weight: 400;
}

.sb-video-disclosure .sb-video {
  margin: 0;
  border-radius: 0;
}

.sb-video-transcript {
  padding: 24px;
  border-top: 1px solid #e5e5df;
}

.sb-video-transcript h3 {
  margin: 0 0 10px;
  font-size: 20px !important;
}

.sb-video-transcript p {
  max-width: 75ch;
  margin: 0;
  color: #565650;
  font-size: 15px;
  line-height: 1.65;
}

/* Pricing selection is explicit on narrow screens instead of undisclosed swiping. */
.sb-plan-selector {
  display: none;
}

.sb-addons ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible !important;
}

.sb-addons li {
  min-width: 0 !important;
}

.sb-plan__includes,
.sb-plan--elite .sb-plan__includes {
  color: #ffcb05 !important;
}

.sb-plan__benefits > b,
.sb-plan--elite .sb-plan__benefits > b {
  color: #000 !important;
}

/* Responsive final merchant image. */
.sb-final__image picture,
.sb-final__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.sb-final__image img {
  object-fit: cover;
}

/* Strong focus treatment on light and dark surfaces. */
.sb-faq summary:focus-visible,
.sb-plan-selector button:focus-visible,
.sb-video-disclosure > summary:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 4px;
}

.customer-problem :focus-visible,
.sb-final :focus-visible,
.sb-site-footer :focus-visible {
  outline-color: #ffcb05;
}

.mobile-wa-cta {
  display: none;
}

.compact-language-switch {
  display: none;
}

@media (max-width: 760px) {
  .sb-plan-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 28px);
    margin: 0 auto 20px;
    padding: 8px;
    border: 1px solid #d9d9d3;
    border-radius: 16px;
    background: #f4f4f2;
  }

  .sb-plan-selector button {
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #55554f;
    font-weight: 800;
    text-align: left;
  }

  .sb-plan-selector button[aria-selected="true"] {
    background: #090909;
    color: #fff;
  }

  .sb-pricing__cards {
    display: block !important;
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .sb-pricing__cards .sb-plan {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .sb-pricing__cards .sb-plan[hidden] {
    display: none !important;
  }

  .sb-addons ul {
    grid-template-columns: 1fr 1fr;
  }
}

.header-cta__icon {
  display: none;
}

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
    gap: 8px !important;
  }

  .brand {
    flex: none;
    width: 124px !important;
  }

  .header-utilities {
    min-width: 0 !important;
    gap: 7px !important;
  }

  .header-utilities > .language-switch {
    display: none !important;
  }

  .header-cta {
    display: grid !important;
    place-items: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 50% !important;
  }

  .header-cta__label {
    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;
  }

  .header-cta__icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .language-switch {
    flex: none;
  }

  .menu-toggle {
    flex: none;
    min-width: 74px !important;
    padding-inline: 10px !important;
  }

  .hero-slider--static {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
  }

  .hero-slider--static .slides,
  .hero-slider--static .slide[data-index="0"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
  }

  .hero-slider--static .slide-inner,
  .hero-slider--static .photo-slide-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 30px 22px 38px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 28px !important;
  }

  .hero-slider--static .slide-copy,
  .hero-slider--static .desktop-hero-photo,
  .hero-slider--static .lead,
  .hero-slider--static .hero-actions,
  .hero-slider--static h1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-slider--static .desktop-hero-photo {
    height: auto !important;
    aspect-ratio: 2 / 1;
    order: 2;
  }

  .hero-slider--static .desktop-hero-photo::after {
    background: linear-gradient(180deg, rgba(249, 246, 239, .12), transparent 30%);
  }

  .hero-slider--static .desktop-hero-photo img {
    object-fit: cover !important;
  }

  .hero-slider--static .slide-copy {
    order: 1;
  }

  .hero-slider--static h1 {
    font-size: clamp(42px, 13.2vw, 56px) !important;
    line-height: .92 !important;
  }

  .hero-slider--static .lead {
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  .hero-slider--static .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero-slider--static .hero-actions .button {
    width: 100% !important;
    min-height: 52px !important;
    white-space: normal !important;
    text-align: center;
  }

  .smartbiz-industry-controls {
    padding-inline: 0 !important;
  }

  .smartbiz-industry-dot {
    width: auto;
    min-width: 0;
    padding-inline: 5px;
    font-size: 10px;
  }

  .smartbiz-industry-dots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .sb-video-disclosure {
    width: calc(100% - 28px);
    margin-block: 32px 54px;
    border-radius: 18px;
  }

  .sb-video-disclosure > summary {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    padding: 18px;
  }

  .sb-video-disclosure > summary small {
    order: 3;
    width: calc(100% - 50px);
    margin: -10px 0 0;
  }

  .sb-video-transcript {
    padding: 18px;
  }

  .sb-demo-dot {
    width: 44px !important;
    height: 44px !important;
    padding: 13px !important;
    background-clip: content-box !important;
  }

  .sb-demo-play {
    min-height: 44px !important;
  }

  .sb-demo-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .sb-demo-dots {
    display: grid !important;
    grid-template-columns: repeat(6, 44px) !important;
    gap: 2px !important;
    justify-content: center !important;
  }

  .sb-addons ul {
    grid-template-columns: 1fr;
  }

  .sb-final-shell,
  .sb-final__panel {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-width: 0 !important;
    margin-inline: auto !important;
  }

  .sb-final__copy,
  .sb-final__image,
  .sb-final__image picture,
  .sb-final__image img {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .sb-final__copy h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .sb-final__copy p {
    overflow-wrap: anywhere;
  }

  .compact-language-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5df;
  }

  .compact-language-switch button {
    min-height: 44px;
    border: 1px solid #d7d7d1;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: 800;
  }

  .compact-language-switch button.is-active {
    border-color: #111;
    background: #ffcb05;
  }

  .mobile-wa-cta {
    display: none !important;
  }

  .sb-final__copy h2 {
    font-size: clamp(40px, 10vw, 48px) !important;
    line-height: .94 !important;
  }

  html[lang="fr"] .sb-final__copy h2 {
    font-size: 34px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 360px) {
  .sb-pricing__growth {
    display: none !important;
  }

  .brand {
    width: 112px !important;
  }

  .language-switch button {
    min-width: 26px !important;
    padding-inline: 4px !important;
  }

  .menu-toggle {
    min-width: 68px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-wa-cta,
  .site-header,
  .sb-video-disclosure > summary::after {
    transition: none !important;
  }
}

/* The pricing component now owns mobile navigation as a swipeable carousel.
   Keep the legacy tab layout from overriding its visible next-card cue. */
@media (max-width: 760px) {
  .sb-pricing .sb-plan-selector {
    display: none !important;
  }

  .sb-pricing .sb-pricing__cards {
    display: flex !important;
    width: auto !important;
    margin-inline: -14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
  }

  .sb-pricing .sb-pricing__cards .sb-plan,
  .sb-pricing .sb-pricing__cards .sb-plan--elite {
    display: flex !important;
    width: min(82vw, 360px) !important;
    min-width: min(82vw, 360px) !important;
    max-width: min(82vw, 360px) !important;
    margin: 0 !important;
  }
}
