/* Public-page components. No authentication or form behavior is changed here. */
.sp-ui-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.sp-detail-overview {
    width: 100%;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--sp-line);
    border-radius: 28px;
    background: linear-gradient(145deg, #fff, #f5f6ff);
    box-shadow: 0 22px 54px rgba(24, 33, 58, .1);
}

.sp-detail-overview-icon,
.sp-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(76, 94, 224, .14);
    border-radius: 15px;
    color: var(--sp-primary-dark);
    background: #eef0ff;
}

.sp-detail-overview-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
}

.sp-detail-overview-icon .sp-ui-icon {
    width: 32px;
    height: 32px;
}

.sp-detail-overview-title {
    display: block;
    margin: 0 0 22px;
    color: var(--sp-ink);
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.sp-detail-overview-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-detail-overview-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sp-line);
    border-radius: 13px;
    background: #fff;
    color: var(--sp-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.sp-detail-overview-list .sp-ui-icon {
    width: 21px;
    height: 21px;
    color: var(--sp-primary-dark);
}

.sp-page-hero .sp-detail-overview-note {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--sp-muted);
}

.sp-card.sp-detail-card {
    min-height: 0;
}

.sp-detail-example {
    margin-top: 56px;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--sp-line);
    border-radius: 28px;
    background: #f5f6fc;
}

.sp-detail-example-header {
    max-width: 750px;
}

.sp-detail-example-header h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.sp-detail-example-header p,
.sp-detail-example-note {
    color: var(--sp-muted);
    line-height: 1.7;
}

.sp-detail-example-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.sp-detail-example-steps > li {
    padding: 24px;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: #fff;
}

.sp-detail-example-steps > li > span {
    display: block;
    margin-bottom: 16px;
    color: var(--sp-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.sp-detail-example-steps strong {
    display: block;
    color: var(--sp-ink);
    font-size: 17px;
    line-height: 1.5;
}

.sp-detail-example-steps p {
    margin: 10px 0 0;
    color: var(--sp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.sp-detail-example-note {
    margin: 22px 0 0;
    font-size: 13px;
}

.sp-related {
    padding: clamp(24px, 3vw, 36px);
}

.sp-product-section-nav {
    padding: 18px 0;
    border-block: 1px solid var(--sp-line);
    background: #fff;
}

.sp-product-section-nav .sp-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-product-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid var(--sp-line);
    border-radius: 999px;
    color: var(--sp-primary-dark);
    background: #f7f8ff;
    font-size: 14px;
    font-weight: 750;
}

.sp-product-section-nav a:hover {
    background: #eceeff;
}

.sp-product-page [id] {
    scroll-margin-top: 100px;
}

.sp-pricing-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px dashed var(--sp-line);
    border-radius: 24px;
    text-align: center;
}

.sp-pricing-empty p {
    max-width: 48ch;
    margin: 0;
    color: var(--sp-muted);
}

.sp-pricing-guidance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--sp-line);
    border-radius: 24px;
    background: #f5f6fc;
}

.sp-pricing-guidance h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.7vw, 30px);
    line-height: 1.3;
}

.sp-pricing-guidance p {
    max-width: 70ch;
    margin: 0;
    color: var(--sp-muted);
}

.sp-pricing-selection-note,
.sp-pack-original-label {
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.65;
}

.sp-pricing-selection-note {
    max-width: 72ch;
    margin: 0 auto 28px;
    text-align: center;
}

.sp-pack-copy {
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.sp-pack-copy[dir="auto"] {
    text-align: start;
    unicode-bidi: isolate;
}

[dir="rtl"] .sp-detail-overview-title,
[dir="rtl"] .sp-detail-example-header h2 {
    letter-spacing: 0;
    line-height: 1.5;
}

@media (min-width: 981px) {
    .sp-page-hero-grid:has(.sp-detail-overview) {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
        gap: 56px;
    }
}

@media (max-width: 980px) {
    .sp-detail-overview {
        max-width: 620px;
    }

    .sp-detail-overview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-detail-example-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sp-pricing-guidance {
        grid-template-columns: 1fr;
    }

    .sp-pricing-guidance .sp-button {
        width: 100%;
    }

    .sp-detail-overview-list {
        grid-template-columns: 1fr;
    }

    .sp-product-section-nav .sp-shell {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-product-section-nav a {
        justify-content: center;
        padding-inline: 10px;
        text-align: center;
        font-size: 13px;
    }
}
