/* =========================================================================
   Calíope — Shared site stylesheet
   Used by: index.html, PrivacyPolicy.html, SupportPage.html
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens (light + dark)
   ------------------------------------------------------------------------- */
:root {
    --bg-color: #f0f2f5;
    --surface-color: #ffffff;
    --card-bg: #f7f8fa;
    --divider-color: #e1e4e8;
    --text-primary: #1c1e21;
    --text-secondary: #5f6368;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-emerald: #059669;
    --accent-gold: #d4a017;
    --accent-violet: #7c3aed;
    --accent-sky: #0ea5e9;
    --accent-orange: #ea580c;
    --accent-indigo: #4f46e5;
    --accent-pink: #db2777;
    --accent-purple: #9333ea;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --accent-gradient-strong: linear-gradient(135deg, #2563eb, #0891b2);
    --hero-gradient: linear-gradient(180deg, rgba(59,130,246,0.04) 0%, rgba(20,184,166,0.02) 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.10);
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0d1117;
        --surface-color: #1c2128;
        --card-bg: #22272e;
        --divider-color: #30363d;
        --text-primary: #f0f6fc;
        --text-secondary: #8b949e;
        --accent-blue: #58a6ff;
        --accent-teal: #2ea043;
        --accent-amber: #fbbf24;
        --accent-red: #f87171;
        --accent-green: #34d399;
        --accent-emerald: #34d399;
        --accent-gold: #eab308;
        --accent-violet: #a78bfa;
        --accent-sky: #38bdf8;
        --accent-orange: #fb923c;
        --accent-indigo: #818cf8;
        --accent-pink: #f472b6;
        --accent-purple: #c084fc;
        --accent-gradient: linear-gradient(135deg, #1f6feb, #0ea5e9);
        --accent-gradient-strong: linear-gradient(135deg, #1d4ed8, #0e7490);
        --hero-gradient: linear-gradient(180deg, rgba(88,166,255,0.06) 0%, rgba(46,160,67,0.02) 100%);
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
        --shadow-lg: 0 12px 24px rgba(0,0,0,0.5);
        --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.6);
    }
}

/* -------------------------------------------------------------------------
   2. Reset + base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Sticky nav is ~60px tall; give anchored sections room to breathe. */
section[id] { scroll-margin-top: 80px; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--font-mono); font-size: 0.92em; }
code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--divider-color);
}

/* -------------------------------------------------------------------------
   3. Layout containers
   ------------------------------------------------------------------------- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    /* Two-column inner padding for legal/support pages */
    max-width: 800px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------------
   3.5 Brand image (PNG app icon, replaces inline SVG placeholder)
       The PNG already ships with its own gradient + rounded mask,
       so no surrounding background is needed.
   ------------------------------------------------------------------------- */
.brand-img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    object-fit: cover;
}
.brand-img--nav    { width: 30px; height: 30px; border-radius: 8px; }
.brand-img--footer { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.brand-img--header {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 8px 16px rgba(59,130,246,0.25);
}

/* -------------------------------------------------------------------------
   4. Top navigation (shared across all pages)
   ------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--divider-color);
}
@media (prefers-color-scheme: dark) {
    .site-nav { background: rgba(13, 17, 23, 0.85); }
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}
.site-nav-brand:hover { text-decoration: none; }

.site-nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(59,130,246,0.25);
}
.site-nav-logo svg { width: 100%; height: 100%; }

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}
.site-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.site-nav-links a:hover { color: var(--accent-blue); text-decoration: none; }

.site-nav-cta {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(59,130,246,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-nav-cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.35);
}

@media (max-width: 720px) {
    .site-nav-links { gap: 14px; }
    .site-nav-links li:not(.site-nav-cta-li) { display: none; }
}

/* -------------------------------------------------------------------------
   5. Header block (used by Privacy/Support hero — top of inner pages)
   ------------------------------------------------------------------------- */
.header {
    text-align: center;
    margin: 40px 0;
    padding: 40px 20px;
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--divider-color);
}

.app-icon-container { display: inline-block; margin-bottom: 20px; }
.app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: var(--accent-gradient);
    padding: 18px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 20px;
}

.badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--divider-color);
}
.badge.pro {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.25);
}

/* -------------------------------------------------------------------------
   6. Landing page — Hero (huge)
   ------------------------------------------------------------------------- */
.hero {
    background: var(--hero-gradient);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--divider-color);
}

.hero-inner { max-width: 1000px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: var(--accent-gradient-strong);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.45); }

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border-color: var(--divider-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.hero-screens {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-screens-frame {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* -------------------------------------------------------------------------
   7. Generic section
   ------------------------------------------------------------------------- */
.section {
    padding: 80px 20px;
}
.section-tight { padding: 50px 20px; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-eyebrow {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.section-title-lg {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   8. Big differentiators (3-card row)
   ------------------------------------------------------------------------- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.diff-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.diff-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 6px 14px rgba(59,130,246,0.25);
}
.diff-card-icon svg { width: 28px; height: 28px; }

.diff-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.diff-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
}

.diff-card-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------------------
   9. Price comparison table
   ------------------------------------------------------------------------- */
.price-compare {
    max-width: 1000px;
    margin: 0 auto;
}

.price-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--divider-color);
}

.price-compare-table th,
.price-compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--divider-color);
}
.price-compare-table th {
    background: var(--card-bg);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.price-compare-table td { font-size: 0.98rem; color: var(--text-secondary); }
.price-compare-table tr:last-child td { border-bottom: none; }
.price-compare-table tr.highlight td { background: rgba(59,130,246,0.06); color: var(--text-primary); font-weight: 600; }
.price-compare-table tr.highlight td:first-child { color: var(--accent-blue); }

/* -------------------------------------------------------------------------
   10. Feature gallery (10 categories)
   ------------------------------------------------------------------------- */
.features-section { background: var(--card-bg); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.feature-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-card-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.feature-card ul {
    list-style: none;
}
.feature-card li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}
.feature-card li strong { color: var(--text-primary); font-weight: 600; }

/* -------------------------------------------------------------------------
   10b. Tools grid (the 19 workspace tabs)
   ------------------------------------------------------------------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: currentColor;
}

.tool-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tool-card-icon svg { width: 22px; height: 22px; }

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.tool-card code {
    background: var(--card-bg);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.tools-footnote {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 32px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------
   10c. Screenshots grid (App Store approved captures)
   ------------------------------------------------------------------------- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-card {
    margin: 0;
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.screenshot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2560 / 1600;
    object-fit: cover;
    border-bottom: 1px solid var(--divider-color);
    background: var(--card-bg);
}

.screenshot-card figcaption {
    padding: 16px 20px 20px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.screenshot-card figcaption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.2px;
}

@media (max-width: 640px) {
    .screenshots-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* -------------------------------------------------------------------------
   11. Widget showcase (visual block)
   ------------------------------------------------------------------------- */
.widget-showcase {
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--card-bg) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid var(--divider-color);
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.widget-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.widget-mockup {
    background: linear-gradient(135deg, #0f1419 0%, #0a0e14 100%);
    border-radius: 18px;
    padding: 20px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.05);
}

.widget-mockup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget-mockup-head-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #06b6d4;
    font-weight: 700;
    font-size: 0.85rem;
}
.widget-mockup-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.35);
    padding: 3px 8px;
    border-radius: 30px;
    text-transform: uppercase;
}
.widget-mockup-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #10b981;
    border-radius: 50%;
}

.widget-mockup-metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.widget-mockup-metric-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #06b6d4;
    line-height: 1;
    margin-bottom: 2px;
}
.widget-mockup-metric-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
.widget-mockup-bar {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    overflow: hidden;
}
.widget-mockup-bar-fill {
    height: 100%;
    width: 38%;
    background: #06b6d4;
    border-radius: 3px;
}
.widget-mockup-server {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

.widget-caption {
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.widget-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------------------
   12. AI demo block
   ------------------------------------------------------------------------- */
.ai-demo {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ai-demo-prompt {
    padding: 24px 28px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ai-demo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.ai-demo-prompt-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.ai-demo-output {
    padding: 24px 28px;
    background: var(--surface-color);
}
.ai-demo-output-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.ai-demo-sql {
    background: #0d1117;
    color: #c9d1d9;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}
.ai-demo-sql .kw  { color: #ff7b72; }
.ai-demo-sql .fn  { color: #d2a8ff; }
.ai-demo-sql .str { color: #a5d6ff; }
.ai-demo-sql .col { color: #79c0ff; }

/* -------------------------------------------------------------------------
   13. Security cards
   ------------------------------------------------------------------------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.security-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.security-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 3px 3px;
}

.security-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}
.security-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.55;
}

/* -------------------------------------------------------------------------
   14. Pricing CTA card
   ------------------------------------------------------------------------- */
.pricing-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 22px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(59,130,246,0.4);
}
.pricing-card-price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 16px 0 6px;
    letter-spacing: -1.5px;
}
.pricing-card-period {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 24px;
}
.pricing-card-trial {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 28px;
}
.pricing-card .btn {
    background: #fff;
    color: var(--accent-blue);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.pricing-card .btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.pricing-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 28px 0 8px;
}
.pricing-card .pricing-cta-stack .btn {
    min-width: 260px;
}
.pricing-card-badge-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.pricing-card-badge-link:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
}
.pricing-card-badge-link img {
    display: block;
    height: 52px;
    width: auto;
}

.pricing-card-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-top: 24px;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   15. Inner-page (Privacy / Support) re-usable blocks
   ------------------------------------------------------------------------- */
.policy-card,
.contact-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--divider-color);
    margin-bottom: 40px;
}

.contact-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
}

.last-updated {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 15px;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 15px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 12px;
    line-height: 1.2;
}
h2:first-of-type { margin-top: 0; }

p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 18px; }
strong { color: var(--text-primary); }

ul, ol { margin-left: 24px; margin-bottom: 18px; color: var(--text-secondary); }
li { margin-bottom: 8px; font-size: 0.95rem; }

.callout {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--divider-color);
    margin-bottom: 25px;
}
.callout p { margin-bottom: 0; }

.intro-box {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* Privacy: 3rd-party table */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 12px;
    border: 1px solid var(--divider-color);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; text-align: left; }
th {
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid var(--divider-color);
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider-color);
    color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }

/* Support: contact-card buttons + guidelines */
.contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.contact-email-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(59,130,246,0.2);
}
.contact-email-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(59,130,246,0.3); text-decoration: none; }
.contact-email-btn:active { transform: translateY(1px); }

.contact-guidelines {
    margin-top: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--divider-color);
}
.guidelines-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.contact-guidelines ul { list-style: none; margin: 0; }
.contact-guidelines li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.contact-guidelines li:last-child { margin-bottom: 0; }
.contact-guidelines li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Support / Landing: FAQ accordion */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 5px;
    border-left: 4px solid var(--accent-blue);
    line-height: 1.2;
}

.faq-group { margin-bottom: 40px; }
.faq-category-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 25px 0 15px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-item {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--divider-color);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--accent-blue); }

summary {
    list-style: none;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
summary::-webkit-details-marker { display: none; }

.caret {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 15px;
}
details[open] summary .caret { transform: rotate(180deg); fill: var(--accent-blue); }
details[open] summary {
    border-bottom: 1px solid var(--divider-color);
    color: var(--accent-blue);
}

.faq-content {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: var(--card-bg);
}
.faq-content p { margin-bottom: 12px; }
.faq-content p:last-child { margin-bottom: 0; }
.faq-content ul, .faq-content ol { margin-left: 20px; margin-bottom: 12px; }
.faq-content li { margin-bottom: 6px; }

/* Support spec grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.grid-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--divider-color);
    box-shadow: var(--shadow-md);
}
.grid-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 8px;
}
.grid-card ul { list-style: none; margin: 0; }
.grid-card li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.grid-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* -------------------------------------------------------------------------
   16. Footer (shared)
   ------------------------------------------------------------------------- */
.site-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--divider-color);
    padding: 50px 20px 30px;
    margin-top: 80px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}
.site-footer-brand:hover { text-decoration: none; }

.site-footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer-nav a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.site-footer-nav a:hover { color: var(--accent-blue); }

.site-footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* Legacy footer used inside Privacy/Support inner pages — kept compatible */
.footer {
    text-align: center;
    border-top: 1px solid var(--divider-color);
    padding-top: 30px;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-nav {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-nav a { color: var(--accent-blue); font-weight: 500; }
.copyright { font-size: 0.85rem; }

/* -------------------------------------------------------------------------
   16. Feature requests & Roadmap
   ------------------------------------------------------------------------- */
.feature-request-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--divider-color);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.feature-request-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.feature-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}
.feature-request-secondary {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.95rem;
}

.roadmap-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.roadmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
}

.roadmap-group { margin-bottom: 36px; }
.roadmap-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.roadmap-group-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.roadmap-item {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
    align-items: start;
}
.roadmap-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.roadmap-item-desc {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.roadmap-item-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.roadmap-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.roadmap-status.status-requested    { background: rgba(107,114,128,0.12); color: #6b7280; border-color: rgba(107,114,128,0.3); }
.roadmap-status.status-considered   { background: rgba(245,158,11,0.14); color: #b45309; border-color: rgba(245,158,11,0.35); }
.roadmap-status.status-planned      { background: rgba(59,130,246,0.14); color: #1d4ed8; border-color: rgba(59,130,246,0.35); }
.roadmap-status.status-in-progress  { background: rgba(139,92,246,0.14); color: #6d28d9; border-color: rgba(139,92,246,0.35); }
.roadmap-status.status-shipped      { background: rgba(34,197,94,0.14); color: #15803d; border-color: rgba(34,197,94,0.35); }
.roadmap-status.status-declined     { background: rgba(239,68,68,0.12); color: #b91c1c; border-color: rgba(239,68,68,0.3); }

@media (prefers-color-scheme: dark) {
    .roadmap-status.status-requested   { color: #9ca3af; }
    .roadmap-status.status-considered  { color: #fbbf24; }
    .roadmap-status.status-planned     { color: #60a5fa; }
    .roadmap-status.status-in-progress { color: #a78bfa; }
    .roadmap-status.status-shipped     { color: #4ade80; }
    .roadmap-status.status-declined    { color: #f87171; }
}

.roadmap-votes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--divider-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.roadmap-votes::before {
    content: "▲";
    font-size: 0.7rem;
    color: var(--accent-blue);
}

@media (max-width: 600px) {
    .roadmap-item { grid-template-columns: 1fr; }
    .roadmap-item .roadmap-status { justify-self: start; }
}

/* ── Features page ────────────────────────────────────────────── */

.features-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 48px;
    padding: 0;
    list-style: none;
}
.features-toc a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--surface-color);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.features-toc a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0 64px;
}

.feature-card {
    padding: 22px 24px;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
.feature-hook {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}
.feature-benefit {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-primary);
}
.feature-tech {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-top: 8px;
    border-top: 1px solid var(--divider-color);
}
.feature-tech code,
.feature-benefit code,
.feature-hook code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    padding: 1px 5px;
    background: var(--surface-color);
    border-radius: 4px;
}

.features-cta {
    text-align: center;
    padding: 40px 20px;
    margin: 32px 0 24px;
    border-radius: 16px;
    background: var(--hero-gradient);
    border: 1px solid var(--divider-color);
}
.features-cta h2 {
    margin-top: 0;
}

@media (max-width: 720px) {
    .feature-grid { grid-template-columns: 1fr; }
    .features-toc a { font-size: 12.5px; padding: 6px 12px; }
}
