/* css/mobile/promise-section.css */

.promise-section {
    padding: 48px 0 40px;
    background: #faf5eb;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.ps-wrapper {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

/* ── TOP: stack image above text ── */
.ps-top-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.floating-shape { display: none; }

/* ── Image ── */
.ps-left-col {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.ps-family-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 22px;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.07),
        0 10px 28px rgba(0,0,0,0.10);

    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16,1,0.3,1);
}

.ps-family-img.ps-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Text col ── */
.ps-right-col {
    padding: 24px 2px 0;
    position: relative;
}

.ps-tagline-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease 0.12s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.12s;
}
.ps-tagline-wrap.ps-visible { opacity: 1; transform: translateY(0); }

.ps-tagline {
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: #4A2063;
    font-weight: 800;
    text-transform: uppercase;
}

.ps-golden-line {
    width: 36px;
    height: 2.5px;
    background: linear-gradient(90deg, #B98B2C, #e0b84a);
    border-radius: 2px;
}

.ps-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    font-weight: 700;
    color: #0A2342;
    line-height: 1.15;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease 0.22s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.22s;
}
.ps-title.ps-visible { opacity: 1; transform: translateY(0); }
.ps-title span { color: #4A2063; }

.ps-desc {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease 0.32s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.32s;
}
.ps-desc.ps-visible { opacity: 1; transform: translateY(0); }

.ps-explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A2063 0%, #311444 100%);
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(74,32,99,0.30);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease 0.42s, transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.42s;
}
.ps-explore-btn.ps-visible { opacity: 1; transform: translateY(0); }

/* features marquee clip wrapper — applied via bottom-card overflow */
.ps-features-wrap {
    overflow: hidden;
    margin-bottom: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ps-features-wrap .ps-features-grid {
    margin-bottom: 0;
}

/* ── BOTTOM CARD ── */
.ps-bottom-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 16px 18px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.05),
        0 10px 28px rgba(0,0,0,0.07);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease 0.1s, transform 0.75s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.ps-bottom-card.ps-visible { opacity: 1; transform: translateY(0); }

.ps-card-tagline-wrap {
    text-align: center;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.ps-card-tagline {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0A2342;
    text-transform: uppercase;
}

.ps-golden-line.center {
    width: 44px;
    margin: 0 auto;
}

/* single-row scrolling marquee — 4 items, scroll full width then loop */
.ps-features-grid {
    display: flex;
    gap: 12px;
    width: max-content;
    margin-bottom: 18px;
    animation: psFeatScroll 12s linear infinite;
}

.ps-divider { display: none; }

.ps-feature-item {
    background: #faf9f6;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
    width: 170px;
    opacity: 1;
    transform: none;
}

/* scroll left until all 4 cards pass, then jump back */
@keyframes psFeatScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-4 * (170px + 12px))); }
}

.ps-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.07),
        0 1px 0 rgba(255,255,255,1) inset;
}

.ps-feature-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0A2342;
    line-height: 1.25;
    margin: 0;
}

.ps-feature-desc {
    font-size: 0.62rem;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* ── Stats marquee ── */
.ps-stats-bar {
    overflow: hidden;
    border-radius: 14px;
    background: #F8F5FA;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ps-stats-track {
    display: flex;
    width: max-content;
    animation: psStatsScroll 18s linear infinite;
}

@keyframes psStatsScroll {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.ps-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
}

.ps-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.ps-stat-text {
    display: flex;
    flex-direction: column;
}

.ps-stat-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #4A2063;
    line-height: 1.1;
}

.ps-stat-text span {
    font-size: 0.6rem;
    color: #666;
    font-weight: 500;
}
