/* ==========================================================================
   Utilix — Static Pages Redesign
   About · Contact · Help · Privacy · Terms
   ========================================================================== */

/* Hero */
.sp-hero {
    padding: 48px 0 36px;
    background: linear-gradient(180deg, var(--bg-section, #f8fafc) 0%, var(--bg, #fff) 100%);
    border-bottom: 1px solid var(--border, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.06), transparent 35%);
    pointer-events: none;
}

.sp-hero--contact::before {
    background:
        radial-gradient(circle at 85% 15%, rgba(34, 197, 94, 0.08), transparent 40%),
        radial-gradient(circle at 10% 30%, rgba(59, 130, 246, 0.07), transparent 35%);
}

.sp-hero--help::before {
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.07), transparent 38%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06), transparent 35%);
}

.sp-hero--privacy::before,
.sp-hero--terms::before {
    background:
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.07), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.05), transparent 35%);
}

.sp-hero .container {
    position: relative;
    z-index: 1;
}

.sp-hero__inner {
    max-width: 760px;
    margin-top: 20px;
}

.sp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    background: rgba(239, 246, 255, 0.9);
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 999px;
}

.sp-hero__badge [data-lucide] {
    width: 16px;
    height: 16px;
}

.sp-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--heading, #0f172a);
}

.sp-hero__desc {
    margin: 0;
    max-width: 680px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text, #475569);
}

.sp-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.sp-hero__meta [data-lucide] {
    width: 16px;
    height: 16px;
}

/* Page nav strip */
.sp-nav-strip {
    position: sticky;
    top: 64px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border, #e2e8f0);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .sp-nav-strip {
    background: rgba(15, 23, 42, 0.92);
}

.sp-nav {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-nav::-webkit-scrollbar {
    display: none;
}

.sp-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: all 0.2s;
}

.sp-nav__link [data-lucide] {
    width: 15px;
    height: 15px;
}

.sp-nav__link:hover {
    color: #2563eb;
    background: #eff6ff;
}

.sp-nav__link.is-active {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* Body */
.sp-body {
    padding: 48px 0 88px;
}

/* About stats */
.sp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sp-stat-card {
    padding: 28px 24px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.sp-stat-card--blue {
    background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
    border-color: #bfdbfe;
}

.sp-stat-card--green {
    background: linear-gradient(160deg, #f0fdf4 0%, #fff 100%);
    border-color: #bbf7d0;
}

.sp-stat-card--purple {
    background: linear-gradient(160deg, #f5f3ff 0%, #fff 100%);
    border-color: #ddd6fe;
}

.sp-stat-card__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 8px;
}

.sp-stat-card__icon {
    display: inline-flex;
    margin-bottom: 10px;
    color: #16a34a;
}

.sp-stat-card--purple .sp-stat-card__icon {
    color: #7c3aed;
}

.sp-stat-card__icon [data-lucide] {
    width: 28px;
    height: 28px;
}

.sp-stat-card__label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading, #0f172a);
    margin-bottom: 8px;
}

.sp-stat-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
}

/* Contact (no form) */
.sp-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.sp-contact-cta {
    padding: 32px 28px;
    background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.sp-contact-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
}

.sp-contact-cta__icon [data-lucide] {
    width: 24px;
    height: 24px;
}

.sp-contact-cta h2 {
    margin: 0 0 10px;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--heading, #0f172a);
}

.sp-contact-cta p {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
}

.sp-contact-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-contact-cta .btn [data-lucide] {
    width: 16px;
    height: 16px;
}

.sp-contact-cta__note {
    margin: 16px 0 0 !important;
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

.sp-info-card {
    padding: 28px 24px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
    display: flex;
    flex-direction: column;
}

.sp-info-card--accent {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.sp-info-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sp-info-card__head [data-lucide] {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.sp-info-card__head h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading, #0f172a);
}

.sp-info-card p {
    margin: 0 0 auto;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #64748b;
}

.sp-info-card .link-arrow {
    margin-top: 18px;
}

.sp-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text, #475569);
}

.sp-info-list li:last-child {
    margin-bottom: 0;
}

.sp-info-list [data-lucide] {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Help quick actions */
.sp-help-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.sp-help-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    text-decoration: none;
    color: var(--heading, #0f172a);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.sp-help-action [data-lucide] {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.sp-help-action:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover, 0 12px 28px rgba(15, 23, 42, 0.1));
}

/* Layout */
.sp-layout {
    max-width: 900px;
    margin: 0 auto;
}

.sp-layout--legal {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    max-width: 1100px;
    align-items: start;
}

/* TOC */
.sp-toc__inner {
    position: sticky;
    top: 140px;
    padding: 22px 20px;
    background: var(--bg-section, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
}

.sp-toc h2 {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.sp-toc ol {
    margin: 0;
    padding-left: 1.1rem;
}

.sp-toc li {
    margin-bottom: 8px;
}

.sp-toc a {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.sp-toc a:hover {
    color: #2563eb;
}

/* Sections / prose */
.sp-sections.prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text, #475569);
}

.sp-sections--cards .sp-section {
    padding: 28px;
    margin-bottom: 20px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.sp-sections--cards .sp-section:last-child {
    margin-bottom: 0;
}

.sp-sections.prose h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading, #0f172a);
    letter-spacing: -0.02em;
}

.sp-layout--legal .sp-sections.prose h2 {
    scroll-margin-top: 120px;
}

.sp-sections.prose p {
    margin: 0 0 1rem;
}

.sp-sections.prose ul {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.sp-sections.prose li {
    margin-bottom: 0.45rem;
}

.sp-sections.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-section + .sp-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.sp-sections--cards .sp-section + .sp-section {
    margin-top: 0;
    padding-top: 28px;
    border-top: none;
}

/* FAQ */
.sp-faq {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.sp-faq__header {
    margin-bottom: 24px;
}

.sp-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
}

.sp-faq__eyebrow [data-lucide] {
    width: 16px;
    height: 16px;
}

.sp-faq__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading, #0f172a);
}

.sp-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-faq-item {
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.sp-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading, #0f172a);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sp-faq-item__q::-webkit-details-marker {
    display: none;
}

.sp-faq-item__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.sp-faq-item[open] .sp-faq-item__icon {
    transform: rotate(180deg);
    color: #2563eb;
}

.sp-faq-item__a {
    padding: 0 20px 18px;
}

.sp-faq-item__a p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text, #475569);
}

/* Dark mode */
[data-theme="dark"] .sp-hero__badge {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .sp-stat-card,
[data-theme="dark"] .sp-info-card,
[data-theme="dark"] .sp-help-action,
[data-theme="dark"] .sp-faq-item,
[data-theme="dark"] .sp-sections--cards .sp-section {
    background: var(--bg);
    border-color: var(--border);
}

[data-theme="dark"] .sp-stat-card--blue,
[data-theme="dark"] .sp-stat-card--green,
[data-theme="dark"] .sp-stat-card--purple,
[data-theme="dark"] .sp-contact-cta {
    background: var(--bg-section);
}

[data-theme="dark"] .sp-toc__inner {
    background: var(--bg-section);
}

[data-theme="dark"] .sp-nav__link.is-active,
[data-theme="dark"] .sp-nav__link:hover {
    background: rgba(37, 99, 235, 0.15);
}

/* Responsive */
@media (max-width: 960px) {
    .sp-stats,
    .sp-contact-grid,
    .sp-help-actions {
        grid-template-columns: 1fr;
    }

    .sp-layout--legal {
        grid-template-columns: 1fr;
    }

    .sp-toc__inner {
        position: static;
    }
}

@media (max-width: 640px) {
    .sp-body {
        padding: 32px 0 64px;
    }

    .sp-hero {
        padding: 36px 0 28px;
    }

    .sp-nav-strip {
        top: 56px;
    }
}
