.tool-tutorial-panel {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--tool-platform-color) 8%, transparent), transparent 25%),
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--tool-platform-color) 6%, transparent), transparent 24%),
        #fff;
}

.tool-tutorial-heading {
    justify-content: center;
    text-align: center;
}

.tool-tutorial-heading p {
    max-width: 650px;
    margin: 0.55rem auto 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-tutorial-heading .tool-tutorial-evidenceNote {
    max-width: 720px;
    padding: 0.7rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--tool-platform-color) 14%, #e4e7ec);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tool-platform-color) 4%, #ffffff);
    color: #475467;
    font-size: 0.78rem;
}

.tool-tutorial-figure {
    margin: 0;
}

.tool-tutorial-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.7rem);
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.tool-tutorial-fourSteps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.tool-tutorial-step {
    min-width: 0;
}

.tool-tutorial-phone {
    position: relative;
    width: min(100%, 238px);
    margin: 0 auto;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.96);
    border-radius: 30px;
    background: #fff;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--tool-platform-color) 18%, transparent),
        0 18px 42px rgba(23, 25, 45, 0.13);
    isolation: isolate;
}

.tool-tutorial-fourSteps .tool-tutorial-phone {
    width: min(100%, 205px);
}

.tool-tutorial-phone::after {
    position: absolute;
    inset: 0;
    z-index: 7;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 23px;
    content: "";
    pointer-events: none;
}

.tool-tutorial-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

.tool-tutorial-caption {
    max-width: 270px;
    margin: 0.8rem auto 0;
    color: #667085;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.tool-tutorial-marker {
    position: absolute;
    z-index: 4;
    border: 3px solid #f43f5e;
    border-radius: 12px;
    background: rgba(244, 63, 94, 0.04);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.86),
        0 0 0 7px rgba(244, 63, 94, 0.14);
    pointer-events: none;
}

.tool-tutorial-inputMarker {
    top: 46.2%;
    left: 8%;
    width: 84%;
    height: 7%;
}

.tool-tutorial-buttonMarker {
    top: 53.6%;
    left: 8%;
    width: 84%;
    height: 7%;
}

.tool-tutorial-profilePictureResultMarker {
    top: 66.3%;
    left: 10%;
    width: 80%;
    height: 7.5%;
}

.tool-tutorial-profileViewerResultMarker {
    top: 35.8%;
    left: 8%;
    width: 84%;
    height: 29.5%;
}

.tool-tutorial-storyResultMarker {
    top: 39.2%;
    left: 8%;
    width: 84%;
    height: 57%;
}

.tool-tutorial-ratioResultMarker {
    top: 56.8%;
    left: 12.5%;
    width: 71%;
    height: 17.4%;
}

.tool-tutorial-fontInputMarker {
    top: 27%;
    left: 9%;
    width: 82%;
    height: 20%;
}

.tool-tutorial-fontCategoryMarker {
    top: 54%;
    left: 6%;
    width: 88%;
    height: 7%;
}

.tool-tutorial-fontResultMarker {
    top: 42%;
    left: 9%;
    width: 82%;
    height: 17%;
}

.tool-tutorial-pinterestInputMarker {
    top: 65.5%;
    left: 8%;
    width: 84%;
    height: 7%;
}

.tool-tutorial-pinterestButtonMarker {
    top: 73.5%;
    left: 8%;
    width: 84%;
    height: 7%;
}

.tool-tutorial-pinterestPreviewMarker {
    top: 31%;
    left: 8%;
    width: 84%;
    height: 38%;
}

.tool-tutorial-pinterestDownloadMarker {
    top: 46.8%;
    left: 8%;
    width: 68%;
    height: 7%;
}

.tool-tutorial-markerArrow {
    position: absolute;
    top: -35px;
    right: -17px;
    z-index: 8;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #dd2a7b, #fd5949);
    color: #fff;
    box-shadow: 0 7px 16px rgba(221, 42, 123, 0.3);
}

.tool-tutorial-copy {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    max-width: 270px;
    margin: 1.15rem auto 0;
}

.tool-tutorial-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tool-platform-color) 78%, #fd5949), var(--tool-platform-color));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--tool-platform-color) 25%, transparent);
}

.tool-tutorial-copy h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
}

.tool-tutorial-copy p {
    margin: 0.4rem 0 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.55;
}

.tool-tutorial-fourSteps .tool-tutorial-copy {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.55rem;
}

.tool-tutorial-fourSteps .tool-tutorial-number {
    width: 28px;
    height: 28px;
}

.tool-tutorial-fourSteps .tool-tutorial-copy h3 {
    font-size: 0.88rem;
}

.tool-tutorial-fourSteps .tool-tutorial-copy p {
    font-size: 0.72rem;
}

@media (max-width: 767px) {
    .tool-tutorial-panel {
        width: 100%;
        margin-inline: 0;
        padding-inline: clamp(0.75rem, 3.5vw, 1rem);
        overflow: clip;
    }

    .tool-tutorial-heading {
        width: 100%;
        text-align: center;
    }

    .tool-tutorial-heading p {
        max-width: 34rem;
        margin-inline: auto;
        font-size: 0.82rem;
    }

    .tool-tutorial-steps,
    .tool-tutorial-fourSteps {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        margin: 1.15rem 0 0;
        padding: 0;
        overflow: visible;
    }

    .tool-tutorial-step {
        width: 100%;
        min-width: 0;
        padding: 1rem 0.7rem 1.05rem;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--tool-platform-color) 14%, #e6e9ef);
        border-radius: 18px;
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--tool-platform-color) 4%, #ffffff), #ffffff 45%);
        box-shadow: 0 9px 24px rgba(15, 23, 42, 0.055);
    }

    .tool-tutorial-phone,
    .tool-tutorial-fourSteps .tool-tutorial-phone {
        width: min(68vw, 246px);
        max-width: 100%;
        border-width: 5px;
        border-radius: 25px;
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--tool-platform-color) 16%, transparent),
            0 13px 30px rgba(23, 25, 45, 0.12);
    }

    .tool-tutorial-copy,
    .tool-tutorial-fourSteps .tool-tutorial-copy {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.75rem;
        width: min(100%, 310px);
        max-width: 100%;
        margin-top: 1rem;
    }

    .tool-tutorial-fourSteps .tool-tutorial-number {
        width: 32px;
        height: 32px;
    }

    .tool-tutorial-fourSteps .tool-tutorial-copy h3 {
        font-size: 1rem;
    }

    .tool-tutorial-fourSteps .tool-tutorial-copy p {
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .tool-tutorial-panel {
        padding-inline: 0.65rem;
    }

    .tool-tutorial-step {
        padding-inline: 0.55rem;
    }

    .tool-tutorial-phone,
    .tool-tutorial-fourSteps .tool-tutorial-phone {
        width: min(72vw, 226px);
    }

    .tool-tutorial-copy,
    .tool-tutorial-fourSteps .tool-tutorial-copy {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.6rem;
    }

    .tool-tutorial-number,
    .tool-tutorial-fourSteps .tool-tutorial-number {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tool-tutorial-marker {
        animation: tutorial-focus 2.6s ease-in-out infinite;
    }
}

@keyframes tutorial-focus {
    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(255, 255, 255, 0.86),
            0 0 0 7px rgba(244, 63, 94, 0.12);
    }

    50% {
        box-shadow:
            0 0 0 3px rgba(255, 255, 255, 0.92),
            0 0 0 10px rgba(244, 63, 94, 0.2);
    }
}
