.howto-hero {
    position: relative;
    background: linear-gradient(135deg,
            var(--primary-accent-deep) 0%,
            var(--primary-accent-dark) 50%,
            var(--primary-accent) 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}

/* Background pattern/texture overlay */
.howto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 100%, var(--primary-accent-deep) 0%, transparent 30%),
        radial-gradient(circle at 100% 0%, var(--bg-light) 0%, transparent 50%);
    pointer-events: none;
    background-blend-mode: screen, screen;
}

.howto-hero.with-collage {
    background:
        linear-gradient(135deg,
            var(--primary-accent) 3%,
            var(--primary-accent-deep) 57%,
            var(--gray-dark) 100%),
        url('/images/faces/polaroid-1.jpg') center/cover no-repeat;
    background-blend-mode: screen, normal;
}

.howto-hero .container {
    z-index: 2;
    text-align: center;
}

/* Hero Title */
.howto-hero h1 {
    color: var(--bg-light);
    margin-bottom: 2rem;
    text-shadow: var(--shadow-text);
    position: relative;
}

/* Hero Subtitle */
.hero-subtitle {
    color: white;
    background:
        linear-gradient(135deg,
            var(--primary-accent-light) 0%,
            var(--primary-accent) 35%,
            var(--primary-accent-dark) 65%,
            var(--primary-accent-deep) 100%);
    font-size: var(--font-size-caption);
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}


/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */


.howto-infographic {
    background: var(--bg-medium);
    padding: 2.5rem 0;
}

.infographic-flex {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: stretch;
    justify-content: center;
}

.infographic-steps {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
}

.infographic-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1.5rem;
    transform: translateX(50%);
    width: 4px;
    background: linear-gradient(to bottom,
            var(--primary-accent-light) 0%,
            var(--primary-accent) 100%);
    border-radius: 2px;
    z-index: 0;
}

.step-tile {
    position: relative;
    z-index: 1;
    background: var(--primary-accent-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-accent-deep);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s, color 0.2s;
    outline: none;
}

.step-tile::before {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translate(50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary-accent);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.2s;
}

.step-tile.active::before {
    background: var(--primary-accent);
    border-color: var(--primary-accent-dark);
}

.step-tile.active,
.step-tile:hover {
    background: var(--primary-accent);
    color: #fff;
}

.infographic-details {
    flex: 1;
}

.step-detail {
    display: none;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1.2rem;
    height: 100%;
    animation: fadeIn 0.3s;
}

.step-detail.active {
    display: flex;
    flex-direction: column;
}

.step-detail h3 {
    margin: 0;
}

.step-detail img {
    width: 100%;
    border-radius: var(--border-radius);
}

.step-text {

    padding: 1rem 2rem;
    flex: 1;
}

.step-text h3 {
    text-align: center;
}

.waitlist-tooltip {
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(30%, -50%);
    font-family: var(--font-body);
    text-align: left;
    background-color: var(--bg-light);
    border: 2px solid var(--secondary-accent);
    padding: 0.2rem 1rem;
    width: 36%;
    border-radius: var(--card-radius);
    z-index: 10;
    transition: opacity 0.2s;
    pointer-events: none;
}

.waitlist-highlight {
    font-weight: 800;
    font-size: var(--font-size-small-ui);
    background-color: var(--secondary-accent);
    width: 100%;
}

.waitlist-note {
    font-size: 12px;
    color: var(--gray-medium);
    margin-bottom: 0.4rem;
}

.waitlist-note span {
    color: var(--primary-accent-dark);
    font-weight: bold;
}

.waitlist-tooltip:hover .tooltip-text,
.waitlist-tooltip:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.timeline {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
    justify-content: center;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid var(--primary-accent);
    transition: all 0.2s;
}

.timeline-dot.active {
    background: var(--primary-accent);
}

.timeline-label {
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* %%%%%%%% */

.finished-gallery {
    padding: 5rem 0 4rem;
    background: var(--bg-medium);
    position: relative;
}

.finished-gallery .container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.finished-gallery h2 {
    text-align: center;
    margin: 0;
    position: relative;
    color: var(--primary-accent-dark);
}

.finished-carousel {
    position: relative;
    margin: 3.5rem auto;
    width: 720px;
    height: 440px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}

.finished-grid {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    align-items: center;
}

.finished-item {
    flex: 0 0 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.finished-item img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    mix-blend-mode: darken;
}

/* %%%%%%%% */

.howto-pinterest {
    background: var(--bg-light);
    border-radius: var(--card-radius);
    padding: 2.5rem 1.5rem;
    margin-bottom: var(--spacing);
}

.howto-pinterest h2 {
    text-align: center;
}

.howto-pinterest h3 {
    font-size: var(--font-size-modaltitle);
    margin-bottom: 2rem;
}

.howto-pinterest p:first-of-type {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.howto-pinterest ol {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin: 0 0 1.5rem 0;
    box-shadow: var(--shadow-sm);
    counter-reset: pinterest-steps;
    list-style: none;
}

.howto-pinterest ol li {
    position: relative;
    padding-left: 2.8rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--primary-accent);
    background: none;
}

.howto-pinterest ol li::before {
    counter-increment: pinterest-steps;
    content: counter(pinterest-steps) ".";
    position: absolute;
    left: 0.6rem;
    top: 0;
    font-family: var(--font-title);
    font-size: var(--font-size-caption);
    color: var(--primary-accent);
    font-weight: bold;
}

.howto-pinterest .tool-highlight {
    background: rgba(251, 211, 103, 0.36);
    border-radius: 0.2rem;
    padding: 0.1rem 0.3rem;
    font-weight: 600;
}

.howto-pinterest p:last-of-type {
    background: rgba(251, 211, 103, 0.36);
    border-left: 4px solid var(--secondary-accent);
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-size: var(--font-size-body);
}


/* FAQ */

.faq-section {
    max-width: var(--content-width);
    margin: 3rem auto 2rem auto;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-accent-deep);
}

.faq-accordion {
    border-radius: var(--banner-radius);
    background-color: white;
}

.faq-item {
    padding: var(--spacing);
}

.faq-item button {
    box-shadow: none;
}

.faq-item+.faq-item {
    border-top: 4px solid var(--bg-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-accent-deep);
    transition: color 0.2s;
}

.faq-question:focus,
.faq-question:hover {
    color: var(--primary-accent);
}

.faq-arrow {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-left: 0.5em;
    border-right: 3px solid var(--primary-accent);
    border-bottom: 3px solid var(--primary-accent);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(.4, 2, .6, 1), border-color 0.3s;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(-135deg);
    border-color: var(--secondary-accent-dark);
}

.faq-answer {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 2, .6, 1), opacity 0.3s;
    max-height: 0;
    opacity: 0;
    padding: 0 0;
}

.faq-answer[open],
/* for JS fallback */
.faq-answer[aria-hidden="false"] {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 0 0.5rem 0;
}


/* %%%%%%%%%% */

.testimonials-scroll {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    padding: 0.5rem 0 2rem;
    width: 100%;
    margin: 2.5rem auto;
}

.testimonials-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 30px;
}

.testimonial-card {
    max-width: 300px;
    background: white;
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    flex: 1 0 auto;
}

.quote-icon {
    color: var(--primary-accent);
    font-size: var(--font-size-small);
    margin-bottom: 20px;
}

.review-text {
    font-size: var(--font-size-micro);
    color: var(--gray-medium);
    margin-bottom: 25px;
    font-style: italic;
}

.customer-name {
    font-weight: bold;
    color: var(--primary-accent-dark);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonials-track:hover {
    animation-play-state: paused;
}


/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

/* Responsive */
@media (max-width: 1200px) {
    .tooltip-text {
        top: 0;
        left: 50%;
        transform: translate(-50%, 20%);
        font-family: var(--font-body);
        padding: 0.2rem 1rem;
        width: 90%;
    }
}

@media (max-width: 768px) {

    .infographic-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .infographic-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .infographic-details {
        position: static;
        max-width: 100%;
    }

    .step-detail {
        position: static;
        width: 100%;
        min-height: 0;
        padding: 0;
    }

    .step-tile {
        flex: 1 1 50%;
    }

    .step-tile:last-child {
        flex: 0 1 auto;
        width: 50%;
    }

    .infographic-steps::before,
    .step-tile::before {
        display: none;
    }

    .finished-carousel {
        width: 320px;
        height: 280px;
    }

    .finished-item {
        flex: 0 0 280px;
        padding: 0 15px;
    }

    .finished-item img {
        width: 250px;
        height: 250px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-nav.prev {
        left: -50px;
    }

    .carousel-nav.next {
        right: -50px;
    }

    .faq-section {
        padding: 0 0.5rem;
    }

    .faq-accordion {
        padding: 0.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 0 1rem 0;
    }

    .faq-answer {
        font-size: 0.97rem;
    }

    .testimonial-card {
        min-width: 280px;
        padding: 20px;
    }

    .testimonials h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .infographic-steps {
        flex-direction: column;
    }

    .step-tile:last-child {
        width: 100%;
    }

    .finished-carousel {
        width: 280px;
        height: 240px;
    }

    .finished-item {
        flex: 0 0 240px;
        padding: 0 10px;
    }

    .finished-item img {
        width: 220px;
        height: 220px;
    }

    .carousel-nav.prev {
        left: -40px;
    }

    .carousel-nav.next {
        right: -40px;
    }
}