.how-it-works-page {
    padding: 3rem 0 4rem;
}

.hiw-hero {
    background: linear-gradient(135deg, rgba(50, 146, 166, 0.08), rgba(50, 146, 166, 0.18));
    border: 1px solid rgba(50, 146, 166, 0.14);
    border-radius: 1rem;
    padding: 2.5rem;
}

.hiw-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d7f90;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hiw-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hiw-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #32434b;
}

.hiw-section {
    margin-top: 4rem;
}

.hiw-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.9rem;
}

.hiw-section p,
.hiw-section li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #32434b;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hiw-step-card,
.hiw-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.9rem;
    padding: 1.25rem 1.2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.hiw-step-number {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #3292a6;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.hiw-step-card h3,
.hiw-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hiw-flow {
    border-radius: 1rem;
    background: #f8fbfc;
    border: 1px solid #d9e9ed;
    padding: 1.4rem;
    margin-top: 1.5rem;
}

.hiw-flow-step {
    font-size: 1.05rem;
    line-height: 1.8;
}

.hiw-divider {
    color: #3292a6;
    font-weight: 700;
    margin: 0 0.5rem;
}

.hiw-list {
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.hiw-template {
    display: flex;
    flex-direction: column;
    border: 1px solid #d8e3e6;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
    height: 100%;
    width: 100%;
}

.hiw-template-header {
    background: #16333a;
    color: #eff8fa;
    padding: 1rem 1.25rem;
}

.hiw-template-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.hiw-template-body {
    padding: 1.25rem;
}

.hiw-template-block + .hiw-template-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.hiw-template-label {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #2d7f90;
    margin-bottom: 0.45rem;
}

.hiw-template-example {
    background: #f8fbfc;
    border: 1px solid #dcebed;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    margin-top: 0.65rem;
}

.hiw-post {
    display: flex;
    flex-direction: column;
    border: 1px solid #d8e3e6;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.hiw-post-header {
    background: linear-gradient(135deg, rgba(50, 146, 166, 0.08), rgba(50, 146, 166, 0.16));
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #d8e3e6;
}

.hiw-post-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.hiw-post-body {
    padding: 1.25rem;
}

.hiw-post-section + .hiw-post-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf1f3;
}

.hiw-post-tagline {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #2d7f90;
    margin-bottom: 0.45rem;
}

.hiw-post-template {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.97rem;
    line-height: 1.8;
    color: #26343a;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.hiw-image-frame {
    border: 1px solid #d8e3e6;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.hiw-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.hiw-image-note {
    padding: 1rem 1.1rem;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

.hiw-image-note p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.hiw-cta {
    margin-top: 4rem;
    border-radius: 1rem;
    background: #16333a;
    color: #eff8fa;
    padding: 2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.hiw-cta p {
    color: rgba(255, 255, 255, 0.85);
}

.hiw-cta .btn {
    min-width: 170px;
}

@media (max-width: 767.98px) {
    .how-it-works-page {
        padding-top: 2rem;
    }

    .hiw-hero {
        padding: 1.5rem;
    }

    .hiw-flow-step {
        display: block;
        margin-bottom: 0.55rem;
    }

    .hiw-divider {
        display: none;
    }
}
