/**
 * Landing: #features + #trust-indicators premium strips.
 * Loaded from Landing.cshtml head so rules always apply (after app.min.css).
 */

#features .container.position-relative {
    z-index: 1;
}

/* --- Features: “Advanced analytics” three-column strip --- */
#features .loki-features-row.loki-features-row--premium {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 42%, #ffffff 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 18px 46px rgba(15, 23, 42, 0.1);
}

#features .loki-features-row.loki-features-row--premium::before {
    content: "";
    display: block;
    height: 1.5px;
    width: 100%;
    background: linear-gradient(90deg, #15803d, #22c55e, #86efac);
    opacity: 0.95;
}

#features .loki-feature-col {
    position: relative;
}

#features .loki-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.85rem 1.25rem 1.65rem;
    min-height: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

#features .loki-feature-col + .loki-feature-col .loki-feature-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0),
        rgba(148, 163, 184, 0.38),
        rgba(148, 163, 184, 0)
    );
}

#features .loki-feature-card:hover {
    background: rgba(34, 197, 94, 0.045);
    transform: translateY(-1px);
}

#features .loki-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #15803d !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.22);
    box-shadow: 0 1px 2px rgba(34, 197, 94, 0.12);
}

#features .loki-feature-icon i,
#features .loki-feature-icon .fas {
    color: #15803d !important;
}

#features .loki-feature-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #0f172a !important;
    margin: 0;
}

#features .loki-feature-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.62;
    max-width: 19.5rem;
    color: #64748b !important;
}

/* --- Trust: “By the numbers” four-column strip --- */
#trust-indicators .trust-stats-row.trust-stats-row--premium {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 18px 46px rgba(15, 23, 42, 0.1);
}

#trust-indicators .trust-stats-row.trust-stats-row--premium::before {
    content: "";
    display: block;
    height: 1.5px;
    width: 100%;
    background: linear-gradient(90deg, #15803d, #22c55e, #86efac);
    opacity: 0.95;
}

#trust-indicators .trust-stat-col {
    position: relative;
}

#trust-indicators .trust-stat {
    position: relative;
    text-align: center;
    padding: 1.85rem 1rem 1.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Strip already has a single accent bar; hide per-cell top bar from legacy rules */
#trust-indicators .trust-stats-row--premium .trust-stat::before {
    display: none !important;
}

#trust-indicators .trust-stat-col + .trust-stat-col .trust-stat::after {
    content: "";
    position: absolute;
    left: 0;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0),
        rgba(148, 163, 184, 0.38),
        rgba(148, 163, 184, 0)
    );
}

#trust-indicators .trust-stat:hover {
    background: rgba(34, 197, 94, 0.045);
    transform: translateY(-1px);
}

#trust-indicators .trust-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #15803d !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.22);
    box-shadow: 0 1px 2px rgba(34, 197, 94, 0.12);
}

#trust-indicators .trust-stat-icon i,
#trust-indicators .trust-stat-icon .fas {
    color: #15803d !important;
}

#trust-indicators .trust-number {
    font-size: clamp(2.1rem, 4.8vw, 2.85rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
    color: #16a34a;
    background: linear-gradient(135deg, #14532d 0%, #15803d 25%, #22c55e 70%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@supports not (background-clip: text) {
    #trust-indicators .trust-number {
        -webkit-text-fill-color: unset;
        color: #16a34a;
        background: none;
    }
}

#trust-indicators .trust-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b !important;
    letter-spacing: 0.03em;
    line-height: 1.45;
    max-width: 11rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #features .loki-features-row.loki-features-row--premium,
    #trust-indicators .trust-stats-row.trust-stats-row--premium {
        border-radius: 14px;
        padding: 0.35rem;
        box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.06),
            0 12px 32px rgba(15, 23, 42, 0.08);
    }

    #features .loki-feature-col + .loki-feature-col .loki-feature-card::after,
    #trust-indicators .trust-stat-col + .trust-stat-col .trust-stat::after {
        display: none;
    }

    #features .loki-feature-card,
    #trust-indicators .trust-stat {
        border-radius: 12px;
        background: #ffffff;
    }
}

/* --- Success stories / testimonials (#testimonials) --- */
#testimonials.testimonials-section-premium {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

#testimonials .testimonials-cards-shell {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

#testimonials .testimonial-card-premium {
    position: relative;
    border-radius: 18px !important;
    padding: 1.65rem 1.5rem 1.5rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 14px 36px rgba(15, 23, 42, 0.07) !important;
    overflow: hidden !important;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease !important;
}

#testimonials .testimonial-card-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #15803d, #22c55e, #86efac);
    opacity: 0.95;
    pointer-events: none;
}

#testimonials .testimonial-card-premium:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 20px 44px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(34, 197, 94, 0.06) !important;
}

/* Corner wash — keep very subtle so cards stay clean */
#testimonials .testimonial-card-accent {
    width: 5rem !important;
    height: 5rem !important;
    background: radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 70%) !important;
}

#testimonials .testimonial-card-premium .testimonial-rating {
    display: inline-flex !important;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem !important;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.14);
    width: fit-content;
}

#testimonials .testimonial-card-premium .testimonial-rating i,
#testimonials .testimonial-card-premium .testimonial-rating .fas {
    font-size: 0.78rem !important;
    color: #16a34a !important;
}

#testimonials .testimonial-card-premium .testimonial-quote {
    padding-top: 0.25rem !important;
}

#testimonials .testimonial-card-premium .testimonial-quote::before {
    font-size: 2.35rem !important;
    top: -0.15rem !important;
    color: rgba(34, 197, 94, 0.18) !important;
}

#testimonials .testimonial-card-premium .testimonial-quote p {
    font-size: 0.98rem !important;
    line-height: 1.68 !important;
    color: #475569 !important;
}

#testimonials .testimonial-card-premium .testimonial-footer {
    margin-top: auto !important;
    padding-top: 1.1rem !important;
    border-top: 1px solid rgba(241, 245, 249, 1) !important;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.65) 100%);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.35rem;
    border-radius: 0 0 17px 17px;
}

#testimonials .testimonial-card-premium .avatar-circle {
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.22) !important;
}

@media (max-width: 768px) {
    #testimonials .testimonial-card-premium .testimonial-footer {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        margin-bottom: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.2rem;
        border-radius: 0 0 14px 14px;
    }

    #testimonials .testimonial-card-premium {
        border-radius: 14px !important;
    }
}

/* #features — intro stack: badge → headline → lead (production spacing) */
#features .loki-features-intro.loki-features-intro-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2.75rem !important;
}

@media (min-width: 992px) {
    #features .loki-features-intro.loki-features-intro-stack {
        margin-bottom: 3.5rem !important;
    }
}

#features .loki-features-badge-wrap {
    margin-bottom: 1.35rem;
}

@media (min-width: 992px) {
    #features .loki-features-badge-wrap {
        margin-bottom: 1.65rem;
    }
}

#features .loki-features-headline {
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.14 !important;
}

@media (min-width: 992px) {
    #features .loki-features-headline {
        margin-bottom: 1.45rem !important;
    }
}

#features .loki-features-lead {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 38rem !important;
    font-size: 1.05rem !important;
    line-height: 1.72 !important;
    color: #64748b !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

@media (min-width: 992px) {
    #features .loki-features-lead {
        font-size: 1.08rem !important;
        line-height: 1.75 !important;
        max-width: 40rem !important;
    }
}

/* #about — “Who we are” hex infographic (pointy-top hex, faint top triangle; no strip bg) */
#about .about-pillars-intro:has(+ .about-pillars-row--hex) {
    background: transparent !important;
    background-image: none !important;
    margin-bottom: 0.85rem !important;
    padding: 0;
    border-radius: 0;
}

#about .about-pillars-row--hex {
    position: relative;
    margin-top: 0.5rem;
    padding: 0.35rem 0 1.5rem;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    align-items: center;
    justify-content: center;
}

#about .about-pillars-row--hex .about-hex-col {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

#about .about-hex-outer {
    position: relative;
    width: 100%;
    max-width: 25rem;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    filter: drop-shadow(16px 26px 0 rgba(15, 23, 42, 0.065))
        drop-shadow(11px 17px 22px rgba(15, 23, 42, 0.1));
}

@media (min-width: 992px) {
    #about .about-hex-outer--mid {
        z-index: 2;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
}

@media (max-width: 767.98px) {
    #about .about-pillars-row--hex {
        align-items: center;
    }

    #about .about-hex-outer {
        align-items: center;
    }

    #about .about-hex-outer--mid {
        margin-left: 0;
        margin-right: 0;
    }
}

/*
 * Pointy-top regular hex: clip-path % matches when width/height = sqrt(3)/2 (433/500).
 * Ribbon: same % clip as the hex top cap + gradient (stays aligned even with min-height).
 */
#about .about-story-card.about-story-card--hex {
    --hex-accent: #fdb813;
    position: relative;
    width: 100%;
    max-width: 25rem;
    margin-inline: auto;
    border: none !important;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 2.1rem clamp(1.45rem, 5vw, 2.55rem) 2.05rem !important;
    padding-top: 2.5rem !important;
    gap: 0.55rem;
    overflow: hidden !important;
    aspect-ratio: 433 / 500;
    min-height: 29rem;
    box-sizing: border-box;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.28s ease !important;
    align-items: center !important;
    text-align: center;
}

#about .about-story-card.about-story-card--hex-1 {
    --hex-accent: #fdb813;
}

#about .about-story-card.about-story-card--hex-2 {
    --hex-accent: #26a69a;
}

#about .about-story-card.about-story-card--hex-3 {
    --hex-accent: #2196f3;
}

#about .about-story-card.about-story-card--hex > * {
    position: relative;
    z-index: 1;
}

#about .about-story-card.about-story-card--hex:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: translateY(-3px) scale(1.01) !important;
}

/* Top-cap ribbon = exact same triangle as hex upper facet (50%–100%–0% @ y=0/25%) */
#about .about-story-card.about-story-card--hex::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(50% 0%, 100% 25%, 0% 25%);
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 0% 25%);
}

#about .about-story-card.about-story-card--hex-1::before {
    background: linear-gradient(
        180deg,
        rgba(253, 184, 19, 0.2) 0%,
        rgba(253, 184, 19, 0.08) 38%,
        rgba(253, 184, 19, 0.02) 72%,
        transparent 100%
    );
}

#about .about-story-card.about-story-card--hex-2::before {
    background: linear-gradient(
        180deg,
        rgba(38, 166, 154, 0.18) 0%,
        rgba(38, 166, 154, 0.07) 38%,
        rgba(38, 166, 154, 0.02) 72%,
        transparent 100%
    );
}

#about .about-story-card.about-story-card--hex-3::before {
    background: linear-gradient(
        180deg,
        rgba(33, 150, 243, 0.18) 0%,
        rgba(33, 150, 243, 0.07) 38%,
        rgba(33, 150, 243, 0.02) 72%,
        transparent 100%
    );
}

#about .about-story-card.about-story-card--hex::after {
    content: none !important;
    display: none !important;
}

#about .about-hex-icon {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    margin: 0.35rem auto 0.45rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem !important;
    line-height: 1;
    border-radius: 50% !important;
    color: var(--hex-accent) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

#about .about-story-card.about-story-card--hex-1 .about-hex-icon {
    background: rgba(253, 184, 19, 0.16) !important;
    border: 1px solid rgba(253, 184, 19, 0.42) !important;
}

#about .about-story-card.about-story-card--hex-2 .about-hex-icon {
    background: rgba(38, 166, 154, 0.14) !important;
    border: 1px solid rgba(38, 166, 154, 0.4) !important;
}

#about .about-story-card.about-story-card--hex-3 .about-hex-icon {
    background: rgba(33, 150, 243, 0.14) !important;
    border: 1px solid rgba(33, 150, 243, 0.4) !important;
}

#about .about-hex-icon i {
    color: inherit !important;
    font-weight: 400;
}

#about .about-hex-label {
    font-family: "Proxima Nova", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--hex-accent) !important;
    font-weight: 800 !important;
    max-width: 100% !important;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: auto !important;
    margin-right: auto !important;
    text-wrap: balance;
    line-height: 1.35 !important;
}

#about .about-story-title.about-hex-title {
    font-family: "Proxima Nova", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem) !important;
    line-height: 1.48 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0.15rem !important;
    text-align: center !important;
    text-wrap: balance;
}

#about .about-hex-body {
    font-family: Georgia, "Times New Roman", Times, serif !important;
    font-size: 0.8125rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin-top: 0.35rem !important;
    text-align: center !important;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    overflow: visible;
    text-wrap: balance;
}

#about .about-hex-index {
    margin-top: auto !important;
    padding-top: 0.55rem;
    width: 100%;
    text-align: center !important;
    font-family: "Proxima Nova", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(2.35rem, 5.5vw, 3.1rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    font-variant-numeric: tabular-nums;
    -webkit-text-fill-color: #0f172a !important;
}

@media (max-width: 767.98px) {
    #about .about-story-card.about-story-card--hex {
        max-width: min(25rem, 100%);
        min-height: 26.5rem;
        padding: 1.95rem clamp(1.25rem, 4.5vw, 2rem) 1.85rem !important;
        padding-top: 2.25rem !important;
    }

    #about .about-hex-body {
        font-size: 0.78rem !important;
    }
}
