/* Product-demo journey — uses landing --hh-* tokens only. */

#overview,
#business-story,
#inventory-story,
#pos-story,
#connect,
#ecosystem,
#get-started,
#watch {
    scroll-margin-top: 5.5rem;
}

.hh-biz,
.hh-inv,
.hh-pospay,
.hh-eco,
.hh-final {
    padding: 4.5rem 1.25rem 3.5rem;
    color: var(--hh-ink);
}

.hh-biz__intro,
.hh-inv__intro,
.hh-pospay__intro,
.hh-eco__intro,
.hh-final {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.hh-biz__intro h2,
.hh-inv__intro h2,
.hh-pospay__intro h2,
.hh-eco__intro h2,
.hh-final h2 {
    margin: 0.7rem 0 0.8rem;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hh-biz__intro p,
.hh-inv__intro p,
.hh-pospay__intro p,
.hh-eco__intro p,
.hh-final__lead {
    margin: 0;
    color: var(--hh-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

/* Business dashboard story */
.hh-biz__scroll {
    display: grid;
    gap: 1.75rem;
    max-width: 72rem;
    margin: 0 auto;
}

.hh-biz__stage {
    position: relative;
}

.hh-biz__chapter {
    padding: 1.4rem 0 2.2rem;
    opacity: 0.45;
    transition: opacity 220ms ease;
}

.hh-biz__chapter[data-active='true'] {
    opacity: 1;
}

.hh-biz__step {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hh-primary);
    font-weight: 700;
}

.hh-biz__chapter h3,
.hh-pospay__chapter h3 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
}

.hh-biz__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    color: var(--hh-primary);
    font-weight: 700;
    text-decoration: none;
    min-height: 44px;
}

/* Dashboard demo */
.hh-dash {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    min-height: 22rem;
    border: 1px solid var(--hh-line);
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--hh-surface);
    box-shadow: 0 16px 40px rgba(80, 67, 172, 0.08);
}

.hh-dash__nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 0.75rem;
    background: var(--hh-surface-2);
    font-size: 0.78rem;
}

.hh-dash__brand {
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--hh-primary);
}

.hh-dash__nav span[data-on='true'] {
    color: var(--hh-primary);
    font-weight: 700;
}

.hh-dash__main {
    padding: 1rem 1.1rem 1.2rem;
}

.hh-dash__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.hh-dash__top em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--hh-mint);
    font-weight: 700;
}

.hh-dash__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.hh-dash__stats div {
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: var(--hh-bg);
}

.hh-dash__stats small {
    display: block;
    color: var(--hh-ink-2);
    font-size: 0.72rem;
    font-weight: 600;
}

.hh-dash__stats b {
    font-size: 1.2rem;
}

.hh-dash__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.hh-dash__list li {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 0.4rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    background: var(--hh-bg-2);
    font-size: 0.8rem;
}

.hh-dash__chip {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(80, 67, 172, 0.1);
    color: var(--hh-primary);
    font-weight: 700;
    font-size: 0.7rem;
}

/* Inventory strip */
.hh-inv {
    background: var(--hh-bg-2);
}

.hh-inv__rail {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 72rem;
    display: grid;
    gap: 0.9rem;
}

.hh-inv__card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem 1.25rem;
}

.hh-inv__num {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--hh-primary);
}

.hh-inv__card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.hh-inv__card p {
    margin: 0 0 0.7rem;
    color: var(--hh-muted);
    font-size: 0.94rem;
}

.hh-inv__card em {
    font-style: normal;
    font-weight: 700;
    color: var(--hh-ink-2);
}

/* POS + KHQR */
.hh-pospay {
    background: var(--hh-bg);
}

.hh-pospay__scroll {
    display: grid;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

.hh-pospay__stage {
    display: grid;
    gap: 1rem;
}

.hh-pospay__chapter {
    padding: 1.3rem 0 2rem;
    opacity: 0.45;
    transition: opacity 220ms ease;
}

.hh-pospay__chapter[data-active='true'] {
    opacity: 1;
}

.hh-pos {
    border: 1px solid var(--hh-line);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--hh-surface);
}

.hh-pos__search {
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    background: var(--hh-bg);
    color: var(--hh-muted);
    margin-bottom: 0.75rem;
    min-height: 44px;
}

.hh-pos__item,
.hh-pos__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.hh-pos__item {
    margin-bottom: 0.85rem;
}

.hh-pos__swatch {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.55rem;
    background: #f5b50a;
}

.hh-pos__item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hh-pos__item-body small,
.hh-pos__stock,
.hh-khqr__hint,
.hh-khqr__note {
    color: var(--hh-muted);
    font-size: 0.8rem;
}

.hh-pos__cart {
    padding-top: 0.7rem;
    border-top: 1px solid var(--hh-line);
}

.hh-pos__cart-label {
    margin: 0 0 0.45rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.hh-pos__pay {
    margin-top: 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--hh-primary);
    color: #fff;
    font-weight: 700;
    transition: background 180ms ease;
}

.hh-pos__pay[data-on='true'] {
    background: var(--hh-mint);
}

.hh-pos__stock {
    margin: 0.7rem 0 0;
}

.hh-khqr {
    border: 1px solid var(--hh-line);
    border-radius: 1rem;
    padding: 1.1rem;
    text-align: center;
    background: var(--hh-surface);
}

.hh-khqr__label {
    margin: 0 0 0.7rem;
    font-weight: 800;
}

.hh-khqr__frame {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 0.7rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    background: #fff;
    color: #111;
}

.dark .hh-khqr__frame {
    background: #f5f0fe;
}

.hh-khqr.is-paid .hh-khqr__frame {
    background: rgba(31, 157, 122, 0.12);
    color: var(--hh-mint);
}

.hh-khqr__hint,
.hh-khqr__note {
    margin: 0.25rem 0 0;
}

.hh-khqr__note {
    font-size: 0.72rem;
}

/* Ecosystem */
.hh-eco {
    background: var(--hh-bg-2);
}

.hh-eco__map {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hh-eco__hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.7rem 1.4rem;
    margin: 0 0 1.2rem;
    border-radius: 999px;
    background: var(--hh-primary);
    color: #fff;
    font-weight: 800;
}

.hh-eco__nodes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.hh-eco__nodes a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--hh-line);
    background: var(--hh-surface);
    color: var(--hh-ink-2);
    text-decoration: none;
    font-weight: 650;
    transition: border-color 160ms ease, color 160ms ease;
}

.hh-eco__nodes a:hover,
.hh-eco__nodes a:focus-visible {
    border-color: var(--hh-primary);
    color: var(--hh-primary);
}

/* Final CTA */
.hh-final {
    padding-bottom: 5.5rem;
}

.hh-final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hh-final__login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.6rem;
    color: var(--hh-ink-2);
    font-weight: 700;
}

@media (min-width: 768px) {
    .hh-inv__rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .hh-pospay__stage {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .hh-biz__scroll,
    .hh-pospay__scroll {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
        gap: 2.5rem;
    }

    .hh-biz__stage,
    .hh-pospay__stage {
        position: sticky;
        top: 6rem;
    }

    .hh-inv__rail {
        grid-template-columns: repeat(4, 1fr);
    }

    .hh-biz__chapter,
    .hh-pospay__chapter {
        min-height: 42vh;
    }
}

@media (max-width: 767px) {
    .hh-dash {
        grid-template-columns: 1fr;
    }

    .hh-dash__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hh-dash__list li {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-biz__chapter,
    .hh-pospay__chapter,
    .hh-eco__nodes a,
    .hh-pos__pay {
        transition: none;
    }
}

.hh-nav__more {
    display: block;
    position: relative;
    flex: 0 0 auto;
}

@media (max-width: 639px) {
    .hh-nav__more > summary {
        padding-inline: 0.55rem;
    }
}

.hh-nav__more > summary {
    list-style: none;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--hh-ink-2);
}

.hh-nav__more > summary::-webkit-details-marker {
    display: none;
}

.hh-nav__more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 11rem;
    padding: 0.4rem;
    border-radius: 0.9rem;
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    display: grid;
    z-index: 40;
}

.hh-landing-footer {
    background: var(--hh-ink);
    color: var(--hh-bg);
    padding: 3rem 1.25rem 6.5rem;
}

.dark .hh-landing-footer {
    background: #08080d;
    color: var(--hh-ink);
}

.hh-footer__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.hh-footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
}

.hh-footer__brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hh-footer__tagline,
.hh-footer__copy {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.1rem;
}

.hh-footer__links,
.hh-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.1rem;
    margin-bottom: 1.2rem;
}

.hh-footer__links a,
.hh-footer__contact a {
    color: inherit;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-underline-offset: 3px;
}

.hh-footer__contact {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.hh-footer__contact h3 {
    margin: 0;
    font-size: 1rem;
}

.hh-nav__more-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    border-radius: 0.6rem;
    color: var(--hh-ink-2);
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 960px) {
    .hh-nav__more {
        display: none;
    }
}

/* Connected hero stage */
.hh-hero__inner--connected {
    max-width: 78rem;
}

.hh-hero__stage--connected {
    width: min(78rem, 100%);
    overflow: visible;
    padding-top: 0.25rem;
    align-items: stretch;
}

.hh-stage {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.hh-stage__cluster {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.hh-stage__caption {
    margin: 0 0 0.45rem;
    color: var(--hh-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hh-stage__caption--center {
    text-align: center;
}

.hh-stage__panel {
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    border-radius: 1.1rem;
    padding: 0.75rem;
    box-shadow: 0 18px 36px -24px rgba(51, 42, 80, 0.45);
}

.dark .hh-stage__panel {
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.7);
}

.hh-stage__panel--dash,
.hh-stage__side {
    display: none;
}

.hh-stage__phone {
    width: min(22rem, 100%);
    margin: 0 auto;
}

.hh-stage__phone .phone-mockup--compact .phone-mockup__shell {
    width: 100%;
    filter: drop-shadow(0 28px 40px rgba(51, 42, 80, 0.28));
}

.hh-stage__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.hh-stage__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--hh-line);
    background: var(--hh-surface);
    color: var(--hh-ink-2);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.hh-stage__chip[data-active='true'] {
    border-color: var(--hh-primary);
    color: var(--hh-primary);
    background: rgba(80, 67, 172, 0.08);
}

.hh-stage__chip:focus-visible {
    outline: 3px solid var(--hh-peri);
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    .hh-stage__cluster {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem) minmax(0, 1fr);
        align-items: center;
        gap: 1.1rem;
    }

    .hh-stage__panel--dash,
    .hh-stage__side {
        display: grid;
        gap: 0.85rem;
    }

    .hh-stage__phone {
        width: min(24rem, 100%);
    }
}

/* Quiet reel hero: one iPhone, real recordings */
.hh-hero__inner--reel {
    display: grid;
    justify-items: center;
    gap: 1.15rem;
    width: min(48rem, 100%);
    text-align: center;
}

.hh-reel {
    width: min(72rem, 100%);
    display: grid;
    justify-items: center;
    gap: 0.75rem;
}

.hh-reel__tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    position: relative;
    z-index: 5;
}

.hh-reel__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--hh-line);
    background: var(--hh-surface);
    color: var(--hh-ink-2);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
}

.hh-reel__tab[data-active='true'] {
    border-color: var(--hh-primary);
    color: #fff;
    background: var(--hh-primary);
}

.hh-reel__tab:focus-visible {
    outline: 3px solid var(--hh-peri);
    outline-offset: 2px;
}

.hh-reel__caption {
    margin: 0 0 0.25rem;
    max-width: 34rem;
    min-height: 3.2em;
    color: var(--hh-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.hh-reel__caption-text {
    display: block;
    animation: hh-caption-in 420ms ease;
}

@keyframes hh-caption-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hh-hero__stage--reel {
    width: min(66rem, 100%);
    overflow: hidden;
    align-items: flex-end;
}

@media (prefers-reduced-motion: reduce) {
    .hh-reel__tab,
    .hh-reel__caption-text,
    .story-screen__layer,
    .story-screen .story-screen__video {
        animation: none;
        transition: none;
    }
}

/* Alternating phone + copy rows */
.hh-hero.hh-hero--pairs {
    overflow-x: clip;
    overflow-y: visible;
    padding-top: calc(5.15rem + env(safe-area-inset-top, 0px));
    padding-bottom: 1.5rem;
}

.hh-pairs {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.5rem;
    width: min(92rem, calc(100% - 1rem));
    margin: 0 auto;
}

.hh-pair {
    --hh-phone-px: 0px;
    --hh-phone-py: 0px;
    --hh-hub-on: 0;
    --hh-wheel: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0 2rem;
}

.hh-pair__phone,
.hh-pair__copy {
    min-width: 0;
}

.hh-pair__phone {
    position: relative;
    z-index: 2;
}

.hh-pair__copy {
    position: relative;
    z-index: 3;
}

.hh-pair__copy {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    text-align: start;
}

.hh-pair--hero h1 {
    margin: 0;
    max-width: 12em;
    font-size: clamp(1.65rem, 4.2vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-wrap: pretty;
}

.hh-pair--hero h1.khmer-title {
    letter-spacing: 0;
    line-height: 1.4;
    font-size: clamp(1.35rem, 3.4vw, 2.05rem);
}

.hh-hero--pairs .hh-hero__lead {
    max-width: 28rem;
    font-size: 0.98rem;
}

.hh-hero--pairs .hh-hero__ctas {
    justify-content: flex-start;
    margin-top: 0.15rem;
}

.hh-pair__copy h2 {
    margin: 0;
    max-width: 14em;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hh-pair__desc {
    margin: 0;
    max-width: 28rem;
    color: var(--hh-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.hh-pair__stage {
    display: flex;
    justify-content: center;
    perspective: 1400px;
    transform-origin: 50% 40%;
    will-change: transform;
    width: 100%;
}

.hh-pair[data-side='left'] .hh-pair__stage {
    justify-content: flex-start;
}

.hh-pair[data-side='right'] .hh-pair__stage {
    justify-content: flex-end;
}

.hh-pair .phone-mockup--compact,
.hh-pair .phone-mockup--compact .phone-mockup__shell {
    max-width: none;
}

.hh-pair .phone-mockup--compact .phone-mockup__shell {
    width: min(20.4rem, 70vw);
    filter: drop-shadow(0 28px 48px rgba(51, 42, 80, 0.32))
        drop-shadow(0 8px 16px rgba(51, 42, 80, 0.14))
        drop-shadow(0 0 14px rgba(218, 161, 57, calc(var(--hh-hub-on) * 0.24)))
        drop-shadow(0 0 28px rgba(218, 161, 57, calc(var(--hh-hub-on) * 0.12)))
        brightness(calc(1 + var(--hh-hub-on) * 0.045 + var(--hh-wheel) * 0.03));
    transition: filter 480ms ease;
}

.dark .hh-pair .phone-mockup--compact .phone-mockup__shell {
    filter: drop-shadow(0 28px 52px rgba(158, 160, 251, 0.26))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 14px rgba(246, 205, 115, calc(var(--hh-hub-on) * 0.3)))
        drop-shadow(0 0 30px rgba(246, 205, 115, calc(var(--hh-hub-on) * 0.14)))
        brightness(calc(1 + var(--hh-hub-on) * 0.06 + var(--hh-wheel) * 0.04));
}

.hh-storebtn--slim {
    min-height: 48px;
    padding: 0.45rem 1.05rem;
}

.hh-storebtn--slim .hh-storebtn__text small {
    display: none;
}

@media (min-width: 900px) {
    .hh-pairs {
        width: min(110rem, calc(100% - 0.5rem));
        gap: 0;
    }

    .hh-pair {
        gap: clamp(1rem, 2.2vw, 2.25rem);
        min-height: 0;
        padding: 1rem 0 1.75rem;
        align-items: center;
    }

    .hh-pair[data-side='left'] {
        grid-template-columns: minmax(0, 1.9fr) minmax(14.5rem, 0.5fr);
    }

    .hh-pair[data-side='right'] {
        grid-template-columns: minmax(14.5rem, 0.5fr) minmax(0, 1.9fr);
    }

    .hh-pair--hero {
        min-height: 0;
        padding-top: 0.35rem;
    }

    .hh-pair[data-side='left'] .hh-pair__phone {
        order: 1;
    }

    .hh-pair[data-side='left'] .hh-pair__copy {
        order: 2;
    }

    .hh-pair[data-side='right'] .hh-pair__phone {
        order: 2;
    }

    .hh-pair[data-side='right'] .hh-pair__copy {
        order: 1;
        justify-items: end;
        text-align: end;
    }

    .hh-pair[data-side='right'] .hh-hero__ctas,
    .hh-pair[data-side='right'] .hh-storebtn {
        justify-content: flex-end;
    }

    .hh-pair[data-side='right'] .hh-pair__desc,
    .hh-pair[data-side='right'] .hh-hero__lead,
    .hh-pair[data-side='right'] h1,
    .hh-pair[data-side='right'] h2 {
        margin-left: auto;
    }

    .hh-pair .phone-mockup--compact .phone-mockup__shell {
        width: min(51vw, 72%);
    }

    .hh-pair[data-side='left'] .hh-reel__phone {
        translate: -10vw 0;
    }

    .hh-pair[data-side='right'] .hh-reel__phone {
        translate: 10vw 0;
    }
}

@media (min-width: 1180px) {
    .hh-pair .phone-mockup--compact .phone-mockup__shell {
        width: min(56vw, 72%);
    }

    .hh-pair[data-side='left'] .hh-reel__phone {
        translate: -13vw 0;
    }

    .hh-pair[data-side='right'] .hh-reel__phone {
        translate: 13vw 0;
    }
}

@media (min-width: 1440px) {
    .hh-pair .phone-mockup--compact .phone-mockup__shell {
        width: min(62vw, 72%);
    }

    .hh-pair[data-side='left'] .hh-reel__phone {
        translate: -16vw 0;
    }

    .hh-pair[data-side='right'] .hh-reel__phone {
        translate: 16vw 0;
    }
}

@media (min-width: 1180px) {
    .hh-hero__inner--connected {
        display: grid;
        grid-template-columns: minmax(20rem, 34rem) minmax(28rem, 1fr);
        align-items: center;
        justify-items: stretch;
        text-align: left;
        gap: 1.5rem 2rem;
        width: min(80rem, 100%);
    }

    .hh-hero__inner--connected .hh-hero__copy {
        justify-items: start;
        max-width: none;
    }

    .hh-hero__inner--connected .hh-hero__lead,
    .hh-hero__inner--connected .hh-hero h1 {
        text-align: left;
    }

    .hh-hero__inner--connected .hh-hero__ctas {
        justify-content: flex-start;
    }

    .hh-hero__inner--connected .hh-steps {
        width: 100%;
    }

    .hh-hero__stage--connected {
        width: 100%;
    }

    .hh-hero__inner--connected .hh-stage__cluster {
        grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 17.5rem) minmax(0, 1fr);
        gap: 0.7rem;
        align-items: center;
    }

    .hh-hero__inner--connected .hh-stage__phone {
        width: min(17.5rem, 100%);
    }

    .hh-hero__inner--connected .hh-stage__panel {
        padding: 0.55rem;
    }

    .hh-hero__inner--connected .hh-stage__panel--pay {
        display: none;
    }

    .hh-hero__inner--connected .hh-stage__side {
        align-content: center;
    }

    .hh-hero__inner--connected .hh-stage__panel--dash,
    .hh-hero__inner--connected .hh-stage__panel--pos {
        max-height: 26rem;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-stage__chip {
        transition: none;
    }
}

/* Two-sided overview */
.hh-overview,
.hh-connect {
    padding: 4.5rem 1.25rem 3.5rem;
    color: var(--hh-ink);
}

.hh-overview {
    background: var(--hh-bg-2);
}

.hh-connect {
    background: var(--hh-bg);
}

.hh-overview__intro,
.hh-connect__intro {
    width: min(46rem, 100%);
    margin: 0 auto 2rem;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
}

.hh-overview__intro h2,
.hh-connect__intro h2 {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hh-overview.is-km h2,
.hh-connect.is-km h2 {
    letter-spacing: 0;
    line-height: 1.4;
    max-width: none;
}

.hh-overview__intro p,
.hh-connect__intro p {
    margin: 0;
    max-width: 40rem;
    color: var(--hh-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.hh-overview__grid {
    max-width: 68rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.hh-overview__card {
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    border-radius: 1.2rem;
    padding: 1.4rem 1.3rem 1.5rem;
}

.hh-overview__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--hh-peri), var(--hh-primary));
}

.hh-overview__icon--biz {
    background: linear-gradient(135deg, #6e61e4, #c3576a);
}

.hh-overview__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hh-overview__card h3,
.hh-connect__item h3 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.hh-overview__card p,
.hh-connect__item p {
    margin: 0 0 1rem;
    color: var(--hh-muted);
    line-height: 1.5;
}

.hh-overview__card a {
    color: var(--hh-primary);
    font-weight: 800;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.hh-overview__card a:hover,
.hh-overview__card a:focus-visible {
    text-decoration: underline;
}

.hh-overview__link {
    margin: 0;
    align-self: center;
    justify-self: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--hh-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hh-connect__list {
    list-style: none;
    margin: 0 auto 1.75rem;
    padding: 0;
    max-width: 68rem;
    display: grid;
    gap: 0.9rem;
}

.hh-connect__item {
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    border-radius: 1.1rem;
    padding: 1.2rem 1.15rem;
}

.hh-connect__icon {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    margin-bottom: 0.7rem;
    border-radius: 0.75rem;
    color: var(--hh-primary);
    background: rgba(80, 67, 172, 0.1);
}

.hh-connect__cta {
    margin: 0 auto;
    width: fit-content;
}

@media (min-width: 768px) {
    .hh-overview__grid {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
    }

    .hh-connect__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 3D hero depth + phone tilt (21st Phone Scroll Hero / Tilt ideas) */
.hh-hero--3d .hh-hero__spline,
.hh-hero--3d .hh-hero__spline .hh-spline__fallback,
.hh-hero--3d .hh-depth {
    position: absolute;
    inset: 0;
}

.hh-hero--3d .hh-spline__fallback {
    opacity: 1;
    transition: opacity 400ms ease;
}

.hh-depth__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hh-depth__glow--a {
    width: min(34rem, 70vw);
    height: min(34rem, 70vw);
    left: 50%;
    top: 42%;
    translate: -50% -20%;
    background: radial-gradient(circle, rgba(80, 67, 172, 0.28), transparent 68%);
}

.hh-depth__glow--b {
    width: min(22rem, 50vw);
    height: min(22rem, 50vw);
    right: 8%;
    top: 18%;
    background: radial-gradient(circle, rgba(195, 87, 106, 0.18), transparent 70%);
}

.hh-depth__glow--c {
    width: min(18rem, 42vw);
    height: min(18rem, 42vw);
    left: 10%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(158, 160, 251, 0.22), transparent 70%);
}

.dark .hh-depth__glow--a {
    background: radial-gradient(circle, rgba(110, 97, 228, 0.38), transparent 68%);
}

.dark .hh-depth__glow--b {
    background: radial-gradient(circle, rgba(195, 87, 106, 0.22), transparent 70%);
}

.hh-hero__space {
    perspective: 1600px;
    perspective-origin: 50% 22%;
}

.hh-hero__phone-3d {
    --tilt-x: 0;
    --tilt-y: 0;
    --scroll-x: 12;
    --scroll-y: -6;
    --scroll-z: 0.96;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transform-origin: 50% 28%;
    transform:
        rotateX(calc(var(--tilt-x) * 1deg + var(--scroll-x) * 1deg))
        rotateY(calc(var(--tilt-y) * 1deg + var(--scroll-y) * 1deg))
        scale(var(--scroll-z));
    will-change: transform;
}

.hh-depth__world {
    position: absolute;
    left: 50%;
    top: 62%;
    width: min(36rem, 88vw);
    height: min(36rem, 88vw);
    margin: 0;
    translate: -50% -42%;
    transform-style: preserve-3d;
    animation: hh-depth-spin 36s linear infinite;
    pointer-events: none;
}

.hh-depth__orb {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px -24px rgba(51, 42, 80, 0.45);
}

.hh-depth__orb--1 {
    width: 8.5rem;
    height: 8.5rem;
    left: 6%;
    top: 18%;
    background: radial-gradient(circle at 32% 28%, #c4b8ff, #5043ac 70%);
    transform: translateZ(120px);
    opacity: 0.55;
}

.hh-depth__orb--2 {
    width: 5.2rem;
    height: 5.2rem;
    right: 8%;
    top: 12%;
    background: radial-gradient(circle at 32% 28%, #f0b3bc, #c3576a 72%);
    transform: translateZ(-80px);
    opacity: 0.5;
}

.hh-depth__orb--3 {
    width: 4rem;
    height: 4rem;
    left: 18%;
    bottom: 16%;
    background: radial-gradient(circle at 32% 28%, #d5d6ff, #6e61e4 72%);
    transform: translateZ(70px);
    opacity: 0.48;
}

.hh-depth__orb--4 {
    width: 3.2rem;
    height: 3.2rem;
    right: 22%;
    bottom: 22%;
    background: radial-gradient(circle at 32% 28%, #f5f0fe, #9ea0fb 74%);
    transform: translateZ(-40px);
    opacity: 0.45;
}

.hh-depth__orb--5 {
    width: 2.4rem;
    height: 2.4rem;
    left: 46%;
    top: 6%;
    background: radial-gradient(circle at 32% 28%, #fff, #5043ac 78%);
    transform: translateZ(160px);
    opacity: 0.4;
}

.hh-depth__ring,
.hh-depth__ring--soft {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 72%;
    height: 28%;
    border: 2px solid rgba(80, 67, 172, 0.22);
    border-radius: 50%;
    translate: -50% -50%;
    transform: rotateX(72deg) translateZ(-20px);
}

.hh-depth__ring--soft {
    width: 92%;
    height: 36%;
    border-color: rgba(158, 160, 251, 0.16);
    transform: rotateX(72deg) translateZ(-50px);
}

.hh-hero--pairs .hh-depth__ring,
.hh-hero--pairs .hh-depth__ring--soft {
    display: none;
}

.hh-hero--pairs .hh-depth__world {
    display: none;
}

@keyframes hh-depth-spin {
    to {
        transform: rotateY(360deg);
    }
}

@media (max-width: 767px) {
    .hh-depth__orb--1,
    .hh-depth__orb--2 {
        opacity: 0.32;
    }

    .hh-hero__phone-3d {
        --scroll-x: 6;
        --scroll-y: 0;
    }
}

/* Pinned scroll scenes */
.hh-hero__pin,
.hh-features__pin,
.hh-final--pin {
    --scene-progress: 0;
    --chapter-progress: 0;
    position: relative;
}

.hh-scene-scrub {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    height: 3px;
    background: color-mix(in srgb, var(--hh-line) 80%, transparent);
    pointer-events: none;
}

.hh-scene-scrub span {
    display: block;
    height: 100%;
    width: calc(var(--scene-progress, 0) * 100%);
    background: var(--hh-primary);
}

.hh-hero__pin {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hh-hero__progress {
    position: absolute;
    right: max(1rem, env(safe-area-inset-right));
    top: 50%;
    z-index: 6;
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    translate: 0 -50%;
}

.hh-hero__progress li {
    position: relative;
    overflow: hidden;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--hh-line);
}

.hh-hero__progress li[data-active='true'] {
    height: 1.35rem;
    background: color-mix(in srgb, var(--hh-primary) 28%, var(--hh-line));
}

.hh-hero__progress li[data-active='true']::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(var(--chapter-progress, 0) * 100%);
    background: var(--hh-primary);
}

.hh-features__pin {
    min-height: 100svh;
    display: grid;
    place-content: center;
    padding: 6rem 1.25rem;
}

.hh-final--pin {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hh-final__scene {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 767px) {
    .hh-hero__progress {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-depth__world,
    .hh-depth__orb,
    .hh-depth__ring {
        animation: none !important;
    }

    .hh-hero__phone-3d {
        --tilt-x: 0 !important;
        --tilt-y: 0 !important;
        --scroll-x: 0 !important;
        --scroll-y: 0 !important;
        --scroll-z: 1 !important;
        transform: none;
        will-change: auto;
    }
}
