/* =============================================================================
   VitalBlocs central stylesheet
   Light theme only. All custom rules reference CSS variables, never raw hex.
   See docs/style-guide.md for the visual system.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS variables (from docs/style-guide.md "CSS Variables (Copy-Paste)")
   ----------------------------------------------------------------------------- */
:root {
    --vb-primary: #2B3A4E;
    --vb-primary-dark: #1C2A3A;
    --vb-accent: #F6821F;
    --vb-accent-dark: #D96E0F;
    --vb-accent-light: #FFF4EB;
    --vb-bg: #FFFFFF;
    --vb-surface: #F4F6F8;
    --vb-border: #DFE3E8;
    --vb-text: #2B3A4E;
    --vb-text-muted: #6B7A8D;
    --vb-text-faint: #9CA8B7;

    /* Typography */
    --vb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vb-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* -----------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--vb-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vb-text);
    background: var(--vb-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vb-font-sans);
    color: var(--vb-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--vb-accent-dark);
    text-decoration: none;
}

a:hover {
    color: var(--vb-accent);
}

.text-muted-vb {
    color: var(--vb-text-muted) !important;
}

.text-faint-vb {
    color: var(--vb-text-faint) !important;
}

.bg-surface-vb {
    background-color: var(--vb-surface) !important;
}

.font-mono-vb {
    font-family: var(--vb-font-mono);
}

.eyebrow-vb {
    font-family: var(--vb-font-mono);
    font-size: 0.75rem;
    color: var(--vb-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Wordmark
   "Vital" — Dark Slate, weight 400. "Blocs" — Ember Orange, weight 700.
   ----------------------------------------------------------------------------- */
.vb-wordmark {
    font-family: var(--vb-font-sans);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
}

.vb-wordmark .vb-wordmark-vital {
    color: var(--vb-primary);
    font-weight: 400;
}

.vb-wordmark .vb-wordmark-blocs {
    color: var(--vb-accent);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   Navigation (Bootstrap navbar customization)
   Light theme: White background with blur, bottom border in --vb-border.
   ----------------------------------------------------------------------------- */
.vb-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vb-border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.vb-navbar .navbar-brand {
    font-size: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

.vb-navbar .nav-link {
    color: var(--vb-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vb-navbar .nav-link:hover,
.vb-navbar .nav-link:focus {
    color: var(--vb-text);
}

.vb-navbar .nav-link.active {
    color: var(--vb-accent);
    font-weight: 600;
}

.vb-navbar .dropdown-menu {
    border: 1px solid var(--vb-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.08);
    padding: 0.4rem 0;
}

/* Hover-to-open dropdowns at lg+ widths. Mobile keeps Bootstrap's click toggle. */
@media (min-width: 992px) {
    .vb-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

.vb-navbar .dropdown-item {
    color: var(--vb-text-muted);
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
}

.vb-navbar .dropdown-item:hover,
.vb-navbar .dropdown-item:focus {
    background: var(--vb-surface);
    color: var(--vb-text);
}

.vb-navbar .dropdown-item.active,
.vb-navbar .dropdown-item:active {
    background: var(--vb-accent-light);
    color: var(--vb-accent-dark);
}

/* User identifier in the nav (mono, faint) */
.vb-navbar .vb-user-id {
    font-family: var(--vb-font-mono);
    font-size: 0.8rem;
    color: var(--vb-text-faint);
    letter-spacing: 0.04em;
}

/* CTA: Redeem secondary, Purchase primary
   Redeem is rendered with btn-vb-ghost — outlined, accent-tinted, calmer than
   the primary Purchase CTA. */
.btn-vb-primary {
    background: var(--vb-accent);
    border: 1px solid var(--vb-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-vb-primary:hover,
.btn-vb-primary:focus {
    background: var(--vb-accent-dark);
    border-color: var(--vb-accent-dark);
    color: #ffffff;
}

.btn-vb-ghost {
    background: transparent;
    border: 1px solid var(--vb-border);
    color: var(--vb-accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-vb-ghost:hover,
.btn-vb-ghost:focus {
    background: var(--vb-accent-light);
    border-color: var(--vb-accent);
    color: var(--vb-accent-dark);
}

/* Navbar toggler — use brand-tinted icon instead of default Bootstrap dark */
.vb-navbar .navbar-toggler {
    border-color: var(--vb-border);
    padding: 0.35rem 0.55rem;
}

.vb-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.15);
}

/* -----------------------------------------------------------------------------
   Cards / surfaces
   ----------------------------------------------------------------------------- */
.vb-card {
    background: var(--vb-surface);
    border: 1.5px solid var(--vb-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vb-card:hover {
    border-color: var(--vb-accent);
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.08);
}

/* -----------------------------------------------------------------------------
   Form inputs (custom Bootstrap form-control)
   ----------------------------------------------------------------------------- */
.form-control.vb-input,
.vb-input.form-control {
    background: #ffffff;
    border: 1px solid var(--vb-border);
    color: var(--vb-text);
    border-radius: 6px;
    padding: 0.55rem 0.85rem;
}

.form-control.vb-input::placeholder,
.vb-input.form-control::placeholder {
    color: var(--vb-text-faint);
}

.form-control.vb-input:focus,
.vb-input.form-control:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
    outline: none;
}

/* -----------------------------------------------------------------------------
   Footer
   Text and links use JetBrains Mono in --vb-text-faint, hover to Ember Orange.
   ----------------------------------------------------------------------------- */
.vb-footer {
    background: var(--vb-bg);
    border-top: 1px solid var(--vb-border);
    padding: 2rem 0;
}

.vb-footer .vb-footer-copy {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-text-faint);
    letter-spacing: 0.04em;
}

.vb-footer .vb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vb-footer .vb-footer-links a {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-text-faint);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.vb-footer .vb-footer-links a:hover,
.vb-footer .vb-footer-links a:focus {
    color: var(--vb-accent);
}

/* -----------------------------------------------------------------------------
   Page-content scaffolding
   ----------------------------------------------------------------------------- */
.vb-page {
    min-height: calc(100vh - 220px);
}

.vb-section {
    padding: 4rem 0;
}

.vb-section-tight {
    padding: 2.5rem 0;
}

.vb-section-surface {
    background: var(--vb-surface);
}

.vb-hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--vb-surface);
}

.vb-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vb-accent) 0%, transparent 60%);
}

.vb-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--vb-text);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.vb-hero h1 .vb-accent {
    color: var(--vb-accent);
}

.vb-hero-sub {
    font-size: 1.1rem;
    color: var(--vb-text-muted);
    max-width: 640px;
    font-weight: 300;
    line-height: 1.6;
}

/* Section eyebrow label */
.vb-section-label {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

/* -----------------------------------------------------------------------------
   About page-specific composition (uses tokens; no per-page <style> blocks)
   ----------------------------------------------------------------------------- */
.vb-founder-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    background: var(--vb-surface);
    border-radius: 12px;
    position: relative;
    border: 2px solid var(--vb-border);
    margin-inline: auto;
}

.vb-founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.vb-founder-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vb-accent);
    color: #ffffff;
    font-family: var(--vb-font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vb-founder-title {
    font-size: 0.95rem;
    color: var(--vb-accent-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.vb-founder-bio {
    color: var(--vb-text);
}

.vb-founder-bio a {
    color: var(--vb-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(217, 110, 15, 0.3);
}

.vb-founder-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--vb-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--vb-surface);
    border-radius: 6px;
    border: 1px solid var(--vb-border);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vb-founder-link:hover {
    border-color: var(--vb-accent);
    color: var(--vb-accent-dark);
    background: var(--vb-accent-light);
}

.vb-credentials {
    background: var(--vb-surface);
    border-top: 1px solid var(--vb-border);
    border-bottom: 1px solid var(--vb-border);
}

.vb-credential-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
    height: 100%;
}

.vb-credential-card:hover {
    border-color: var(--vb-accent);
}

.vb-credential-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vb-accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.vb-credential-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vb-text);
    margin-bottom: 0.35rem;
}

.vb-credential-detail {
    font-size: 0.8rem;
    color: var(--vb-text-muted);
    line-height: 1.5;
}

.vb-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--vb-surface);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
    height: 100%;
}

.vb-stack-item:hover {
    border-color: var(--vb-accent);
}

.vb-stack-icon {
    width: 36px;
    height: 36px;
    background: var(--vb-accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vb-stack-icon svg {
    width: 18px;
    height: 18px;
    color: var(--vb-accent);
}

.vb-stack-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--vb-text);
    margin-bottom: 0.15rem;
}

.vb-stack-desc {
    font-size: 0.8rem;
    color: var(--vb-text-muted);
    line-height: 1.4;
}

.vb-origin {
    background: var(--vb-accent-light);
    border-top: 1px solid var(--vb-border);
}

.vb-origin-bar {
    width: 3px;
    background: var(--vb-accent);
    border-radius: 2px;
    align-self: stretch;
}

.vb-origin-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.75rem;
}

.vb-origin-content p {
    color: var(--vb-text);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.vb-origin-content a {
    color: var(--vb-accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.vb-origin-content a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Home page
   Animated wordmark hero, 4×3 product Bloc grid, launch CTA with email signup.
   All colors via --vb-* tokens. Light theme only.
   ----------------------------------------------------------------------------- */

/* Home page owns horizontal-scroll suppression — the wordmark clamps at 3rem
   min, which on narrow viewports can outsize the column. The 600px ambient
   blurs sit outside the viewport too. Clip at the root for this page only. */
html:has(.vb-home-stage),
body:has(.vb-home-stage) {
    overflow-x: clip;
}

/* Ambient background — fixed behind content. Subtle grid + two drifting blurs. */
.vb-home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.vb-home-bg-grid {
    width: 100%;
    height: 100%;
    opacity: 0.07;
}

.vb-home-bg-blur {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
}

.vb-home-bg-blur-1 {
    background: var(--vb-accent);
    top: -200px;
    right: -100px;
    opacity: 0.08;
    animation: vb-home-drift1 20s ease-in-out infinite;
}

.vb-home-bg-blur-2 {
    background: var(--vb-primary);
    bottom: -300px;
    left: -200px;
    opacity: 0.06;
    animation: vb-home-drift2 25s ease-in-out infinite;
}

@keyframes vb-home-drift1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-60px, 40px); }
}

@keyframes vb-home-drift2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -60px); }
}

/* Stage — vertically centered column above the ambient background. */
.vb-home-stage {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 4.5rem;
    text-align: center;
}

/* Wordmark — Vital (slate 400) + Blocs (ember 700) + blinking cursor. */
.vb-home-wordmark {
    font-family: var(--vb-font-sans);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: vb-home-fade-up 1s ease-out 0.2s both;
}

.vb-home-wordmark-vital {
    color: var(--vb-primary);
    font-weight: 400;
}

.vb-home-wordmark-blocs {
    color: var(--vb-accent);
    font-weight: 700;
}

.vb-home-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--vb-accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: vb-home-blink 1s step-end infinite;
}

@keyframes vb-home-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

@keyframes vb-home-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tagline — faded first half ("Modular by design."), bolder second half. */
.vb-home-tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--vb-text);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 3.5rem;
    animation: vb-home-fade-up 1s ease-out 0.4s both;
}

.vb-home-tagline em {
    font-style: normal;
    color: var(--vb-text-muted);
}

/* 4×3 product Bloc grid. */
.vb-home-bloc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    width: min(500px, 80vw);
    margin-bottom: 3.5rem;
    animation: vb-home-fade-up 1s ease-out 0.6s both;
}

.vb-home-bloc-cell {
    aspect-ratio: 1;
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.3s ease;
}

.vb-home-bloc-cell:hover {
    transform: scale(1.06);
    border-color: var(--vb-accent);
    z-index: 2;
}

.vb-home-bloc-cell.vb-home-bloc-cell-accent {
    background: var(--vb-accent);
    border-color: var(--vb-accent);
}

.vb-home-bloc-cell.vb-home-bloc-cell-accent:hover {
    background: var(--vb-accent-dark);
    border-color: var(--vb-accent-dark);
}

.vb-home-bloc-cell-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-family: var(--vb-font-mono);
    font-size: 0.55rem;
    color: var(--vb-text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.vb-home-bloc-cell:hover .vb-home-bloc-cell-label {
    color: var(--vb-text);
}

.vb-home-bloc-cell.vb-home-bloc-cell-accent .vb-home-bloc-cell-label {
    color: #ffffff;
}

/* CTA section — launch label, description, email form, success state, redeem link. */
.vb-home-cta {
    text-align: center;
    animation: vb-home-fade-up 1s ease-out 0.8s both;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vb-home-cta-label {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vb-accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.vb-home-cta-label::before,
.vb-home-cta-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--vb-accent);
    opacity: 0.3;
}

.vb-home-cta-description {
    font-size: 0.95rem;
    color: var(--vb-text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vb-home-email-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vb-border);
    background: var(--vb-surface);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vb-home-email-form:focus-within {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.08);
}

.vb-home-email-input {
    flex: 1;
    padding: 0.9rem 1.1rem;
    background: var(--vb-surface);
    border: none;
    color: var(--vb-text);
    font-family: var(--vb-font-sans);
    font-size: 0.9rem;
    outline: none;
}

.vb-home-email-input::placeholder {
    color: var(--vb-text-faint);
}

.vb-home-email-btn {
    padding: 0.9rem 1.5rem;
    background: var(--vb-accent);
    border: none;
    color: #ffffff;
    font-family: var(--vb-font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.vb-home-email-btn:hover,
.vb-home-email-btn:focus {
    background: var(--vb-accent-dark);
}

.vb-home-email-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.vb-home-form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: var(--vb-accent-light);
    border-radius: 8px;
    border: 1px solid var(--vb-accent);
    max-width: 420px;
    width: 100%;
    margin: 0 auto 1.5rem;
}

.vb-home-form-success svg {
    flex-shrink: 0;
    color: var(--vb-accent);
}

.vb-home-form-success span {
    font-size: 0.9rem;
    color: var(--vb-accent-dark);
    font-weight: 500;
}

.vb-home-redeem-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--vb-text-faint);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.vb-home-redeem-link:hover,
.vb-home-redeem-link:focus {
    color: var(--vb-accent);
}

.vb-home-redeem-link svg {
    transition: transform 0.2s ease;
}

.vb-home-redeem-link:hover svg,
.vb-home-redeem-link:focus svg {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .vb-home-stage {
        padding: 4rem 1.25rem 3.5rem;
    }

    .vb-home-bloc-grid {
        width: 90vw;
    }

    .vb-home-email-form {
        flex-direction: column;
        border-radius: 8px;
    }
}

/* =============================================================================
   Product pages
   Styles for Products (index/grid) and Product (detail) views.
   Prefix: .vb-products-* (index), .vb-product-* (detail).
   Content pages
   Shared styles for Contact, Privacy, Terms, Purchase, Redeem, RedeemSuccess.
   All colors via --vb-* tokens. Light theme only.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Products index — sticky sub-nav
   Sits below the main sticky navbar. Horizontally scrollable on small screens.
   ----------------------------------------------------------------------------- */
.vb-products-subnav {
    position: sticky;
    top: 58px;
    z-index: 9;
    background: var(--vb-bg);
    border-bottom: 1px solid var(--vb-border);
}

.vb-products-subnav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vb-products-subnav-link {
    flex-shrink: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vb-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.vb-products-subnav-link:hover,
.vb-products-subnav-link:focus {
    color: var(--vb-text);
}

.vb-products-subnav-link.active {
    color: var(--vb-accent);
    border-bottom-color: var(--vb-accent);
}

/* -----------------------------------------------------------------------------
   Products index — per-product section
   ----------------------------------------------------------------------------- */
.vb-products-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--vb-border);
    scroll-margin-top: 110px;
}

.vb-products-section:last-of-type {
    border-bottom: none;
}

.vb-products-header {
    margin-bottom: 1.5rem;
}

/* Mini 2x2 grid icon (echoes the homepage Bloc grid) */
.vb-products-grid-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 56px;
    margin-top: 0.2rem;
}

.vb-products-grid-cell {
    aspect-ratio: 1;
    background: var(--vb-surface);
    border-radius: 3px;
    border: 1px solid var(--vb-border);
}

.vb-products-grid-cell.vb-products-grid-cell-accent {
    background: var(--vb-accent);
    border-color: var(--vb-accent);
}

.vb-products-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--vb-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.vb-products-subtitle {
    font-size: 1rem;
    color: var(--vb-text-muted);
    font-weight: 400;
}

.vb-products-desc {
    font-size: 0.95rem;
    color: var(--vb-text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.vb-products-features-mini {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.vb-products-features-mini li {
    font-size: 0.9rem;
    color: var(--vb-text);
    padding: 0.3rem 0 0.3rem 1rem;
    position: relative;
}

.vb-products-features-mini li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--vb-accent);
    font-size: 0.75rem;
}

.vb-products-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vb-accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vb-products-detail-link:hover,
.vb-products-detail-link:focus {
    color: var(--vb-accent);
}

.vb-products-media img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--vb-border);
    display: block;
}

.vb-products-media-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    border: 2px dashed var(--vb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-text-faint);
    font-size: 0.8rem;
    font-family: var(--vb-font-mono);
    background: var(--vb-surface);
}

/* -----------------------------------------------------------------------------
   Products index — Solutions strip
   ----------------------------------------------------------------------------- */
.vb-products-solutions {
    background: var(--vb-surface);
    border-top: 1px solid var(--vb-border);
    border-bottom: 1px solid var(--vb-border);
    padding: 3.5rem 0;
}

.vb-products-solutions-bar {
    width: 3px;
    background: var(--vb-accent);
    border-radius: 2px;
    align-self: stretch;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Long-form legal content (Privacy, Terms)
   ----------------------------------------------------------------------------- */
.vb-content-prose {
    color: var(--vb-text);
}

.vb-content-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vb-text);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vb-accent-light);
}

.vb-content-prose h2:first-child {
    margin-top: 0;
}

.vb-content-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vb-primary-dark);
    margin: 1.75rem 0 0.5rem;
}

.vb-content-prose p {
    margin-bottom: 1rem;
    color: var(--vb-text);
}

.vb-content-prose ul,
.vb-content-prose ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--vb-text);
}

.vb-content-prose li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.vb-content-prose li::marker {
    color: var(--vb-accent);
}

.vb-content-prose a {
    color: var(--vb-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(217, 110, 15, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.vb-content-prose a:hover {
    text-decoration-color: var(--vb-accent);
}

.vb-content-hero-date {
    font-family: var(--vb-font-mono);
    font-size: 0.8rem;
    color: var(--vb-accent);
    letter-spacing: 0.04em;
    display: inline-block;
    margin-top: 0.5rem;
}

.vb-content-highlight {
    background: var(--vb-accent-light);
    border-left: 3px solid var(--vb-accent);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: var(--vb-text);
}

.vb-content-highlight strong {
    color: var(--vb-accent-dark);
}

.vb-content-warning {
    background: rgba(220, 38, 38, 0.06);
    border-left: 3px solid rgba(220, 38, 38, 0.85);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: var(--vb-text);
}

.vb-content-warning strong {
    color: rgba(190, 18, 18, 1);
}

.vb-content-code {
    font-family: var(--vb-font-mono);
    font-size: 0.85em;
    background: var(--vb-surface);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--vb-primary-dark);
}

.vb-content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.vb-content-table thead {
    background: var(--vb-primary);
    color: #ffffff;
}

.vb-content-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vb-content-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--vb-border);
    color: var(--vb-text);
}

.vb-content-table tbody tr:nth-child(even) td {
    background: var(--vb-surface);
}

.vb-content-toc {
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.vb-content-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vb-text);
    margin-bottom: 0.75rem;
}

.vb-content-toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
}

.vb-content-toc li {
    counter-increment: toc;
    margin-bottom: 0.35rem;
    padding: 0;
}

.vb-content-toc li::before {
    content: counter(toc) ".";
    color: var(--vb-accent);
    font-family: var(--vb-font-mono);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.vb-content-toc a {
    font-size: 0.88rem;
    color: var(--vb-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vb-content-toc a:hover {
    color: var(--vb-accent);
}

@media (max-width: 640px) {
    .vb-content-table {
        font-size: 0.8rem;
    }

    .vb-content-table th,
    .vb-content-table td {
        padding: 0.5rem 0.6rem;
    }
}

/* -----------------------------------------------------------------------------
   Contact page
   ----------------------------------------------------------------------------- */
.vb-contact-service-icon {
    width: 40px;
    height: 40px;
    background: var(--vb-accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.vb-contact-service-icon svg {
    width: 20px;
    height: 20px;
    color: var(--vb-accent);
}

.vb-contact-service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.5rem;
}

.vb-contact-service-card p {
    font-size: 0.85rem;
    color: var(--vb-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.vb-contact-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.vb-contact-tab {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--vb-border);
    border-radius: 6px;
    background: var(--vb-bg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vb-text);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vb-contact-tab:hover,
.vb-contact-tab:focus {
    border-color: var(--vb-accent);
    color: var(--vb-accent-dark);
}

.vb-contact-tab.active {
    background: var(--vb-accent);
    color: #ffffff;
    border-color: var(--vb-accent);
}

.vb-contact-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vb-text);
    margin-bottom: 0.4rem;
}

.vb-contact-field-label .vb-contact-req {
    color: var(--vb-accent);
}

.vb-contact-fields-general,
.vb-contact-fields-consulting,
.vb-contact-fields-product {
    display: none;
}

.vb-contact-fields-general.active,
.vb-contact-fields-consulting.active,
.vb-contact-fields-product.active {
    display: block;
}

.vb-contact-error {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(153, 27, 27, 1);
    margin-bottom: 1rem;
}

.vb-contact-success {
    display: none;
    padding: 1.25rem;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 8px;
    text-align: center;
}

.vb-contact-success-icon {
    color: var(--vb-accent);
    margin-bottom: 0.5rem;
}

.vb-contact-success h4 {
    font-size: 1rem;
    color: var(--vb-text);
    margin-bottom: 0.25rem;
}

.vb-contact-success p {
    font-size: 0.9rem;
    color: var(--vb-text-muted);
    margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Purchase page
   ----------------------------------------------------------------------------- */
.vb-purchase-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vb-purchase-card:hover {
    border-color: var(--vb-accent);
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.08);
}

.vb-purchase-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.vb-purchase-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.5rem;
}

.vb-purchase-desc {
    font-size: 0.9rem;
    color: var(--vb-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.vb-purchase-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.55rem 1.15rem;
    border-radius: 6px;
    background: var(--vb-accent);
    color: #ffffff;
    transition: background 0.2s ease;
}

.vb-purchase-link:hover,
.vb-purchase-link:focus {
    background: var(--vb-accent-dark);
    color: #ffffff;
}

.vb-purchase-info {
    background: var(--vb-accent-light);
    border-top: 1px solid var(--vb-border);
    border-bottom: 1px solid var(--vb-border);
}

.vb-purchase-info-bar {
    width: 3px;
    background: var(--vb-accent);
    border-radius: 2px;
    align-self: stretch;
    flex-shrink: 0;
}

.vb-products-solutions-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.75rem;
}

.vb-purchase-info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.75rem;
}

.vb-products-solutions-content p {
    color: var(--vb-text);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.vb-products-solutions-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.vb-products-solutions-list li {
    font-size: 0.9rem;
    color: var(--vb-text);
    padding-left: 1.25rem;
    position: relative;
}

.vb-products-solutions-list li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--vb-accent);
}

/* Shared CTA block (also used by product detail) */
.vb-products-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vb-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.vb-products-cta-desc {
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* -----------------------------------------------------------------------------
   Product detail — overview
   ----------------------------------------------------------------------------- */
.vb-product-overview-text {
    color: var(--vb-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   Product detail — In action showcase
   Even-indexed items flip media to the left at lg+ widths.
   ----------------------------------------------------------------------------- */
.vb-product-in-action {
    border-top: 1px solid var(--vb-border);
    border-bottom: 1px solid var(--vb-border);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.vb-product-showcase-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--vb-border);
}

.vb-product-showcase-item:last-child {
    border-bottom: none;
}

@media (min-width: 992px) {
    .vb-product-showcase-item:nth-child(even) .vb-product-showcase-media {
        order: -1;
    }
}

.vb-product-showcase-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.5rem;
}

.vb-product-showcase-desc {
    font-size: 0.95rem;
    color: var(--vb-text-muted);
    line-height: 1.7;
}

.vb-product-showcase-media img,
.vb-product-showcase-media video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--vb-border);
    display: block;
}

.vb-product-showcase-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    border: 2px dashed var(--vb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-text-faint);
    font-size: 0.8rem;
    font-family: var(--vb-font-mono);
    background: var(--vb-surface);
}

/* -----------------------------------------------------------------------------
   Product detail — Feature cards
   ----------------------------------------------------------------------------- */
.vb-product-feature-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* =============================================================================
   Articles pages
   Index (list + pagination) and Detail (prose typography for Markdig output).
   Light theme only. Colors via --vb-* tokens. Inter for prose, JetBrains Mono
   for code, inline mono labels, and meta lines.
   ============================================================================= */

/* Article hero meta — author + date row under the title on a detail page. */
.vb-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--vb-font-mono);
    font-size: 0.78rem;
    color: var(--vb-text-muted);
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}

/* Index — list of article cards. */
.vb-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vb-article-card {
    display: block;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vb-product-feature-card:hover {
    border-color: var(--vb-accent);
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.08);
}

.vb-product-feature-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vb-product-feature-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.3rem;
}

.vb-product-feature-desc {
    font-size: 0.85rem;
    color: var(--vb-text-muted);
    line-height: 1.55;
}

/* -----------------------------------------------------------------------------
   Product detail — Integration badges
   ----------------------------------------------------------------------------- */
.vb-product-integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vb-text);
}

.vb-product-integration-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* -----------------------------------------------------------------------------
   Product detail — Testimonials
   ----------------------------------------------------------------------------- */
.vb-product-testimonial-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
    padding: 1.75rem;
    height: 100%;
}

.vb-product-testimonial-quote {
    font-size: 0.95rem;
    color: var(--vb-text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.vb-product-testimonial-quote::before {
    content: '\201C';
}

.vb-product-testimonial-quote::after {
    content: '\201D';
}

.vb-product-testimonial-person {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vb-text);
}

.vb-product-testimonial-role {
    font-size: 0.8rem;
    color: var(--vb-text-muted);
}

/* -----------------------------------------------------------------------------
   Product detail — FAQ
   ----------------------------------------------------------------------------- */
.vb-product-faq-item {
    border-bottom: 1px solid var(--vb-border);
    padding: 1.25rem 0;
}

.vb-product-faq-item:last-child {
    border-bottom: none;
}

.vb-product-faq-q {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.5rem;
}

.vb-product-faq-a {
    font-size: 0.9rem;
    color: var(--vb-text-muted);
    line-height: 1.7;
}

/* -----------------------------------------------------------------------------
   Product detail — Technical specs
   ----------------------------------------------------------------------------- */
.vb-product-spec-item {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.4rem 0;
}

.vb-product-spec-key {
    font-family: var(--vb-font-mono);
    font-size: 0.75rem;
    color: var(--vb-accent);
    white-space: nowrap;
    min-width: 130px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vb-product-spec-val {
    font-size: 0.9rem;
    color: var(--vb-text);
}

/* -----------------------------------------------------------------------------
   Product detail — Pricing
   ----------------------------------------------------------------------------- */
.vb-product-pricing-toggle {
    display: inline-flex;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 2rem;
}

.vb-product-pricing-toggle-btn {
    border: none;
    background: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vb-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.vb-product-pricing-toggle-btn.active {
    background: var(--vb-accent);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(43, 58, 78, 0.12);
}

.vb-product-pricing-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vb-product-pricing-card-featured {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 1px var(--vb-accent);
}

.vb-product-pricing-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--vb-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.vb-product-pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.75rem;
}

.vb-product-pricing-price-wrap {
    margin-bottom: 1.25rem;
}

.vb-product-pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vb-text);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.vb-product-pricing-interval {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--vb-text-muted);
}

.vb-product-pricing-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.vb-product-pricing-includes li {
    font-size: 0.85rem;
    color: var(--vb-text);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--vb-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vb-product-pricing-includes li:last-child {
    border-bottom: none;
}

.vb-product-pricing-includes li::before {
    content: '\2713';
    color: var(--vb-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.vb-product-pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: var(--vb-accent);
    color: #ffffff;
    border: 1px solid var(--vb-accent);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    cursor: pointer;
}

.vb-product-pricing-cta:hover,
.vb-product-pricing-cta:focus {
    background: var(--vb-accent-dark);
    border-color: var(--vb-accent-dark);
    color: #ffffff;
}

.vb-product-pricing-cta-secondary {
    background: var(--vb-bg);
    color: var(--vb-text);
    border-color: var(--vb-border);
}

.vb-product-pricing-cta-secondary:hover,
.vb-product-pricing-cta-secondary:focus {
    border-color: var(--vb-accent);
    color: var(--vb-accent-dark);
    background: var(--vb-accent-light);
}

button.vb-product-pricing-cta:disabled {
    opacity: 0.6;
    cursor: wait;
}

.vb-product-pricing-quote-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--vb-text-muted);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.vb-product-pricing-quote-link:hover,
.vb-product-pricing-quote-link:focus {
    color: var(--vb-accent);
}

/* -----------------------------------------------------------------------------
   Product detail — Redeem link (post-purchase utility)
   ----------------------------------------------------------------------------- */
.vb-product-redeem-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--vb-text-faint);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vb-product-redeem-link:hover,
.vb-product-redeem-link:focus {
    color: var(--vb-accent);
}

.vb-product-redeem-link svg {
    transition: transform 0.2s ease;
}

.vb-product-redeem-link:hover svg,
.vb-product-redeem-link:focus svg {
    transform: translateX(3px);
}

/* -----------------------------------------------------------------------------
   Responsive adjustments for product pages
   ----------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .vb-products-section {
        padding: 3rem 0;
    }

    .vb-products-name {
        font-size: 1.4rem;
    }

    .vb-products-solutions-list {
        grid-template-columns: 1fr;
    }

    .vb-products-grid-icon {
        width: 48px;
    }

    .vb-product-spec-key {
        min-width: 110px;
    }
}

.vb-article-card {
    text-decoration: none;
    color: var(--vb-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vb-article-card:hover,
.vb-article-card:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.08);
    color: var(--vb-text);
    text-decoration: none;
}

.vb-article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vb-text);
    margin: 0 0 0.45rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.vb-article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-family: var(--vb-font-mono);
    font-size: 0.72rem;
    color: var(--vb-text-faint);
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.vb-article-card-summary {
    margin: 0;
    font-size: 0.95rem;
    color: var(--vb-text-muted);
    line-height: 1.6;
}

/* Empty state on the index. */
.vb-articles-empty {
    border: 1px dashed var(--vb-border);
    border-radius: 10px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--vb-text-muted);
    background: var(--vb-surface);
}

/* Bootstrap pagination, restyled to the brand. */
.vb-articles-pagination .page-link {
    color: var(--vb-text);
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    font-family: var(--vb-font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vb-articles-pagination .page-link:hover,
.vb-articles-pagination .page-link:focus {
    background: var(--vb-accent-light);
    border-color: var(--vb-accent);
    color: var(--vb-accent-dark);
    box-shadow: none;
}

.vb-articles-pagination .page-item.active .page-link {
    background: var(--vb-accent);
    border-color: var(--vb-accent);
    color: #ffffff;
}

.vb-articles-pagination .page-item.disabled .page-link {
    color: var(--vb-text-faint);
    background: var(--vb-bg);
    border-color: var(--vb-border);
    opacity: 1;
}

/* Detail — back link above the prose. */
.vb-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    font-family: var(--vb-font-mono);
    font-size: 0.78rem;
    color: var(--vb-text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.vb-article-back:hover,
.vb-article-back:focus {
    color: var(--vb-accent);
}

/* -----------------------------------------------------------------------------
   Article body — prose typography for Markdig-rendered HTML.
   Inter for prose. JetBrains Mono for inline code and code blocks.
   Generous line-height. Brand colors on headings, links, blockquotes, tables.
   ----------------------------------------------------------------------------- */
.vb-article-body {
    font-family: var(--vb-font-sans);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--vb-text);
}

.vb-article-body > *:first-child {
    margin-top: 0;
}

.vb-article-body > *:last-child {
    margin-bottom: 0;
}

.vb-article-body p {
    margin: 0 0 1.15rem;
    color: var(--vb-text);
}

.vb-article-body h1,
.vb-article-body h2,
.vb-article-body h3,
.vb-article-body h4,
.vb-article-body h5,
.vb-article-body h6 {
    font-family: var(--vb-font-sans);
    color: var(--vb-text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.vb-article-body h2 {
    font-size: 1.55rem;
    margin: 2.5rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vb-accent-light);
}

.vb-article-body h3 {
    font-size: 1.2rem;
    margin: 1.85rem 0 0.6rem;
    color: var(--vb-primary-dark);
}

.vb-article-body h4 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

.vb-article-body h5,
.vb-article-body h6 {
    font-size: 0.95rem;
    margin: 1.25rem 0 0.4rem;
}

.vb-article-body a {
    color: var(--vb-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(217, 110, 15, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.vb-article-body a:hover,
.vb-article-body a:focus {
    color: var(--vb-accent);
    text-decoration-color: var(--vb-accent);
}

.vb-article-body strong {
    color: var(--vb-text);
    font-weight: 700;
}

.vb-article-body em {
    font-style: italic;
}

.vb-article-body ul,
.vb-article-body ol {
    margin: 0 0 1.15rem 1.5rem;
    padding: 0;
}

.vb-article-body li {
    margin-bottom: 0.45rem;
    padding-left: 0.25rem;
}

.vb-article-body li::marker {
    color: var(--vb-accent);
}

.vb-article-body li > p {
    margin-bottom: 0.5rem;
}

.vb-article-body blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.25rem;
    background: var(--vb-accent-light);
    border-left: 3px solid var(--vb-accent);
    border-radius: 0 6px 6px 0;
    color: var(--vb-text);
}

.vb-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.vb-article-body hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--vb-border);
}

.vb-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
}

/* Inline code: mono, tinted surface chip. */
.vb-article-body code {
    font-family: var(--vb-font-mono);
    font-size: 0.88em;
    background: var(--vb-surface);
    color: var(--vb-primary-dark);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--vb-border);
}

/* Fenced code blocks: scrollable surface, mono, no inline chip styling. */
.vb-article-body pre {
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.55;
}

.vb-article-body pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--vb-text);
    font-size: 0.88rem;
}

/* Tables. */
.vb-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.vb-article-body thead {
    background: var(--vb-primary);
    color: #ffffff;
}

.vb-article-body th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--vb-border);
}

.vb-article-body td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--vb-border);
    color: var(--vb-text);
}

.vb-article-body tbody tr:nth-child(even) td {
    background: var(--vb-surface);
}

@media (max-width: 640px) {
    .vb-article-card {
        padding: 1.25rem;
    }

    .vb-article-card-title {
        font-size: 1.1rem;
    }

    .vb-article-body {
        font-size: 1rem;
    }

    .vb-article-body h2 {
        font-size: 1.35rem;
    }

    .vb-article-body h3 {
        font-size: 1.1rem;
    }
}

.vb-purchase-info-content p {
    color: var(--vb-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.vb-purchase-info-content a {
    color: var(--vb-accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.vb-purchase-info-content a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Redeem + RedeemSuccess
   Single centered card on a quiet surface, light theme.
   ----------------------------------------------------------------------------- */
.vb-redeem-stage {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: var(--vb-surface);
}

.vb-redeem-card {
    width: 100%;
    max-width: 480px;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.06);
}

.vb-redeem-icon {
    width: 56px;
    height: 56px;
    background: var(--vb-accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.vb-redeem-icon svg {
    color: var(--vb-accent);
}

.vb-redeem-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vb-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.vb-redeem-subtitle {
    font-size: 0.95rem;
    color: var(--vb-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.vb-redeem-label {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.vb-redeem-input {
    width: 100%;
    padding: 1rem 1.15rem;
    background: var(--vb-bg);
    border: 1.5px solid var(--vb-border);
    border-radius: 10px;
    color: var(--vb-text);
    font-family: var(--vb-font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vb-redeem-input::placeholder {
    color: var(--vb-text-faint);
    font-family: var(--vb-font-mono);
}

.vb-redeem-input:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.12);
}

.vb-redeem-input.input-validation-error {
    border-color: rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.vb-redeem-input.valid {
    border-color: rgba(22, 163, 74, 0.85);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.vb-redeem-hint {
    font-size: 0.8rem;
    color: var(--vb-text-faint);
    margin-top: 0.5rem;
}

.vb-redeem-validation {
    font-size: 0.8rem;
    color: rgba(190, 18, 18, 1);
    margin-top: 0.5rem;
    display: block;
}

.vb-redeem-submit {
    width: 100%;
    padding: 0.95rem 1rem;
    background: var(--vb-accent);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--vb-font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.vb-redeem-submit:hover,
.vb-redeem-submit:focus {
    background: var(--vb-accent-dark);
}

.vb-redeem-submit:active {
    transform: scale(0.99);
}

.vb-redeem-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vb-redeem-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}

.vb-redeem-divider::before,
.vb-redeem-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vb-border);
}

.vb-redeem-divider span {
    font-size: 0.75rem;
    color: var(--vb-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.vb-redeem-help {
    text-align: center;
}

.vb-redeem-help a {
    font-size: 0.85rem;
    color: var(--vb-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vb-redeem-help a:hover,
.vb-redeem-help a:focus {
    color: var(--vb-accent);
}

/* Redeem success — uses the same card scaffolding, with a green/accent icon */
.vb-redeem-success-icon {
    width: 72px;
    height: 72px;
    background: var(--vb-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
}

.vb-redeem-success-icon svg {
    color: var(--vb-accent);
}

.vb-redeem-license-display {
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.vb-redeem-license-display-label {
    font-family: var(--vb-font-mono);
    font-size: 0.65rem;
    color: var(--vb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.vb-redeem-license-display-key {
    font-family: var(--vb-font-mono);
    font-size: 0.9rem;
    color: var(--vb-accent-dark);
    letter-spacing: 0.02em;
    word-break: break-all;
}

.vb-redeem-next {
    background: var(--vb-accent);
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 0.95rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.vb-redeem-next:hover,
.vb-redeem-next:focus {
    background: var(--vb-accent-dark);
    color: #ffffff;
}

@media (max-width: 540px) {
    .vb-redeem-card {
        padding: 2rem 1.5rem;
    }
}

/* -----------------------------------------------------------------------------
   Account / Auth pages
   Shared scaffolding for Login, Register, AccessDenied, ExternalLoginConfirmation.
   Narrow centered card on a soft background, B2B SaaS register.
   See docs/style-guide.md for the visual system.
   ----------------------------------------------------------------------------- */
.vb-auth-stage {
    background: var(--vb-surface);
    padding: 4rem 0 5rem;
    min-height: calc(100vh - 220px);
}

.vb-auth-card {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(43, 58, 78, 0.04);
}

.vb-auth-card-center {
    text-align: center;
}

.vb-auth-eyebrow {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vb-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.vb-auth-sub {
    font-size: 0.9rem;
    color: var(--vb-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vb-auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vb-text);
    margin-bottom: 0.4rem;
}

.form-control.vb-auth-input,
.vb-auth-input.form-control {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    color: var(--vb-text);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control.vb-auth-input::placeholder,
.vb-auth-input.form-control::placeholder {
    color: var(--vb-text-faint);
}

.form-control.vb-auth-input:focus,
.vb-auth-input.form-control:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
    outline: none;
}

.vb-auth-hint {
    font-size: 0.75rem;
    color: var(--vb-text-faint);
    margin-top: 0.35rem;
}

.vb-auth-check .form-check-label {
    font-size: 0.85rem;
    color: var(--vb-text-muted);
}

.vb-auth-check .form-check-input:checked {
    background-color: var(--vb-accent);
    border-color: var(--vb-accent);
}

.vb-auth-check .form-check-input:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

.vb-auth-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.vb-auth-summary {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: rgba(153, 27, 27, 1);
}

.vb-auth-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.vb-auth-summary li + li {
    margin-top: 0.15rem;
}

.vb-auth-field-error {
    display: block;
    font-size: 0.8rem;
    color: rgba(190, 18, 18, 1);
    margin-top: 0.4rem;
}

.vb-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    font-size: 0.8rem;
    color: var(--vb-text-faint);
}

.vb-auth-divider::before,
.vb-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vb-border);
}

.vb-auth-external {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vb-auth-external-btn {
    flex: 1;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--vb-border);
    border-radius: 6px;
    background: var(--vb-bg);
    font-family: var(--vb-font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vb-text);
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vb-auth-external-btn:hover,
.vb-auth-external-btn:focus {
    border-color: var(--vb-accent);
    color: var(--vb-text);
    background: var(--vb-bg);
}

.vb-auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--vb-text-muted);
    margin-top: 0.5rem;
}

.vb-auth-footer a {
    color: var(--vb-accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.vb-auth-footer a:hover,
.vb-auth-footer a:focus {
    color: var(--vb-accent);
    text-decoration: underline;
}

@media (max-width: 540px) {
    .vb-auth-stage {
        padding: 2rem 0 3rem;
    }

    .vb-auth-card {
        padding: 1.75rem 1.5rem;
    }

    .vb-auth-external {
        flex-direction: column;
    }
}

/* =============================================================================
   Admin pages
   Brand-aligned light theme — uses the same --vb-* tokens as the public site.
   Distinct visual context (own navbar wordmark suffix, denser tables) but no
   separate admin palette.
   ============================================================================= */

/* Body / page chrome */
.vb-admin-body {
    background: var(--vb-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.vb-admin-body .vb-admin-page {
    flex: 1 0 auto;
}

/* Admin navbar — white panel with subtle border, Primary-tinted active link */
.vb-admin-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--vb-border);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.vb-admin-navbar .navbar-brand {
    font-size: 1.15rem;
    line-height: 1.2;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.vb-admin-brand-suffix {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--vb-text-muted);
    margin-left: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vb-admin-navbar .nav-link {
    color: var(--vb-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.vb-admin-navbar .nav-link:hover,
.vb-admin-navbar .nav-link:focus {
    color: var(--vb-text);
    background: var(--vb-surface);
}

.vb-admin-navbar .nav-link.active {
    color: var(--vb-accent-dark);
    background: var(--vb-accent-light);
    font-weight: 600;
}

.vb-admin-user {
    font-family: var(--vb-font-mono);
    font-size: 0.78rem;
    color: var(--vb-text-muted);
}

.vb-admin-logout {
    color: var(--vb-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    background: none;
}

.vb-admin-logout:hover,
.vb-admin-logout:focus {
    color: var(--vb-accent-dark);
}

/* Admin footer — single-line copyright, JetBrains Mono */
.vb-admin-footer {
    border-top: 1px solid var(--vb-border);
    padding: 1rem 0;
    margin-top: auto;
    background: #ffffff;
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    color: var(--vb-text-faint);
    text-align: center;
}

/* Page header (title + lede) */
.vb-admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vb-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.vb-admin-page-lede {
    color: var(--vb-text-muted);
    font-size: 0.95rem;
}

/* Dashboard stat cards */
.vb-admin-stat {
    background: #ffffff;
    padding: 1.25rem;
}

.vb-admin-stat-label {
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--vb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.vb-admin-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vb-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.vb-admin-stat-value-accent {
    color: var(--vb-accent);
}

.vb-admin-stat-value-sm {
    font-size: 1rem;
    font-weight: 600;
}

.vb-admin-stat-secondary {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--vb-text-muted);
}

.vb-admin-stat-empty {
    color: var(--vb-text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

/* Data panel (table container) */
.vb-admin-panel {
    background: #ffffff;
    overflow: hidden;
}

.vb-admin-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vb-border);
}

.vb-admin-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vb-text);
}

.vb-admin-record-count {
    font-size: 0.8rem;
    color: var(--vb-text-muted);
}

/* Tables */
.vb-admin-table {
    font-size: 0.875rem;
    color: var(--vb-text);
    margin-bottom: 0;
}

.vb-admin-table thead th {
    background: var(--vb-surface);
    color: var(--vb-text-muted);
    font-family: var(--vb-font-mono);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--vb-border);
    white-space: nowrap;
}

.vb-admin-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--vb-border);
    vertical-align: middle;
}

.vb-admin-table > tbody > tr:last-child > td {
    border-bottom: none;
}

.vb-admin-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: var(--vb-surface);
}

.vb-admin-table tbody tr:hover td {
    background: var(--vb-accent-light);
}

.vb-admin-cell-mono {
    font-family: var(--vb-font-mono);
    font-size: 0.8rem;
}

.vb-admin-cell-muted {
    color: var(--vb-text-muted);
}

.vb-admin-cell-date {
    white-space: nowrap;
    color: var(--vb-text-muted);
    font-family: var(--vb-font-mono);
    font-size: 0.8rem;
}

/* Badges (status / category) — brand-aligned */
.vb-admin-badge {
    display: inline-block;
    font-family: var(--vb-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    line-height: 1.2;
}

.vb-admin-badge-general {
    background: var(--vb-surface);
    color: var(--vb-text-muted);
    border-color: var(--vb-border);
}

.vb-admin-badge-consulting {
    background: #ffffff;
    color: var(--vb-primary);
    border-color: var(--vb-primary);
}

.vb-admin-badge-product {
    background: var(--vb-accent-light);
    color: var(--vb-accent-dark);
    border-color: var(--vb-accent);
}

/* Inline action links inside table rows */
.vb-admin-link {
    color: var(--vb-accent-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.vb-admin-link:hover,
.vb-admin-link:focus {
    color: var(--vb-accent);
    text-decoration: underline;
}

/* Empty state */
.vb-admin-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--vb-text-muted);
    font-size: 0.95rem;
}

/* Pagination override — keep brand colors on Bootstrap pagination */
.vb-admin-pagination {
    padding: 1rem;
    border-top: 1px solid var(--vb-border);
}

.vb-admin-pagination .page-link {
    color: var(--vb-text);
    background: #ffffff;
    border: 1px solid var(--vb-border);
    font-size: 0.85rem;
    font-weight: 500;
}

.vb-admin-pagination .page-link:hover,
.vb-admin-pagination .page-link:focus {
    color: var(--vb-accent-dark);
    background: var(--vb-accent-light);
    border-color: var(--vb-accent);
    box-shadow: none;
}

.vb-admin-pagination .page-item.active .page-link {
    background: var(--vb-accent);
    border-color: var(--vb-accent);
    color: #ffffff;
}

.vb-admin-pagination .page-item.disabled .page-link {
    color: var(--vb-text-faint);
    background: #ffffff;
    border-color: var(--vb-border);
}

/* Article form card */
.vb-admin-form-card {
    background: #ffffff;
    max-width: 880px;
}

.vb-admin-form-label {
    font-family: var(--vb-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--vb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.vb-admin-form-content {
    font-family: var(--vb-font-mono);
    font-size: 0.85rem;
    min-height: 360px;
    resize: vertical;
}

.vb-admin-form-check:checked {
    background-color: var(--vb-accent);
    border-color: var(--vb-accent);
}

.vb-admin-form-check:focus {
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

/* Quick links row on dashboard */
.vb-admin-quick-links .btn {
    font-size: 0.9rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .vb-admin-page-title {
        font-size: 1.35rem;
    }

    .vb-admin-table thead th,
    .vb-admin-table tbody td {
        padding: 0.5rem 0.75rem;
    }

    .vb-admin-brand-suffix {
        font-size: 0.65rem;
        margin-left: 0.4rem;
    }
}

/* =============================================================================
   Games / Fidget Focus
   The game page lives at /games/fidget-focus. Light theme only. All colors
   reference --vb-* tokens; no raw hex.

   IMPORTANT: the VitalBlocs.Games.FidgetFocus NuGet package ships its own
   stylesheet (focus-fidget.css) that re-declares :root variables
   (--vb-accent, --vb-bg, --vb-text, etc.) with the package's own palette.
   Its stylesheet loads AFTER ours via the <focus-fidget-assets /> TagHelper,
   so its :root declarations would otherwise win globally on this page —
   turning the brand wordmark, our buttons, etc. teal.

   Mitigation: re-declare the brand tokens on our page-section wrappers
   (.vb-game-hero, .vb-game-section). Those scopes are more specific than
   the package's :root, so for any descendant element using var(--vb-accent)
   our brand color wins. The game canvas (inside .vb-game-section) keeps
   its own internal palette because it sets variables on its own scoped
   element, which beats our wrapper for those descendants. The hex values
   below are identical to the central :root block at the top of this file
   — they're re-declared only to defeat the package's :root override on
   this single page. These are the same brand tokens already accepted in
   this file, not new arbitrary colors.
   ============================================================================= */
.vb-game-hero,
.vb-game-section {
    --vb-primary: #2B3A4E;
    --vb-primary-dark: #1C2A3A;
    --vb-accent: #F6821F;
    --vb-accent-dark: #D96E0F;
    --vb-accent-light: #FFF4EB;
    --vb-bg: #FFFFFF;
    --vb-surface: #F4F6F8;
    --vb-border: #DFE3E8;
    --vb-text: #2B3A4E;
    --vb-text-muted: #6B7A8D;
    --vb-text-faint: #9CA8B7;
}

.vb-game-hero {
    padding: 4rem 0 1.5rem;
    text-align: center;
}

.vb-game-eyebrow {
    font-family: var(--vb-font-mono);
    font-size: 0.75rem;
    color: var(--vb-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.vb-game-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--vb-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.vb-game-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--vb-text-muted);
    margin: 0 auto;
    max-width: 36rem;
}

.vb-game-section {
    padding: 1rem 0 4rem;
}

/* Center the game component and bound its width for desktop comfort. */
.vb-game-stage {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.25rem;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 12px;
}

/* "Save your progress" — a subtle strip below the game, not a marketing block. */
.vb-game-save {
    max-width: 32rem;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
}

.vb-game-save-label {
    display: block;
    font-size: 0.9rem;
    color: var(--vb-text-muted);
    margin-bottom: 0.6rem;
}

.vb-game-save-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.vb-game-save-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-family: var(--vb-font-sans);
    font-size: 0.95rem;
    color: var(--vb-text);
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 6px;
}

.vb-game-save-input::placeholder {
    color: var(--vb-text-faint);
}

.vb-game-save-input:focus {
    outline: none;
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

.vb-game-save-btn {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    font-family: var(--vb-font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--vb-accent);
    border: 1px solid var(--vb-accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vb-game-save-btn:hover:not(:disabled) {
    background: var(--vb-accent-dark);
    border-color: var(--vb-accent-dark);
}

.vb-game-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.vb-game-save-error {
    margin: 0.5rem 0 0;
    min-height: 1.1rem;
    font-size: 0.85rem;
    color: var(--vb-accent-dark);
}

.vb-game-save-error:empty {
    margin: 0;
    min-height: 0;
}

.vb-game-save-done {
    display: none;
    font-size: 0.95rem;
    color: var(--vb-text);
    background: var(--vb-accent-light);
    border: 1px solid var(--vb-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

@media (max-width: 480px) {
    .vb-game-save-row {
        flex-direction: column;
    }

    .vb-game-save-btn {
        width: 100%;
    }
}

/* =============================================================================
   Lead magnet pages
   Gated download views — /download/{slug} and the success state.
   Light theme only. All colors via --vb-* tokens.
   ============================================================================= */

.vb-magnet-card {
    background: var(--vb-surface);
    border: 1px solid var(--vb-border);
    border-radius: 12px;
    padding: 2rem;
}

.vb-magnet-description {
    color: var(--vb-text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.vb-magnet-field-label {
    display: block;
    font-family: var(--vb-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--vb-text-muted);
    margin-bottom: 0.5rem;
}

.vb-magnet-input {
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    color: var(--vb-text);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.vb-magnet-input::placeholder {
    color: var(--vb-text-faint);
}

.vb-magnet-input:focus {
    outline: none;
    border-color: var(--vb-accent);
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

.vb-magnet-validation {
    display: block;
    min-height: 1.1rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--vb-accent-dark);
}

.vb-magnet-error {
    color: var(--vb-accent-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vb-magnet-error:empty {
    display: none;
}

.vb-magnet-submit {
    width: 100%;
}

.vb-magnet-download {
    display: inline-block;
    margin-top: 0.5rem;
}

.vb-magnet-contract {
    font-family: var(--vb-font-mono);
    font-size: 0.75rem;
    color: var(--vb-text-faint);
    margin: 1rem 0 0;
}

.vb-magnet-upsell {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--vb-bg);
    border: 1px solid var(--vb-border);
    border-radius: 10px;
}

.vb-magnet-upsell-text {
    color: var(--vb-text-muted);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.vb-magnet-upsell-link {
    color: var(--vb-accent);
    text-decoration: none;
    font-weight: 600;
}

.vb-magnet-upsell-link:hover {
    color: var(--vb-accent-dark);
    text-decoration: underline;
}

/* Soft "free download" link on the product hero. Sits below the subtitle,
   secondary to the primary CTA in the pricing section. */
.vb-product-magnet-link {
    font-size: 0.95rem;
    color: var(--vb-text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

.vb-product-magnet-link a {
    color: var(--vb-accent);
    text-decoration: none;
    font-weight: 600;
}

.vb-product-magnet-link a:hover {
    color: var(--vb-accent-dark);
    text-decoration: underline;
}

