/* ===== Support & Documentation — sup- prefix ===== */

/* Hero — matches site-wide hero system */
.sup-hero { position: relative; overflow: hidden; background: var(--color-dark-bg, #050210); }
.sup-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(90,120,220,.35) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 70%, rgba(70,100,210,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(130,160,240,.12) 0%, transparent 45%);
    pointer-events: none;
    animation: supOrbDrift 14s ease-in-out infinite alternate;
}
@keyframes supOrbDrift { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(-2%,3%); } }
.sup-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* Orbital SVG — layered pages with floating bookmarks */
.sup-orbitals { position: absolute; top: 50%; left: 50%; width: min(100%, 900px); height: auto; aspect-ratio: 2/1; transform: translate(-50%,-50%); pointer-events: none; opacity: .55; z-index: 1; }
.sup-page { animation: supPageFloat 6s ease-in-out infinite; }
.sup-page-2 { animation-delay: -2s; }
.sup-page-3 { animation-delay: -4s; }
@keyframes supPageFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sup-orbit-1 { animation: supOrbitSpin 26s linear infinite; }
.sup-orbit-2 { animation: supOrbitSpin 34s linear infinite reverse; }
@keyframes supOrbitSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.sup-mark { animation: supMarkPulse 3s ease-in-out infinite; }
.sup-mark-2 { animation-delay: -.6s; }
.sup-mark-3 { animation-delay: -1.2s; }
.sup-mark-4 { animation-delay: -1.8s; }
@keyframes supMarkPulse { 0%, 100% { opacity: 1; r: 4; } 50% { opacity: .4; r: 6; } }
.sup-glow { animation: supGlowPulse 3s ease-in-out infinite; }
.sup-glow-2 { animation-delay: -.6s; }
.sup-glow-3 { animation-delay: -1.2s; }
@keyframes supGlowPulse { 0%, 100% { r: 10; opacity: 1; } 50% { r: 18; opacity: .3; } }
.sup-conn { stroke-dasharray: 200; stroke-dashoffset: 200; animation: supConnDraw 3s ease forwards; }
.sup-conn-2 { animation-delay: .4s; }
.sup-conn-3 { animation-delay: .8s; }
.sup-conn-4 { animation-delay: 1.2s; }
@keyframes supConnDraw { to { stroke-dashoffset: 0; } }
.sup-hero-w { max-width: 800px; margin: 0 auto; padding: clamp(120px,12vw,160px) 24px clamp(60px,6vw,80px); position: relative; z-index: 2; text-align: center; }
.sup-hero-t { font-family: var(--font-heading); font-size: clamp(36px,5vw,56px); font-weight: 900; line-height: 1.08; letter-spacing: -.04em; color: #fff; margin: 0 0 18px; }
.sup-hero-t em { font-style: normal; background: linear-gradient(135deg, #FF6B81, #FCD34D); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sup-hero-sub { font-size: clamp(15px,1.4vw,18px); color: rgba(255,255,255,.5); line-height: 1.6; margin: 0 auto; max-width: 640px; }
.sup-fade { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.sup-fade.sup-fade-in { opacity: 1; transform: translateY(0); }
.sup-fade-2 { transition-delay: .15s; }

/* Section */
.sup-section {
    padding: 80px 0;
}
.sup-section-inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 24px;
}
.sup-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent, #7F56D9);
    margin: 0 0 8px;
}
.sup-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 40px;
    letter-spacing: -0.5px;
}
.sup-section-title em {
    font-style: normal;
    background: linear-gradient(135deg, #FF6B81, #FCD34D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category Cards Grid */
.sup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.sup-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}
.sup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: rgba(127,86,217,0.2);
}
.sup-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(127,86,217,0.1), rgba(244,63,94,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent, #7F56D9);
}
.sup-card-icon svg { width: 24px; height: 24px; }
.sup-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.sup-card p {
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.sup-card-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent, #7F56D9);
}

/* CTA Footer */
.sup-cta {
    background: linear-gradient(135deg, #0C0518 0%, #1A0A2E 50%, #0C0518 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sup-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(127,86,217,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.sup-cta-inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.sup-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.sup-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 32px;
}
.sup-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FF6B81, #F43F5E);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sup-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244,63,94,0.3);
    color: #fff;
}

/* Category Page Layout */
.sup-category-hero {
    background: linear-gradient(135deg, #0C0518 0%, #1A0A2E 100%);
    padding: 120px 0 48px;
}
.sup-category-hero-inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 24px;
}
.sup-category-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.sup-category-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Breadcrumb */
.sup-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.sup-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.sup-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.sup-breadcrumb span { color: rgba(255,255,255,0.3); }
.sup-breadcrumb-current { color: rgba(255,255,255,0.8); }

.sup-breadcrumb--dark a { color: #667085; }
.sup-breadcrumb--dark a:hover { color: #1a1a2e; }
.sup-breadcrumb--dark span { color: #d0d5dd; }
.sup-breadcrumb--dark .sup-breadcrumb-current { color: #1a1a2e; }

/* Two-column layout */
.sup-layout {
    max-width: 1232px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* Sidebar */
.sup-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sup-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667085;
    margin: 0 0 12px;
    padding: 0 12px;
}
.sup-sidebar-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #475467;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.sup-sidebar-link:hover {
    background: #f9fafb;
    color: #1a1a2e;
}
.sup-sidebar-link.active {
    background: rgba(127,86,217,0.08);
    color: var(--color-accent, #7F56D9);
    font-weight: 600;
}
.sup-sidebar-group { margin-bottom: 24px; }

/* Article List Cards */
.sup-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sup-article-card {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sup-article-card:hover {
    border-color: rgba(127,86,217,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.sup-article-card:hover svg { color: var(--color-primary, #7F56D9) !important; }
.sup-article-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.sup-article-card p {
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
    margin: 0;
}
.sup-article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: #98a2b3;
}
.sup-badge-featured {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(252,211,77,0.15), rgba(244,63,94,0.1));
    color: #F43F5E;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Article Content */
.sup-article {
    min-width: 0;
}
.sup-article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.sup-article-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.sup-article-header-meta {
    font-size: 13px;
    color: #98a2b3;
}
.sup-article-body {
    font-size: 16px;
    line-height: 1.75;
    color: #344054;
}
.sup-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 16px;
}
.sup-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 32px 0 12px;
}
.sup-article-body p { margin: 0 0 16px; }
.sup-article-body ul, .sup-article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.sup-article-body li { margin-bottom: 8px; }
.sup-article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}
.sup-article-body code {
    background: #f9fafb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.sup-article-body pre {
    background: #0C0518;
    color: #e9d5ff;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 16px 0;
}
.sup-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.sup-article-body blockquote {
    border-left: 3px solid var(--color-accent, #7F56D9);
    padding: 12px 20px;
    margin: 16px 0;
    background: rgba(127,86,217,0.04);
    border-radius: 0 8px 8px 0;
}

/* Intercom content compatibility — imported articles have these classes */
.sup-article-body [class*="intercom-interblocks"] {
    margin: 0 0 16px;
}
.sup-article-body .intercom-interblocks-subheading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 32px 0 12px;
    line-height: 1.3;
}
.sup-article-body .intercom-interblocks-paragraph {
    font-size: 16px;
    line-height: 1.75;
    color: #344054;
    margin: 0 0 16px;
}
.sup-article-body .intercom-interblocks-list {
    padding-left: 24px;
    margin: 0 0 16px;
}
.sup-article-body .intercom-interblocks-list li {
    margin-bottom: 8px;
}
/* Force all images to fit — override any inline width/height from Intercom */
.sup-article-body img,
.sup-article-body [class*="intercom"] img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* Image containers from Intercom */
.sup-article-body .intercom-interblocks-image,
.sup-article-body .intercom-interblocks-image-container {
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}
/* Intercom video embeds */
.sup-article-body .intercom-interblocks-video,
.sup-article-body iframe,
.sup-article-body video {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}
/* Intercom callout/note blocks */
.sup-article-body .intercom-interblocks-callout {
    border-left: 3px solid var(--color-accent, #7F56D9);
    padding: 16px 20px;
    margin: 20px 0;
    background: rgba(127,86,217,0.04);
    border-radius: 0 8px 8px 0;
}
/* Intercom button/link blocks */
.sup-article-body .intercom-interblocks-button a,
.sup-article-body .intercom-interblocks-link a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-primary, #7F56D9);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0;
}
/* Clean up nested wrappers */
.sup-article-body > div > div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
/* Table styling for Intercom tables */
.sup-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.sup-article-body table th,
.sup-article-body table td {
    border: 1px solid #eaecf0;
    padding: 10px 14px;
    text-align: left;
}
.sup-article-body table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1a1a2e;
}
/* Horizontal rules */
.sup-article-body hr {
    border: none;
    border-top: 1px solid #eaecf0;
    margin: 32px 0;
}
/* Anchor links smooth scroll */
.sup-article-body a {
    color: var(--color-primary, #7F56D9);
    text-decoration: none;
    font-weight: 500;
}
.sup-article-body a:hover {
    text-decoration: underline;
}

/* Hide Intercom artifacts */
.sup-article-body svg:not([class]) { display: none !important; }
.sup-article-body [class*="intercom-interblocks-article-card"] { display: none !important; }
.sup-article-body [data-block-type="articleCard"] { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
    .sup-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sup-sidebar {
        position: static;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .sup-sidebar-title { display: none; }
    .sup-sidebar-link { font-size: 13px; padding: 6px 12px; }
    .sup-sidebar-group { margin-bottom: 0; }
    .sup-cards { grid-template-columns: repeat(2, 1fr); }
    .sup-hero-t { font-size: 36px; }
}

@media (max-width: 560px) {
    .sup-cards { grid-template-columns: 1fr; }
    .sup-hero-t { font-size: 28px; }
    .sup-hero-sub { font-size: 15px; }
    .sup-section { padding: 48px 0; }
    .sup-section-title { font-size: 24px; }
    .sup-cta h2 { font-size: 28px; }
    .sup-category-hero { padding: 100px 0 32px; }
    .sup-category-hero h1 { font-size: 28px; }
    .sup-article-header h1 { font-size: 24px; }
}
