/**
 * How It Works page layout and interactive elements.
 */

.how-it-works-page .step-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-it-works-page .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

.how-it-works-page .cache-steps {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
}

.how-it-works-page kbd {
    font-family: "SF Mono", Menlo, Monaco, "Cascadia Code", Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 0.125rem 0.375rem;
    color: #1e293b;
}

.how-it-works-page main > :first-child {
    padding-top: 2rem;
}

.how-it-works-page a.bg-\[\#2BC5D4\],
.how-it-works-page a.border-\[\#2BC5D4\],
.how-it-works-page a[href="#steps"] {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
    min-width: 180px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap;
}

.how-it-works-page section.py-16.bg-gray-50 .grid {
    gap: 2rem !important;
}

.how-it-works-page section#steps {
    padding-top: 4rem !important;
}

.how-it-works-page section#steps .text-center.mb-12 {
    margin-bottom: 3.5rem !important;
}

.how-it-works-page main section:first-of-type .flex-wrap.justify-center.gap-4 {
    margin-top: 1rem !important;
}

.how-it-works-page a[href="#steps"] {
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.how-it-works-page a[href="#steps"]::after {
    content: "↓";
    display: inline-block;
    margin-left: 0.375rem;
    font-size: 1.2em;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.how-it-works-page a[href="#steps"]:hover {
    background-color: #f9fafb;
}

.how-it-works-page a[href="#steps"]:hover::after {
    transform: translateY(2px);
}

.how-it-works-page .bg-gradient-to-r.from-\[\#2BC5D4\]\/10.to-white.rounded-3xl .mt-6 {
    margin-top: 1.5rem !important;
}

.how-it-works-page .bg-gradient-to-r.from-\[\#2BC5D4\]\/10.to-white.rounded-3xl a.bg-\[\#2BC5D4\]:first-of-type {
    min-width: 140px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.how-it-works-page .bg-gradient-to-r.from-\[\#2BC5D4\]\/10.to-white.rounded-3xl a.border:last-of-type {
    min-width: 220px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    white-space: nowrap !important;
}

.how-it-works-page section.py-16.bg-gray-50 .text-center.mb-12 {
    margin-bottom: 4rem !important;
}

.how-it-works-page section.max-w-7xl.mx-auto.px-6.py-16 .text-center.mb-10 p {
    margin-bottom: 0.75rem !important;
}

.how-it-works-page section.max-w-7xl.mx-auto.px-6.py-16 .text-center.mb-10 {
    margin-bottom: 2.5rem !important;
}

.how-it-works-page section.max-w-7xl.mx-auto.px-6.py-16 .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
    margin-top: 0.5rem !important;
}

.how-it-works-page section.bg-white.py-16.border-t.border-gray-100 {
    padding-bottom: 2rem !important;
}

.how-it-works-page section.py-16.bg-gradient-to-b.from-white.to-\[\#2BC5D4\]\/5 {
    padding-top: 2rem !important;
}

@media (max-width: 640px) {
    .how-it-works-page a.bg-\[\#2BC5D4\],
    .how-it-works-page a.border-\[\#2BC5D4\],
    .how-it-works-page a[href="#steps"] {
        min-width: 140px;
        white-space: normal;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .how-it-works-page .bg-gradient-to-r.from-\[\#2BC5D4\]\/10.to-white.rounded-3xl a.border:last-of-type {
        min-width: 180px !important;
        white-space: normal !important;
    }
}

@media (min-width: 768px) {
    .how-it-works-page main > :first-child {
        padding-top: 3rem;
    }

    .how-it-works-page section#steps {
        padding-top: 5rem !important;
    }

    .how-it-works-page section#steps .text-center.mb-12 {
        margin-bottom: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .how-it-works-page section.py-16.bg-gray-50 .grid {
        gap: 2.5rem !important;
    }
}
