/* Trust block + Story arc — v1.3.0.0 UX enhancement pack */

/* ── Trust block ── */
.trust-block {
    padding: var(--sp-6) 0;
}
.trust-block--compact {
    padding: var(--sp-4) 0;
}
.trust-block__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust-block__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--sp-5);
    border-radius: var(--r-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-elite-sm);
    text-align: center;
}
.surface-light .trust-block__item,
.home-about-teaser .trust-block__item,
.about-hero + .trust-block .trust-block__item {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.trust-block__value {
    font-family: var(--ff-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--clr-accent-primary);
    line-height: 1;
}
.trust-block__label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-gray-600);
    margin-top: 4px;
}
.trust-block__detail {
    font-size: 0.75rem;
    color: var(--clr-gray-500);
    margin-top: 2px;
}

/* Footer trust strip variant */
.site-footer__trust {
    margin: var(--sp-8) 0 var(--sp-6);
    padding: var(--sp-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__trust .trust-block__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
}
.site-footer__trust .trust-block__item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    padding: var(--sp-4);
}
.site-footer__trust .trust-block__value {
    color: #60A5FA;
}
.site-footer__trust .trust-block__label,
.site-footer__trust .trust-block__detail {
    color: rgba(148, 163, 184, 0.9);
}

/* ── Story arc — World-class redesign ── */
.story-arc-section {
    padding-block: clamp(4.5rem, 9vw, 7rem);
    background: #050D1A;
    position: relative;
    overflow: hidden;
    border-top: none;
}
.story-arc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 10% 0%, rgba(59, 130, 246, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 90% 100%, rgba(139, 92, 246, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 55%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.story-arc-section > .container {
    position: relative;
    z-index: 1;
}
.story-arc-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.story-arc-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93C5FD;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 1.25rem;
}
.story-arc-section__title {
    font-family: var(--ff-head);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.story-arc-section__lead {
    font-size: var(--fs-lg);
    color: rgba(148, 163, 184, 0.85);
    line-height: 1.65;
    margin: 0;
}

/* ── Grid ── */
.story-arc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.story-arc-grid--single {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Base card ── */
.story-arc-card {
    position: relative;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Top accent stripe per card position */
.story-arc-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
}
.story-arc-card[data-arc-index="1"]::before {
    background: linear-gradient(90deg, #059669, #34D399);
}
.story-arc-card[data-arc-index="2"]::before {
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
}
.story-arc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.story-arc-card[data-arc-index="1"]:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.story-arc-card[data-arc-index="2"]:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Standard card inner (home 3-up) ── */
.story-arc-card__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
}

/* ── Eyebrow ── */
.story-arc-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93C5FD;
}
.story-arc-card__eyebrow::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
    flex-shrink: 0;
}
.story-arc-card[data-arc-index="1"] .story-arc-card__eyebrow { color: #6EE7B7; }
.story-arc-card[data-arc-index="1"] .story-arc-card__eyebrow::before {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.story-arc-card[data-arc-index="2"] .story-arc-card__eyebrow { color: #C4B5FD; }
.story-arc-card[data-arc-index="2"] .story-arc-card__eyebrow::before {
    background: #8B5CF6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.7);
}

/* ── Steps wrapper ── */
.story-arc-card__steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex: 1;
}

/* ── Individual step ── */
.story-arc-card__step {
    padding: 0.875rem 1rem 0.875rem 1.125rem;
    border-left: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 0 8px 8px 0;
    background: rgba(59, 130, 246, 0.04);
    position: relative;
}
.story-arc-card__step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.8);
    border: 2px solid #050D1A;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}
.story-arc-card__step--proof {
    border-left-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.04);
}
.story-arc-card__step--proof::before {
    background: rgba(16, 185, 129, 0.9);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.story-arc-card__step--vision {
    border-left-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.04);
}
.story-arc-card__step--vision::before {
    background: rgba(139, 92, 246, 0.9);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

/* Step label badge */
.story-arc-card__step-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(96, 165, 250, 0.95);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 7px;
}
.story-arc-card__step--proof .story-arc-card__step-label {
    color: rgba(52, 211, 153, 0.95);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
}
.story-arc-card__step--vision .story-arc-card__step-label {
    color: rgba(167, 139, 250, 0.95);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.22);
}

.story-arc-card__step p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.88);
}

/* ── CTA ── */
.story-arc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.38);
    border-radius: 8px;
    align-self: flex-start;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, gap 0.2s;
    margin-top: auto;
}
.story-arc-card__cta:hover {
    background: rgba(59, 130, 246, 0.32);
    border-color: rgba(59, 130, 246, 0.65);
    transform: translateX(3px);
    gap: 12px;
}

/* ── Featured single arc (about page) ── */
.story-arc-card--featured {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 260px;
}
.story-arc-card--featured::before {
    display: none;
}
.story-arc-card--featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB 0%, #10B981 50%, #8B5CF6 100%);
}

/* Left identity panel */
.story-arc-card__featured-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2.25rem 2rem;
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}
.story-arc-card__featured-left::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.story-arc-card__featured-left .story-arc-card__eyebrow {
    margin-bottom: 0;
}
.story-arc-card__featured-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(148, 163, 184, 0.75);
    font-style: italic;
}
.story-arc-card__featured-left .story-arc-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* Right steps panel */
.story-arc-card__featured-steps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 2rem 2rem;
}
.story-arc-card__featured-steps .story-arc-card__step {
    padding: 1rem 1.125rem;
}

/* Divider connector between steps */
.story-arc-step-divider {
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    margin-left: 1.125rem;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .story-arc-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .trust-block__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .story-arc-card--featured {
        grid-template-columns: 1fr;
    }
    .story-arc-card__featured-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 1.75rem;
    }
    .story-arc-card__featured-steps {
        padding: 1.5rem 1.75rem;
    }
}
@media (max-width: 480px) {
    .trust-block__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__trust .trust-block__grid { grid-template-columns: repeat(2, 1fr); }
}
