/* Public homepage hero content (moved from the old standalone marketing/
   site). Every rule is scoped under .ev-landing -- this stylesheet loads
   in the same bundle as every other page, and several of its class names
   (.container, .card, .btn, .btn-primary) collide with Bootstrap/theme.css
   classes used app-wide, so nothing here may be left unscoped. */

:root {
    --ev-navy: #17203a;
    --ev-navy-soft: #232f52;
    --ev-radius-lg: 1.25rem;
    --ev-shadow-lg: 0 20px 40px -12px rgba(23, 32, 58, 0.18);
    --ev-max: 1160px;
}

.ev-landing {
    line-height: 1.55;
}

.ev-landing img, .ev-landing svg { max-width: 100%; display: block; }
.ev-landing a { color: var(--ev-accent-dark); }
.ev-landing h1, .ev-landing h2, .ev-landing h3, .ev-landing h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.75rem; }
.ev-landing p { margin: 0 0 1rem; color: var(--ev-text-muted); }

.ev-landing .container {
    width: 100%;
    max-width: var(--ev-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ev-landing .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ev-accent-dark);
    background: rgba(91, 110, 232, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ev-landing .section { padding: 3rem 0; }
.ev-landing .section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.ev-landing .section-head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.ev-landing .section-alt { background: var(--ev-body-bg); border-radius: var(--ev-radius-lg); }

/* ---------- Buttons ---------- */
.ev-landing .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.ev-landing .btn:active { transform: translateY(1px); }
.ev-landing .btn-primary { background: var(--ev-accent); border-color: var(--ev-accent); color: #fff; }
.ev-landing .btn-primary:hover { background: var(--ev-accent-dark); border-color: var(--ev-accent-dark); color: #fff; }
.ev-landing .btn-outline { background: transparent; border-color: var(--ev-card-border); color: #1f2433; }
.ev-landing .btn-outline:hover { border-color: var(--ev-accent); color: var(--ev-accent-dark); }
.ev-landing .btn-ghost-light { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); color: #fff; }
.ev-landing .btn-ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }
.ev-landing .btn-lg { padding: 0.9rem 1.75rem; font-size: 1.02rem; }
.ev-landing .btn-block { width: 100%; }

/* ---------- Hero ---------- */
.ev-landing .hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, #eef0fd 0%, #ffffff 55%);
    padding: 2.25rem 1.5rem 2.75rem;
    border-radius: var(--ev-radius-lg);
}
.ev-landing .hero > .container { padding: 0; position: relative; z-index: 1; }

/* Soft floating gradient blobs behind the hero content -- purely decorative. */
.ev-landing .hero-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.55;
    pointer-events: none;
}
.ev-landing .hero-blob-a {
    width: 240px;
    height: 240px;
    top: -70px;
    right: 6%;
    background: radial-gradient(circle, #c7cffb 0%, rgba(199,207,251,0) 70%);
    animation: ev-float-a 10s ease-in-out infinite;
}
.ev-landing .hero-blob-b {
    width: 190px;
    height: 190px;
    bottom: -60px;
    left: 3%;
    background: radial-gradient(circle, #bfe9d8 0%, rgba(191,233,216,0) 70%);
    animation: ev-float-b 12s ease-in-out infinite;
}
@keyframes ev-float-a {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-16px, 20px); }
}
@keyframes ev-float-b {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(14px, -16px); }
}

.ev-landing .hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.ev-landing .hero h1 {
    font-size: clamp(1.9rem, 5.5vw, 3rem);
    letter-spacing: -0.01em;
}

.ev-landing .hero .lead {
    font-size: 1.05rem;
    max-width: 46ch;
}

.ev-landing .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
}

.ev-landing .hero-note {
    font-size: 0.85rem;
    color: var(--ev-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ev-landing .hero-note svg { width: 18px; height: 18px; flex-shrink: 0; }

.ev-landing .hero-art {
    justify-self: center;
    width: 100%;
    max-width: 340px;
    animation: ev-bob 6s ease-in-out infinite;
}
@keyframes ev-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Ripple around the "cast vote" checkmark, and a light pop on the OTP badge --
   both are inline SVG groups in Home/Index.cshtml (.pulse-ring / .otp-badge). */
.ev-landing .hero-art .pulse-ring {
    transform-origin: center;
    animation: ev-pulse-ring 2.4s ease-out infinite;
}
@keyframes ev-pulse-ring {
    0% { opacity: 0.8; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.6); }
}
.ev-landing .hero-art .otp-badge {
    transform-origin: center;
    animation: ev-badge-pop 2.8s ease-in-out infinite;
}
@keyframes ev-badge-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Active promotional offer banner, shown above the hero H1 when a
   SignupBonus PromotionOffer is currently active (see HomeController). */
.ev-landing .hero-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #fff4e0, #ffe9c7);
    border: 1px solid #f3c976;
    color: #7a4a00;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    animation: ev-badge-pop 2.8s ease-in-out infinite;
}
.ev-landing .hero-promo i { color: #d9822b; }

/* Small "live" pulse dot next to the hero eyebrow label. */
.ev-landing .eyebrow.live { display: inline-flex; align-items: center; gap: 0.45rem; }
.ev-landing .eyebrow .live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ev-accent-dark);
}
.ev-landing .eyebrow .live-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid var(--ev-accent-dark);
    animation: ev-ping 1.8s ease-out infinite;
}
@keyframes ev-ping {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.ev-landing [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ev-landing [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger siblings within the same grid/list without needing per-item markup. */
.ev-landing [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.ev-landing [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.ev-landing [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.ev-landing [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.ev-landing [data-reveal]:nth-child(6) { transition-delay: 0.4s; }
.ev-landing [data-reveal]:nth-child(7) { transition-delay: 0.48s; }
.ev-landing [data-reveal]:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
    .ev-landing [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ev-landing .hero-blob,
    .ev-landing .hero-art,
    .ev-landing .hero-art .pulse-ring,
    .ev-landing .hero-art .otp-badge,
    .ev-landing .eyebrow .live-dot::after,
    .ev-landing .cta-band,
    .ev-landing .community-track {
        animation: none;
    }
    /* The second, duplicate copy of the chips exists only to make the
       scroll loop seamless -- with the animation off it would otherwise
       just sit there statically repeating the same list right after
       itself. */
    .ev-landing .community-track .community-chip-dup {
        display: none;
    }
}

@media (min-width: 960px) {
    .ev-landing .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
    .ev-landing .hero-art { justify-self: end; max-width: 400px; }
}

/* ---------- Trust strip ---------- */
.ev-landing .trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.5rem 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--ev-card-border);
}
.ev-landing .trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2433;
}
.ev-landing .trust-item svg { width: 22px; height: 22px; color: var(--ev-accent-dark); flex-shrink: 0; }

@media (min-width: 720px) {
    .ev-landing .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Feature cards ---------- */
.ev-landing .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .ev-landing .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .ev-landing .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.ev-landing .card {
    background: var(--ev-card-bg);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ev-landing .feature-grid .card:hover,
.ev-landing .price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ev-shadow-lg);
}

.ev-landing .feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(91, 110, 232, 0.12);
    color: var(--ev-accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}
.ev-landing .feature-icon svg { width: 24px; height: 24px; }
.ev-landing .feature-grid .card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.ev-landing .card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.ev-landing .card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- How it works ---------- */
.ev-landing .steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 720px) {
    .ev-landing .steps { grid-template-columns: repeat(3, 1fr); }
}

.ev-landing .step {
    position: relative;
    padding-left: 3.25rem;
}

.ev-landing .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--ev-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.ev-landing .step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.ev-landing .step p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Security band ---------- */
.ev-landing .security-band {
    background: var(--ev-navy);
    color: #fff;
    border-radius: var(--ev-radius-lg);
    padding: 2.25rem 1.5rem;
}
.ev-landing .security-band .section-head h2 { color: #fff; }
.ev-landing .security-band .section-head p { color: #b9c0dd; }

.ev-landing .security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .ev-landing .security-grid { grid-template-columns: repeat(2, 1fr); }
}

.ev-landing .security-item {
    display: flex;
    gap: 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--ev-radius);
    padding: 1.1rem 1.25rem;
}
.ev-landing .security-item svg { width: 26px; height: 26px; color: #9fb0ff; flex-shrink: 0; }
.ev-landing .security-item h3 { color: #fff; font-size: 0.98rem; margin-bottom: 0.3rem; }
.ev-landing .security-item p { color: #c3c9e6; font-size: 0.86rem; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.ev-landing .pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ev-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.ev-landing .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 860px) {
    .ev-landing .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.ev-landing .price-card {
    display: flex;
    flex-direction: column;
    position: relative;
}
.ev-landing .price-card.featured {
    border-color: var(--ev-accent);
    box-shadow: var(--ev-shadow-lg);
}
.ev-landing .price-card .badge-pop {
    position: absolute;
    top: -0.75rem;
    right: 1.25rem;
    background: var(--ev-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.ev-landing .price-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.ev-landing .price-card .price { font-size: 2rem; font-weight: 800; margin: 0.5rem 0 0.25rem; color: #1f2433; }
.ev-landing .price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--ev-text-muted); }
.ev-landing .price-card .price-desc { font-size: 0.85rem; margin-bottom: 1.25rem; }
.ev-landing .price-card ul { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1 1 auto; }
.ev-landing .price-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
    color: #1f2433;
}
.ev-landing .price-card li svg { width: 18px; height: 18px; color: #198754; flex-shrink: 0; margin-top: 0.1rem; }

/* ---------- Top communities (featured logo strip) ---------- */
.ev-landing .community-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}
.ev-landing .community-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2433;
}
.ev-landing .community-chip img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}
.ev-landing .community-chip .community-fallback-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(91, 110, 232, 0.12);
    color: var(--ev-accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ev-landing .community-chip .community-fallback-icon svg { width: 18px; height: 18px; }
.ev-landing .community-chip .community-sub { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ev-text-muted); }

/* Auto-scrolling variant -- used instead of the plain wrapped .community-strip
   once there are enough featured communities that a static row would either
   wrap awkwardly or need to be cut off (see Home/Index.cshtml). The chip
   list is rendered twice back-to-back; animating exactly -50% of the
   track's own width scrolls through both copies at a constant, seamless
   loop. Fades at each edge signal "there's more" without a hard clip line. */
.ev-landing .community-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ev-landing .community-track {
    display: flex;
    width: max-content;
    gap: 1.5rem 2.5rem;
    animation: ev-community-scroll linear infinite;
}
.ev-landing .community-marquee:hover .community-track { animation-play-state: paused; }
.ev-landing .community-track .community-chip { flex-shrink: 0; }
@keyframes ev-community-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Testimonials ---------- */
.ev-landing .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .ev-landing .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
    .ev-landing .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.ev-landing .testimonial-card { display: flex; flex-direction: column; }
.ev-landing .testimonial-stars { color: #f5a623; font-size: 0.9rem; margin-bottom: 0.6rem; letter-spacing: 0.1em; }
.ev-landing .testimonial-quote { font-size: 0.92rem; flex: 1 1 auto; }
.ev-landing .testimonial-quote::before { content: '\201C'; }
.ev-landing .testimonial-quote::after { content: '\201D'; }
.ev-landing .testimonial-author { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.75rem; }
.ev-landing .testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.ev-landing .testimonial-author-name { font-weight: 700; font-size: 0.9rem; color: #1f2433; }
.ev-landing .testimonial-author-role { font-size: 0.8rem; color: var(--ev-text-muted); }

/* ---------- FAQ ---------- */
.ev-landing .faq-list { max-width: 760px; margin: 0 auto; }
.ev-landing .faq-item {
    border: 1px solid var(--ev-card-border);
    border-radius: var(--ev-radius);
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
}
.ev-landing .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2433;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}
.ev-landing .faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--ev-text-muted); }
.ev-landing .faq-item.open .faq-question svg { transform: rotate(180deg); }
.ev-landing .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.ev-landing .faq-answer p { padding: 0 1.25rem 1.1rem; margin: 0; font-size: 0.9rem; }
.ev-landing .faq-item.open .faq-answer { max-height: 400px; }

/* ---------- CTA band ---------- */
.ev-landing .cta-band {
    background: linear-gradient(120deg, var(--ev-accent) 0%, var(--ev-accent-dark) 50%, var(--ev-accent) 100%);
    background-size: 200% 200%;
    animation: ev-gradient-shift 8s ease infinite;
    border-radius: var(--ev-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #fff;
}
@keyframes ev-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.ev-landing .cta-band h2 { color: #fff; }
.ev-landing .cta-band p { color: rgba(255,255,255,0.85); max-width: 520px; margin-left: auto; margin-right: auto; }
.ev-landing .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
