/* -- VoltaContent Public Pages -- */

body.vc-site { background: var(--bg); }

.vc-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vc-narrow {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.vc-centered { text-align: center; }

/* -- Navbar -- */
.vc-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.vc-nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.vc-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
}

.vc-logo:hover { text-decoration: none; }

.vc-logo-icon {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
}

.vc-nav-links {
    display: flex;
    gap: 1.75rem;
    flex: 1;
}

.vc-nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.vc-nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.vc-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vc-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.vc-lang a { color: var(--text-muted); text-decoration: none; padding: 0 0.15rem; }
.vc-lang a:hover { color: var(--text); }
.vc-lang a.active { color: var(--primary); font-weight: 600; }

.vc-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.35rem;
    display: inline-flex;
    border-radius: var(--radius-sm);
}
.vc-theme-toggle:hover { color: var(--text); background: var(--primary-light); }

.vc-link {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}
.vc-link:hover { color: var(--primary); text-decoration: none; }

.vc-burger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

/* -- Hero -- */
.vc-hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    text-align: center;
}

.vc-hero-sm { padding: 4rem 0 3rem; }

.vc-hero-inner {
    position: relative;
    z-index: 2;
}

.vc-hero-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 520px;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .vc-hero-glow {
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 60%);
}

.vc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .vc-badge {
    color: #a5b4fc;
}

.vc-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.1em;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 160%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
}

.vc-hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.vc-hero-ctas {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* -- Buttons (public pages, complement app styles) -- */
.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

/* -- Sections -- */
.vc-section {
    padding: 5rem 0;
}

.vc-section-alt {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vc-section-title {
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
    color: var(--text);
}

.vc-section-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* -- Features grid -- */
.vc-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.vc-feature {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, transform 0.15s;
}

.vc-feature:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.vc-feature-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
    border-color: var(--primary);
}

[data-theme="dark"] .vc-feature-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 100%);
}

.vc-feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.vc-feature h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.vc-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* -- Tooltip (hover + tap) -- */
.vc-tooltip {
    position: relative;
    display: inline;
    cursor: help;
    outline: none;
}

.vc-tooltip-word {
    border-bottom: 1.5px dotted var(--primary);
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
}

.vc-tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 320px;
    padding: 0.75rem 0.9rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 100;
    pointer-events: none;
    white-space: normal;
}

[data-theme="dark"] .vc-tooltip-content {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.vc-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text);
}

[data-theme="dark"] .vc-tooltip-content::after {
    border-top-color: var(--bg-card);
}

.vc-tooltip:hover .vc-tooltip-content,
.vc-tooltip:focus .vc-tooltip-content,
.vc-tooltip.open .vc-tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* -- Steps -- */
.vc-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 2.5rem;
}

.vc-step {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.vc-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.vc-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vc-step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* -- Compare table -- */
.vc-compare {
    margin-top: 2rem;
    overflow-x: auto;
}

.vc-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.vc-compare-table th,
.vc-compare-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.vc-compare-table th:first-child,
.vc-compare-table td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}

.vc-compare-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vc-compare-table .vc-compare-us {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.vc-compare-table tbody tr:last-child th,
.vc-compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* -- CTA section -- */
.vc-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}

[data-theme="dark"] .vc-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 100%);
}

/* -- Volts grid (pricing) -- */
.vc-volts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.vc-volt-card {
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.vc-volt-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.vc-volt-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.vc-volt-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* -- FAQ -- */
.vc-faq {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vc-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: border-color 0.15s;
}

.vc-faq-item[open] {
    border-color: var(--primary);
}

.vc-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vc-faq-item summary::-webkit-details-marker { display: none; }

.vc-faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.vc-faq-item[open] summary::after { content: '−'; }

.vc-faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.vc-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.vc-footer-brand .vc-logo { margin-bottom: 0.75rem; }

.vc-footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
}

.vc-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.vc-footer-col a {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

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

.vc-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* -- Responsive -- */
@media (max-width: 860px) {
    .vc-nav-links,
    .vc-nav-actions .vc-link,
    .vc-nav-actions .vc-theme-toggle {
        display: none;
    }
    .vc-nav-inner.open .vc-nav-links,
    .vc-nav-inner.open .vc-nav-actions .vc-link {
        display: flex;
    }
    .vc-burger { display: inline-flex; }
    .vc-nav-inner { flex-wrap: wrap; gap: 1rem; }
    .vc-nav-inner.open .vc-nav-links {
        flex-direction: column;
        flex-basis: 100%;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

    .vc-hero { padding: 4rem 0 3rem; }
    .vc-section { padding: 3.5rem 0; }

    .vc-features-grid { grid-template-columns: 1fr; }
    .vc-volts-grid { grid-template-columns: 1fr; }

    .vc-steps {
        grid-template-columns: 1fr;
    }
    .vc-step-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .vc-footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vc-compare-table th,
    .vc-compare-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}
