﻿/* Remove focus outlines for mouse users, but keep them for keyboard users */
:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

:focus-visible {
    outline: 2px solid var(--app-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Prevent the H1 from receiving focus automatically on page load */
h1:focus {
    outline: none !important;
}

/* ============================================================
   1. Design Tokens & App Palette
   ============================================================ */
:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-muted: #f1f3f5;
    --ink: #111827;
    --ink-2: #4b5563;
    --ink-3: #9ca3af;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    /* Darker App Palette for Light Mode */
    --app-grey: #94a3b8;
    --app-pink: #c026d3;
    --app-blue: #2563eb;
    --app-red: #dc2626;
    --app-teal: #0d9488;
    --app-purple: #7c3aed;
    --app-orange: #ea580c;
    --app-lime: #65a30d;
    --app-cyan: #0891b2;
    /* Plan Colors */
    --color-free: #16a34a;
    --color-lite: #64748b;
    --color-premium: #ca8a04;
    /* Fonts */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --wrap: 1100px;
    --r-md: 8px;
    --r-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    --bg: #0f1115;
    --surface: #1a1d24;
    --surface-muted: #232730;
    --ink: #f9fafb;
    --ink-2: #9ca3af;
    --ink-3: #6b7280;
    --line: #2d333f;
    --line-strong: #374151;
    /* Brighter App Palette for Dark Mode */
    --app-grey: #cbd5e1;
    --app-pink: #e879f9;
    --app-blue: #60a5fa;
    --app-red: #f87171;
    --app-teal: #2dd4bf;
    --app-purple: #a78bfa;
    --app-orange: #fb923c;
    --app-lime: #a3e635;
    --app-cyan: #22d3ee;
    --color-free: #4ade80;
    --color-lite: #cbd5e1;
    --color-premium: #facc15;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--bg) !important;
    color: var(--ink) !important;
    font-family: var(--font-sans) !important;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-sans) !important;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--app-blue);
    text-decoration: none;
    transition: color 0.15s;
}

    a:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   2. Header & Navigation
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

    .site-header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

    .brand:hover {
        text-decoration: none;
    }

    .brand small {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--app-blue);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-left: 4px;
    }

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

    .header-nav a {
        color: var(--ink-2);
        font-weight: 600;
        font-size: 0.95rem;
    }

        .header-nav a:hover {
            color: var(--app-blue);
        }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

    .icon-btn:hover {
        background: var(--surface-muted);
        color: var(--app-blue);
        border-color: var(--app-blue);
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

.icon-sun {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

.mobile-menu {
    display: none;
}

.subnav {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

    .subnav .wrap {
        display: flex;
        gap: 8px;
        height: 48px;
        align-items: center;
        overflow: visible;
    }

    .subnav a {
        color: var(--ink-2);
        font-size: 0.9rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: var(--r-md);
        white-space: nowrap;
    }

        .subnav a:hover {
            background: var(--surface-muted);
            color: var(--app-blue);
            text-decoration: none;
        }

/* ============================================================
   3. Layout & Sections
   ============================================================ */
.section {
    padding-block: 40px;
    border-bottom: 1px solid var(--line);
}

    .section:last-of-type {
        border-bottom: none;
    }

.section-head {
    margin-bottom: 48px;
    max-width: 700px;
}

    .section-head p {
        color: var(--ink-2);
        font-size: 1.1rem;
        margin-top: 16px;
        font-weight: 500;
    }

/* Eyebrows */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.text-pink {
    color: var(--app-pink);
    background: rgba(192, 38, 211, 0.1);
}

.text-blue {
    color: var(--app-blue);
    background: rgba(37, 99, 235, 0.1);
}

.text-orange {
    color: var(--app-orange);
    background: rgba(234, 88, 12, 0.1);
}

.text-cyan {
    color: var(--app-cyan);
    background: rgba(8, 145, 178, 0.1);
}

.text-purple {
    color: var(--app-purple);
    background: rgba(124, 58, 237, 0.1);
}

.text-lime {
    color: var(--app-lime);
    background: rgba(101, 163, 13, 0.1);
}

.text-teal {
    color: var(--app-teal);
    background: rgba(13, 148, 136, 0.1);
}

[data-theme="dark"] .text-pink {
    background: rgba(232, 121, 249, 0.15);
}

[data-theme="dark"] .text-blue {
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .text-orange {
    background: rgba(251, 146, 60, 0.15);
}

[data-theme="dark"] .text-cyan {
    background: rgba(34, 211, 238, 0.15);
}

[data-theme="dark"] .text-purple {
    background: rgba(167, 139, 250, 0.15);
}

[data-theme="dark"] .text-lime {
    background: rgba(163, 230, 53, 0.15);
}

[data-theme="dark"] .text-teal {
    background: rgba(45, 212, 191, 0.15);
}

/* ============================================================
   4. Hero
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-block: 40px;
    border-bottom: 1px solid var(--line);
}

    .hero h1 {
        margin-bottom: 20px;
    }

.hero-sub {
    font-size: 1.25rem;
    color: var(--ink-2);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-lede {
    font-size: 1.1rem;
    color: var(--ink-2);
    margin-bottom: 32px;
    max-width: 50ch;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--app-blue);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

    .btn-primary:hover {
        background: #1d4ed8;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

    .btn-outline:hover {
        background: var(--surface-muted);
        border-color: var(--ink);
        text-decoration: none;
    }

.platforms {
    display: flex;
    align-items: center; /* This forces vertical centering */
    gap: 12px;
    margin-top: 16px; /* Adds a little breathing room from the buttons above */
}

.platform-tag {
    display: inline-flex; /* Ensures the text inside the pill is perfectly centered */
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 14px; /* Slightly increased padding for a better pill shape */
    border-radius: 999px;
    line-height: 1; /* Keeps the height perfectly constrained */
}

.platform-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1; /* Prevents the text from pushing the box down */
}

/* ============================================================
   5. Feature Lists & Colorful Dots
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

    .grid-2.flip > :first-child {
        order: 2;
    }

    .grid-2.flip > :last-child {
        order: 1;
    }

.feature-list {
    display: grid;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

.icon-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 8px;
}

    .icon-dot.premium {
        background: var(--color-premium);
    }

    .icon-dot.lite {
        background: var(--color-lite);
    }

    .icon-dot.free {
        background: var(--color-free);
    }

    .icon-dot.neutral {
        background: var(--app-cyan);
    }

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.feature-list span {
    display: block;
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.5;
}

/* ============================================================
   6. Value Props
   ============================================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 48px 1fr; /* Icon on left, text on right */
    gap: 20px; /* Space between icon and text */
    align-items: start;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed margin-bottom so it sits flush at the top */
}

    .value-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

.value-item:nth-child(1) .value-icon {
    color: var(--app-pink);
    background: rgba(192, 38, 211, 0.1);
}

.value-item:nth-child(2) .value-icon {
    color: var(--app-blue);
    background: rgba(37, 99, 235, 0.1);
}

.value-item:nth-child(3) .value-icon {
    color: var(--app-orange);
    background: rgba(234, 88, 12, 0.1);
}

.value-item:nth-child(4) .value-icon {
    color: var(--app-cyan);
    background: rgba(8, 145, 178, 0.1);
}

[data-theme="dark"] .value-item:nth-child(1) .value-icon {
    background: rgba(232, 121, 249, 0.15);
}

[data-theme="dark"] .value-item:nth-child(2) .value-icon {
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .value-item:nth-child(3) .value-icon {
    background: rgba(251, 146, 60, 0.15);
}

[data-theme="dark"] .value-item:nth-child(4) .value-icon {
    background: rgba(34, 211, 238, 0.15);
}

.value-item h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}


.value-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.value-item p {
    color: var(--ink-2);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.figure {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.figure-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    color: var(--ink-3);
    font-weight: 500;
    background: repeating-linear-gradient(45deg, var(--surface-muted), var(--surface-muted) 10px, var(--surface) 10px, var(--surface) 20px);
    min-height: 300px;
}

    .figure-placeholder.ratio-1x1 {
        aspect-ratio: 1 / 1;
    }

    .figure-placeholder.ratio-4x3 {
        aspect-ratio: 4 / 3;
    }

.value-item:nth-child(5) .value-icon {
    color: var(--app-teal);
    background: rgba(13, 148, 136, 0.1);
}

[data-theme="dark"] .value-item:nth-child(5) .value-icon {
    background: rgba(45, 212, 191, 0.15);
}

/* ============================================================
   7. Process Steps (Card Layout)
   ============================================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.process-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Exact same color tones as the value-icon blocks above */
.process-step:nth-child(1) .process-num {
    color: var(--app-pink);
    background: rgba(192, 38, 211, 0.1);
}

.process-step:nth-child(2) .process-num {
    color: var(--app-blue);
    background: rgba(37, 99, 235, 0.1);
}

.process-step:nth-child(3) .process-num {
    color: var(--app-orange);
    background: rgba(234, 88, 12, 0.1);
}

.process-step:nth-child(4) .process-num {
    color: var(--app-cyan);
    background: rgba(8, 145, 178, 0.1);
}

/* Dark mode overrides to match the top blocks exactly */
[data-theme="dark"] .process-step:nth-child(1) .process-num {
    background: rgba(232, 121, 249, 0.15);
}

[data-theme="dark"] .process-step:nth-child(2) .process-num {
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .process-step:nth-child(3) .process-num {
    background: rgba(251, 146, 60, 0.15);
}

[data-theme="dark"] .process-step:nth-child(4) .process-num {
    background: rgba(34, 211, 238, 0.15);
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--ink-2);
    margin: 0;
}

/* ============================================================
   8. Callouts (Default Gold, Optional Blue)
   ============================================================ */
.callout {
    background: var(--surface-muted);
    border-left: 4px solid var(--color-premium); /* Gold by default now */
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 24px;
    font-size: 1rem;
    color: var(--ink-2);
}

    .callout p:last-child {
        margin: 0;
    }

    .callout strong {
        color: var(--ink);
    }

/* If you ever want a blue one, use this class */
.callout-blue {
    background: var(--surface-muted);
    border-left: 4px solid var(--app-blue);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 24px;
    font-size: 1rem;
    color: var(--ink-2);
}

    .callout-blue p:last-child {
        margin: 0;
    }
/* ============================================================
   9. Changelog & Accordions
   ============================================================ */
.changelog {
    border-top: 1px solid var(--line);
}


    .changelog summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px; /* <--- ADD THIS LINE */
        padding: 24px 0;
        list-style: none;
        cursor: pointer;
        border-bottom: 1px solid var(--line);
    }

        .changelog summary::-webkit-details-marker {
            display: none;
        }

        .changelog summary strong {
            font-size: 1.1rem;
            display: block;
            margin-bottom: 4px;
            color: var(--app-blue);
        }

        .changelog summary .release {
            color: var(--ink-2);
            font-size: 0.95rem;
        }

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    transition: all 0.2s;
    white-space: nowrap; /* <--- ADD THIS LINE */
    flex-shrink: 0; /* <--- OPTIONAL: Prevents the button from being squished by the text */
}

    .btn-expand::after {
        content: "→";
        font-size: 1.1em;
        transition: transform 0.3s ease;
        transform: rotate(90deg);
    }

/* Hide the original text when open */
.changelog[open] .btn-expand span {
    display: none;
}

/* Inject the word "Hide" before the arrow */
.changelog[open] .btn-expand::before {
    content: "Hide details";
}

/* Rotate the arrow */
.changelog[open] .btn-expand::after {
    transform: rotate(-90deg);
}

.changelog-body {
    padding: 32px 0;
}

.changelog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.changelog-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-pink);
    margin-bottom: 20px;
}

/* ============================================================
   10. Legend & FAQ
   ============================================================ */
.legend {
    display: flex;
    gap: 32px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

    .legend .item {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.95rem;
        color: var(--ink-2);
        font-weight: 600;
    }

.faq {
    border-top: 1px solid var(--line);
}

    .faq details {
        border-bottom: 1px solid var(--line);
    }

    .faq summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 0;
        font-size: 1.1rem;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
        transition: color 0.2s;
    }

        .faq summary:hover {
            color: var(--app-blue);
        }

        .faq summary::-webkit-details-marker {
            display: none;
        }

        .faq summary::after {
            content: "+";
            font-size: 1.5rem;
            font-weight: 400;
            color: var(--app-blue);
        }

    .faq details[open] summary::after {
        content: "−";
    }

    .faq details > p {
        padding-bottom: 24px;
        color: var(--ink-2);
        max-width: 800px;
        margin: 0;
    }

/* ============================================================
   11. Pricing Cards
   ============================================================ */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .plan:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .plan.featured {
        box-shadow: 0 10px 30px rgba(234, 179, 8, 0.1);
        border-color: var(--color-premium);
    }

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.05em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .plan-price small {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--ink-3);
        letter-spacing: 0;
        text-transform: uppercase;
    }

.plan.free .plan-name, .plan.free .plan-price {
    color: var(--color-free);
}

.plan.lite .plan-name, .plan.lite .plan-price {
    color: var(--color-lite);
}

.plan.featured .plan-name, .plan.featured .plan-price {
    color: var(--color-premium);
}

.plan-sub {
    color: var(--ink-2);
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}

.plan .feature-list {
    gap: 16px;
}

    .plan .feature-list strong {
        font-size: 0.95rem;
        margin: 0;
        font-weight: 600;
    }

.plan-note {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--ink-3);
}

/* ============================================================
   12. License Box (Green Ticks)
   ============================================================ */
.license-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}

.license-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

    .license-row:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

.tick-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-free);
    margin-top: 2px;
}

.license-content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--ink);
}

.license-content p {
    color: var(--ink-2);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-block: 48px;
}

    .site-footer .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .site-footer p {
        margin: 0;
        color: var(--ink-3);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .site-footer nav {
        display: flex;
        gap: 24px;
    }

        .site-footer nav a {
            font-size: 0.9rem;
            color: var(--ink-2);
            font-weight: 600;
        }

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 900px) {
    .hero, .grid-2, .grid-2.flip {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 40px 32px;
    }

        .grid-2.flip > :first-child, .grid-2.flip > :last-child {
            order: initial;
        }

        .hero h1 {
            font-size: 2.5rem;
        }

    .value-grid, .plans, .changelog-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: relative;
    }

        .mobile-menu summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: 1px solid var(--line);
            border-radius: var(--r-md);
            color: var(--ink-2);
        }

            .mobile-menu summary::-webkit-details-marker {
                display: none;
            }

        .mobile-menu .panel {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 200px;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: var(--r-md);
            box-shadow: var(--shadow-md);
            padding: 8px;
            display: flex;
            flex-direction: column;
            z-index: 100;
        }

            .mobile-menu .panel a, .mobile-menu .panel button {
                text-align: left;
                padding: 12px;
                border-radius: var(--r-md);
                font-size: 0.95rem;
                color: var(--ink);
                font-weight: 600;
                background: transparent;
                border: none;
                cursor: pointer;
            }

                .mobile-menu .panel a:hover, .mobile-menu .panel button:hover {
                    background: var(--surface-muted);
                    color: var(--app-blue);
                }

    .section {
        padding-block: 48px;
    }

    .site-footer .wrap {
        flex-direction: column;
        text-align: center;
    }

    .site-footer nav {
        justify-content: center;
    }
}

/* ============================================================
   SUBNAV (SECONDARY STICKY MENU)
   ============================================================ */

/* The subnav sits below the main sticky header. */
.subnav {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

/* Desktop: show a centred horizontal row. */
.mobile-subnav {
    display: none;
}

.desktop-subnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

/* Mobile: replace the desktop row with a native details dropdown. */
@media (max-width: 900px) {
    .desktop-subnav {
        display: none;
    }

    /*
       The dropdown must be allowed to extend outside the wrapper.
       Do not use overflow-x:auto here: it can clip the open panel.
    */
    .subnav .wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        overflow: visible;
    }

    .mobile-subnav {
        display: block;
        position: relative;
        width: 100%;
        text-align: center;
    }

        .mobile-subnav summary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 36px;
            width: fit-content;
            margin: 6px auto;
            padding: 0 16px;
            list-style: none;
            cursor: pointer;
            border: 1px solid var(--line);
            border-radius: var(--r-md);
            background: var(--surface);
            color: var(--app-blue);
            font-size: 0.9rem;
            font-weight: 600;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

            .mobile-subnav summary::-webkit-details-marker {
                display: none;
            }

            .mobile-subnav summary:hover {
                background: var(--surface-muted);
                color: var(--app-blue);
                border-color: var(--app-blue);
            }

    .subnav-links {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        width: min(90vw, 260px);
        padding: 6px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        z-index: 100;
    }

    .mobile-subnav[open] .subnav-links {
        display: flex;
    }

    .subnav-links a {
        display: block;
        padding: 10px 14px;
        border-radius: var(--r-md);
        color: var(--ink-2);
        font-size: 0.9rem;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }

        .subnav-links a:hover {
            background: var(--surface-muted);
            color: var(--app-blue);
        }
}

/* ============================================================
   HERO BANNER
   ============================================================ */

/* 1. Prevent horizontal scrollbar */
body {
    overflow-x: clip;
}

/* 2. The container */
.hero {
    position: relative;
    z-index: 1;
    padding-block: 60px;
}

    /* 3. The full-width background */
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        z-index: -2;
        pointer-events: none;
        background-image: url('/img/banner.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* 4. The Flat Light Mode Wash */
    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        z-index: -1;
        pointer-events: none;
        /* 
       Solid, uniform wash. 
       0.95 = 95% solid white.
    */
        background: rgba(255, 255, 255, 0.95);
    }

/* 5. The Flat Dark Mode Wash */
[data-theme="dark"] .hero::after {
    background: rgba(15, 17, 21, 0.95);
}


/* Remove default focus outlines (the black box) */
*:focus {
    outline: none;
}

/* 
   Add the outline back ONLY for users navigating with a keyboard.
   This is a critical accessibility feature and should not be removed entirely.
*/
*:focus-visible {
    outline: 2px solid var(--app-blue);
    outline-offset: 2px;
    border-radius: 4px; /* Optional: softens the corners of the outline */
}

/* ============================================================
   FOOTER CENTERING
   ============================================================ */
.site-footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px; /* Adds space between the text and the links */
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px; /* Adjusts the space between the links */
}


/* ============================================================
   ARTICLE CONTENT TYPOGRAPHY (For TinyMCE Output)
   ============================================================ */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--ink);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-family: var(--font-sans);
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content a {
    color: var(--app-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .article-content a:hover {
        color: var(--ink);
    }

.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-left: 4px solid var(--app-blue);
    padding-left: 16px;
    margin-left: 0;
    font-style: italic;
    color: var(--ink-3);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin-block: 1.5em;
}

.article-content code {
    background: var(--surface-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--app-pink);
}

.article-content pre {
    background: var(--surface-muted);
    padding: 16px;
    border-radius: var(--r-md);
    overflow-x: auto;
    margin-bottom: 1.5em;
}

/* ============================================================
   Support / Article Cards
   ============================================================ */
.article-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .article-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.article-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--ink);
}

    .article-card-title a {
        color: var(--ink);
        text-decoration: none;
    }

        .article-card-title a:hover {
            color: var(--app-blue);
            text-decoration: none;
        }

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: auto;
    padding-bottom: 16px;
}

    .article-card-meta span {
        color: var(--ink-2);
    }

    .article-card-meta .meta-divider {
        color: var(--line-strong);
    }

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

    .article-card-footer .read-more {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--app-blue);
        text-decoration: none;
    }

        .article-card-footer .read-more:hover {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

    .article-card-footer .edit-link {
        font-size: 0.85rem;
        color: var(--ink-3);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .article-card-footer .edit-link:hover {
            color: var(--ink);
        }

.btn-text-danger:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.8;
}

.custom-select {
    padding: 14px 40px 14px 14px;
    font-size: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background-color: var(--surface);
    color: var(--ink);
    outline: none;
    cursor: pointer;
    min-width: 200px;
    /* Remove default browser arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom SVG Arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 14px top 50%;
    background-size: 12px auto;
}

    .custom-select:hover {
        border-color: var(--app-blue);
    }

/* Back to Help & Support button */
a.back-support-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

    a.back-support-btn:hover {
        background-color: #1d4ed8 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transform: translateY(-1px);
    }

    a.back-support-btn span {
        font-size: 1.3rem;
        line-height: 1;
    }


/* ============================================================
   ARTICLE TABLES (Soft, Modern Styling)
   ============================================================ */

.article-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin: 2em 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

    /* Table cells */
    .article-content table td,
    .article-content table th {
        padding: 20px 24px;
        border: none !important;
        border-bottom: 1px solid var(--line) !important;
        border-right: 1px solid var(--line) !important;
        color: var(--ink-2);
        vertical-align: middle;
    }

    /* Remove unnecessary final borders */
    .article-content table tr:last-child td {
        border-bottom: none !important;
    }

    .article-content table td:last-child,
    .article-content table th:last-child {
        border-right: none !important;
    }

    /* Optional table headings */
    .article-content table th {
        background: var(--surface-muted);
        color: var(--ink);
        font-weight: 700;
        text-align: left;
    }

    /* Images inside tables */
    .article-content table img {
        display: block;
        max-width: 100%;
        height: auto !important;
        margin: 8px auto;
        border-radius: var(--r-md);
    }

    /* Subtle hover effect on rows */
    .article-content table tbody tr {
        transition: background 0.2s ease;
    }

        .article-content table tbody tr:hover {
            background: var(--surface-muted);
        }

/* Mobile responsiveness */
@media (max-width: 600px) {
    .article-content table td,
    .article-content table th {
        padding: 12px;
    }

    .article-content table {
        font-size: 0.9rem;
    }
}


.article-content {
    font-family: inherit;
}

    .article-content img,
    .article-content video {
        max-width: 100%;
    }

.article-content {
    overflow-wrap: break-word;
}

/* Ensure emoji characters use the system emoji font */
.article-content {
    font-variant-emoji: emoji;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #303039;
    color: #ffffff;
    padding: 16px 48px 14px;
    text-align: center;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.5;
    animation: cookie-slide-up 0.3s ease-out;
}

.cookie-message {
    max-width: 1200px;
    margin: 0 auto 8px;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cookie-dismiss,
.cookie-privacy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: #287fc5;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .cookie-dismiss:hover,
    .cookie-privacy:hover {
        background: #1769aa;
        color: #ffffff;
        text-decoration: none;
    }

.cookie-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

    .cookie-close:hover {
        color: #ffffff;
    }

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 18px 36px 16px;
        font-size: 0.8rem;
    }

    .cookie-actions {
        flex-wrap: wrap;
    }
}

/* --- Green "Got it" button --- */
.cookie-dismiss {
    background: #28a745; /* Clean accessible green */
}

    .cookie-dismiss:hover {
        background: #218838; /* Slightly darker green on hover */
    }


/* ============================================================
   KNOWLEDGE BASE CATEGORY LABELS
   ============================================================ */

.category-label {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    color: hsl(var(--category-hue) 65% 36%);
    background: hsl(var(--category-hue) 75% 94%);
    border: 1px solid hsl(var(--category-hue) 55% 84%);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ============================================================
   PAGINATION - DISABLED STATES
   ============================================================ */

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

    /* Prevent hover styling on disabled buttons */
    .btn:disabled:hover {
        background: inherit;
        color: inherit;
        border-color: inherit;
        transform: none;
    }

.callout-red {
    background: var(--surface-muted);
    border-left: 4px solid #ef4444;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 24px;
    font-size: 1rem;
    color: var(--ink-2);
}

    .callout-red h3 {
        color: #ef4444;
        margin-bottom: 12px;
    }

    .callout-red p:last-child {
        margin-bottom: 0;
    }