/* ==========================================================================
   Visolix Public Site — Design System
   Single stylesheet for all public pages (home, auth, contact, legal, 404).
   Load via $pageStyles. Class prefix: vx- (avoids collisions with
   Bootstrap / minimal-admin.css).

   Language: flat, solid colors, hairline borders, restrained type.
   No gradients, no glows, no floating decorations.

   Sections:
     1. Tokens          2. Base           3. Buttons        4. Section header
     5. Hero            6. Code window    7. Features       8. Steps
     9. Pricing        10. CTA band      11. Contact       12. FAQ
    13. Forms          14. Alerts        15. Auth (split)  16. Legal
   17. 404             18. Reveal anim   19. Responsive
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
    --vx-brand: #4f46e5;
    --vx-brand-dark: #4338ca;
    --vx-brand-soft: #eef2ff;

    --vx-ink: #0b1120;
    --vx-ink-soft: #1e293b;
    --vx-body: #4b5563;
    --vx-muted: #6b7280;

    --vx-bg: #ffffff;
    --vx-bg-soft: #f6f7f9;
    --vx-border: #e5e7eb;
    --vx-border-strong: #cbd5e1;

    --vx-success: #16a34a;
    --vx-danger: #ef4444;
    --vx-warning: #f59e0b;

    --vx-radius-sm: 8px;
    --vx-radius: 12px;
    --vx-radius-lg: 16px;

    --vx-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vx-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --vx-nav-h: 72px;
}

/* 2. Base (this file only loads on public pages)
   ========================================================================== */
body {
    font-family: var(--vx-font);
    color: var(--vx-body);
    background: var(--vx-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.vx-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.vx-section {
    padding: 88px 0;
}

.vx-section-soft {
    background: var(--vx-bg-soft);
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
}

/* Section that only needs bottom spacing (e.g. the CTA band) */
.vx-section-bottom {
    padding: 0 0 88px;
}

/* Standalone public page wrapper (contact, etc.) — clears the fixed navbar */
.vx-page {
    padding: calc(var(--vx-nav-h) + 56px) 0 88px;
}

h1, h2, h3, h4 {
    color: var(--vx-ink);
    letter-spacing: -0.02em;
}

/* Anchor targets clear the fixed navbar */
section[id],
div[id="faq"] {
    scroll-margin-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Consistent, visible keyboard focus on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--vx-brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 3. Buttons
   ========================================================================== */
.vx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--vx-radius-sm);
    border: 1px solid transparent;
    font-family: var(--vx-font);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vx-btn-primary {
    background: var(--vx-brand);
    color: #fff;
}

.vx-btn-primary:hover {
    background: var(--vx-brand-dark);
    color: #fff;
}

.vx-btn-outline {
    background: #fff;
    color: var(--vx-ink);
    border-color: var(--vx-border);
}

.vx-btn-outline:hover {
    border-color: var(--vx-border-strong);
    color: var(--vx-ink);
    background: var(--vx-bg-soft);
}

/* On dark/color surfaces (hero, CTA band) */
.vx-btn-white {
    background: #fff;
    color: var(--vx-brand);
}

.vx-btn-white:hover {
    background: #eef2ff;
    color: var(--vx-brand-dark);
}

.vx-btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.vx-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.vx-btn-block {
    width: 100%;
}

.vx-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 4. Section header
   ========================================================================== */
/* Mono eyebrow with square marker — the system signature */
.vx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--vx-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vx-brand);
    margin-bottom: 16px;
}

.vx-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--vx-brand);
    flex-shrink: 0;
}

/* On dark surfaces */
.vx-eyebrow-light {
    color: #a5b4fc;
}

.vx-eyebrow-light::before {
    background: #a5b4fc;
}

.vx-section-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.vx-section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.vx-section-head p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--vx-muted);
    margin: 0;
}

/* 5. Hero — light editorial split: content + flat API terminal, hairline frame
   ========================================================================== */
.vx-hero {
    position: relative;
    background: var(--vx-bg);
    padding: calc(var(--vx-nav-h) + 40px) 0 0;
    overflow: hidden;
}

/* Flat dot-grid accent, top-left corner (the only texture in the system) */
.vx-hero-dots {
    position: absolute;
    top: calc(var(--vx-nav-h) + 32px);
    left: 0;
    width: 300px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(79, 70, 229, 0.18) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.vx-hero-grid {
    position: relative;
    padding: 56px 40px 72px;
    border-left: 1px solid var(--vx-border);
    border-right: 1px solid var(--vx-border);
}

.vx-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Mono badge pill — hero eyebrow */
.vx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--vx-border);
    border-radius: 999px;
    background: var(--vx-bg);
    font-family: var(--vx-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vx-body);
    margin-bottom: 22px;
}

.vx-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vx-brand);
    flex-shrink: 0;
}

.vx-hero h1 {
    color: var(--vx-ink);
    font-size: clamp(2.35rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    margin: 0 0 20px;
}

.vx-hero h1 .vx-h1-accent {
    color: var(--vx-brand);
}

.vx-hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--vx-muted);
    max-width: 560px;
    margin: 0 auto 30px;
}

.vx-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.vx-hero .vx-btn {
    padding: 13px 24px;
    font-size: 15px;
}

/* Trust meta — mono items with hairline dividers */
.vx-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--vx-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vx-muted);
}

.vx-hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.vx-hero-meta li:first-child {
    padding-left: 0;
}

.vx-hero-meta li + li {
    border-left: 1px solid var(--vx-border);
}

.vx-hero-meta li i {
    color: var(--vx-success);
    font-size: 11px;
}

/* Orchestrated load reveal for the hero (respects reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
    .vx-hero-badge,
    .vx-hero h1,
    .vx-hero-sub,
    .vx-hero-actions,
    .vx-hero-meta,
    .vx-platform-strip {
        animation: vx-fade-up 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }

    .vx-hero h1 { animation-delay: 0.06s; }
    .vx-hero-sub { animation-delay: 0.12s; }
    .vx-hero-actions { animation-delay: 0.18s; }
    .vx-hero-meta { animation-delay: 0.24s; }
    .vx-platform-strip { animation-delay: 0.3s; }
}

/* 6. Platform strip — mono cells with brand icons, hairline-framed
   ========================================================================== */
.vx-platform-strip {
    position: relative;
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
    background: var(--vx-bg);
}

.vx-platform-strip-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.vx-platform-strip span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 18px 26px;
    font-family: var(--vx-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vx-muted);
    border-left: 1px solid var(--vx-border);
}

.vx-platform-strip span i {
    font-size: 13px;
}

.vx-platform-strip span:first-child {
    border-left: none;
}

.vx-platform-strip .vx-strip-strong {
    color: var(--vx-ink);
}

/* 7. Features
   ========================================================================== */
.vx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vx-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    padding: 26px;
    transition: border-color 0.15s ease;
}

.vx-card:hover {
    border-color: var(--vx-border-strong);
}

/* Mono index, top-right corner */
.vx-card-index {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--vx-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--vx-border-strong);
}

.vx-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--vx-brand-soft);
    color: var(--vx-brand);
    font-size: 17px;
    margin-bottom: 16px;
}

.vx-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.vx-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--vx-muted);
    margin: 0;
}

/* 8. Steps
   ========================================================================== */
.vx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.vx-step {
    border-top: 2px solid var(--vx-border);
    padding-top: 22px;
}

.vx-step-num {
    display: block;
    font-family: var(--vx-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vx-ink);
    margin-bottom: 14px;
}

.vx-step h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0 0 8px;
}

.vx-step p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--vx-muted);
    margin: 0 0 16px;
}

.vx-step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vx-brand);
    text-decoration: none;
}

.vx-step-link:hover {
    color: var(--vx-brand-dark);
    text-decoration: underline;
}

/* 9. Pricing
   ========================================================================== */
.vx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.vx-price-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-lg);
    padding: 30px 28px;
    transition: border-color 0.15s ease;
}

.vx-price-card:hover {
    border-color: var(--vx-border-strong);
}

.vx-price-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Price + period on one baseline */
.vx-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
}

.vx-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--vx-ink);
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Text price (e.g. "Flexible" on the PAYG card) */
.vx-price-text {
    font-size: 1.6rem;
}

.vx-price-period {
    font-size: 14px;
    color: var(--vx-muted);
}

.vx-price-features {
    flex: 1;
    list-style: none;
    margin: 0 0 26px;
    padding: 22px 0 0;
    border-top: 1px solid var(--vx-border);
}

.vx-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 14.5px;
    color: var(--vx-body);
}

.vx-price-features li i {
    color: var(--vx-success);
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Plans hidden behind "View more" */
.vx-plan-hidden {
    display: none;
}

.vx-plan-hidden.vx-show {
    display: flex;
    animation: vx-fade-up 0.3s ease both;
}

.vx-view-more {
    text-align: center;
    margin-top: 32px;
}

.vx-view-more .vx-btn i {
    transition: transform 0.2s ease;
}

.vx-view-more .vx-btn.expanded i {
    transform: rotate(180deg);
}

/* Slim enterprise note inside pricing */
.vx-enterprise {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
}

.vx-enterprise h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.vx-enterprise p {
    font-size: 14.5px;
    color: var(--vx-muted);
    margin: 0;
}

/* 10. CTA band — solid ink, editorial split, flat
   ========================================================================== */
.vx-cta-band {
    position: relative;
    overflow: hidden;
    background: var(--vx-ink);
    border-radius: var(--vx-radius-lg);
    padding: 60px 64px;
}

/* Flat dot-grid accent, bottom-right corner (system texture) */
.vx-cta-dots {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 210px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.vx-cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    align-items: center;
}

.vx-cta-content h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.vx-cta-content p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    max-width: 460px;
}

/* Action column, separated by a hairline */
.vx-cta-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 56px;
    border-left: 1px solid var(--vx-ink-soft);
}

.vx-cta-note {
    font-family: var(--vx-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
    margin-top: 6px;
}

/* 11. Contact — two-column: info + direct rows | form
   ========================================================================== */
.vx-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.vx-contact-info h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.vx-contact-lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--vx-muted);
    margin: 0 0 32px;
    max-width: 420px;
}

/* Direct contact rows */
.vx-contact-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vx-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.vx-contact-row:hover {
    border-color: var(--vx-border-strong);
    background: var(--vx-bg-soft);
}

.vx-contact-row .vx-icon-tile {
    margin: 0;
    flex-shrink: 0;
}

.vx-contact-row-text {
    flex: 1;
    min-width: 0;
}

.vx-contact-row-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--vx-ink);
    margin-bottom: 2px;
}

.vx-contact-row-text span {
    display: block;
    font-size: 13.5px;
    color: var(--vx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-contact-row-arrow {
    color: var(--vx-muted);
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.vx-contact-row:hover .vx-contact-row-arrow {
    color: var(--vx-brand);
}

/* Form card stretches inside the grid */
.vx-contact-grid .vx-form-card {
    max-width: none;
    margin: 0;
}

.vx-form-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-lg);
    padding: 36px;
}

.vx-form-card > h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
}

.vx-form-card > .vx-form-sub {
    font-size: 14.5px;
    color: var(--vx-muted);
    margin: 0 0 26px;
}

.vx-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 24px;
    background: var(--vx-bg-soft);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-sm);
}

.vx-account-card .vx-icon-tile {
    margin: 0;
    width: 38px;
    height: 38px;
    font-size: 15px;
    flex-shrink: 0;
}

.vx-account-card strong {
    display: block;
    font-size: 14px;
    color: var(--vx-ink);
}

.vx-account-card span {
    font-size: 13px;
    color: var(--vx-muted);
}

/* 12. FAQ — hairline rows
   ========================================================================== */
.vx-faq-section {
    margin-top: 56px;
}

.vx-faq-section .vx-section-head {
    margin-bottom: 36px;
}

.vx-faq {
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--vx-border);
}

.vx-faq-item {
    border-bottom: 1px solid var(--vx-border);
}

.vx-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 19px 2px;
    background: none;
    border: none;
    font-family: var(--vx-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--vx-ink);
    text-align: left;
    cursor: pointer;
}

.vx-faq-q i {
    color: var(--vx-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.vx-faq-item.open .vx-faq-q i {
    transform: rotate(180deg);
}

.vx-faq-a {
    display: none;
    padding: 0 2px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--vx-muted);
}

.vx-faq-item.open .vx-faq-a {
    display: block;
}

/* 13. Forms
   ========================================================================== */
.vx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.vx-field {
    margin-bottom: 18px;
}

.vx-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vx-ink);
    margin-bottom: 7px;
}

.vx-input {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-sm);
    background: #fff;
    font-family: var(--vx-font);
    font-size: 14.5px;
    color: var(--vx-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vx-input::placeholder {
    color: #94a3b8;
}

.vx-input:focus {
    outline: none;
    border-color: var(--vx-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.vx-input[readonly] {
    background: var(--vx-bg-soft);
    color: var(--vx-muted);
}

.vx-input.is-invalid {
    border-color: var(--vx-danger);
}

textarea.vx-input {
    min-height: 130px;
    resize: vertical;
}

select.vx-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L2 5h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.vx-field-error {
    display: none;
    font-size: 13px;
    color: var(--vx-danger);
    margin-top: 6px;
}

.vx-counter {
    font-size: 12.5px;
    color: var(--vx-muted);
    text-align: right;
    margin-top: 6px;
}

.vx-recaptcha {
    margin: 4px 0 20px;
}

/* Password input with visibility toggle */
.vx-pass-wrap {
    position: relative;
}

.vx-pass-wrap .vx-input {
    padding-right: 44px;
}

.vx-pass-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--vx-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.vx-pass-toggle:hover {
    color: var(--vx-ink);
    background: var(--vx-bg-soft);
}

/* Checkbox row (remember me + forgot link) */
.vx-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.vx-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vx-body);
    cursor: pointer;
    user-select: none;
}

.vx-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--vx-brand);
    cursor: pointer;
}

.vx-link {
    color: var(--vx-brand);
    font-weight: 600;
    text-decoration: none;
}

.vx-link:hover {
    color: var(--vx-brand-dark);
    text-decoration: underline;
}

/* 14. Alerts
   ========================================================================== */
.vx-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--vx-radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.vx-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.vx-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.vx-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* 15. Auth (split-screen) — solid ink panel, flat
   ========================================================================== */
.vx-auth {
    display: grid;
    grid-template-columns: minmax(420px, 42%) 1fr;
    min-height: 100vh;
}

/* Left brand panel */
.vx-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    background: var(--vx-ink);
    color: #fff;
}

.vx-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    align-self: flex-start;
}

.vx-auth-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.vx-auth-brand span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.vx-auth-panel-body h2 {
    color: #fff;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.vx-auth-panel-body p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 380px;
}

.vx-auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vx-auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 14.5px;
    font-weight: 500;
}

.vx-auth-points li i {
    color: #818cf8;
    font-size: 12px;
    flex-shrink: 0;
}

/* Mono platform strip at the bottom of the auth panel */
.vx-auth-strip {
    font-family: var(--vx-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    padding-top: 22px;
    border-top: 1px solid var(--vx-ink-soft);
    margin-bottom: 14px;
}

.vx-auth-panel-foot {
    font-size: 13px;
    color: #64748b;
}

/* Right form column */
.vx-auth-main {
    display: flex;
    flex-direction: column;
    padding: 30px 24px 44px;
    background: #fff;
}

.vx-auth-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.vx-auth-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vx-muted);
    text-decoration: none;
}

.vx-auth-topbar a:hover {
    color: var(--vx-brand);
}

.vx-auth-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vx-auth-card {
    width: 100%;
    max-width: 400px;
}

.vx-auth-card h1 {
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 8px;
}

.vx-auth-sub {
    font-size: 15px;
    color: var(--vx-muted);
    margin: 0 0 30px;
    line-height: 1.6;
}

.vx-auth-alt {
    text-align: center;
    font-size: 14px;
    color: var(--vx-muted);
    margin: 24px 0 0;
}

.vx-auth-help {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--vx-border);
    font-size: 13.5px;
}

.vx-auth-help a {
    color: var(--vx-muted);
    text-decoration: none;
}

.vx-auth-help a:hover {
    color: var(--vx-brand);
}

.vx-auth-foot {
    text-align: center;
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 30px;
}

/* Password strength meter (reset page) */
.vx-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.vx-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--vx-border);
    transition: background 0.2s ease;
}

.vx-strength-bar.weak { background: var(--vx-danger); }
.vx-strength-bar.medium { background: var(--vx-warning); }
.vx-strength-bar.strong { background: var(--vx-success); }

.vx-strength-text {
    font-size: 12.5px;
    color: var(--vx-muted);
    margin-top: 6px;
}

/* 16. Legal pages
   ========================================================================== */
.vx-legal {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--vx-nav-h) + 56px) 24px 88px;
}

.vx-legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--vx-border);
}

.vx-legal-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 800;
    margin: 0 0 10px;
}

.vx-legal-date {
    font-size: 14px;
    color: var(--vx-muted);
    margin: 0;
}

.vx-legal h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 38px 0 12px;
}

.vx-legal h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin: 22px 0 8px;
}

.vx-legal p,
.vx-legal li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--vx-body);
}

.vx-legal p {
    margin: 0 0 14px;
}

.vx-legal ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.vx-legal li {
    margin-bottom: 6px;
}

/* Content links only — never restyle buttons inside legal pages */
.vx-legal p a,
.vx-legal li a {
    color: var(--vx-brand);
    text-decoration: none;
}

.vx-legal p a:hover,
.vx-legal li a:hover {
    text-decoration: underline;
}

.vx-highlight-box {
    background: var(--vx-bg-soft);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius-sm);
    padding: 16px 20px;
    margin: 18px 0;
}

.vx-highlight-box p:last-child {
    margin-bottom: 0;
}

.vx-legal-emphasis {
    font-weight: 600;
    color: var(--vx-ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 13.5px;
}

.vx-legal-cta {
    margin-top: 48px;
    padding: 28px;
    background: var(--vx-bg-soft);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-radius);
    text-align: center;
}

.vx-legal-cta h2 {
    margin-top: 0;
}

.vx-legal-cta p {
    color: var(--vx-muted);
}

/* 17. 404
   ========================================================================== */
.vx-error {
    min-height: calc(100vh - var(--vx-nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--vx-nav-h) + 40px) 24px 64px;
}

.vx-error-code {
    font-family: var(--vx-mono);
    font-size: clamp(4rem, 12vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--vx-ink);
    margin: 0 0 10px;
}

.vx-error h1 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 10px;
}

.vx-error p {
    font-size: 15px;
    color: var(--vx-muted);
    max-width: 420px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.vx-error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 18. Reveal animation (subtle, single pattern)
   ========================================================================== */
.vx-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.vx-reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes vx-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .vx-reveal {
        opacity: 1;
        transform: none;
    }
}

/* 19. Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .vx-section {
        padding: 64px 0;
    }

    .vx-hero {
        padding: calc(var(--vx-nav-h) + 32px) 0 0;
    }

    .vx-hero-grid {
        padding: 44px 32px 60px;
    }

    .vx-hero-sub {
        max-width: 620px;
    }

    .vx-hero-dots {
        width: 220px;
        height: 150px;
    }

    .vx-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .vx-contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .vx-contact-lead {
        max-width: none;
    }

    .vx-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vx-auth {
        grid-template-columns: 1fr;
    }

    .vx-auth-panel {
        display: none;
    }

    .vx-cta-band {
        padding: 48px 32px;
    }

    .vx-cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vx-cta-side {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--vx-ink-soft);
        padding-top: 32px;
    }

    .vx-cta-content p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .vx-grid-3,
    .vx-form-row {
        grid-template-columns: 1fr;
    }

    .vx-section-head {
        margin-bottom: 40px;
    }

    .vx-hero h1 {
        font-size: 2.05rem;
    }

    .vx-hero-grid {
        padding: 32px 20px 48px;
        border-left: none;
        border-right: none;
    }

    .vx-hero-actions .vx-btn {
        width: 100%;
    }

    .vx-hero-meta li {
        padding: 0 10px;
    }

    .vx-platform-strip-inner {
        column-gap: 4px;
        row-gap: 0;
    }

    /* Dividers break when items wrap — gap-based spacing on mobile */
    .vx-platform-strip span {
        border-left: none;
        padding: 14px 12px;
        font-size: 10.5px;
    }

    .vx-form-card {
        padding: 26px 20px;
    }

    .vx-cta-band {
        padding: 52px 22px;
    }

    .vx-enterprise {
        flex-direction: column;
        align-items: flex-start;
    }

    .vx-auth-main {
        padding: 22px 18px 36px;
    }
}
