/* =============================================================================
   NoteBrain — Main Stylesheet
   Brand: deep teal/emerald primary, amber/gold CTAs, dark charcoal, clean white
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Variables & Reset
   ----------------------------------------------------------------------------- */

:root {
    /* Brand colors */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --primary-bg: rgba(34, 197, 94, 0.06);
    --primary-border: rgba(34, 197, 94, 0.2);

    /* CTA / Accent */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-bg: rgba(245, 158, 11, 0.08);

    /* Neutrals */
    --charcoal: #0f172a;
    --charcoal-light: #1e293b;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-warm: #fefce8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Semantic */
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px rgba(34, 197, 94, 0.25);
    --shadow-accent: 0 4px 14px rgba(245, 158, 11, 0.25);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Layout */
    --container-max: 1100px;
    --container-narrow: 800px;
    --container-xs: 440px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Anchor jumps (e.g. /#pricing from the dashboard) must clear the 64px sticky
   navbar so the section heading lands fully visible below it. */
section[id] {
    scroll-margin-top: 80px;
}

/* -----------------------------------------------------------------------------
   2. Typography
   ----------------------------------------------------------------------------- */

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--charcoal);
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-alt);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* -----------------------------------------------------------------------------
   3. Layout
   ----------------------------------------------------------------------------- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.section {
    padding: var(--space-4xl) var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

/* Section backgrounds */
.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--charcoal);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff;
}

.section-dark p {
    color: #94a3b8;
}

/* -----------------------------------------------------------------------------
   4. Navbar
   ----------------------------------------------------------------------------- */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 var(--space-md);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: var(--charcoal);
}

/* Logo */
.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}

.nav-logo img,
.nav-logo svg {
    width: 44px;
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-links .btn {
    margin-left: var(--space-sm);
}

/* `.nav-links a` (0,1,1) outranks `.btn-primary` (0,1,0), so primary buttons in
   the nav lose their white text — restore it (and keep it white on hover). */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #ffffff;
}

/* `.nav-links a:hover` (0,2,1) also overrode the button background with the nav's
   light hover bg, washing the green button to white on hover. Restore it. */
.nav-links a.btn-primary:hover {
    background: var(--primary-dark);
}

/* Features dropdown inside the nav */
.nav-features {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-features-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-features-trigger:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-features-trigger .material-symbols-rounded {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.nav-features.open .nav-features-trigger .material-symbols-rounded {
    transform: rotate(180deg);
}

.nav-features-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 110;
}

.nav-features:hover .nav-features-menu,
.nav-features:focus-within .nav-features-menu,
.nav-features.open .nav-features-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-features-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.nav-features-menu a .material-symbols-rounded {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.nav-features-menu a:hover .material-symbols-rounded {
    color: var(--primary);
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
    line-height: 0;
}

.nav-toggle .material-symbols-rounded {
    font-size: 28px;
}

/* Mobile nav: hamburger toggles a dropdown panel */
@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: var(--space-sm) var(--space-md);
        box-shadow: var(--shadow-md);
        gap: var(--space-xs);
    }
    .navbar.menu-open .nav-links {
        display: flex;
    }
    .nav-features {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-features-trigger {
        justify-content: space-between;
        width: 100%;
    }
    /* Inline (accordion) submenu on mobile instead of a floating dropdown */
    .nav-features-menu {
        position: static;
        min-width: 0;
        border: none;
        box-shadow: none;
        padding: 0 0 0 var(--space-md);
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-fast);
    }
    .nav-features.open .nav-features-menu {
        max-height: 360px;
    }
    /* Hover must not open it on mobile — only the explicit .open toggle */
    .nav-features:hover .nav-features-menu,
    .nav-features:focus-within .nav-features-menu {
        max-height: 0;
    }
    .nav-features.open:hover .nav-features-menu,
    .nav-features.open:focus-within .nav-features-menu {
        max-height: 360px;
    }
    .nav-links .btn {
        margin-left: 0;
        margin-top: var(--space-xs);
    }
}

/* -----------------------------------------------------------------------------
   5. Buttons & Forms
   ----------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-accent {
    background: var(--accent);
    color: var(--charcoal);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
    color: var(--charcoal);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-google {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    display: flex;
    width: 100%;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-full {
    width: 100%;
}

/* Forms */
.input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0.5rem;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.input::placeholder {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: var(--space-md);
}

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

.form-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.message.success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

.message.error {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid var(--danger-border);
}

.message.warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid var(--warning-border);
}

.hidden { display: none !important; }

/* -----------------------------------------------------------------------------
   6. Hero
   ----------------------------------------------------------------------------- */

.hero {
    text-align: center;
    padding: var(--space-2xl) var(--space-md) var(--space-3xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.hero-logo {
    width: 80px;
    height: auto;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-md);
    line-height: 1.15;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-taglines {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.hero-tagline-icon {
    margin-top: 0.25rem;
}

.hero-tagline-emphasis {
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    background: var(--primary-bg);
    color: var(--text);
}

.hero-tagline-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 180px;
}

.hero-editors-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.editors-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hero-editors-strip span {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-editors-strip .material-symbols-rounded {
    font-size: 16px;
}

.hero-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* -----------------------------------------------------------------------------
   6b. Value Props
   ----------------------------------------------------------------------------- */

.value-props {
    padding: var(--space-2xl) var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.value-props-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.value-prop {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.vp-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-prop strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.value-prop p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   7. Three Ways
   ----------------------------------------------------------------------------- */

.three-ways {
    padding: var(--space-4xl) var(--space-md);
}

.three-ways .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 720px;
    margin: 0 auto;
    align-items: start;
}

.way-card {
    background: var(--bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.way-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}


.way-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--space-xs);
}

.way-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.way-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

.way-pitch {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.way-card ul {
    list-style: none;
    margin-bottom: var(--space-md);
    flex: 1;
}

.way-card ul li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.way-card ul li::before {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 2px;
}

.way-card ul li.pro::before {
    content: "\2713";
    color: var(--primary);
}

.way-card ul li.con::before {
    content: "\2013";
    color: var(--text-muted);
}

.way-card ul li.con {
    color: var(--text-muted);
}

.way-card ul li.way-sep {
    display: block;
    margin: 0.55rem 0 0.1rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}

.way-platforms {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* -----------------------------------------------------------------------------
   7b. Editors Strip
   ----------------------------------------------------------------------------- */

.editors-strip {
    padding: var(--space-2xl) var(--space-md);
}

.editors-strip .section-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.editors-strip .section-header {
    margin-bottom: var(--space-lg);
}

.editors-strip .section-header h2 {
    font-size: 1.5rem;
}

.editors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: var(--space-md);
}

.editor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition-fast);
}

.editor-chip:hover {
    border-color: var(--primary-border);
    background: var(--primary-bg);
}

.editor-chip span {
    font-size: 1rem;
}

.editors-extras {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   7c. AI Block — RAG chat-window mock, matching the editors / collab layout.
   ----------------------------------------------------------------------------- */

.ai-block {
    padding: var(--space-4xl) var(--space-md);
    background: var(--bg);
}

.ai-block .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.ai-block-heading { color: #000; }

.ai-block-heading em {
    font-style: italic;
    color: var(--primary-dark);
}

.ai-chat-stage {
    display: grid;
    gap: var(--space-xl);
    max-width: 780px;
    margin: 0 auto;
}

/* --- Chat window --- */
.ai-chat-window {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    /* Narrow side-panel width, mirroring the in-app AI Assistant */
    width: 100%;
    max-width: 420px;
    justify-self: center;
}

/* Header mirrors the in-app AI Assistant panel: sparkle avatar + title + action icons */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.ai-chat-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}

.ai-chat-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ai-chat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.ai-chat-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ai-chat-mode-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: ai-chat-pulse 2.4s ease-in-out infinite;
}

.ai-chat-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.ai-chat-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--text-muted);
}

.ai-chat-hbtn .material-symbols-rounded { font-size: 1.1rem; }

@keyframes ai-chat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.ai-chat-body {
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 260px;
    background: var(--bg);
}

.ai-chat-msg {
    display: flex;
    gap: 0.5rem;
    max-width: 88%;
}

.ai-chat-msg-user { align-self: flex-end; }
.ai-chat-msg-ai   { align-self: flex-start; max-width: 94%; }

.ai-chat-avatar-msg {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    margin-top: 2px;
}

.ai-chat-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text);
}

.ai-chat-msg-user .ai-chat-bubble {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    border-radius: 12px 4px 12px 12px;
}

.ai-chat-msg-ai .ai-chat-bubble {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px 12px 12px 12px;
}

.ai-chat-time {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.66rem;
    text-align: right;
    color: var(--text-muted);
}

.ai-chat-msg-user .ai-chat-time { color: rgba(255, 255, 255, 0.65); }

.ai-chat-msg-ai .ai-chat-bubble p { margin-bottom: 0.6rem; }
.ai-chat-msg-ai .ai-chat-bubble p:last-child { margin-bottom: 0; }

.ai-chat-msg-ai .ai-chat-bubble strong { color: var(--primary-dark); }

.ai-chat-sources {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.ai-chat-sources-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.ai-chat-source-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ai-chat-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: 6px;
}

.ai-chat-source-pill .material-symbols-rounded {
    font-size: 0.95rem;
}

.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.ai-chat-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 2.2rem 0.55rem 0.85rem;
}

.ai-chat-input-placeholder {
    flex: 1;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.ai-chat-mic {
    position: absolute;
    right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: var(--text-muted);
}

.ai-chat-mic .material-symbols-rounded { font-size: 1rem; }

.ai-chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #6366f1;
    color: #fff;
    flex-shrink: 0;
}

.ai-chat-send .material-symbols-rounded { font-size: 1.05rem; }

/* --- Methods grid below the chat --- */
.ai-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.ai-method-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ai-method-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.ai-method-icon .material-symbols-rounded { font-size: 1.25rem; }

.ai-method-card strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.ai-method-card span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

@media (max-width: 700px) {
    .ai-methods-grid { grid-template-columns: 1fr; }
    .ai-chat-body { padding: 0.9rem 1rem; }
    .ai-chat-bubble { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-chat-mode-dot { animation: none; }
}

/* -----------------------------------------------------------------------------
   7b. Editors carousel — auto-advancing tabbed demo of each editor type.
       Pure HTML/CSS mocks, no third-party JS. JS sets data-active on .ed-window.
   ----------------------------------------------------------------------------- */

.editors-block {
    padding: var(--space-4xl) var(--space-md);
    background: var(--bg-alt);
}

.editors-block .section-inner { max-width: var(--container-max); margin: 0 auto; }

.editors-heading { color: #000; }

.editors-demo {
    max-width: 780px;
    margin: 0 auto;
}

/* --- Tab strip --- */
.editors-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: var(--space-md);
}

.editor-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.editor-tab .material-symbols-rounded {
    font-size: 1rem;
    color: var(--text-muted);
}

.editor-tab:hover {
    border-color: var(--primary);
    color: var(--text);
}

.editor-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.editor-tab.active .material-symbols-rounded { color: #fff; }

/* --- The single window that swaps content --- */
.ed-window {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ed-window-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.ed-dots { display: inline-flex; gap: 5px; }
.ed-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ed-dots span:nth-child(1) { background: #ff5f57; }
.ed-dots span:nth-child(2) { background: #febc2e; }
.ed-dots span:nth-child(3) { background: #28c840; }

.ed-window-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.ed-window-title .material-symbols-rounded {
    font-size: 1.05rem;
    color: var(--primary);
}

/* --- Panel swap: one editor visible at a time --- */
.ed-panel {
    display: none;
    padding: 1.2rem 1.4rem;
    min-height: 320px;
    animation: ed-fade 0.4s ease;
}

.ed-window[data-active="text"]     .ed-panel[data-editor="text"],
.ed-window[data-active="todo"]     .ed-panel[data-editor="todo"],
.ed-window[data-active="kanban"]   .ed-panel[data-editor="kanban"],
.ed-window[data-active="table"]    .ed-panel[data-editor="table"],
.ed-window[data-active="gantt"]    .ed-panel[data-editor="gantt"],
.ed-window[data-active="mindmap"]  .ed-panel[data-editor="mindmap"],
.ed-window[data-active="canvas"]   .ed-panel[data-editor="canvas"] {
    display: block;
}

@keyframes ed-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === TEXT === */
.ed-text-h1 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.55rem; }
.ed-text-h2 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0.95rem 0 0.4rem; }
.ed-text-p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.ed-text-ul { padding-left: 1.2rem; }
.ed-text-ul li { font-size: 0.86rem; color: var(--text); line-height: 1.7; }
.ed-wiki    { color: var(--primary-dark); font-weight: 500; text-decoration: none; border-bottom: 1px dashed var(--primary); padding-bottom: 1px; cursor: pointer; }
.ed-wiki:hover { filter: brightness(1.1); }

/* TEXT split — mirrors app's tiptap-editor split layout:
   .format-toolbar on top, then WYSIWYG pane | 1px splitter | CodeMirror md pane. */
.ed-window[data-active="text"] .ed-panel.ed-panel-split[data-editor="text"] {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.ed-text-split {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}
.ed-text-wysiwyg,
.ed-text-md {
    flex: 1 1 50%;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    overflow: hidden;
}
.ed-text-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}
/* Light-theme markdown pane (One Light–inspired palette) */
.ed-text-md {
    background: #fafbfc;
    color: #383a42;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;
    font-size: 12.5px;
    line-height: 1.75;
}
.ed-text-md .ed-md {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
    border: 0;
}
.ed-text-md .md-mark   { color: #a0a1a7; }
.ed-text-md .md-h1     { color: #986801; font-weight: 700; }
.ed-text-md .md-h2     { color: #986801; font-weight: 600; }
.ed-text-md .md-strong { color: #1e293b; font-weight: 700; }
.ed-text-md .md-em     { color: #1e293b; font-style: italic; }
.ed-text-md .md-list   { color: #c18401; }
.ed-text-md .md-wiki   { color: var(--primary-dark); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 2px; }

/* Format toolbar — mirrors .format-toolbar in editor.component.scss */
.ed-fmt-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    flex-shrink: 0;
    row-gap: 4px;
    gap: 1px;
}
.ed-fmt-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.ed-fmt-btn:hover {
    background: #eef2f7;
    color: var(--primary-dark);
}
.ed-fmt-btn .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
    /* Match the app's mat-icon outlined look (variable font axes) */
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ed-fmt-btn sub {
    font-size: 0.65em;
    font-weight: 700;
    line-height: 1;
    vertical-align: sub;
}
.ed-fmt-btn.ed-fmt-bold   { font-weight: 800; font-size: 14px; }
.ed-fmt-btn.ed-fmt-italic { font-style: italic; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; font-weight: 600; }
.ed-fmt-btn.ed-fmt-strike { font-size: 14px; }
.ed-fmt-btn.ed-fmt-code   { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-weight: 500; font-size: 11px; letter-spacing: -0.5px; }
.ed-fmt-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
    flex-shrink: 0;
}

/* === TODO === */
.ed-panel[data-editor="todo"] { display: none; }
.ed-window[data-active="todo"] .ed-panel[data-editor="todo"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-content: start;
}

.ed-todo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.ed-todo-card-head {
    padding: 0.5rem 0.85rem;
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border);
}

.ed-todo-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* Per-card progress bar (matches the app's todo editor) */
.ed-todo-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-todo-progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 26px;
}

.ed-todo-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ed-todo-progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: var(--radius-full);
}

.ed-todo-card-items { padding: 0.5rem 0.85rem; }

.ed-todo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0;
    font-size: 0.82rem;
    color: var(--text);
}

.ed-todo-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--text-muted);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.ed-todo-box.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.ed-todo-box.checked::after {
    content: '';
    position: absolute;
    left: 3px; top: 0;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ed-todo-strike { text-decoration: line-through; color: var(--text-muted); }

.ed-todo-due {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Overdue task — red text + red badge, like the app */
.ed-todo-item.overdue { color: #ef4444; }

.ed-todo-due.overdue {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.13);
}

/* Add task button (footer row + full-width button, matches the app) */
.ed-todo-add-row {
    padding: 0.5rem 0.85rem 0.7rem;
    border-top: 1px solid var(--border);
}

.ed-todo-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-muted);
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.ed-todo-add i { font-size: 1rem; line-height: 1; }

.ed-todo-add:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* === KANBAN === */
.ed-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.ed-kanban-col {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-top: 3px solid var(--col, var(--primary));
    border-radius: var(--radius);
    padding: 0.55rem 0.5rem;
    min-width: 0;
}

.ed-kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 0.2rem 0.5rem;
}

.ed-kanban-count {
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.66rem;
    padding: 0 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.ed-kanban-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--col, var(--primary));
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    font-size: 0.76rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    box-shadow: var(--shadow-xs);
    line-height: 1.35;
}

/* === TABLE === */
.ed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.ed-table th,
.ed-table td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.7rem;
    text-align: left;
}

.ed-table th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ed-table-num { text-align: right; font-variant-numeric: tabular-nums; }

.ed-table-total td { background: var(--primary-bg); }

/* === GANTT === Dark-theme rendering matching the app's default theme-dark-void.
   All design tokens come from your own first-party files:
   styles.scss (theme variables) + gantt-editor.component.scss (formulas). */
.ed-gantt {
    /* Values from your own first-party theme + gantt-editor.component.scss,
       resolved against the default theme-dark-void in styles.scss:
         --bg-editor:    #0a0c12   (panel)
         --accent:       #818cf8   (gantt-blue)
         --text-primary: #f0f2ff   (label)
       Your SCSS expressions then resolve to:
         task-color        = color-mix(in srgb, #818cf8 50%, #000)
         task-fill-color   = color-mix(in srgb, #818cf8 6%,  #0a0c12)
         task-border-color = color-mix(in srgb, #818cf8 65%, transparent)
         link-color        = color-mix(in srgb, #94a3b8 60%, transparent) */
    --gantt-blue:           #818cf8;   /* bar bg (undone)              */
    --gantt-blue-deep:      #312e81;   /* progress fill (done)         */
    --gantt-blue-fill:      #818cf8;   /* alias                        */
    --gantt-blue-border:    #4f46e5;   /* bar border                   */
    --gantt-orange:         #f59e0b;
    --gantt-red:            #e11d48;
    --gantt-grid:           rgba(15, 23, 42, 0.06);
    --gantt-divider:        var(--border);
    --gantt-bg:             #ffffff;
    --gantt-bg-alt:         var(--bg-alt);
    --gantt-text:           var(--text);
    --gantt-text-muted:     var(--text-muted);
    --gantt-link:           #9fa1ae;
    --gantt-row-h:          36px;
    --gantt-bar-h:          24px;
    border: 1px solid var(--gantt-divider);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 13px;
    color: var(--gantt-text);
    background: var(--gantt-bg);
}

/* --- 2-level time axis (year + months) --- */
.ed-gantt-axis {
    background: var(--gantt-bg-alt);
    border-bottom: 1px solid var(--gantt-divider);
    font-weight: 600;
    color: var(--gantt-text-muted);
}

.ed-gantt-axis-top {
    text-align: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--gantt-grid);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ed-gantt-axis-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 11px;
}

.ed-gantt-axis-bottom span {
    text-align: center;
    padding: 0.35rem 0;
    border-left: 1px dashed var(--gantt-grid);
}

.ed-gantt-axis-bottom span:first-child { border-left: none; }

/* --- Plot area --- */
.ed-gantt-area {
    position: relative;
    background:
        repeating-linear-gradient(90deg,
            transparent 0,
            transparent calc(33.333% - 1px),
            var(--gantt-grid) calc(33.333% - 1px),
            var(--gantt-grid) 33.333%);
}

.ed-gantt-row {
    position: relative;
    height: var(--gantt-row-h);
    border-bottom: 1px solid var(--gantt-grid);
}

.ed-gantt-row:last-of-type { border-bottom: none; }

/* Group "scope" — orange-tinted band behind the group + child rows.
   Mirrors .gantt-group-scope from the app.                                */
.ed-gantt-scope {
    position: absolute;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--gantt-orange) 10%, transparent);
    border-left: 3px solid var(--gantt-orange);
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

/* --- Bars (shared) --- */
.ed-gantt-bar {
    position: absolute;
    top: calc((var(--gantt-row-h) - var(--gantt-bar-h)) / 2);
    height: var(--gantt-bar-h);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Active task — bar base = medium blue (--gantt-blue), progress fill =
   darker blue (--gantt-blue-deep). Matches SVAR Willow rendering.        */
.ed-gantt-bar-active {
    background: var(--gantt-blue);
    border: 1px solid var(--gantt-blue-border);
}

.ed-gantt-bar-active .ed-gantt-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--gantt-blue-deep);
    z-index: 0;
}

/* Progress ticker — cyan vertical handle at the done/undone boundary with a
   "XX%" pill above the bar. Mirrors .wx-progress-marker:hover from the SCSS
   (#06b6d4 with cyan glow + cyan etiquette pill).                         */
.ed-gantt-progress-tick {
    position: absolute;
    top: calc((var(--gantt-row-h) - var(--gantt-bar-h)) / 2 - 1px);
    height: calc(var(--gantt-bar-h) + 2px);
    width: 2px;
    margin-left: -1px;
    background: #06b6d4;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.55);
    z-index: 4;
}

.ed-gantt-progress-tick::before {
    content: attr(data-pct);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #06b6d4;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    padding: 0 6px;
    min-width: 28px;
    height: 16px;
    text-align: center;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.ed-gantt-progress-tick::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #06b6d4;
}

/* Group / summary — full orange background, same height as task bars */
.ed-gantt-bar-group {
    background: var(--gantt-orange);
    border: 1px solid color-mix(in srgb, var(--gantt-orange) 70%, transparent);
}

/* Bar label — always white, with a soft shadow for readability across the
   two-tone fill (dark blue done / lighter blue undone) and slate pending. */
.ed-gantt-bar-label {
    position: relative;
    z-index: 2;
    padding: 0 0.6rem;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.01em;
}

/* Milestone — red diamond + label beside it */
.ed-gantt-milestone {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--gantt-red);
    border: 1px solid var(--gantt-red);
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(225, 29, 72, 0.5);
    z-index: 2;
}

.ed-gantt-milestone-label {
    position: absolute;
    top: 50%;
    transform: translate(14px, -50%);
    padding: 0 0.4rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--gantt-red);
    white-space: nowrap;
    z-index: 2;
}

/* --- Spline dependency links ---
   Layered ABOVE the bars (z-index 3 vs bar z-index 2) so each spline's tail
   stays visible all the way to the successor bar's begin border. For an
   FS overlap (succ.start < pred.end), the spline's final horizontal segment
   runs into the bar's interior; without raising the layer, that tail would
   be hidden behind the bar and the link would appear to vanish.           */
.ed-gantt-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* === MIND MAP === mind-elixir bilateral: root in centre, 4 branches
   (top-left, bottom-left, top-right, bottom-right) connected by smooth
   bezier curves in each branch's accent colour.                         */
.ed-mindmap {
    position: relative;
    height: 280px;
    width: 100%;
}

.ed-mm-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ed-mm-root {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.8rem 1.4rem;
    background: #818cf8;
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 4px 20px rgba(129, 102, 248, 0.4);
    letter-spacing: -0.01em;
    z-index: 2;
}

.ed-mm-branch {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    z-index: 1;
}

/* Anchor each branch's root-facing node edge directly onto the SVG curve
   endpoints. The connectors use viewBox 800×280 with preserveAspectRatio="none",
   so their endpoints are percentages of the box: x 220/800=27.5% (left) and
   580/800=72.5% (right); y 60/280=21.43% (top) and 220/280=78.57% (bottom).
   Matching the nodes to those same percentages keeps the lines touching the
   children at every container width. translate(-50%) centres the node on the
   endpoint vertically; translateX(-100%) puts a left branch's right (node) edge
   on the endpoint. */
.ed-mm-tl, .ed-mm-bl { left: 27.5%; transform: translate(-100%, -50%); flex-direction: row-reverse; }
.ed-mm-tr, .ed-mm-br { left: 72.5%; transform: translate(0, -50%); }
.ed-mm-tl, .ed-mm-tr { top: 21.43%; }
.ed-mm-bl, .ed-mm-br { top: 78.57%; }

.ed-mm-node {
    background: #fff;
    color: var(--c, #818cf8);
    border: 2px solid var(--c, #818cf8);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Leaf cluster: individual child nodes stacked like mind-elixir sub-topics */
.ed-mm-leaves {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

/* Each leaf mirrors a mind-elixir child me-tpc: small rounded box with a
   coloured bottom-border in the branch colour. */
.ed-mm-leaf {
    background: #fff;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.22rem 0.55rem;
    border-radius: 5px;
    border-bottom: 2px solid var(--c, #818cf8);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Left-side branches grow their leaves toward the outer (left) edge */
.ed-mm-tl .ed-mm-leaves,
.ed-mm-bl .ed-mm-leaves { align-items: flex-end; }

/* === CANVAS === */
.ed-canvas {
    display: block;
    width: 100%;
    max-height: 320px;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .editors-tabs { font-size: 0.74rem; }
    .editor-tab { padding: 0.32rem 0.7rem; font-size: 0.72rem; }
    .ed-panel { padding: 0.9rem 1rem; min-height: 260px; }
    .ed-window[data-active="text"] .ed-panel.ed-panel-split[data-editor="text"] { padding: 0; }
    .ed-text-split { flex-direction: column; }
    .ed-text-wysiwyg, .ed-text-md { padding: 0.9rem 1rem; flex: 1 1 auto; }
    .ed-text-divider { width: 100%; height: 1px; }
    .ed-fmt-toolbar { padding: 4px 6px; gap: 1px; }
    .ed-fmt-btn { width: 26px; height: 26px; }
    .ed-window[data-active="todo"] .ed-panel[data-editor="todo"] { grid-template-columns: 1fr; }
    .ed-kanban { grid-template-columns: 1fr; }
    .ed-mm-leaves { gap: 0.22rem; }
    .ed-mm-leaf { font-size: 0.64rem; padding: 0.18rem 0.45rem; }
    .ed-mm-node { font-size: 0.74rem; padding: 0.3rem 0.6rem; }
    .ed-mm-root { font-size: 0.82rem; padding: 0.55rem 0.9rem; }
    .ed-mindmap { height: 240px; }
    .ed-gantt          { font-size: 11px; }
    .ed-gantt-bar-label { font-size: 10px; padding: 0 0.4rem; }
    .ed-gantt          { --gantt-row-h: 32px; --gantt-bar-h: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .ed-panel { animation: none; }
}

/* -----------------------------------------------------------------------------
   8a. AI Write demo — rotating inline-edit animation (mirrors the in-app
       welcome screen). Vanilla JS sets data-step on .ai-demo-window.
   ----------------------------------------------------------------------------- */

.ai-write-block {
    --ai: #6366f1;
    --ai-dark: #4f46e5;
    --ai-soft: rgba(99, 102, 241, 0.12);
    --ai-soft-2: rgba(99, 102, 241, 0.06);
    padding: var(--space-4xl) var(--space-md);
    background: var(--bg);
}

.ai-write-block .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.ai-write-heading {
    color: #000;
}

.ai-write-stage {
    display: flex;
    justify-content: center;
}

.ai-demo-panel {
    width: 100%;
    max-width: 460px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.ai-demo-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ai);
    margin-bottom: 0.5rem;
}

.ai-demo-label .material-symbols-rounded {
    font-size: 1rem;
}

.ai-demo-window {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.ai-demo-caption {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    text-align: center;
}

/* --- Demo lines: hidden by default, revealed via [data-step] --- */
.ai-demo-selected,
.ai-demo-action-menu,
.ai-demo-result-inline,
.ai-demo-inline-bar {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.ai-demo-window[data-step="1"] .ai-demo-selected,
.ai-demo-window[data-step="2"] .ai-demo-selected,
.ai-demo-window[data-step="3"] .ai-demo-selected,
.ai-demo-window[data-step="4"] .ai-demo-selected { opacity: 1; }

.ai-demo-window[data-step="2"] .ai-demo-action-menu,
.ai-demo-window[data-step="3"] .ai-demo-action-menu,
.ai-demo-window[data-step="4"] .ai-demo-action-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-demo-window[data-step="3"] .ai-demo-result-inline,
.ai-demo-window[data-step="4"] .ai-demo-result-inline { opacity: 1; }

.ai-demo-window[data-step="4"] .ai-demo-inline-bar { opacity: 1; }

/* --- Source highlight ("user selection") --- */
.ai-demo-highlight {
    background: var(--ai-soft);
    border-left: 2px solid var(--ai);
    padding: 5px 9px;
    display: block;
    border-radius: 0 4px 4px 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-demo-word-selected {
    background: var(--ai);
    color: #fff;
    padding: 0 3px;
    border-radius: 2px;
}

/* --- Ask AI menu --- */
.ai-demo-action-menu {
    align-self: flex-start;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--ai);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.22);
    transform: translateY(4px) scale(0.96);
    transform-origin: top left;
}

.ai-menu-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ai);
    padding: 2px 6px 5px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.ai-pill-emoji { font-size: 0.9rem; }

.ai-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    font-size: 0.74rem;
    border-radius: 4px;
    color: var(--text);
}

.ai-menu-item.selected {
    background: var(--ai-soft);
    color: var(--ai-dark);
    font-weight: 500;
}

.ai-menu-item .material-symbols-rounded {
    font-size: 0.95rem;
}

.ai-menu-prompt {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 0 20px;
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.ai-menu-prompt .material-symbols-rounded {
    font-size: 0.85rem;
    opacity: 0.7;
    flex-shrink: 0;
}

/* --- Inline replace result --- */
.ai-demo-result-inline {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text);
}

.ai-demo-inline-replaced {
    display: block;
    padding: 5px 9px;
    border: 1.5px dashed var(--ai);
    border-radius: 6px;
    background: var(--ai-soft-2);
    font-size: 0.76rem;
    line-height: 1.5;
}

.ai-demo-cursor {
    display: inline-block;
    color: var(--ai);
    font-weight: 300;
    margin-left: 2px;
}

.ai-demo-window[data-step="3"] .ai-demo-cursor {
    animation: ai-demo-blink 0.6s step-end infinite;
}

@keyframes ai-demo-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.ai-diff-remove {
    color: #ef4444;
    text-decoration: line-through;
    opacity: 0.7;
}

.ai-diff-add {
    color: #16a34a;
    font-weight: 500;
}

/* Injected via innerHTML by the To List demo. */
.ai-demo-todo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--text);
}

.ai-demo-todo .ai-demo-box {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--text-muted);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Injected via innerHTML by the Generate demo. */
.ai-demo-prose {
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 2px;
}

.ai-demo-prose strong {
    color: var(--ai-dark);
}

/* --- Accept / Undo bar --- */
.ai-demo-inline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 9px;
    background: var(--ai-soft-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.ai-demo-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ai-dark);
    font-weight: 600;
}

.ai-demo-bar-label .material-symbols-rounded { font-size: 0.85rem; }

.ai-demo-bar-btns {
    display: inline-flex;
    gap: 6px;
}

.ai-demo-bar-accept,
.ai-demo-bar-undo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
}

.ai-demo-bar-accept {
    background: var(--ai);
    color: #fff;
}

.ai-demo-bar-undo {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.ai-demo-bar-accept .material-symbols-rounded,
.ai-demo-bar-undo   .material-symbols-rounded {
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .ai-demo-panel { max-width: 100%; }
    .ai-demo-window { padding: 11px; min-height: 240px; }
    .ai-demo-highlight,
    .ai-demo-inline-replaced { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-demo-selected,
    .ai-demo-action-menu,
    .ai-demo-result-inline,
    .ai-demo-inline-bar {
        transition: none;
    }
    .ai-demo-cursor { animation: none; }
}

/* -----------------------------------------------------------------------------
   8b. Collaboration / Sync block — two side-by-side app mockups
   ----------------------------------------------------------------------------- */

.collab-heading {
    color: #000;
}

.collab-block {
    --alice: #8b5cf6;
    --alice-dark: #7c3aed;
    --bob: #06b6d4;
    --bob-dark: #0891b2;
    padding: var(--space-4xl) var(--space-md);
    background: linear-gradient(180deg, var(--bg-alt) 0%, #eef2f7 100%);
}

.collab-block .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* --- Two screens stage --- */
.collab-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--space-lg);
    max-width: 860px;
    margin: 0 auto;
}

.collab-screen {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 0;
}

.collab-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.collab-dots {
    display: inline-flex;
    gap: 5px;
}

.collab-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.collab-dots span:nth-child(1) { background: #ff5f57; }
.collab-dots span:nth-child(2) { background: #febc2e; }
.collab-dots span:nth-child(3) { background: #28c840; }

.collab-titlebar-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.collab-titlebar-text .material-symbols-rounded {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Editor area (full width — no sidebar) --- */
.collab-editor {
    padding: 1.2rem 1.4rem 1.4rem;
    background: var(--bg);
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
    min-height: 280px;
}

.collab-doc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.collab-doc-h {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.9rem 0 0.45rem;
}

.collab-doc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.collab-doc-list > li {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.45;
}

/* --- Animated typing paragraphs --- */
.collab-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0.5rem 0 0.9rem;
    min-height: 22px;
    position: relative;
}

/* Reserve the fully-typed (two-line wrapped) height up front so the streaming
   text never reflows the editor — the panes stay a fixed size as text types. */
.collab-line-3,
.collab-line-4 {
    align-items: flex-start;
    height: 3.3em;
    min-height: 3.3em;
}

.collab-static {
    color: var(--text-secondary);
}

.collab-text-clip {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    vertical-align: middle;
}

.collab-text {
    display: inline-block;
    font-weight: 500;
}

.collab-line-3 .collab-text,
.collab-line-4 .collab-text { color: var(--text); }

.collab-cursor {
    width: 2px;
    height: 14px;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    margin-left: 1px;
}

.cursor-self::before  { background: var(--text-muted); }
.cursor-alice::before { background: var(--alice); }
.cursor-bob::before   { background: var(--bob); }

.collab-flag {
    position: absolute;
    bottom: 100%;
    left: -2px;
    margin-bottom: 3px;
    padding: 1px 6px;
    border-radius: 3px 3px 3px 0;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.cursor-alice .collab-flag { background: var(--alice); }
.cursor-bob   .collab-flag { background: var(--bob); }

/* Typing animation: shared 10s loop so both screens stay in lock-step, but Alice
   (line 3) and Bob (line 4) type CONCURRENTLY with human-feeling differences:
   different start moments, different speeds, and pauses mid-sentence. */
.collab-line-3 .collab-text-clip { animation: collab-type-3 10s steps(40, end) infinite; }
.collab-line-4 .collab-text-clip { animation: collab-type-4 10s steps(54, end) infinite; }

/* Alice — starts early, brisk, two short pauses. */
@keyframes collab-type-3 {
    0%, 4%   { max-width: 0; }
    11%      { max-width: 13ch; }
    14%      { max-width: 13ch; }   /* pause */
    20%      { max-width: 27ch; }
    23%      { max-width: 27ch; }   /* pause */
    29%      { max-width: 42ch; }   /* done */
    95%      { max-width: 42ch; }
    100%     { max-width: 0; }
}

/* Bob — starts later, slower, longer hesitations (and a longer line). */
@keyframes collab-type-4 {
    0%, 9%   { max-width: 0; }
    17%      { max-width: 12ch; }
    23%      { max-width: 12ch; }   /* longer pause */
    32%      { max-width: 30ch; }
    37%      { max-width: 30ch; }   /* pause */
    44%      { max-width: 56ch; }   /* done — later than Alice */
    95%      { max-width: 56ch; }
    100%     { max-width: 0; }
}

/* Cursor visibility follows each line's own typing window, so the two are
   offset too. Each screen shows ONLY the other person's flagged cursor; your
   own edit is a plain caret with no flag.
   Screen A (Alice): self caret on line 3 (no flag) + Bob's flag on line 4.
   Screen B (Bob):   Alice's flag on line 3 + self caret on line 4 (no flag). */
.cursor-3a { animation: collab-caret-3 10s linear infinite; }  /* Alice's own caret */
.cursor-3b { animation: collab-flag-3  10s linear infinite; }  /* Alice's flag on Bob's screen */
.cursor-4a { animation: collab-flag-4  10s linear infinite; }  /* Bob's flag on Alice's screen */
.cursor-4b { animation: collab-caret-4 10s linear infinite; }  /* Bob's own caret */

/* Own caret: present while typing (incl. pauses), then fades when they stop. */
@keyframes collab-caret-3 {
    0%, 3%    { opacity: 0; }
    5%, 31%   { opacity: 1; }
    36%, 100% { opacity: 0; }
}
@keyframes collab-caret-4 {
    0%, 8%    { opacity: 0; }
    10%, 44%  { opacity: 1; }
    49%, 100% { opacity: 0; }
}

/* The other person's flagged cursor: appears as they start and lingers while
   they stay in the note. */
@keyframes collab-flag-3 {
    0%, 3%    { opacity: 0; }
    5%, 93%   { opacity: 1; }
    96%, 100% { opacity: 0; }
}
@keyframes collab-flag-4 {
    0%, 8%    { opacity: 0; }
    10%, 93%  { opacity: 1; }
    96%, 100% { opacity: 0; }
}

/* Blink only when the parent cursor is opaque — parent's opacity gates the bar. */
.collab-cursor::before {
    content: '';
    position: absolute;
    inset: 0;
    animation: collab-blink 1s steps(2, end) infinite;
}

@keyframes collab-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .collab-stage {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .collab-editor {
        padding: 0.9rem 1rem 1.1rem;
        min-height: 220px;
        font-size: 0.74rem;
    }
    .collab-doc-title { font-size: 0.95rem; margin-bottom: 0.7rem; }
    .collab-doc-h { font-size: 0.78rem; margin: 0.7rem 0 0.4rem; }
    .collab-doc-list > li,
    .collab-line { font-size: 0.72rem; }
    .collab-flag { font-size: 0.55rem; padding: 1px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .collab-line-3 .collab-text-clip,
    .collab-line-4 .collab-text-clip {
        animation: none;
        max-width: none;
    }
    .collab-cursor { opacity: 1; animation: none; }
    .collab-cursor::before { animation: none; }
    .collab-link-pulse { animation: none; }
}

/* -----------------------------------------------------------------------------
   8c. MCP integration
   ----------------------------------------------------------------------------- */

.mcp-block {
    padding: var(--space-4xl) var(--space-md);
}

.mcp-block .section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.mcp-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Left — AI client terminal */
.mcp-client {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 0;
}

.mcp-term-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #111c33;
    border-bottom: 1px solid #1e293b;
}

.mcp-term-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.mcp-term-title .material-symbols-rounded { font-size: 1rem; }

.mcp-term-body {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
}

.mcp-term-line {
    color: #e2e8f0;
    margin: 0 0 var(--space-sm);
}

.mcp-term-prompt {
    color: var(--accent-light);
    font-weight: 700;
    margin-right: 0.4rem;
}

.mcp-term-tool {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 var(--space-xs);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(129, 140, 248, 0.12);
    color: #c7d2fe;
}

.mcp-term-tool .material-symbols-rounded { font-size: 0.95rem; color: #a5b4fc; }
.mcp-term-server { font-weight: 700; color: #e0e7ff; }
.mcp-term-toolname { color: #fbbf24; }
.mcp-term-arg { color: #94a3b8; }

.mcp-term-ok {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #4ade80;
}

.mcp-term-ok .material-symbols-rounded { font-size: 1rem; }

/* Arrow between panels */
.mcp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.mcp-arrow .material-symbols-rounded { font-size: 1.5rem; }

/* Right — created NoteBrain note */
.mcp-note {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 0;
}

.mcp-note-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.mcp-note-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mcp-note-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--accent-bg);
    color: var(--accent-dark);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mcp-note-badge .material-symbols-rounded { font-size: 0.85rem; }

.mcp-note-body { padding: var(--space-sm); }

/* Folder tree of created notes */
.mcp-tree { list-style: none; margin: 0 0 var(--space-sm); padding: 0; }

.mcp-tree > li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mcp-tree > li .material-symbols-rounded { font-size: 1.05rem; }

.mcp-tree-folder {
    font-weight: 700;
    color: var(--text);
}

.mcp-tree-folder .material-symbols-rounded { color: var(--accent-dark); }

.mcp-tree-note { padding-left: 1.4rem !important; }

.mcp-tree-note .material-symbols-rounded { color: var(--text-tertiary, #94a3b8); }

.mcp-tree-active {
    background: var(--accent-bg);
    color: var(--accent-dark);
    font-weight: 600;
}

.mcp-tree-active .material-symbols-rounded { color: var(--accent-dark); }

.mcp-tree-tag {
    margin-left: auto;
    padding: 0.05rem 0.4rem;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Open note showing the SVG diagram */
.mcp-doc {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-top: 1px solid var(--border-light);
}

.mcp-doc-title {
    margin: var(--space-xs) 0 var(--space-xs);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.mcp-doc-text {
    margin: 0 0 var(--space-sm);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.mcp-svg-card {
    margin: 0 auto;
    max-width: 240px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    padding: var(--space-sm) var(--space-sm) var(--space-xs);
}

.mcp-svg-card svg { display: block; width: 100%; height: auto; }

.mcp-svg-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.mcp-svg-eq {
    margin: var(--space-xs) 0 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Client chips row */
.mcp-clients-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.mcp-client-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.mcp-client-chip .material-symbols-rounded { font-size: 1.05rem; color: var(--accent-dark); }

/* MCP servers / clients meta block (below the carousel) */
.mcp-meta {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mcp-meta-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.mcp-meta-note {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    opacity: 0.75;
}

.mcp-server-opts {
    list-style: none;
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mcp-server-opts li {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: center;
}

.mcp-server-tag {
    font-weight: 700;
}

.mcp-meta .mcp-clients-row {
    margin-top: 0;
}

.mcp-client-chip-more {
    border-style: dashed;
    color: var(--text-muted);
}

/* MCP examples carousel — reuses the generic [data-carousel] script in script.js
   plus the .shots-nav / .shots-dot styling. Slide 1 = the visual explainer,
   slide 2 = the live terminal demo. */
.mcp-carousel {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
}

.mcp-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
}

.mcp-track::-webkit-scrollbar { display: none; }

.mcp-cslide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-sizing: border-box;
}

.mcp-cslide .mcp-stage { width: 100%; }

.mcp-slide-card {
    width: 100%;
    max-width: 880px;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 18px 18px 0;
    overflow: hidden;
}

.mcp-slide-card svg { display: block; width: 100%; height: auto; }

.mcp-slide-card figcaption {
    padding: 0.7rem 0.4rem 0.95rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mcp-slide-card figcaption em { font-style: italic; }
.mcp-slide-card figcaption em a { color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid transparent; }
.mcp-slide-card figcaption em a:hover { border-bottom-color: currentColor; }

.mcp-pics-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

.mcp-pics-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
}

.mcp-pics-cta a:hover { text-decoration: underline; }
.mcp-pics-cta .material-symbols-rounded { font-size: 1.1rem; }

/* ============================================================
   /pics — gallery of AI-made visual notes
   ============================================================ */
.pics-hero {
    padding: var(--space-4xl) var(--space-md) var(--space-xl);
    text-align: center;
}

.pics-hero .section-inner { max-width: 760px; margin: 0 auto; }

.pics-hero h1 {
    margin: var(--space-sm) 0 var(--space-md);
    font-size: clamp(2rem, 5vw, 3rem);
}

.pics-hero p { color: var(--text-secondary); font-size: 1.05rem; }

.pics-hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.pics-grid-section { padding: var(--space-xl) var(--space-md) var(--space-4xl); }

.pics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1120px;
    margin: 0 auto;
}

.pics-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 16px 16px 0;
    overflow: hidden;
}

.pics-card svg { display: block; width: 100%; height: auto; }

.pics-card figcaption {
    padding: 0.8rem 0.4rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.pics-foot {
    text-align: center;
    margin-top: var(--space-2xl);
    color: var(--text-muted);
}

@media (max-width: 820px) {
    .pics-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mcp-track { scroll-behavior: auto; }
}

@media (max-width: 760px) {
    .mcp-stage {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .mcp-arrow { transform: rotate(90deg); margin: calc(-1 * var(--space-xs)) auto; }
}

/* -----------------------------------------------------------------------------
   9. Pricing
   ----------------------------------------------------------------------------- */

.pricing {
    padding: var(--space-4xl) var(--space-md);
    background: var(--bg-alt);
}

.pricing-card {
    background: var(--bg);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: scale(1.03);
    z-index: 1;
}

.pricing-card.featured:hover {
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pricing-card.featured .price {
    color: var(--primary-dark);
}

.pricing-card .price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: var(--space-lg);
    text-align: left;
    flex: 1;
}

.pricing-card ul li {
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1px;
}

.pricing-card ul li.included::before {
    content: "\2713";
    color: var(--primary);
}

.pricing-card ul li.excluded::before {
    content: "\2717";
    color: var(--text-muted);
}

.pricing-card ul li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.pricing-card ul li.excluded {
    color: var(--text-muted);
}

.pricing-note {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}

/* Free banner */
.pricing-free-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl);
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
}

.pricing-free-left h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.pricing-free-price {
    color: var(--primary-dark);
    font-weight: 800;
}

.pricing-free-left p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.5;
}

.pricing-free-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pricing-free-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pricing groups */
.pricing-group {
    max-width: 1000px;
    margin: 0 auto var(--space-2xl);
}

.pricing-group:last-of-type {
    margin-bottom: 0;
}

.pricing-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.pricing-group-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
}

.pricing-group-label span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing rows */
.pricing-row {
    display: grid;
    gap: var(--space-lg);
    align-items: start;
}

.pricing-row-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
}

.pricing-row-3 {
    grid-template-columns: repeat(3, 1fr);
}


.pricing-period-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-card, rgba(0,0,0,0.05));
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border-light);
}

.pricing-period-toggle button {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-period-toggle button:hover {
    color: var(--text-primary);
}

.pricing-period-toggle button.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pricing-period-toggle .save-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    white-space: nowrap;
}

.pricing-period-toggle button.active .save-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

.pricing-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Quota progress bars (dashboard) */
.quota-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.quota-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.quota-bar-fill.warning {
    background: var(--warning);
}

.quota-bar-fill.danger {
    background: var(--danger);
}

.quota-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Plan badges for subscription tiers */
.plan-badge-ai {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}


/* Final CTA */
.final-cta {
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
    background: var(--bg);
}

.final-cta h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* -----------------------------------------------------------------------------
   10. Demo (inside AI block)
   ----------------------------------------------------------------------------- */

.ai-block-demo {
    width: 100%;
}

.demo-window {
    background: var(--charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.demo-window-body {
    padding: var(--space-lg);
}

.demo-chat {
    display: flex;
    gap: var(--space-sm);
}

.demo-chat .input {
    flex: 1;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.demo-chat .input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.demo-chat .input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.demo-response {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    min-height: 60px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.demo-counter {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: #64748b;
}

/* -----------------------------------------------------------------------------
   12. Footer
   ----------------------------------------------------------------------------- */

.footer {
    background: var(--charcoal);
    color: #94a3b8;
    padding: var(--space-3xl) var(--space-md) var(--space-xl);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    max-width: var(--container-max);
    margin: 0 auto var(--space-2xl);
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
}

.footer-version {
    opacity: 0.5;
    margin-left: 0.5em;
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: #64748b;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: #ffffff;
}

/* Legacy footer-links compat */
.footer-links a {
    margin: 0 0.5rem;
    color: #64748b;
    text-decoration: none;
}

.footer-links a:hover { color: #ffffff; }

/* -----------------------------------------------------------------------------
   13. Auth Pages
   ----------------------------------------------------------------------------- */

.auth-page {
    min-height: calc(100vh - 64px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: var(--container-xs);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo .nav-brand {
    display: inline-flex;
    font-size: 1.35rem;
    justify-content: center;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.auth-form {
    margin: 0;
}

.auth-links {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
}

.auth-links p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   14. Dashboard
   ----------------------------------------------------------------------------- */

.dashboard {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.dashboard-header {
    margin-bottom: var(--space-lg);
}

.dashboard-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* ── Welcome banner ── */
.dash-welcome {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-welcome-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.dash-welcome h3 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--text);
}

.dash-welcome p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.dash-welcome-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

.dash-welcome-close:hover {
    color: var(--text);
}

/* ── Plan card (top) ── */
.dash-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.dash-plan-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.dash-plan-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-plan-role-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.dash-plan-role-badge.leader {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.dash-plan-role-badge.member {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dash-plan-badge.paid {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 197, 94, 0.1));
    color: var(--primary);
    border-color: var(--primary-border);
}

.dash-plan-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dash-plan-details span:first-child {
    font-weight: 600;
    color: var(--text);
}

.status-active { color: var(--success, #22c55e); }
.status-cancelled { color: var(--danger, #ef4444); }
.status-grace { color: #f59e0b; }

.dash-plan-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ── Quota bars ── */
.dash-quota-section {
    margin-bottom: var(--space-lg);
}

.dash-quota-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.dash-quota {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
}

.dash-quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dash-quota-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-quota-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.dash-quota-track {
    height: 6px;
    background: var(--border-light, #e2e8f0);
    border-radius: 3px;
    overflow: hidden;
}

.dash-quota-fill {
    height: 100%;
    background: var(--primary, #6366f1);
    border-radius: 3px;
    transition: width 0.4s ease;
    min-width: 2px;
}

.dash-quota-fill.warning {
    background: #f59e0b;
}

.dash-quota-fill.danger {
    background: #ef4444;
}

.dash-quota-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ── Workspace header block ── */
.dash-ws-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

.dash-ws-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.dash-ws-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Member row ── */
.dash-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
}

.dash-member-row:last-of-type {
    border-bottom: none;
}

.dash-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent, #818cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.85;
}

.dash-role-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.dash-role-badge.role-owner {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
}

.dash-role-badge.role-manager {
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
}

.dash-you {
    font-size: 0.75rem;
    font-style: normal;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ── Card count badge ── */
.dash-card-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Wide card (spans full row) */
.dash-card-wide {
    grid-column: 1 / -1;
}

/* ── Team quota line ── */
.dash-team-quota {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    margin: 8px 0;
}

/* ── Dashboard grid ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.dash-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.dash-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Devices list ── */
.dash-device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.dash-device:last-child {
    border-bottom: none;
}

.dash-device-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-device-info strong {
    font-size: 0.85rem;
    color: var(--text);
}

.dash-device-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Invitation cards (received) ── */
.dash-invite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.dash-invite-item:last-child {
    border-bottom: none;
}

.dash-invite-item .dash-device-info {
    flex: 1;
    min-width: 0;
}

.dash-invite-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dash-inv-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.inv-pending  { background: rgba(234, 179, 8, 0.15);  color: #ca8a04; }
.inv-accepted { background: rgba(34, 197, 94, 0.15);  color: #16a34a; }
.inv-declined { background: rgba(239, 68, 68, 0.15);  color: #dc2626; }
.inv-expired  { background: rgba(148, 163, 184, 0.1); color: #64748b; }

.dash-cancel-inv {
    margin-left: 4px;
    color: var(--text-muted);
    opacity: 0.6;
    flex-shrink: 0;
}

.dash-cancel-inv:hover {
    opacity: 1;
    color: #dc2626;
}

.dash-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 8px 0 4px;
    margin-top: 4px;
}

/* ── Quick links ── */
.dash-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}

.dash-link:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.dash-link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.dash-link strong {
    font-size: 0.85rem;
    display: block;
}

.dash-link span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Danger zone ── */
.dash-danger {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.dash-danger summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.dash-danger p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: var(--space-md) 0;
}

/* btn-xs */
.btn-xs {
    padding: 3px 10px;
    font-size: 0.75rem;
}

.actions-section .btn {
    margin: var(--space-xs);
}

/* License card within dashboard */
.license-card {
    background: var(--bg-alt);
    padding: var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
}

/* Subscription card */
.subscription-card {
    background: var(--success-bg);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--success-border);
}

/* -----------------------------------------------------------------------------
   15. Admin
   ----------------------------------------------------------------------------- */

.admin-page {
    max-width: 100%;
}

.admin-stats {
    padding: var(--space-md);
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
}

.admin-actions {
    margin-bottom: var(--space-md);
}

.admin-actions .btn {
    margin-right: var(--space-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

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

.admin-table th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table tr:hover td {
    background: var(--bg-alt);
}

.admin-table button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0.1rem;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: inherit;
    transition: background var(--transition-fast);
}

.admin-table button:hover {
    background: var(--bg-alt);
}

/* -----------------------------------------------------------------------------
   16. Legal Pages
   ----------------------------------------------------------------------------- */

.legal-page {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.legal-page h2 {
    margin-bottom: var(--space-lg);
}

.legal-page h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.legal-page p {
    margin-bottom: var(--space-md);
}

.legal-page dl dt {
    font-weight: 600;
    margin-top: var(--space-md);
    color: var(--text);
}

.legal-page dl dd {
    margin-left: var(--space-md);
    color: var(--text-secondary);
}

.legal-page ul {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-page ul li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

/* -----------------------------------------------------------------------------
   17. Utilities
   ----------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* -----------------------------------------------------------------------------
   18. Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .value-props-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 900px) {
    .pricing-free-banner {
        flex-direction: column;
        text-align: center;
    }

    .pricing-row-2,
    .pricing-row-3 {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .ways-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .ai-block-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .ai-block-text {
        text-align: center;
    }

    .ai-methods {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .value-props-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Plan card: the desktop layout is a single row (badge · email/status ·
       action buttons) — on phones the pieces collide. Stack them. */
    .dash-plan-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .dash-plan-info {
        flex-wrap: wrap;
    }

    .dash-plan-details span {
        overflow-wrap: anywhere; /* long emails must wrap, not run under the buttons */
    }

    .dash-plan-actions {
        flex-wrap: wrap;
    }

    .dash-plan-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 0.35rem 0.5rem;
        font-size: 0.82rem;
    }

    .auth-card {
        padding: var(--space-xl) var(--space-lg);
        border: none;
        box-shadow: none;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Cookie Consent Banner (GTM Consent Mode v2)
   ============================================================ */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
}

.cookie-overlay.visible {
    opacity: 1;
}

.cookie-banner {
    position: fixed;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    color: #1e293b;
    padding: 20px 25px;
    border-radius: 12px;
    display: none;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.cookie-banner.visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.4;
}

.cookie-text a {
    color: inherit;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}

.cookie-banner button {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-banner {
        width: 100vw;
        max-width: 100vw;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        opacity: 0;
        border-radius: 12px 12px 0 0;
        padding: 12px 16px;
        box-sizing: border-box;
        font-size: 0.85rem;
        gap: 10px;
    }

    .cookie-banner.visible {
        transform: none;
        opacity: 1;
    }

    .cookie-text {
        gap: 10px;
    }

    .cookie-text span:first-child {
        font-size: 1.2rem !important;
    }

    .cookie-buttons {
        justify-content: flex-end;
    }
}

/* ============================================================
   SEO: hero lede + comparison cards + landing-page layout
   ============================================================ */
.hero-lede {
    max-width: 740px;
    margin: 1rem auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #475569;
    text-align: center;
}

.hero-lede a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(100, 116, 139, 0.45);
}

.hero-lede a:hover {
    color: #1e293b;
    text-decoration-color: currentColor;
}

.compare-block {
    padding: 64px 0;
    background: #f8fafc;
}

.compare-block .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-grid {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.compare-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
}

@media (max-width: 720px) {
    .compare-grid-3,
    .compare-grid-2 {
        grid-template-columns: 1fr;
    }
}

.compare-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 22px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.compare-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.compare-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #0f172a;
}

.compare-card p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.compare-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
}

/* End-to-end encryption section */
.e2e-block {
    padding: 64px 0;
}

.e2e-block .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.e2e-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 720px) {
    .e2e-grid {
        grid-template-columns: 1fr;
    }
}

.e2e-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 22px;
}

.e2e-card i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 12px;
}

.e2e-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #0f172a;
}

.e2e-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.e2e-footnote {
    margin: 28px auto 0;
    max-width: 760px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.e2e-footnote a {
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
}

/* Landing pages (SEO) */
.lp-landing {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    color: #0f172a;
    line-height: 1.65;
}

.lp-landing h1 {
    font-size: 2.2rem;
    margin: 0 0 8px;
    line-height: 1.2;
}

.lp-landing .lp-lede {
    font-size: 1.15rem;
    color: #475569;
    margin: 0 0 28px;
}

.lp-landing h2 {
    margin-top: 40px;
    font-size: 1.5rem;
}

.lp-landing h3 {
    margin-top: 24px;
    font-size: 1.15rem;
}

.lp-landing ul {
    padding-left: 1.25rem;
}

.lp-landing li {
    margin-bottom: 6px;
}

.lp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 36px;
}

.lp-editions {
    margin: 0 0 24px;
    padding: 14px 18px;
    background: #f1f5f9;
    border-left: 4px solid var(--accent, #6d28d9);
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 8px;
    font-size: 0.95rem;
}

.lp-table th,
.lp-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.lp-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.lp-table td.yes { color: #16a34a; font-weight: 600; }
.lp-table td.no  { color: #94a3b8; }

/* Column sub-labels (free app vs cloud) so standalone is never confused with cloud */
.lp-table th .col-sub {
    display: block;
    font-weight: 400;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

/* Full-width category band rows that group the comparison logically */
.lp-table tr.cat-row th {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    border-bottom: 1px solid #c7d2fe;
}

/* Inline note inside a cell, e.g. where a competitor is genuinely stronger */
.lp-table .cell-note {
    display: block;
    color: #64748b;
    font-style: italic;
    font-size: 0.82em;
    font-weight: 400;
    margin-top: 2px;
}

/* One-line corrected pricing hook — accent callout */
.lp-pricehook {
    margin: 0 0 28px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.55;
    color: #1e293b;
}

/* Balanced "when the competitor is the better choice" box — E-E-A-T trust signal */
.lp-when {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.lp-when h2 { margin-top: 0; font-size: 1.25rem; }
.lp-when p:last-child { margin-bottom: 0; }

.lp-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.lp-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.lp-faq details[open] summary {
    margin-bottom: 8px;
}

.lp-internal-links {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #475569;
}

.lp-internal-links a {
    color: #2563eb;
    text-decoration: none;
    margin-right: 12px;
}

.lp-internal-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   Real product screenshots — hero shot + focused carousel
   Reuses the .ed-window chrome language (mac dots + title bar).
   ============================================================ */

/* Shared framed-screenshot chrome */
.shot-frame,
.shot-slide {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.shot-bar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.shot-bar-title .material-symbols-rounded {
    font-size: 1.05rem;
    color: var(--primary);
}

/* Reserve space from the real 2106x1353 ratio so images never shift layout */
.shot-img,
.shot-slide img {
    display: block;
    width: 100%;
    height: auto;
    /* Screenshots are 1728x1080 (16:10). object-fit:contain so the one older
       2106x1353 shot (proofread) letterboxes onto the frame bg instead of
       stretching. */
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--bg-alt);
}

/* --- Hero product shot --- */
.product-hero {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.product-hero-inner {
    max-width: 920px;
    margin: 0 auto;
    margin-top: 0;
}

.product-hero-cap {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Carousel --- */
.shots-block {
    padding: var(--space-4xl) var(--space-md);
}

.shots-carousel {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.shots-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    border-radius: 12px;
    outline: none;
}

.shots-track::-webkit-scrollbar { display: none; } /* WebKit */

.shot-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.shot-slide figcaption {
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

/* Prev / next arrows */
.shots-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shots-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.shots-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.shots-nav:disabled {
    opacity: 0.35;
    cursor: default;
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

.shots-prev { left: -22px; }
.shots-next { right: -22px; }

.shots-nav .material-symbols-rounded { font-size: 1.4rem; }

/* Dots */
.shots-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
}

.shots-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shots-dot:hover { background: var(--text-muted); }

.shots-dot.active {
    background: var(--accent);
    transform: scale(1.25);
}

.shots-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* On narrow screens, tuck the arrows inside the frame so they don't clip */
@media (max-width: 980px) {
    .shots-prev { left: 8px; }
    .shots-next { right: 8px; }
    .product-hero-inner { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .shots-track { scroll-behavior: auto; }
}

/* ============================================================
   Links, backlinks & knowledge graph — animated SVG (CSS-only)
   ============================================================ */
.links-block { padding: var(--space-4xl) var(--space-md); }

.links-stage {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: var(--space-2xl);
    align-items: center;
}

.links-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Shared card chrome (matches .ed-window language) */
.link-note,
.backlinks,
.graph-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.link-note-bar,
.graph-card-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}

.link-note-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.link-note-title .material-symbols-rounded { font-size: 1.05rem; color: var(--primary); }

/* --- hierarchy tree (mirrors the app's notes sidebar) --- */
.note-tree .tree {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.4rem;
}
.note-tree .tree li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.6rem;
    border-radius: 7px;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
}
.note-tree .tree-child { padding-left: 1.7rem; color: var(--text-secondary); }
.note-tree .tree-ico { font-size: 1.05rem; color: var(--text-muted); }
.note-tree .tree-folder { font-weight: 600; }
.note-tree .tree-folder .tree-ico { color: var(--accent); }
.note-tree .tree-folder.selected { background: var(--accent-bg); color: var(--accent-dark); }
.note-tree .tree-folder.selected .tree-ico { color: var(--accent-dark); }
.tree-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tree-hint .material-symbols-rounded { font-size: 1rem; }

/* --- backlinks panel --- */
.backlinks-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text);
}
.backlinks-head .material-symbols-rounded { color: var(--primary); font-size: 1.1rem; }
.backlinks-count {
    margin-left: auto;
    background: var(--accent-bg);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    padding: 0.05rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
}
.backlinks-list { list-style: none; margin: 0; padding: 0.35rem; }
.backlinks-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    animation: links-pop 0.45s ease backwards;
    animation-delay: calc(0.55s + var(--i) * 0.18s);
}
.backlinks-list li + li { border-top: 1px solid var(--border-light); }
.backlink-src { font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.backlink-snip { font-size: 0.85rem; color: var(--text-secondary); }
.backlink-snip em {
    font-style: normal;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-bg);
    border-radius: 4px;
    padding: 0 3px;
}

/* --- animated graph --- */
.graph-svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 380;
    background: radial-gradient(circle at 50% 46%, var(--bg-alt), var(--bg) 70%);
}
.graph-svg text { font-family: inherit; }

/* Hierarchy edges — solid, drawn in (folder → note) */
.gedge-hier {
    stroke: #cbd5e1;
    stroke-width: 1.5;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: graph-draw 0.7s ease backwards;
    animation-delay: calc(var(--i) * 0.08s);
}
/* Link edges — dashed amber, fade in then "march" (note ↔ note) */
.gedge-link {
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    animation: links-fade 0.5s ease backwards calc(0.4s + var(--i) * 0.08s),
               link-march 0.9s linear infinite calc(0.4s + var(--i) * 0.08s);
}

/* Nodes — gray notes, amber focused folder (matches the app canvas renderer) */
.gdot { fill: #64748b; stroke: #fff; stroke-width: 2; }
.gdot-folder { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.glabel { font-size: 12px; font-weight: 500; fill: var(--text); }
.glabel-center { font-size: 13px; font-weight: 600; fill: var(--text); }

/* Legend */
.graph-legend {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    padding: 0.6rem 0.9rem 0.9rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.leg-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.leg-line { display: inline-block; width: 22px; border-top: 2px solid #cbd5e1; }
.leg-link { border-top-style: dashed; border-top-color: var(--accent); }

.gnode-pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: graph-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: calc(0.3s + var(--i) * 0.09s);
}
/* satellites gently float (parent group; pop lives on the inner child) */
.gnode:not(.gnode-center) {
    animation: graph-float 6s ease-in-out infinite;
    animation-delay: calc(1s + var(--i) * 0.5s);
}
.gnode-center .gnode-pop { animation-delay: 0.15s; }

.gring {
    fill: var(--accent);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: graph-ring 2.8s ease-out 0.9s infinite;
}

@keyframes graph-draw {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
}
@keyframes graph-pop {
    0%   { opacity: 0; transform: scale(0.3); }
    70%  { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes graph-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes graph-ring {
    0%        { transform: scale(0.7); opacity: 0.5; }
    80%, 100% { transform: scale(2);   opacity: 0; }
}
@keyframes link-march {
    to { stroke-dashoffset: -20; }
}
@keyframes links-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes links-pop {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .links-stage { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (prefers-reduced-motion: reduce) {
    .gedge-hier, .gedge-link, .gnode, .gnode-pop, .gring,
    .backlinks-list li {
        animation: none !important;
    }
    .gring { display: none; }   /* drop the pulsing glow entirely */
}

/* -----------------------------------------------------------------------------
   30. App-preview mockups — scoped to the REAL app's dark / indigo theme.
       These tokens override the site brand palette ONLY inside .app-mock
       wrappers (the links-stage tree/backlinks/graph panels and the
       screenshot carousel). The global green brand chrome is untouched.
   ----------------------------------------------------------------------------- */
.app-mock {
    --bg-primary:    #0a0c12;
    --bg-sidebar:    #0f1119;
    --bg-toolbar:    #080a10;
    --bg-card:       #151820;
    --bg-panel:      #1a1d28;
    --bg-input:      #1a1d28;
    --bg-hover:      rgba(255, 255, 255, 0.06);
    --bg-code:       #12141e;
    --m-text:        #f0f2ff;
    --m-text-2:      #b0b8d0;
    --m-text-muted:  #6b7595;
    --m-accent:      #818cf8;
    --m-accent-light:#a5b4fc;
    --m-accent-dim:  rgba(129, 140, 248, 0.12);
    --m-border:      rgba(255, 255, 255, 0.10);
    --m-border-strong: rgba(255, 255, 255, 0.18);
    --m-folder:      #f59e0b;
    --m-selected:    rgba(99, 102, 241, 0.15);
}

/* ---- shared card chrome (tree / backlinks / graph / shots) ---- */
.app-mock .link-note,
.app-mock .backlinks,
.app-mock .graph-card,
.app-mock .shot-slide {
    background: var(--bg-card);
    border: 1px solid var(--m-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.app-mock .link-note-bar,
.app-mock .graph-card-bar,
.app-mock .shot-bar {
    background: var(--bg-toolbar);
    border-bottom: 1px solid var(--m-border);
}
.app-mock .link-note-title,
.app-mock .shot-bar-title {
    color: var(--m-text);
}
.app-mock .link-note-title .material-symbols-rounded,
.app-mock .shot-bar-title .material-symbols-rounded {
    color: var(--m-accent);
}

/* ---- note tree (matches app tree-row metrics) ---- */
.app-mock .note-tree .tree {
    padding: 6px 0;
    background: var(--bg-sidebar);
}
.app-mock .note-tree .tree li {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    margin: 1px 6px;
    padding: 0 4px 0 12px;          /* root depth */
    border-radius: 6px;
    font-size: 13px;
    color: var(--m-text-2);
    cursor: default;
}
.app-mock .note-tree .tree li:hover { background: var(--bg-hover); }
.app-mock .note-tree .tree-child { padding-left: 26px; }   /* depth 1 = 12 + 14 */
.app-mock .note-tree .tree-ico { font-size: 14px; color: var(--m-text-muted); }
.app-mock .note-tree .tree-folder { font-weight: 500; }
.app-mock .note-tree .tree-folder .tree-ico { color: var(--m-folder); }
.app-mock .note-tree .tree-folder.selected,
.app-mock .note-tree .tree li.selected {
    background: var(--m-selected);
    color: var(--m-text);
    font-weight: 500;
}
.app-mock .note-tree .tree li.selected .tree-ico { color: var(--m-accent); }
.app-mock .note-tree .tree-folder.selected .tree-ico { color: var(--m-accent); }
.app-mock .tree-hint {
    color: var(--m-text-muted);
    border-top: 1px solid var(--m-border);
    background: var(--bg-sidebar);
}

/* ---- backlinks panel (existing list variant) ---- */
.app-mock .backlinks-head {
    color: var(--m-text-muted);
    background: var(--bg-toolbar);
    border-bottom: 1px solid var(--m-border);
}
.app-mock .backlinks-head .material-symbols-rounded { color: var(--m-accent); }
.app-mock .backlinks-count {
    background: var(--m-accent);
    color: var(--bg-primary);
}
.app-mock .backlinks-list { background: var(--bg-sidebar); }
.app-mock .backlinks-list li + li { border-top-color: var(--m-border); }
.app-mock .backlinks-list li:hover { background: var(--bg-hover); }
.app-mock .backlinks-list .backlink-src { color: var(--m-accent); }
.app-mock .backlinks-list .backlink-snip { color: var(--m-text-2); }
.app-mock .backlinks-list .backlink-snip em {
    background: var(--m-accent-dim);
    color: var(--m-accent-light);
}

/* ---- knowledge graph svg ---- */
.app-mock .graph-svg { background: var(--bg-primary); }
.app-mock .gedge-hier { stroke: var(--m-text-muted); }
.app-mock .gedge-link { stroke: var(--m-accent); }
.app-mock .gdot { fill: var(--bg-primary); stroke: var(--m-accent); }
.app-mock .gdot-folder { fill: var(--m-folder); stroke: #b45309; }
.app-mock .glabel { fill: var(--m-text-2); }
.app-mock .glabel-center { fill: var(--m-text); }
.app-mock .gring { fill: var(--m-accent); }
.app-mock .graph-legend { color: var(--m-text-muted); border-top-color: var(--m-border); }
.app-mock .leg-line { border-top-color: var(--m-text-muted); }
.app-mock .leg-link { border-top-color: var(--m-accent); }

/* -----------------------------------------------------------------------------
   30b. Knowledge-graph panels (links-stage) — WHITE override.
        Scoped to .links-stage.app-mock so it wins over .app-mock by
        specificity. The screenshot carousel (.shots-carousel.app-mock) stays
        dark/unchanged.
   ----------------------------------------------------------------------------- */
.links-stage.app-mock {
    --bg-primary:    #ffffff;
    --bg-sidebar:    #ffffff;
    --bg-toolbar:    #f8fafc;
    --bg-card:       #ffffff;
    --bg-input:      #f8fafc;
    --bg-hover:      rgba(99, 102, 241, 0.06);
    --m-text:        #1e293b;
    --m-text-2:      #475569;
    --m-text-muted:  #94a3b8;
    --m-accent:      #6366f1;
    --m-accent-light:#818cf8;
    --m-accent-dim:  rgba(99, 102, 241, 0.10);
    --m-border:      #e2e8f0;
    --m-border-strong: #cbd5e1;
    --m-folder:      #f59e0b;
    --m-selected:    rgba(99, 102, 241, 0.12);
}
.links-stage.app-mock .link-note,
.links-stage.app-mock .backlinks,
.links-stage.app-mock .graph-card {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8eaf0;
}
/* folder icon stays amber, selected tree row = light indigo tint w/ indigo icon */
.links-stage.app-mock .note-tree .tree-folder .tree-ico { color: var(--m-folder); }
.links-stage.app-mock .note-tree .tree li.selected .tree-ico,
.links-stage.app-mock .note-tree .tree-folder.selected .tree-ico { color: var(--m-accent); }
/* graph dots — match the real app graph (indigo-filled) */
.links-stage.app-mock .gdot { fill: #3730a3; stroke: #ffffff; stroke-width: 1.5; }
.links-stage.app-mock .gdot-folder { fill: #4f46e5; stroke: #ffffff; }
.links-stage.app-mock .gring { fill: #818cf8; }
.links-stage.app-mock .gedge-hier { stroke: #cbd5e1; }
.links-stage.app-mock .gedge-link { stroke: #818cf8; }
.links-stage.app-mock .glabel { fill: #475569; }
.links-stage.app-mock .glabel-center { fill: #1e293b; }
.links-stage.app-mock .graph-svg { background: #ffffff; }
.links-stage.app-mock .graph-legend { color: #94a3b8; }
.links-stage.app-mock .leg-line.leg-hier { border-top-color: #cbd5e1; }
.links-stage.app-mock .leg-line.leg-link { border-top-color: #818cf8; }

/* ---- carousel chrome ---- */
.app-mock .shot-slide figcaption {
    background: var(--bg-card);
    color: var(--m-text-2);
    border-top: 1px solid var(--m-border);
}
.app-mock .shots-nav {
    background: var(--bg-card);
    border: 1px solid var(--m-border);
    color: var(--m-text);
}
.app-mock .shots-nav:hover {
    background: var(--m-accent);
    border-color: var(--m-accent);
    color: var(--bg-primary);
}
.app-mock .shots-nav:disabled:hover {
    background: var(--bg-card);
    color: var(--m-text);
    border-color: var(--m-border);
}
.app-mock .shots-dot { background: var(--m-border-strong); }
.app-mock .shots-dot:hover { background: var(--m-text-muted); }
.app-mock .shots-dot.active { background: var(--m-accent); }

/* ---- NEW SLIDE: note open in editor + linked mentions / links footer ---- */
.app-mock .shot-note {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}
.app-mock .shot-note-body {
    flex: 1 1 auto;
    padding: 20px 24px;
    background: var(--bg-primary);
    font-family: 'Inter', sans-serif;
}
.app-mock .shot-note-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--m-text);
    letter-spacing: -0.4px;
    margin: 0 0 0.6em;
}
.app-mock .shot-note-body p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--m-text);
    margin: 0.5em 0;
}
.app-mock .shot-note-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--m-accent-dim);
    color: var(--m-accent);
    padding: 1px 5px;
    border-radius: 4px;
}
.app-mock .shot-wiki {
    color: var(--m-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* footer: linked mentions + links (the key new piece) */
.app-mock .shot-note-footer {
    border-top: 1px solid var(--m-border);
    background: var(--bg-sidebar);
    padding: 10px 20px;
}
.app-mock .nbk-section + .nbk-section { margin-top: 12px; }
.app-mock .nbk-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--m-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.app-mock .nbk-head .material-symbols-rounded { font-size: 12px; }
.app-mock .nbk-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.app-mock .nbk-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--bg-input);
    border: 1px solid var(--m-border);
    border-left: 3px solid var(--chip, var(--m-accent));
    border-radius: 8px;
    font-size: 12px;
    color: var(--m-text-2);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.app-mock .nbk-chip .material-symbols-rounded {
    font-size: 13px;
    color: var(--chip, var(--m-accent));
}
.app-mock .nbk-chip .nbk-rel {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border: 1px solid var(--chip, var(--m-accent));
    border-radius: 4px;
    text-transform: uppercase;
    background: var(--bg-primary);
    color: var(--chip, var(--m-accent));
}
.app-mock .nbk-chip:hover {
    border-color: var(--m-accent);
    color: var(--m-accent);
}

/* ===== Linked, like your brain — two real screenshots side by side ===== */
.links-shots {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: stretch;
    max-width: 860px;
    margin: 0 auto;
}
.links-shots .shot-frame {
    width: 100%;
    min-width: 0;
    /* These images are not the 2106x1353 hero ratio — let the image set the height. */
    aspect-ratio: auto;
    margin: 0;
}
.links-shots .shot-frame > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
/* Image #1 is the full app screenshot, CSS-cropped to reveal its bottom
   ~45% (small knowledge graph + backlinks panel) since no ImageMagick was
   available to pre-crop it. */
.links-shots .links-shot-cropbox {
    width: 100%;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}
.links-shots .links-shot-cropbox > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}
@media (max-width: 760px) {
    .links-shots .links-shot-cropbox {
        aspect-ratio: 16 / 7;
    }
}

/* Dark "app window" frame — black border + black title bar — for the hero
   product shot and the two "Linked, like your brain" shots, matching the carousel. */
.product-hero .shot-frame {
    background: transparent;
    border: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}
/* The hero shot is 2592x1664 (~81:52), not the carousel's forced 16:10. Honor
   its real ratio (from the img width/height attrs) so the rounded frame hugs
   the screenshot edge-to-edge — no light --bg-alt letterbox bands inside the
   border radius. */
.product-hero .shot-img {
    aspect-ratio: auto;
    object-fit: fill;
    background: transparent;
}
.links-shots .shot-frame {
    background: #151820;
    border: 1px solid #0a0c12;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}
.product-hero .shot-bar,
.links-shots .shot-bar {
    background: #0a0c12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.product-hero .shot-bar-title,
.links-shots .shot-bar-title {
    color: #f0f2ff;
}
.product-hero .shot-bar-title .material-symbols-rounded,
.links-shots .shot-bar-title .material-symbols-rounded {
    color: #818cf8;
}
