/* =============================================
   SiteX CMS — Design System & Styles
   Mobile-first, Dark/Light mode
   ============================================= */

/* --- CSS Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CSS Variables — Light (default) --- */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-rgb: 37, 99, 235;
    --accent: #F59E0B;
    --accent-dark: #D97706;

    --bg: #F8FAFC;
    --bg-alt: #FFFFFF;
    --bg-code: #1E293B;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --text-invert: #F1F5F9;
    --border: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.08);

    --success: #10B981;
    --error: #EF4444;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --container: 1200px;
    --header-height: 64px;
}

/* --- Dark mode --- */
[data-theme="dark"] {
    --bg: #0F172A;
    --bg-alt: #1E293B;
    --bg-code: #0F172A;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-light: #64748B;
    --text-invert: #1E293B;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --primary-light: #1E3A5F;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

@media (min-width: 641px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--primary-dark); }

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

pre {
    background: var(--bg-code);
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li { margin-bottom: 0.25rem; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 641px) {
    .container { padding: 0 1.5rem; }
}

.section {
    padding: 3rem 0;
}

@media (min-width: 641px) {
    .section { padding: 4rem 0; }
}

@media (min-width: 1025px) {
    .section { padding: 5rem 0; }
}

.section-alt {
    background-color: var(--bg-alt);
}

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

/* --- Grid --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 641px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Header / Navigation --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.9);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo:hover { color: var(--primary); }

.logo svg {
    width: 28px;
    height: 28px;
}

.nav { display: none; }

@media (min-width: 1025px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.theme-toggle svg { width: 18px; height: 18px; }

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Mobile menu */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

@media (min-width: 1025px) {
    .menu-toggle { display: none; }
}

.menu-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--primary); }

.mobile-nav .btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #1E293B;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* --- Cards --- */
.card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* --- Pricing Cards --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 641px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1E293B;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--success);
    border-radius: 50%;
    margin-top: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn { width: 100%; margin-top: 0.5rem; }

/* --- Hero --- */
.hero {
    padding: 3rem 0;
    text-align: center;
}

@media (min-width: 641px) {
    .hero { padding: 4rem 0; }
}

@media (min-width: 1025px) {
    .hero { padding: 5rem 0 4rem; }
}

.hero h1 {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

@media (min-width: 641px) {
    .hero h1 { font-size: 2.75rem; }
}

@media (min-width: 1025px) {
    .hero h1 { font-size: 3.25rem; }
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 641px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-image {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

.hero-image img {
    width: 100%;
    display: block;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* --- Feature blocks (features page) --- */
.feature-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

@media (min-width: 641px) {
    .feature-block { grid-template-columns: 1fr 1fr; }
    .feature-block.reverse .feature-block-content { order: 2; }
    .feature-block.reverse .feature-block-image { order: 1; }
}

.feature-block-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.feature-block-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.feature-block-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* --- Steps (How it works) --- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    counter-reset: step;
}

@media (min-width: 641px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
    text-align: center;
    counter-increment: step;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 0; }

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 641px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.testimonial blockquote {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-info strong { display: block; font-size: 0.9375rem; }
.testimonial-info span { font-size: 0.8125rem; color: var(--text-light); }

/* --- FAQ / Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    gap: 1rem;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-alt);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Alert Messages --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

[data-theme="dark"] .alert-success {
    background: #064E3B;
    color: #6EE7B7;
    border-color: #065F46;
}

[data-theme="dark"] .alert-error {
    background: #7F1D1D;
    color: #FCA5A5;
    border-color: #991B1B;
}

/* --- Newsletter --- */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 641px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form .form-input { flex: 1; }

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new { background: #DBEAFE; color: #1D4ED8; }
.badge-fix { background: #FEE2E2; color: #991B1B; }
.badge-improvement { background: #D1FAE5; color: #065F46; }
.badge-security { background: #FEF3C7; color: #92400E; }

[data-theme="dark"] .badge-new { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .badge-fix { background: #7F1D1D; color: #FCA5A5; }
[data-theme="dark"] .badge-improvement { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .badge-security { background: #78350F; color: #FDE68A; }

/* --- Changelog --- */
.changelog-entry {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.changelog-version {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.changelog-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
}

.changelog-entry li {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* --- Docs --- */
.docs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1025px) {
    .docs-layout {
        grid-template-columns: 260px 1fr;
    }
}

.docs-sidebar {
    display: none;
}

@media (min-width: 1025px) {
    .docs-sidebar {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + 2rem);
        max-height: calc(100vh - var(--header-height) - 4rem);
        overflow-y: auto;
    }
}

.docs-sidebar h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

.docs-sidebar h4:first-child { margin-top: 0; }

.docs-sidebar a {
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.docs-sidebar a:hover { color: var(--primary); background: var(--primary-light); }
.docs-sidebar a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.docs-content {
    min-width: 0;
}

.docs-content h1 { margin-bottom: 1.5rem; }
.docs-content h2 { margin-top: 2rem; }
.docs-content h3 { margin-top: 1.5rem; }

.docs-mobile-toggle {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: left;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

@media (min-width: 1025px) {
    .docs-mobile-toggle { display: none; }
}

.docs-sidebar-mobile {
    display: none;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.docs-sidebar-mobile.open { display: block; }

@media (min-width: 1025px) {
    .docs-sidebar-mobile { display: none !important; }
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    overflow-x: auto;
    display: block;
}

@media (min-width: 641px) {
    .comparison-table { display: table; }
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-alt);
    font-weight: 600;
    position: sticky;
    top: var(--header-height);
}

.comparison-table td:first-child {
    font-weight: 500;
}

.check { color: var(--success); font-weight: bold; }
.cross { color: var(--error); }

/* --- Footer --- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 641px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

.footer-col a {
    display: block;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* --- Cookie Consent --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 200;
    box-shadow: 0 -4px 12px var(--shadow);
    display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 641px) {
    .cookie-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cookie-inner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-inner a { text-decoration: underline; }

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* --- Guarantee Badge --- */
.guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    border-radius: 20px;
    color: #065F46;
    font-size: 0.8125rem;
    font-weight: 600;
}

[data-theme="dark"] .guarantee {
    background: #064E3B;
    color: #6EE7B7;
    border-color: #065F46;
}

.guarantee svg { width: 16px; height: 16px; }

/* --- API showcase --- */
.api-showcase {
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow-x: auto;
}

.api-showcase pre {
    margin: 0;
    background: none;
    padding: 0;
}

/* --- Utilities --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Print --- */
@media print {
    .header, .footer, .cookie-banner, .mobile-nav { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
