/* Shared look for page-builder site modules */

/* Justify body copy across all page-builder modules */
.page-builder-content p,
.page-builder-content .sm-subtitle,
.page-builder-content .sm-banner__text,
.page-builder-content .sm-check > span:last-child,
.page-builder-content li,
.page-builder-content .page-cms-content,
.page-builder-content [data-cms-content],
.page-builder-content [data-section="media-text"] .text-sm.leading-8,
.page-builder-content [data-section="home-hero"] p {
    text-align: justify !important;
    text-justify: inter-word;
}

.page-builder-content .sm-head--center,
.page-builder-content .sm-head--center .sm-subtitle,
.page-builder-content .text-center,
.page-builder-content .text-center p {
    text-align: center;
}

.sm-section {
    margin-block: 1.75rem;
}

.sm-section--tight {
    margin-block: 1rem;
}

.sm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #2563eb;
}

.sm-kicker::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
}

.sm-title {
    margin: 0;
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    font-weight: 800;
    line-height: 1.45;
    color: #101c36;
    letter-spacing: -0.02em;
}

.sm-subtitle {
    margin: 0.55rem 0 0;
    max-width: 42rem;
    font-size: 0.875rem;
    line-height: 1.85;
    color: #64748b;
    text-align: justify;
    text-justify: inter-word;
}

.sm-head {
    margin-bottom: 1.35rem;
}

.sm-head--center {
    text-align: center;
}

.sm-head--center .sm-subtitle {
    margin-inline: auto;
}

.sm-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.sm-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.28);
    transform: translateY(-2px);
}

.sm-card__glow {
    pointer-events: none;
    position: absolute;
    inset-inline-end: -2rem;
    inset-block-start: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
}

.sm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.sm-icon--dark {
    background: linear-gradient(145deg, #1e293b, #101c36);
    color: #fff;
    box-shadow: none;
}

.sm-icon--soft {
    background: #f8fafc;
    color: #334155;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.sm-stat {
    text-align: center;
    padding: 1.35rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid #e2e8f0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sm-stat__value {
    font-size: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.sm-stat__label {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.sm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #334155;
}

.sm-check__mark {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #059669;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}

.sm-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid transparent;
}

.sm-banner--soft {
    background: linear-gradient(120deg, #f8fafc, #eff6ff);
    border-color: #e2e8f0;
    color: #101c36;
}

.sm-banner--orange {
    background: linear-gradient(120deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
    color: #101c36;
}

.sm-banner--dark {
    background: linear-gradient(120deg, #101c36, #1e293b);
    border-color: #1e293b;
    color: #fff;
}

.sm-banner--dark .sm-banner__text {
    color: #cbd5e1;
}

.sm-banner__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.sm-banner__text {
    margin: 0.4rem 0 0;
    max-width: 36rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #64748b;
}

.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.65rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.sm-btn:hover {
    transform: translateY(-1px);
}

.sm-btn--primary {
    background: #2563eb;
    color: #fff;
}

.sm-btn--primary:hover {
    background: #3b82f6;
}

.sm-btn--ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.sm-btn--ghost:hover {
    border-color: #60a5fa;
    color: #2563eb;
}

.sm-btn--on-dark {
    background: #2563eb;
    color: #fff;
}

.sm-quote {
    position: relative;
    border-radius: 1.35rem;
    border: 1px solid #e2e8f0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 40%),
        linear-gradient(180deg, #fff, #f8fafc);
    padding: 2rem 1.5rem;
}

.sm-quote__mark {
    position: absolute;
    inset-inline-start: 1.25rem;
    inset-block-start: 0.85rem;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.18);
}

.sm-quote__text {
    position: relative;
    margin: 0;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
    font-weight: 600;
    line-height: 2;
    color: #1e293b;
}

.sm-quote__meta {
    margin-top: 1.15rem;
    font-size: 0.875rem;
    color: #64748b;
}

.sm-quote__meta strong {
    color: #101c36;
    font-weight: 800;
}

.sm-process {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .sm-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sm-process {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sm-process__item {
    position: relative;
    padding: 1.2rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.sm-process__step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: none;
}

.sm-process__num {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
}

.sm-compare-bad {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-color: #e2e8f0;
}

.sm-compare-good {
    background: linear-gradient(180deg, #eff6ff, #fff);
    border-color: #bfdbfe;
}

.sm-price {
    padding: 1.5rem;
}

.sm-price--featured {
    border-color: #60a5fa;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 50%),
        #fff;
    box-shadow: 0 18px 35px -24px rgba(37, 99, 235, 0.55);
}

.sm-price__amount {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 1rem;
}

.sm-price__amount strong {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #101c36;
    font-variant-numeric: tabular-nums;
}

.sm-price__amount span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

/* —— Map tariff / pricing cards —— */
.sm-tariff__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.sm-tariff__title {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sm-tariff__subtitle {
    margin: 0.65rem auto 0;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.85;
    color: #64748b;
}

.sm-tariff__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #fff);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
}

.sm-tariff__chip-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.sm-tariff__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .sm-tariff__grid--2,
    .sm-tariff__grid--3,
    .sm-tariff__grid--4,
    .sm-tariff__grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .sm-tariff__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-tariff__grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sm-tariff__grid--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .sm-tariff__grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sm-tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem 1.15rem 1.2rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.35);
    transition:
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.sm-tariff-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 18px 36px -22px rgba(37, 99, 235, 0.35);
    transform: translateY(-3px);
}

.sm-tariff-card--featured {
    border-color: #60a5fa;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 0 18px 40px -24px rgba(37, 99, 235, 0.55);
}

.sm-tariff-card__ribbon {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: 0.85rem;
    z-index: 1;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f97316, #ea580c);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 16px -10px rgba(234, 88, 12, 0.8);
}

.sm-tariff-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sm-tariff-card--featured .sm-tariff-card__top {
    margin-top: 1.35rem;
}

.sm-tariff-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.4);
}

.sm-tariff-card__logo img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

.sm-tariff-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.sm-tariff-card__status--on {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.sm-tariff-card__status--off {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.sm-tariff-card__status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: currentColor;
}

.sm-tariff-card__status--on .sm-tariff-card__status-dot {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.sm-tariff-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sm-tariff-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.sm-tariff-card__price strong {
    font-size: 1.45rem;
    font-weight: 900;
    color: #101c36;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sm-tariff-card__price span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.sm-tariff-card__note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    line-height: 1.7;
    color: #64748b;
    flex: 1;
}

.sm-tariff-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
    width: 100%;
    height: 2.65rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 22px -14px rgba(37, 99, 235, 0.7);
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.sm-tariff-card__cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.sm-tariff-card__cta svg {
    width: 1rem;
    height: 1rem;
    transform: rotate(180deg);
}

.sm-tariff-card--featured .sm-tariff-card__cta {
    background: linear-gradient(180deg, #f97316, #ea580c);
    box-shadow: 0 12px 22px -14px rgba(234, 88, 12, 0.75);
}

.sm-tariff-card--featured .sm-tariff-card__cta:hover {
    background: #c2410c;
}

.sm-dark {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.75rem 1.5rem;
    color: #fff;
    background: linear-gradient(125deg, #101c36 0%, #1e293b 55%, #101c36 100%);
}

.sm-dark::before {
    content: "";
    position: absolute;
    inset-inline-end: -4rem;
    inset-block-start: -3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 65%);
}

.sm-dark > * {
    position: relative;
}

.sm-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.35);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #e2e8f0;
}

.sm-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 1rem 1.1rem;
}

.sm-alert__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-alert--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.sm-alert--info .sm-alert__icon {
    background: #dbeafe;
    color: #2563eb;
}

.sm-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.sm-alert--success .sm-alert__icon {
    background: #d1fae5;
    color: #059669;
}

.sm-alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.sm-alert--warning .sm-alert__icon {
    background: #fef3c7;
    color: #d97706;
}

.sm-steps-panel {
    border-radius: 1.35rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .sm-steps-panel {
        padding: 1.75rem 1.5rem;
    }
}

.sm-step-card {
    height: 100%;
    border-radius: 1.15rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 1.2rem;
}

.sm-step-card__num {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.8);
}

.sm-hero-preview {
    border-radius: 1.35rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.4rem;
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.35);
}

.sm-fade-up {
    animation: smFadeUp 0.45s ease both;
}

@keyframes smFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-media-figure {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

.sm-media-figure--logo {
    max-width: 13.5rem;
}

@media (min-width: 640px) {
    .sm-media-figure--logo {
        max-width: 15rem;
    }
}

@media (min-width: 1024px) {
    .sm-media-figure {
        max-width: 24rem;
    }

    .sm-media-figure--logo {
        max-width: 14rem;
    }
}

.sm-media-figure img,
.sm-media-figure__img {
    display: block;
    width: 100%;
    height: auto;
}

.sm-media-figure__img--photo {
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    outline: 1px solid #e2e8f0;
    max-height: 20rem;
}

.sm-media-figure__img--logo {
    border-radius: 1rem;
    object-fit: contain;
    background: #fff;
    padding: 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    outline: 1px solid #e2e8f0;
    max-height: 12rem;
}

@media (min-width: 1024px) {
    .sm-media-figure__img--logo {
        max-height: 11rem;
        padding: 1.25rem;
    }

    .sm-media-figure__img--photo {
        max-height: 22rem;
    }
}

.sm-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 12rem;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1.5px dashed #93c5fd;
    background:
        linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    text-align: center;
    color: #64748b;
}

.sm-media-placeholder__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.sm-media-placeholder__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.sm-media-placeholder__title {
    font-size: 0.9rem;
    font-weight: 900;
    color: #1e3a8a;
}

.sm-media-placeholder__hint {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 14rem;
}
