/* ================================================================
   GREEN BUDGET — evervault-mobile-parity discipline
   Loaded LAST so these rules win.
   Allowed green placements (kept untouched):
     - .ev-cta-btn--primary, .ev-hero-btn--primary (CTAs)
     - .ev-fab (floating call button)
     - .ev-hero-gradient (single tight glow only — see hero-cards.css)
     - .ev-hero-label::before pulse dot (one location)
     - one ev-sect-eyebrow--green slot (hero/services)
     - .ev-bento-viz-tier--top accent (results metric)
   Everything else neutralized below.
   ================================================================ */

/* --- Tile icons: white-on-dark plate, neutral stroke --- */
.ev-tile-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: var(--ln-text-secondary) !important;
}
.ev-tile-icon img,
.ev-tile-icon svg {
    filter: brightness(0) invert(1) opacity(0.85);
}
.ev-tile:hover .ev-tile-icon {
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
}

/* --- Feature eyebrows: subtle purple-grey instead of saturated green --- */
.ev-feature-eyebrow {
    color: var(--ln-text-tertiary) !important;
}

/* --- Split eyebrow + checkmark icons: neutral white --- */
.ev-split-eyebrow {
    color: var(--ln-text-tertiary) !important;
}
.ev-split-item-title svg {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- Process pillar number: neutral plate, neutral text --- */
.ev-pillar-num {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--ln-text-secondary) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* --- Pillar pulsing orb halo: neutral white glow, subtle, not green --- */
.ev-pillar-orb::after {
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.12),
        0 0 36px rgba(255, 255, 255, 0.04) !important;
}

/* --- Section glow: replace overpowering green ev-glow with subtle ambient --- */
.ev-glow,
.ev-glow--strong {
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        rgba(165, 132, 255, 0.06) 0,
        rgba(165, 132, 255, 0.02) 35%,
        transparent 70%
    ) !important;
}
.ev-glow--blue {
    background: radial-gradient(
        ellipse 70% 60% at 50% 40%,
        rgba(111, 142, 255, 0.06) 0,
        rgba(111, 142, 255, 0.02) 35%,
        transparent 70%
    ) !important;
}

/* --- Why Matrix gradient blob: kill it (was a 60FPS green wash) --- */
.ev-gradient-blob {
    background: radial-gradient(
        ellipse 50% 40% at 50% 50%,
        rgba(165, 132, 255, 0.05) 0,
        transparent 70%
    ) !important;
    animation: none !important;
}

/* --- Section transitions: neutral white wash --- */
.ev-section-transition::before {
    background: radial-gradient(
        ellipse 60% 80% at 50% 50%,
        rgba(255, 255, 255, 0.06) 0,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 70%
    ) !important;
}

/* --- Divider glow: neutral --- */
.ev-divider-glow {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    ) !important;
}

/* --- Gyroscope (will be replaced with ScoreArc in Phase 4): neutralize for now --- */
.ev-gyro-orb {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0.18) 60%, transparent 100%) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 16px rgba(255, 255, 255, 0.08) !important;
}
.ev-gyro-orb--dim {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0.08) 60%, transparent 100%) !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.12) !important;
}
.ev-gyro-center {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0, transparent 70%) !important;
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.08) !important;
}

/* --- Pulse rings around the credit card visual: subtle white instead of bright green --- */
.ev-pulse-ring {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* --- Bento metric values: white; only the wide/top tier stays branded --- */
.ev-metric-val {
    color: var(--ln-text-primary) !important;
}
/* Keep brand color on top-tier results metric only */
.ev-bento-viz-tier--top .ev-bento-viz-tier-pct {
    color: var(--ln-accent-brand) !important;
}

/* --- Card brackets and circuit lines: white at low alpha --- */
.ev-card-bracket--tl,
.ev-card-bracket--tr,
.ev-card-bracket--bl,
.ev-card-bracket--br {
    border-color: rgba(255, 255, 255, 0.18) !important;
}
.ev-card-circuits path {
    stroke: rgba(255, 255, 255, 0.10) !important;
}
.ev-card-circuits path.accent {
    stroke: rgba(255, 255, 255, 0.15) !important;
}
.ev-card-numbers {
    color: rgba(255, 255, 255, 0.30) !important;
}
.ev-card--white .ev-card-numbers {
    color: rgba(0, 0, 0, 0.30) !important;
}

/* --- Nav active indicator: neutral white glow --- */
.ln-nav-active-indicator {
    background: radial-gradient(
        ellipse 80% 100% at 50% 50%,
        rgba(255, 255, 255, 0.85) 0,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    ) !important;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.5),
        0 0 24px rgba(255, 255, 255, 0.2) !important;
}

/* --- Mobile nav active link border: neutral --- */
.ln-mobile-link.active::before {
    background: rgba(255, 255, 255, 0.7) !important;
}
.ln-mobile-cta:hover {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18) !important;
}

/* --- Footer glow: neutral --- */
.ln-footer::before {
    background: radial-gradient(
        ellipse 60% 80% at 50% 100%,
        rgba(165, 132, 255, 0.08) 0,
        transparent 70%
    ) !important;
}

/* --- Kill ev-neon-pulse animation everywhere (was brightening green elements every 4.5s) --- */
.ev-hero-gradient,
.ev-glow,
.ev-glow--strong,
.ev-gradient-blob {
    animation: none !important;
}

/* --- Hero label dot: keep this one green pulse (allowed placement) --- */
/* (no override needed; stays as defined in evervault-unify.css) */

/* --- Eyebrow color: only ev-sect-eyebrow--green stays green --- */
.ev-sect-eyebrow {
    color: var(--ln-text-tertiary) !important;
}
.ev-sect-eyebrow--green {
    color: var(--ln-accent-brand) !important;  /* allowed — single brand-cue eyebrow */
}

/* --- Final-CTA glow: bright but contained, single tasteful gradient --- */
.ev-final-cta::before {
    background: radial-gradient(
        ellipse 60% 50% at 50% 100%,
        rgba(34, 178, 133, 0.20) 0,
        rgba(34, 178, 133, 0.06) 40%,
        transparent 75%
    ) !important;
    filter: blur(40px) !important;
}

/* ================================================================
   CARD FRAMING — universal containment (Phase 3)
   ================================================================ */

/* Each feature in the 3-up services row gets a contained card on mobile */
@media (max-width: 768px) {
    .ev-feature {
        background: rgba(255, 255, 255, 0.02);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        border-radius: 20px;
        padding: 24px;
        position: relative;
        overflow: hidden;
        margin-bottom: 16px;
    }
    .ev-feature::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(
            ellipse 60% 40% at 50% -10%,
            rgba(165, 132, 255, 0.06),
            transparent 70%
        );
        pointer-events: none;
        z-index: 0;
    }
    .ev-feature > * { position: relative; z-index: 1; }

    /* Resources cards: bump gap, add subtle border, ensure radius preserved */
    .ev-features-3[style*="repeat(4"] > * {
        background: rgba(255, 255, 255, 0.025) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        border-radius: 16px !important;
        margin-bottom: 12px;
    }

    /* Bento cells: keep border on mobile (was being stripped) */
    .ev-bento {
        border-radius: 20px !important;
        gap: 0 !important;
    }
    .ev-bento-cell {
        background: rgba(255, 255, 255, 0.02) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
        border-radius: 18px !important;
        margin-bottom: 12px;
        padding: 28px !important;
    }

    /* Trust quote already framed; harmonize radius */
    .ev-trust-quote {
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    }

    /* Process pillars: each pillar gets a subtle card on mobile */
    .ev-pillars > .ln-reveal-child,
    .ev-pillars > div {
        background: rgba(255, 255, 255, 0.02);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        padding: 20px 24px;
        margin-bottom: 12px;
        position: relative;
    }
    /* Vertical connecting line between pillars */
    .ev-pillars {
        position: relative;
    }
    .ev-pillars::before {
        content: '';
        position: absolute;
        left: 36px;
        top: 32px;
        bottom: 32px;
        width: 1px;
        background: linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,0.08) 20%,
            rgba(255,255,255,0.08) 80%,
            transparent
        );
        pointer-events: none;
        z-index: 0;
    }

    /* Why-Matrix split items: each checkmark item in a quiet panel */
    .ev-split-grid > .ln-reveal-child {
        background: rgba(255, 255, 255, 0.02);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        border-radius: 14px;
        padding: 16px;
    }
}

/* ================================================================
   SECTION VISUALS — Phase 4 styles (score arc + metric chart)
   ================================================================ */

/* Score-arc gauge (services feature 2) */
.ev-arc-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    position: relative;
}
.ev-arc-svg {
    width: 200px;
    height: auto;
    display: block;
    overflow: visible;
}
.ev-arc-fg {
    transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 6px rgba(34, 214, 138, 0.35));
}
.ev-arc-readout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -28px;
}
.ev-arc-num {
    font-family: var(--ln-font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--ln-text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ev-arc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ln-text-tertiary);
    margin-top: 6px;
}

/* Metric chart (bento "Proven Results" wide cell) */
.ev-mchart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: end;
    height: 100%;
    width: 100%;
    padding: 16px;
}
.ev-mchart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ev-mchart-bar {
    width: 100%;
    max-width: 36px;
    height: var(--bar-pct, 0%);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(
        180deg,
        rgba(34, 178, 133, 0.85) 0%,
        rgba(34, 178, 133, 0.45) 70%,
        rgba(34, 178, 133, 0.15) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--bar-i, 0) * 100ms);
}
.ev-mchart.is-active .ev-mchart-bar { transform: scaleY(1); }
.ev-mchart-amount {
    font-family: var(--ln-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--ln-text-primary);
    letter-spacing: -0.01em;
}
.ev-mchart-name {
    font-size: 10px;
    color: var(--ln-text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Footer brand + tagline above the column grid */
.ln-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ln-border-subtle);
}
.ln-footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ln-footer-tagline {
    font-size: 14px;
    color: var(--ln-text-tertiary);
    line-height: 1.5;
    max-width: 360px;
}
@media (max-width: 768px) {
    .ln-footer-brand {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .ln-footer-tagline { font-size: 13px; }
}

/* Live-pulse dot — used in calculator browser bar AND footer status */
.ev-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22B285;
    box-shadow: 0 0 0 0 rgba(34, 178, 133, 0.5);
    animation: ev-live-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ev-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 178, 133, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 178, 133, 0); }
}

/* Footer status row */
.ln-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ln-text-tertiary);
    letter-spacing: 0.02em;
}
@media (max-width: 768px) {
    .ln-footer-status { font-size: 11px; }
}

/* Resources card icons */
.ev-resource {
    position: relative;
}
.ev-resource-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}
.ev-resource-ico svg {
    width: 22px;
    height: 22px;
}

/* Trust marks — social proof bar (replaces text-only marquee) */
.ev-trust-marks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}
.ev-trust-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--ln-text-secondary);
    transition: background 0.2s, box-shadow 0.2s;
}
.ev-trust-mark:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ev-trust-mark-ico {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}
.ev-trust-mark-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ln-text-tertiary);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
@media (max-width: 480px) {
    .ev-trust-marks { gap: 6px; }
    .ev-trust-mark { padding: 14px 6px; border-radius: 12px; }
    .ev-trust-mark-ico { width: 22px; height: 22px; }
    .ev-trust-mark-label { font-size: 10.5px; }
}

/* Trust pills (replaces 4-chip badge row) */
.ev-trust-pills {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin: 8px auto 32px;
    flex-wrap: nowrap;
}
.ev-trust-pill {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
}
.ev-trust-pill-mark {
    font-family: var(--ln-font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ln-text-primary);
    letter-spacing: -0.01em;
    line-height: 1;
}
.ev-trust-pill-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ln-text-tertiary);
}
@media (max-width: 480px) {
    .ev-trust-pills { gap: 8px; }
    .ev-trust-pill { padding: 12px 10px; min-width: 0; flex: 1 1 0; }
    .ev-trust-pill-mark { font-size: 16px; }
}

/* Pulsing-card visual (re-style for mobile contained box) */
@media (max-width: 768px) {
    .ev-pulse-card-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ev-pulse-card {
        width: 200px;
        height: 124px;
        border-radius: 12px;
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.10),
            0 8px 30px rgba(0, 0, 0, 0.4);
        padding: 16px;
        position: relative;
        z-index: 2;
        animation: ev-card-float 4s ease-in-out infinite;
    }
    .ev-pulse-card-chip {
        width: 26px;
        height: 19px;
        border-radius: 3px;
        background: linear-gradient(135deg, #c9a84c, #f0d078, #c9a84c);
        margin-bottom: 18px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    }
    .ev-pulse-card-number {
        font-size: 11px;
        font-family: var(--ln-font-mono, monospace);
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0.1em;
        margin-bottom: 14px;
    }
    .ev-pulse-card-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .ev-pulse-card-name {
        font-size: 9px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .ev-pulse-card-exp {
        font-size: 9px;
        color: rgba(255, 255, 255, 0.4);
        font-family: var(--ln-font-mono, monospace);
    }
    .ev-pulse-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px;
        height: 124px;
        border-radius: 12px;
        transform: translate(-50%, -50%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        z-index: 1;
    }
    .ev-pulse-ring--1 { animation: ev-pulse-expand 3s ease-out infinite; }
    .ev-pulse-ring--2 { animation: ev-pulse-expand 3s ease-out 1s infinite; }
    .ev-pulse-ring--3 { animation: ev-pulse-expand 3s ease-out 2s infinite; }
}
@keyframes ev-pulse-expand {
    0%   { width: 200px; height: 124px; opacity: 0.5; border-color: rgba(255, 255, 255, 0.25); }
    100% { width: 320px; height: 230px; opacity: 0;   border-color: rgba(255, 255, 255, 0); }
}
@keyframes ev-card-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Final-CTA gradient card on mobile (replaces flat centered text) */
@media (max-width: 768px) {
    .ev-final-cta {
        border-radius: 28px !important;
        padding: 48px 24px !important;
        margin: 8px 0;
        background:
            radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120, 255, 200, 0.18) 0, rgba(34, 178, 133, 0.08) 35%, transparent 70%),
            linear-gradient(180deg, rgba(34, 178, 133, 0.08), rgba(34, 178, 133, 0.02)) !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.10),
            0 30px 60px rgba(0, 0, 0, 0.4) !important;
    }
    .ev-final-cta-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    .ev-final-cta-buttons .ev-cta-btn {
        width: auto !important;
        flex-shrink: 0;
        padding: 0 18px !important;
        height: 40px !important;
        font-size: 13.5px !important;
    }
    .ev-final-cta-link {
        font-size: 13.5px !important;
        white-space: nowrap;
        height: 40px;
        display: inline-flex;
        align-items: center;
    }
}

/* Bento icons: neutralize green tint, render as white-on-dark line art */
.ev-bento-icon {
    filter: brightness(0) invert(1) opacity(0.78);
}

/* Section eyebrow: keep --green variant green, default neutral
   (lines after the .ev-sect-eyebrow base rule earlier in this file). */

/* Hero title wrap fix: allow tighter line-break behavior on small screens.
   The current 32px size on a 390px viewport with the long phrase
   "Unsecured Business Funding" wraps to 2 lines — fine. But
   "Fund your business with a first-class capital stack" was 4 lines.
   Allow text balancing for cleaner ragged lines. */
@media (max-width: 768px) {
    .ev-hero-title,
    .ev-sect-title,
    .ev-trust-title,
    .ev-final-cta-title {
        text-wrap: balance;
        text-wrap: pretty;  /* progressive enhancement */
    }
}

/* Logo bar marquee: reduce font + truncate so 3-col grid items fit on mobile */
@media (max-width: 480px) {
    .ev-logo-marquee,
    .ev-logo-marquee-track {
        padding: 0 4px !important;
    }
    .ev-logo-item {
        font-size: 11px !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        padding: 6px 4px !important;
        text-align: center !important;
    }
}
