/* ============================================
   HERO CAROUSEL — seamless continuous marquee
   Three audience cards loop endlessly; the sides
   are always filled, so it never looks unbalanced.
   Matches site card language: white cards, orange
   accent, Geist font. (LAT-1181)
   ============================================ */

/* Stage: visible window with soft fade on both edges */
.hero-carousel-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Track: the endlessly scrolling ribbon (cards cloned by JS for a seamless loop) */
.hero-carousel-track {
    display: flex;
    align-items: stretch;      /* all cards share the tallest height — always balanced */
    width: max-content;
    margin: 0 auto;            /* centered fallback before the set is doubled */
    will-change: transform;
}

/* The loop only runs once JS has doubled the set (so translateX(-50%) is seamless) */
.hero-carousel-track.is-looping {
    animation: hero-marquee 42s linear infinite;
}

/* Pause when the visitor hovers so they can read */
.hero-carousel-stage:hover .hero-carousel-track.is-looping {
    animation-play-state: paused;
}

@keyframes hero-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }  /* exactly one set — seamless because the set repeats */
}

/* Individual cards — match site card language */
.hero-card {
    flex-shrink: 0;
    width: 480px;
    margin-right: 28px;        /* margin (not flex gap) keeps the two sets identical for a clean loop */
    background: var(--bg-white, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    padding: 32px 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.hero-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* Top accent stripe */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
}

.hero-card[data-segment="business"]::before { background: var(--primary-orange, #C65000); }
.hero-card[data-segment="academic"]::before { background: var(--accent-blue, #0077CC); }
.hero-card[data-segment="explore"]::before  { background: var(--tier-green, #059669); }

/* Segment pill badge */
.hero-card-segment {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero-card[data-segment="business"] .hero-card-segment { background: rgba(198, 80, 0, 0.08); color: var(--primary-orange, #C65000); }
.hero-card[data-segment="academic"] .hero-card-segment { background: rgba(0, 119, 204, 0.08); color: var(--accent-blue, #0077CC); }
.hero-card[data-segment="explore"] .hero-card-segment  { background: rgba(5, 150, 105, 0.08); color: var(--tier-green, #059669); }

/* Card title */
.hero-card-title {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 4px 0;
}

/* Subtitle — accent punchline */
.hero-card-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 18px 0;
}

.hero-card[data-segment="business"] .hero-card-subtitle { color: var(--primary-orange, #C65000); }
.hero-card[data-segment="academic"] .hero-card-subtitle { color: var(--accent-blue, #0077CC); }
.hero-card[data-segment="explore"] .hero-card-subtitle  { color: var(--tier-green, #059669); }

/* Description */
.hero-card-description {
    font-size: 0.92rem;
    color: var(--text-secondary, #4b5563);
    line-height: 1.7;
    margin: 0 0 22px 0;
}

/* Trust chips pinned to the bottom */
.hero-card-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hero-card-trust .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light, #636b74);
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
}

.hero-card-trust .trust-chip .chip-icon { font-size: 0.8rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .hero-card { width: 400px; padding: 28px 26px 22px; }
    .hero-card-title { font-size: 1.6rem; }
    .hero-card-subtitle { font-size: 1.1rem; }
}

@media (max-width: 640px) {
    .hero-carousel-stage { padding: 12px 0; }
    .hero-card { width: 290px; margin-right: 18px; padding: 24px 20px 20px; }
    .hero-card-title { font-size: 1.4rem; }
    .hero-card-subtitle { font-size: 1rem; }
    .hero-card-description { font-size: 0.85rem; }
    .hero-card-trust { gap: 6px; }
    .hero-card-trust .trust-chip { font-size: 0.68rem; padding: 3px 10px; }
}
