.how-it-works-page {
    --how-bg: #fbf8f2;
    --how-surface: #fffdf9;
    --how-soft: #f2f2e8;
    --how-border: #e8dfd2;
    --how-ink: #101814;
    --how-muted: #44566a;
    --how-green: #40563a;
    --how-green-dark: #294126;
    --how-sage: #6e875d;
    background: var(--how-bg);
    color: var(--how-ink);
    max-width: 100%;
    overflow-x: clip;
    padding-bottom: 2.5rem;
}

.how-it-works-page .odanda-hero {
    background: var(--how-bg);
}

.how-it-works-content {
    display: grid;
    gap: 2.4rem;
    padding-top: 1rem;
}

.how-section {
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: 7rem;
}

.how-scroll-hint {
    display: none;
}

.how-section-title {
    margin: 0 0 1.65rem;
    color: var(--how-ink);
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.025em;
}

.how-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--how-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 32px rgba(55, 43, 29, 0.035);
}

.how-trust__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.4rem 1.25rem;
}

.how-trust__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22%;
    right: 0;
    bottom: 22%;
    border-right: 1px solid var(--how-border);
}

.how-trust__item > span:last-child,
.how-note > span:last-child {
    display: grid;
    gap: 0.2rem;
}

.how-trust strong,
.how-note strong {
    color: var(--how-ink);
    font-size: 0.95rem;
    line-height: 1.25;
}

.how-trust small,
.how-note small {
    color: var(--how-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.how-icon,
.how-benefit-card__icon,
.how-note__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f2ede3;
    color: var(--how-green);
    font-size: 1.45rem;
}

.how-trust__item:last-child .how-icon {
    color: #3c8f37;
}

.how-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
    align-items: center;
}

.how-step-card {
    overflow: hidden;
    margin: 0;
    border-radius: 2px;
}

.how-step-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.how-flow-arrow {
    margin : 5px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--how-green);
}

.how-photo-guide {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.25fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 2rem;
    padding: 2.2rem;
    border: 1px solid #e2e4d4;
    border-radius: 18px;
    background: linear-gradient(105deg, #f7f5ec 0%, #eef1e6 55%, #f2f0e5 100%);
}

.how-photo-guide__copy {
    padding-right: 1.5rem;
    border-right: 1px solid #daddce;
}

.how-photo-guide h2,
.how-removal h2 {
    margin: 0 0 1.25rem;
    color: var(--how-ink);
    font-size: clamp(1.45rem, 2.15vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.how-check-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-check-list li {
    position: relative;
    padding-left: 1.85rem;
    color: #27322e;
    font-size: 0.92rem;
    line-height: 1.4;
}

.how-check-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--how-sage);
    border-radius: 50%;
    color: var(--how-green);
    font-size: 0.72rem;
    font-weight: 800;
}

.how-example {
    position: relative;
    margin: 0;
}

.how-example img {
    display: block;
    width: 100%;
    height: 220px;
    border: 7px solid #111;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(47, 38, 28, 0.15);
}

.how-example__label {
    position: absolute;
    top: -2.15rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.how-example--correct .how-example__label,
.how-example--correct .how-example__status {
    background: #5b7c45;
}

.how-example--avoid .how-example__label,
.how-example--avoid .how-example__status {
    background: #c9665d;
}

.how-example__status {
    position: absolute;
    right: -10px;
    bottom: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
}

.how-removal {
    display: grid;
    grid-template-columns: minmax(215px, 0.78fr) minmax(0, 2.25fr);
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.how-removal__copy p {
    max-width: 25rem;
    margin: 0 0 1.2rem;
    color: var(--how-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.how-removal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: #f4eadc;
    color: #866b4e;
    font-size: 0.82rem;
}

.how-removal__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
    align-items: center;
}

.how-removal__stage {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.how-removal__stage img {
    display: block;
    width: 100%;
    height: 245px;
    border-radius: 15px;
    object-fit: cover;
}

.how-removal__stage figcaption {
    margin-top: 0.65rem;
    color: #1f2c27;
    font-size: 0.82rem;
}

.how-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.how-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
    padding: 1.65rem 1.25rem;
    border: 1px solid var(--how-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.how-benefit-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.15rem;
    border: 1px solid #e9ddcd;
    font-size: 1.65rem;
}

.how-benefit-card h3 {
    margin: 0 0 0.75rem;
    color: var(--how-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.how-benefit-card p {
    margin: 0;
    color: var(--how-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.how-note {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    background: linear-gradient(90deg, #f5ecdd, #fbf0e2);
}

.how-note__icon {
    width: 45px;
    height: 45px;
    border: 2px solid #d6c4a9;
    color: #947e5d;
    font-size: 1.1rem;
}

.how-final-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 2rem 2.5rem;
    border-radius: 18px;
    background: linear-gradient(115deg, #263f24, #405c37 65%, #2f4b2b);
    color: #fff;
}

.how-final-cta::before,
.how-final-cta::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.how-final-cta::before {
    left: -55px;
    bottom: -40px;
}

.how-final-cta::after {
    right: -60px;
    top: -40px;
}

.how-final-cta h2 {
    margin: 0 0 0.3rem;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 750;
}

.how-final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.how-final-cta__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    min-width: 230px;
    padding: 0.95rem 1.5rem;
    border-radius: 11px;
    background: #fff9ed;
    color: var(--how-green-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-final-cta__button:hover,
.how-final-cta__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 24, 20, 0.18);
}

@media (max-width: 1199.98px) {
    .how-steps {
        grid-template-columns: repeat(9, auto);
        overflow-x: auto;
        align-items: center;
        padding: 0.25rem 0.25rem 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .how-step-card {
        width: min(72vw, 330px);
        scroll-snap-align: center;
    }

    .how-photo-guide {
        grid-template-columns: minmax(210px, 0.8fr) repeat(2, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .how-example img {
        height: 190px;
    }

    .how-removal {
        grid-template-columns: 1fr;
    }

    .how-removal__copy {
        text-align: center;
    }

    .how-removal__copy p {
        margin-right: auto;
        margin-left: auto;
    }
}

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

    .how-trust__item:nth-child(2)::after {
        display: none;
    }

    .how-trust__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--how-border);
    }

    .how-photo-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 3rem;
    }

    .how-photo-guide__copy {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: 0;
        border-bottom: 1px solid #daddce;
    }

    .how-removal__flow {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .how-removal__flow .how-flow-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .how-removal__stage {
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .how-removal__stage img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .how-final-cta {
        justify-content: space-between;
        gap: 2rem;
    }
}

@media (max-width: 575.98px) {
    .how-it-works-content {
        gap: 2rem;
    }

    .how-trust,
    .how-benefits__grid,
    .how-photo-guide {
        grid-template-columns: 1fr;
    }

    .how-trust__item {
        padding: 1rem;
        border-bottom: 1px solid var(--how-border);
    }

    .how-trust__item:last-child {
        border-bottom: 0;
    }

    .how-trust__item::after {
        display: none;
    }

    .how-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .how-section-title {
        margin-bottom: 1.15rem;
    }

    .how-photo-guide {
        gap: 2.75rem;
        padding: 1.5rem 1rem;
    }

    .how-photo-guide__copy {
        grid-column: auto;
    }

    .how-example img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .how-benefit-card {
        min-height: 0;
    }

    .how-note {
        align-items: flex-start;
        padding: 1rem;
    }

    .how-final-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem;
        text-align: center;
    }

    .how-final-cta__button {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .how-it-works-page .odanda-hero--mobile .odanda-hero__inner {
        max-width: 960px;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .how-trust,
    .how-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-trust__item:nth-child(2)::after {
        display: none;
    }

    .how-trust__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--how-border);
    }

    .how-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: -0.7rem 0 0.9rem;
        color: var(--how-muted);
        font-size: 0.82rem;
    }

    .how-steps {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 1.25rem) / 2.08);
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0.25rem;
        scroll-snap-type: inline mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .how-step-card {
        width: auto;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .how-step-card img {
        aspect-ratio: auto;
        object-fit: contain;
    }

    .how-steps > .how-flow-arrow {
        display: none;
    }

    .how-photo-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 3rem;
    }

    .how-photo-guide__copy {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: 0;
        border-bottom: 1px solid #daddce;
    }

    .how-removal {
        grid-template-columns: 1fr;
    }

    .how-removal__copy {
        text-align: center;
    }

    .how-removal__copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .how-scroll-hint--removal {
        margin-top: -1rem;
    }

    .how-removal__flow {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(62vw, 540px);
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0.25rem;
        scroll-snap-type: inline mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .how-removal__stage {
        width: auto;
        min-width: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .how-removal__stage img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .how-removal__flow > .how-flow-arrow {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .how-it-works-page .odanda-hero--mobile .odanda-hero__inner {
        max-width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .how-it-works-page .odanda-hero--mobile .odanda-hero__actions--mobile,
    .how-it-works-page .odanda-hero--mobile .odanda-hero__cta {
        width: 100%;
        max-width: none;
    }

    .how-it-works-content {
        width: 100%;
        max-width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .how-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        margin: -0.45rem 0 0.85rem;
        color: var(--how-muted);
        font-size: 0.78rem;
    }

    .how-steps {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(82vw, 320px);
        gap: 0.85rem;
        margin-right: -1rem;
        margin-left: -1rem;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 1rem;
        scroll-snap-type: inline mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .how-step-card {
        width: auto;
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .how-step-card img {
        aspect-ratio: auto;
        object-fit: contain;
    }

    .how-steps > .how-flow-arrow {
        display: none;
    }

    .how-photo-guide {
        grid-template-columns: 1fr;
    }

    .how-photo-guide__copy {
        grid-column: auto;
    }

    .how-example__label {
        top: 0.7rem;
    }

    .how-example__status {
        right: 0.55rem;
        bottom: 0.55rem;
    }

    .how-removal {
        grid-template-columns: 1fr;
    }

    .how-removal__copy {
        text-align: center;
    }

    .how-removal__copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .how-scroll-hint--removal {
        display: none;
    }

    .how-removal__flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
        overflow: visible;
    }

    .how-removal__stage {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .how-removal__stage img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .how-removal__flow > .how-flow-arrow {
        display: inline-flex;
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .how-benefits__grid {
        grid-template-columns: 1fr;
    }

    .how-benefit-card {
        min-height: 0;
    }

    .how-final-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        text-align: center;
    }

    .how-final-cta__button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-steps,
    .how-removal__flow {
        scroll-behavior: auto;
    }

    .how-final-cta__button {
        transition: none;
    }
}
