/* Homepage storytelling flow blocks */

.home-flow-section-title {
    margin-bottom: 0.65rem !important;
}

body.home-index .hs-heading-sweep {
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 560ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

body.home-index .hs-heading-sweep::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -0.32rem;
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(184, 90, 58, 0.92), rgba(184, 90, 58, 0.08));
    transform: scaleX(0.2);
    transform-origin: right center;
    opacity: 0;
    transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

body.home-index .is-visible > .hs-heading-sweep,
body.home-index .hs-heading-sweep.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.home-index .is-visible > .hs-heading-sweep::after,
body.home-index .hs-heading-sweep.is-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

body.home-index .hs-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(1px);
    transition:
        opacity 600ms ease,
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 440ms ease;
    transition-delay: var(--hs-delay, 0ms);
    will-change: transform, opacity, filter;
}

body.home-index .hs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.home-index .hs-refocus .section-title,
body.home-index .hs-refocus .home-flow-section-title {
    animation: hsTitleRefocus 560ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

body.home-index .hs-refocus .home-flow-section-subtitle {
    animation: hsSubtitleRefocus 520ms ease 1 both;
}

body.home-index .hs-up-pulse {
    animation: hsCardUpPulse 420ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

body.home-index .hs-cta-recall {
    animation: hsCtaRecall 720ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.home-flow-section-subtitle {
    margin: -0.25rem 0 1.05rem;
    color: var(--color-neutral-600, #6b625c);
    font-size: clamp(0.9rem, 1.15vw, 1rem);
}

.home-trust-badges {
    margin-top: clamp(0.8rem, 2.4vw, 1.15rem);
    margin-bottom: clamp(0.9rem, 2.6vw, 1.35rem);
}

.home-trust-badges__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-trust-badges__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(184, 90, 58, 0.18);
    background: rgba(255, 255, 255, 0.75);
    color: #5d5047;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
}

.home-value-section,
.home-how-section,
.home-faq-section {
    margin-top: clamp(1.35rem, 3.6vw, 2.45rem);
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-value-card,
.home-how-step {
    border-radius: 18px;
    border: 1px solid rgba(224, 214, 205, 0.92);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(32, 28, 24, 0.07);
    padding: 1rem 1.05rem;
}

body.home-index .home-value-card.hs-reveal.is-visible:nth-child(odd) {
    transform: translateY(0) scale(1) rotate(-0.15deg);
}

body.home-index .home-value-card.hs-reveal.is-visible:nth-child(even) {
    transform: translateY(0) scale(1) rotate(0.15deg);
}

.home-value-card h3,
.home-how-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #403732;
}

.home-value-card p,
.home-how-step p {
    margin: 0;
    color: #665c55;
    line-height: 1.48;
    font-size: 0.9rem;
}

.home-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-how-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: rgba(184, 90, 58, 0.12);
    color: #8d462d;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-faq-list {
    display: grid;
    gap: 0.6rem;
}

.home-faq-item {
    border: 1px solid rgba(224, 214, 205, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(32, 28, 24, 0.05);
    overflow: clip;
}

.home-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #433a34;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item p {
    margin: 0;
    padding: 0 1rem 0.95rem;
    color: #675c55;
    line-height: 1.5;
}

@keyframes hsTitleRefocus {
    0% { transform: translateY(8px) scale(0.985); opacity: 0.82; }
    55% { transform: translateY(-1px) scale(1.01); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes hsSubtitleRefocus {
    0% { opacity: 0.7; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hsCardUpPulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.015); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes hsCtaRecall {
    0% { transform: translateY(0) scale(1); box-shadow: none; }
    35% { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 20px rgba(184, 90, 58, 0.32); }
    100% { transform: translateY(0) scale(1); box-shadow: none; }
}

@media (max-width: 1023px) {
    .home-trust-badges__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.home-index .hs-heading-sweep {
        transform: translateY(12px);
    }

    body.home-index .hs-reveal {
        transform: translateY(18px) scale(0.99);
    }

    body.home-index header[role='banner'] .header-inner {
        grid-template-rows: auto !important;
        grid-template-areas: 'hdr-lead hdr-logo hdr-trail' !important;
        row-gap: 0 !important;
    }

    body.home-index header[role='banner'] .header-inner > .nav {
        display: none !important;
    }

    body.home-index header[role='banner'] {
        padding: 10px 0 !important;
    }

    body.home-index .home-hero-refined {
        padding-top: 12px !important;
        padding-bottom: 16px !important;
        min-height: 0 !important;
    }

    body.home-index .home-hero-refined .home-hero-refined__inner {
        gap: 0.4rem !important;
    }

    body.home-index .home-hero-refined .home-hero-refined__title {
        font-size: clamp(1.2rem, 5.2vw, 1.45rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.28rem !important;
    }

    body.home-index .home-hero-refined .home-hero-refined__subtitle {
        font-size: 0.84rem !important;
        line-height: 1.38 !important;
        margin-bottom: 0.45rem !important;
        max-width: 34ch !important;
    }

    body.home-index .home-hero-refined .home-hero-refined__actions {
        gap: 0.4rem !important;
        margin-top: 0 !important;
    }

    body.home-index .home-hero-refined .home-hero-refined__cta {
        min-height: 2.05rem !important;
        padding: 0.36rem 0.88rem !important;
        font-size: 0.8rem !important;
    }

    .home-trust-badges__list,
    .home-how-steps {
        grid-template-columns: 1fr;
    }

    .home-trust-badges__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-inline: 2px;
    }

    .home-trust-badges__list::-webkit-scrollbar {
        display: none;
    }

    .home-trust-badges__item {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0.42rem 0.7rem;
        border-radius: 999px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .home-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.62rem;
    }

    .home-value-card,
    .home-how-step {
        border-radius: 14px;
        padding: 0.78rem 0.82rem;
    }

    .home-value-card h3,
    .home-how-step h3 {
        font-size: 0.9rem;
        margin-bottom: 0.24rem;
    }

    .home-value-card p,
    .home-how-step p {
        font-size: 0.8rem;
        line-height: 1.42;
    }

    .home-how-steps {
        gap: 0.58rem;
    }

    .home-how-step__num {
        width: 26px;
        height: 26px;
        margin-bottom: 0.42rem;
        font-size: 0.78rem;
    }

    .home-faq-item summary {
        padding: 0.75rem 0.88rem;
        font-size: 0.9rem;
    }

    .home-faq-item p {
        padding: 0 0.88rem 0.82rem;
        font-size: 0.84rem;
        line-height: 1.44;
    }

    .home-flow-section-subtitle {
        margin-bottom: 0.65rem;
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-index .hs-heading-sweep,
    body.home-index .hs-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    body.home-index .hs-heading-sweep::after {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.home-index .hs-refocus .section-title,
    body.home-index .hs-refocus .home-flow-section-title,
    body.home-index .hs-refocus .home-flow-section-subtitle,
    body.home-index .hs-up-pulse,
    body.home-index .hs-cta-recall {
        animation: none !important;
    }
}
