/* ============================================================
   PRODUCT PAGE — shared modern design
   Used by the app/product detail pages (SharePreds, OpPreds,
   CPreds, TradeSim). All selectors are prefixed with .spd- to
   avoid collisions with global styles.
   ============================================================ */

/* ============================================
   HERO — dark professional (matches home page)
   ============================================ */
.spd-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    margin-bottom: 3rem;
}
.spd-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.10) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: spdGridMove 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}
.spd-hero-grid--soft { opacity: 0.25; }
@keyframes spdGridMove {
    from { transform: translate(0, 0); }
    to   { transform: translate(50px, 50px); }
}
/* Ambient glow behind hero content */
.spd-hero-glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0) 70%);
    pointer-events: none;
}

.spd-hero-title {
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.12;
}
.spd-hero-brand {
    display: block;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f59e0b; /* fallback for older browsers */
    text-shadow: none;
}
.spd-hero-tagline {
    display: block;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.spd-hero-accent-bar {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, var(--secondary-color), #f59e0b);
}
.text-center .spd-hero-accent-bar { margin-left: auto; margin-right: auto; }
@media (min-width: 992px) {
    .text-lg-start .spd-hero-accent-bar { margin-left: 0; }
}
.spd-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
}
@media (min-width: 992px) {
    .text-lg-start .spd-hero-subtitle { margin-left: 0; margin-right: 0; }
}

/* Hero app artwork */
.spd-hero-art::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 70%);
    z-index: 0;
}
.spd-hero-app-img {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease;
}
.spd-hero-art:hover .spd-hero-app-img { transform: translateY(-6px); }

/* ============================================
   CARDS — unified modern surface
   ============================================ */
.spd-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.spd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    border-color: rgba(30, 58, 138, 0.18);
}
.spd-card-feature { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07); }
.spd-card-feature:hover { transform: none; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07); }

.spd-page h2, .spd-page h3, .spd-page h4 { color: var(--primary-color); }

/* App overview icon tile */
.spd-overview-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.10), rgba(59, 130, 246, 0.14));
    line-height: 0;
}

/* Unified icon chips (replaces mismatched green/blue/pink circles) */
.spd-icon-chip {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.10), rgba(59, 130, 246, 0.14));
    color: var(--primary-color);
}
.spd-icon-chip-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 2rem;
}
.spd-icon-chip-gold {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(245, 158, 11, 0.18));
    color: var(--secondary-color);
}

/* Disclaimer callout */
.spd-disclaimer {
    background: rgba(201, 162, 39, 0.07);
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--text-color-light);
}

/* Bulleted feature lists inside cards / accordion */
.spd-check-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.spd-check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.spd-check-list li:last-child { margin-bottom: 0; }
.spd-check-list li::before {
    content: "\f26a"; /* bootstrap-icons check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* ============================================
   ACCORDION — clean modern
   ============================================ */
.spd-accordion .accordion-item {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.spd-accordion .accordion-button {
    border-radius: 12px;
    background: #fff;
    color: var(--text-color-dark);
    padding: 1rem 1.25rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.spd-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.05);
    box-shadow: none;
}
.spd-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.18);
}
.spd-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%231E3A8A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.spd-accordion .accordion-body {
    background: #fff;
    color: var(--text-color-light);
}

/* ============================================
   DOWNLOAD CTA BAND — bookends the dark hero
   ============================================ */
.spd-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.spd-cta-band h3, .spd-cta-band h4 { color: #ffffff; }
.spd-cta-text {
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
}

/* ============================================
   SHARED HOVER UTILITIES
   ============================================ */
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }

@media (max-width: 991.98px) {
    .spd-hero-glow { display: none; }
}
