/* ============================================================
   AYUDO-INSPIRED MODERN DESIGN SYSTEM — Stocgle
   Premium polish layer: section pills, dark trust section,
   CTA banner, footer gradient, Lucide icon containers.
   ============================================================ */

/* ── Section pill label ──────────────────────────────────── */
.section-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(14,165,233,0.10));
    border: 1px solid rgba(99,102,241,0.22);
    color: #4f46e5;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
    /* Center when it's a direct child of a section inner */
    position: relative;
}

/* Center pills inside section containers */
.figma-section-inner > .section-pill {
    display: flex;
    width: fit-content;
    margin: 0 auto 14px;
}

/* On dark backgrounds, invert the pill */
.section-trust-dark .section-pill {
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15));
    border-color: rgba(14,165,233,0.3);
    color: #38bdf8;
}

/* On dark backgrounds in .hdr, style the pill correctly */
.hdr .section-pill {
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.15));
    border-color: rgba(14,165,233,0.3);
    color: #38bdf8;
    margin-bottom: 0;
}

/* ── Lucide icon containers ──────────────────────────────── */
.lucide-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.lucide-icon-wrap svg,
.lucide-icon-wrap i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}
.lucide-icon-wrap.blue   { background: rgba(37,99,235,0.10);  border: 1.5px solid rgba(37,99,235,0.20); }
.lucide-icon-wrap.blue svg, .lucide-icon-wrap.blue i   { color: #2563eb; }
.lucide-icon-wrap.green  { background: rgba(22,163,74,0.10);  border: 1.5px solid rgba(22,163,74,0.20); }
.lucide-icon-wrap.green svg, .lucide-icon-wrap.green i  { color: #16a34a; }
.lucide-icon-wrap.red    { background: rgba(220,38,38,0.10);  border: 1.5px solid rgba(220,38,38,0.20); }
.lucide-icon-wrap.red svg, .lucide-icon-wrap.red i    { color: #dc2626; }
.lucide-icon-wrap.amber  { background: rgba(245,158,11,0.10); border: 1.5px solid rgba(245,158,11,0.20); }
.lucide-icon-wrap.amber svg, .lucide-icon-wrap.amber i  { color: #d97706; }
.lucide-icon-wrap.teal   { background: rgba(14,165,233,0.10); border: 1.5px solid rgba(14,165,233,0.20); }
.lucide-icon-wrap.teal svg, .lucide-icon-wrap.teal i   { color: #0ea5e9; }
.lucide-icon-wrap.purple { background: rgba(99,102,241,0.10); border: 1.5px solid rgba(99,102,241,0.20); }
.lucide-icon-wrap.purple svg, .lucide-icon-wrap.purple i { color: #6366f1; }

/* ── How It Works — step numbers ────────────────────────── */
.figma-how-step-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0ea5e9;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* ── Section spacing (match Ayudo's breathing room) ─────── */
.section-why-figma,
.section-pulse-figma,
.section-ai-figma,
.section-how-figma {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ── Why Stocgle — clean white + border separator ──────── */
.section-why-figma {
    background: #ffffff;
    border-top: 1px solid rgba(14,165,233,0.08);
    border-bottom: 1px solid rgba(14,165,233,0.08);
}

/* ── Market Pulse section heading color ─────────────────── */
.section-pulse-figma .figma-section-title {
    color: #f8fafc;
}
.section-pulse-figma .figma-section-subtitle {
    color: #94a3b8;
}

/* Section backgrounds are set in premium_theme.css (loads last) */

/* ── Dark navy stats / trust section ────────────────────── */
.section-trust-dark {
    background: #0f172a !important;
    padding: 5rem 0 !important;
}
.section-trust-dark .figma-section-title {
    color: #f8fafc !important;
}
.section-trust-dark .figma-section-subtitle {
    color: #94a3b8 !important;
}
.section-trust-dark .figma-trust-card {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
}
.section-trust-dark .big-number {
    color: #0ea5e9 !important;
    text-shadow: 0 0 28px rgba(14,165,233,0.40);
    font-size: 2.5rem !important;
    font-weight: 800 !important;
}
.section-trust-dark .label {
    color: #94a3b8 !important;
}
/* Override icon wrap to all use teal on dark bg */
.section-trust-dark .icon-wrap {
    background: rgba(14,165,233,0.12) !important;
    border: 1.5px solid rgba(14,165,233,0.25) !important;
}
.section-trust-dark .icon-wrap svg {
    stroke: #0ea5e9 !important;
}
.section-trust-dark .figma-trust-disclaimer {
    color: #475569 !important;
    margin-top: 2.5rem;
}

/* ── CTA Banner section (before footer) ─────────────────── */
.section-cta-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 50%, #e0f2fe 100%);
    padding: 5.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Subtle orb behind CTA */
.section-cta-banner::before {
    content: '';
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner-heading {
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 auto 1rem;
    max-width: 640px;
}
.cta-banner-sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 auto 2rem;
    max-width: 460px;
}
.section-cta-banner .hero-figma-btn-primary {
    margin: 0 auto;
    display: inline-flex;
}

/* ── Footer gradient ─────────────────────────────────────── */
.footer-figma {
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 50%, #ecfeff 100%) !important;
    border-top: 1px solid rgba(99,102,241,0.10);
}
.footer-figma h3 {
    color: #0f172a !important;
}
.footer-figma > .footer-figma-inner > .footer-figma-grid > div > p {
    color: #475569;
}
.footer-figma a {
    color: #475569 !important;
    transition: color 0.15s;
}
.footer-figma a:hover {
    color: #0ea5e9 !important;
}
.footer-figma .footer-figma-legal {
    color: #64748b;
}

/* ── Nav button polish ───────────────────────────────────── */
.btn-dark-outline {
    border-radius: 8px !important;
}

/* ── How It Works — step circle → icon wrap ─────────────── */
/* Allow figma-how-step to use flex column + centered icon */
.figma-how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.figma-how-step .lucide-icon-wrap {
    margin-bottom: 0.75rem;
}
.figma-how-step h4 {
    margin-bottom: 0.375rem;
}

/* ── Why Stocgle cards — ensure left-aligned text ──────── */
.figma-why-card {
    text-align: left;
}
.figma-why-card .lucide-icon-wrap {
    /* Center on card's own axis (it's full-width of card) */
}

/* ── AI section: avatar icon color (white icon on gradient) */
.figma-ai-card-avatar svg,
.figma-ai-card-avatar i {
    color: #ffffff;
    stroke: #ffffff;
}

/* ── Responsive: section pills stack nicely ─────────────── */
@media (max-width: 640px) {
    .section-cta-banner { padding: 3.5rem 1.5rem; }
    .cta-banner-heading { font-size: 1.75rem; }
    .section-trust-dark { padding: 3rem 0 !important; }
    .section-why-figma,
    .section-pulse-figma,
    .section-ai-figma,
    .section-how-figma { padding-top: 3rem; padding-bottom: 3rem; }
}
