.home-page {
  --home-header-height: 72px;
  --home-section-nav-top: calc(var(--home-header-height) + 15px);
}

.home-page .section-nav {
  position: fixed;
  top: var(--home-section-nav-top);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.home-page .section-nav.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.home-page main .section[id], .home-page #business-tools {
  scroll-margin-top: calc(var(--home-section-nav-top) + 66px);
}
.home-page main :is(#marketing, #solutions, #about) {
  scroll-margin-top: calc(var(--home-section-nav-top) + 56px);
}
@media (min-width: 701px) {
  .home-page .solution-card.content > p { min-height: 0; margin-bottom: 0; }
  .home-page .solution-card.content > ul { margin-top: 16px; }

  .home-page #solutions {
    padding-block-start: 34px;
  }
  .home-page main #marketing {
    scroll-margin-top: calc(var(--home-section-nav-top) - 6px);
  }
  .home-page #about {
    padding-block-start: 14px;
  }
  .home-page #business-tools {
    scroll-margin-top: calc(var(--home-section-nav-top) + 26px);
  }
  .home-page #business-tools > h3 {
    margin-block-start: 0;
  }
}
.home-page .mini-program-section + .store-slider { margin-top: 24px; }
@media (any-pointer: fine) {
  .home-page :is(.case-viewport, .solution-viewport) { cursor: grab; }
  .home-page :is(.case-viewport, .solution-viewport).is-mouse-swiping,
  .home-page :is(.case-viewport, .solution-viewport).is-mouse-swiping * { cursor: grabbing; user-select: none; }
}
.home-page .hero { touch-action: pan-y; }
.home-page .hero-main { cursor: grab; user-select: none; -webkit-user-drag: none; }
.home-page .store-slider.can-swipe-both { touch-action: pinch-zoom; }
.home-page .solution-card button[data-contact-dialog] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.home-page .solution-card button[data-contact-dialog] svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

@media (max-width: 1100px) {
  .home-page .feature-card.compact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: clamp(10px, 2vw, 20px);
    min-height: 230px;
    padding: clamp(16px, 3vw, 30px);
  }
  .home-page .feature-card.compact > h3,
  .home-page .feature-card.compact > p,
  .home-page .feature-card.compact > a { grid-column: 1; overflow-wrap: anywhere; }
  .home-page .feature-card.compact > h3 { font-size: clamp(17px, 3vw, 22px); line-height: 1.35; margin-bottom: 10px; }
  .home-page .feature-card.compact > a { position: static; align-self: end; justify-self: start; }
  .home-page .feature-card.compact > img {
    position: static;
    grid-area: 1 / 2 / 4 / 3;
    align-self: center;
    width: 100%;
    height: auto;
    max-height: 210px;
    margin: 0;
    transform-origin: right center;
  }
}

.home-page .consult { grid-template-columns: minmax(0, 1fr); }
.home-page .consult > .consult-panel {
  position: relative;
  padding: 85px calc(50% + 48px) 85px 48px;
  border-radius: 28px;
  overflow: hidden;
}
.home-page .consult-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  height: 100%;
  border-radius: 0;
}
@media (min-width: 701px) and (max-width: 820px) {
  .home-page .consult > .consult-panel { display: flex; flex-direction: column; padding: 38px 24px 0; }
  .home-page .consult-photo {
    position: static;
    order: 1;
    width: calc(100% + 48px);
    max-width: none;
    height: auto;
    margin: 28px -24px 0;
  }
}

.hero-visual { width: 100%; max-width: 708px; justify-self: end; border-radius: 32px; overflow: hidden; isolation: isolate; }
.hero-visual .hero-main { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.hero-visual-shade {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: clamp(80px, 9vw, 115px);
  background: linear-gradient(105deg, #b8b9f4e8, #b0c7f1eb);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.mode-marketing .hero-visual-shade { background: linear-gradient(105deg, #b7a8e9eb, #aebff0e8); }
.hero-visual-label {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 3vw, 34px);
  bottom: clamp(24px, 3.2vw, 42px);
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  line-height: 1;
}
.hero-visual-label strong { font-size: clamp(21px, 3vw, 32px); letter-spacing: -.06em; }
.hero-visual-label span { font-size: 12px; border: 1px solid #fff9; border-radius: 999px; padding: 4px 6px; }
.hero-thumbs { z-index: 2; right: clamp(14px, 3vw, 30px); bottom: clamp(14px, 2.2vw, 24px); }
.hero-thumbs button { position: relative; opacity: 1; border-width: 1px; border-color: #ffffff85; background: #ffffff36; }
.hero-thumbs button::after { content: ''; position: absolute; inset: 0; background: #27345255; pointer-events: none; }
.hero-thumbs button.active { border-color: white; box-shadow: none; }
.hero-thumbs button.active::after { opacity: 0; }

@media (max-width: 1100px) {
  .home-page { --home-header-height: 64px; }
  .home-page .site-header { height: var(--home-header-height); }
  .home-page .header-inner { width: calc(100% - 56px); gap: 0; }
  .home-page .menu-toggle { display: block; margin-left: auto; }
  .home-page .header-actions { display: none; }
  .home-page .main-nav {
    position: absolute;
    inset: 100% 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 12px 16px;
    box-shadow: 0 12px 25px #17234414;
  }
  .home-page .main-nav.open { display: flex; }
  .home-page .main-nav a { padding: 11px 8px; justify-content: flex-start; }
  .home-page .section-nav a { padding: 9px 14px; font-size: 14px; }
}

@media (min-width: 701px) and (max-width: 1199px) {
  .home-page .hero { min-height: 0; padding: clamp(32px, 4.7vw, 54px) 0; }
  .home-page .hero-inner {
    width: calc(100% - 56px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3.5vw, 42px);
  }
  .home-page .hero-copy { text-align: left; }
  .home-page .hero-visual { margin: 0; }
  .home-page .mode-switch { margin-bottom: 24px; }
  .home-page .mode-switch button { padding: 9px clamp(19px, 4vw, 55px); }
  .home-page .hero h1 { font-size: clamp(31px, 4.65vw, 49px); margin-bottom: 28px; }
  .home-page .hero-actions .btn { padding: 10px 19px; }
  .home-page .cases { padding: 76px 0 74px; }
  .home-page .cases .section-heading { width: calc(100% - 56px); margin-bottom: 28px; }
  .home-page .cases-heading h2 { font-size: 32px; }
  .home-page .cases-heading p { font-size: 20px; margin-bottom: 4px; }
}

@media (max-width: 700px) {
  .home-page { --home-header-height: 54px; }
  .home-page .header-inner { width: calc(100% - 32px); }
  .home-page .hero { min-height: 0; padding: 31px 0 16px; }
  .home-page .hero.mode-store {
    background: radial-gradient(ellipse at 90% 38%, #a2adf3, transparent 66%),
      linear-gradient(158deg, #b8d9fa, #c9d8f8 58%, #e9effc);
  }
  .home-page .hero.mode-marketing {
    background: radial-gradient(ellipse at 90% 38%, #b3b5f1, transparent 70%),
      linear-gradient(150deg, #dedcf8, #e8edfb 72%, #f0edf9);
  }
  .home-page .hero-inner { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; }
  .home-page .hero-visual { display: contents; }
  .home-page .hero-visual-shade, .home-page .mode-switch { display: none; }
  .home-page .hero-visual-label {
    position: static;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 5px;
  }
  .home-page .hero-visual-label strong { font-size: 30px; }
  .home-page .hero-main {
    grid-row: 2;
    width: min(100%, 500px);
    aspect-ratio: 25 / 24;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent, #000 7% 93%, transparent),
      linear-gradient(to bottom, transparent, #000 16% 81%, transparent 100%);
    mask-composite: intersect;
  }
  .home-page .hero-copy { grid-row: 3; text-align: center; width: 100%; padding: 0 16px; }
  .home-page .hero h1 { font-size: clamp(27px, 6vw, 36px); margin: 0 0 20px; line-height: 1.42; }
  .home-page .hero-actions { display: flex; justify-content: center; gap: 8px; }
  .home-page .hero-actions .btn { margin: 0; padding: 10px 18px; }
  .home-page .hero-thumbs { grid-row: 4; position: static; gap: 2px; }
  .home-page .hero-thumbs button {
    border: 0; background: transparent; box-shadow: none;
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
  }
  .home-page .hero-thumbs button img { display: none; }
  .home-page .hero-thumbs button::after {
    position: static; width: 8px; height: 8px; border-radius: 50%;
    background: #fff9; opacity: 1;
  }
  .home-page .hero-thumbs button.active::after { background: white; }
  .home-page .store > .blue-title {
    font-size: clamp(22px, 5.6vw, 28px) !important;
    line-height: 1.3;
  }
  .home-page .local-business > h3 { font-size: clamp(22px, 5.5vw, 26px); line-height: 1.35; }
  .home-page #solutions > h2 { font-size: clamp(22px, 5.7vw, 28px); line-height: 1.3; }
  .home-page .local-grid article { min-height: 0; padding: 22px 20px 0; }
  .home-page .local-grid article > img {
    position: static;
    display: block;
    width: min(100%, 360px);
    max-width: 100%;
    max-height: 290px;
    height: auto;
    object-fit: contain;
    margin: 15px auto 0;
  }
  .home-page .payments-card ul { max-width: none; margin-bottom: 0; }
  .home-page .payments-card li { margin-block: 9px; }
  .home-page .templates-card p { margin-block: 10px; }
  .home-page .section-nav { display: none; }
  .home-page main .section[id], .home-page #business-tools {
    scroll-margin-top: var(--home-header-height);
  }
  .home-page main :is(#marketing, #solutions, #about) {
    scroll-margin-top: calc(var(--home-header-height) - 10px);
  }
  .home-page .cases { padding: 62px 0 70px; }
  .home-page .cases .section-heading { width: calc(100% - 32px); margin-bottom: 22px; }
  .home-page .cases-heading h2 { font-size: clamp(20px, 5vw, 26px); }
  .home-page .cases-heading p { font-size: 17px; margin-bottom: 4px; }
  .home-page .cases .carousel-controls { gap: 8px; }
  .home-page .cases .carousel-controls button { width: 34px; height: 34px; }
  .home-page .cases .carousel-controls svg { width: 19px; height: 19px; }

  .home-page .case-viewport,
  .home-page .solution-viewport,
  .home-page .mini-program-cards,
  .home-page .channel-grid {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-page .case-viewport::-webkit-scrollbar,
  .home-page .solution-viewport::-webkit-scrollbar,
  .home-page .mini-program-cards::-webkit-scrollbar,
  .home-page .channel-grid::-webkit-scrollbar { display: none; }

  .home-page .case-track {
    --case-mobile-width: min(60vw, 380px);
    gap: 12px;
    padding-inline: calc((100% - var(--case-mobile-width)) / 2);
    transform: none !important;
    transition: none;
    will-change: auto;
  }
  .home-page .case-card {
    flex: 0 0 var(--case-mobile-width);
    min-width: 0;
    height: auto;
    min-height: 365px;
    border-radius: 18px;
    scroll-snap-align: center;
  }
  .home-page .case-image { height: auto; aspect-ratio: 16 / 10; }
  .home-page .case-body { padding: 18px clamp(12px, 3.5vw, 20px); }
  .home-page .case-body b, .home-page .case-body h3 { margin-left: 42px; }
  .home-page .case-body h3 { min-height: auto; margin-bottom: 14px; font-size: 16px; overflow-wrap: anywhere; }
  .home-page .case-body .case-avatar { width: 32px; height: 32px; left: clamp(12px, 3.5vw, 20px); top: 19px; }
  .home-page .case-body h4 { font-size: 17px; }
  .home-page .case-body p { font-size: 14px; }
  .home-page .case-card .metrics { gap: 8px 14px; flex-wrap: wrap; margin-top: 14px; }
  .home-page .case-card .metrics strong { font-size: 24px; }
  .home-page .case-card .qr-overlay { gap: 8px; }

  .home-page .mini-program-section, .home-page .channel-block { --card-gutter: 16px; padding-inline: var(--card-gutter); }
  .home-page .mini-program-section > h3, .home-page .channel-block > h3 { font-size: 22px; }
  .home-page .mini-program-section > h4, .home-page .channel-block > p { font-size: 16px; margin: 4px 0 18px; }
  .home-page .mini-program-cards, .home-page .channel-grid {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--card-gutter));
    padding-inline: var(--card-gutter);
    scroll-padding-inline: var(--card-gutter);
  }
  .home-page .mini-program-cards article, .home-page .channel-grid article {
    flex: 0 0 min(68vw, 320px);
    min-width: 0;
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
    scroll-snap-align: start;
  }
  .home-page .mini-program-cards h5, .home-page .channel-grid h4 { font-size: 17px; line-height: 1.35; }
  .home-page .mini-program-cards p, .home-page .channel-grid p { font-size: 14px; margin: 6px 0 14px; }
  .home-page .mini-program-cards ul { margin-bottom: 0; }
  .home-page .mini-program-cards li { margin-block: 5px; }
  .home-page .channel-grid article { display: flex; flex-direction: column; }
  .home-page .channel-grid img {
    height: clamp(120px, 40vw, 190px);
    width: 100%;
    margin: auto 0 0;
    object-fit: contain;
  }
  .home-page .channel-grid button { right: 16px; bottom: 16px; }

  .home-page .scene-block { padding: 20px 0; background: #f5f6f8; }
  .home-page .scene-block > h3 { font-size: clamp(21px, 5.2vw, 24px); }
  .home-page .scene-grid { gap: 16px; margin-top: 18px; }
  .home-page .scene-accordion, .home-page .scene-visual { min-height: 0; padding: 20px; border-radius: 20px; }
  .home-page .scene-accordion > h4, .home-page .scene-visual > h4 { margin: 0 0 16px; font-size: 18px; line-height: 1.45; }
  .home-page .scene-accordion article { padding: 11px 14px; margin: 10px 0 0; border-radius: 10px; }
  .home-page .scene-accordion article.active { padding-block: 14px; }
  .home-page .scene-accordion article > div { min-height: 30px; gap: 9px; }
  .home-page .scene-accordion article > div b { font-size: 14px; }
  .home-page .scene-accordion article p,
  .home-page .scene-accordion article a { margin: 5px 0 0 31px; font-size: 13px; }
  .home-page .scene-accordion .scene-icon { flex-basis: 22px; }
  .home-page .scene-accordion .scene-icon img { width: 22px; height: 22px; }
  .home-page .scene-accordion .accordion-chevron svg { width: 13px; height: 13px; }
  .home-page .scene-visual img { width: min(100%, 390px); height: auto; max-height: 300px; }

  .home-page .booking-block { padding: 20px 16px; }
  .home-page .booking-block > h3 { font-size: 19px; line-height: 1.42; }
  .home-page .booking-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .home-page .booking-grid article {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 18px 18px 0;
    border-radius: 14px;
  }
  .home-page .booking-grid article > div { min-height: 0; width: 100%; }
  .home-page .booking-grid h4 { font-size: 18px; margin: 0 0 12px; }
  .home-page .booking-grid p { margin: 9px 0 2px; font-size: 13px; }
  .home-page .booking-grid b { font-size: 14px; }
  .home-page .booking-grid article > div .btn { margin-top: 17px; padding: 7px 16px; font-size: 13px; }
  .home-page .booking-grid article > div .button-arrow { width: 15px; height: 15px; }
  .home-page .booking-grid article > img {
    position: static;
    width: 100%;
    height: clamp(172px, 48vw, 228px);
    margin: 16px auto 0;
    object-fit: contain;
    object-position: center bottom;
  }

  .home-page .consult { padding: 24px 0 0; }
  .home-page .consult > .consult-panel { padding: 34px clamp(16px, 4.6vw, 24px) 42px; border-radius: 0; }
  .home-page .consult-intro h2 { font-size: clamp(23px, 5.6vw, 27px); }
  .home-page .consult-intro p { margin: 16px 0 25px; font-size: 14px; }
  .home-page .consult-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    border-radius: 15px;
  }
  .home-page .consult-actions { margin-top: 20px; }
  .home-page .consult small { margin-top: 18px; }

  .home-page .solution-viewport { margin-inline: -20px; scroll-padding-inline: 12px; }
  .home-page .solution-track {
    gap: 16px;
    padding-inline: 12px;
    transform: none !important;
    transition: none;
  }
  .home-page .solution-card {
    flex: 0 0 min(68vw, 350px);
    height: clamp(465px, 121vw, 580px);
    padding: 22px 18px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .home-page .solution-card h3 { font-size: 21px; line-height: 1.25; }
  .home-page .solution-card p { font-size: 14px; min-height: 0; margin: 5px 0 15px; }
  .home-page .solution-card ul { margin-top: 0; }
  .home-page .solution-card li { padding: 8px 3px; font-size: 14px; }
  .home-page .solution-card button { right: 18px; bottom: 18px; }
}
