/* ── CISOvault — Shared Styles ───────────────────────────── */
/*  Base reset & typography                     */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0b1120;
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; }

/* ── Navigation ──────────────────────────────────────────── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(11,17,32,0.94); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59,130,246,0.12);
    padding: 16px 48px;
    display: flex; justify-content: space-between; align-items: center;
}
nav .logo {
    font-size: 18px; color: #f8fafc;
    letter-spacing: 0.5px; font-weight: 600;
}
nav .logo span { color: #60a5fa; font-weight: 700; }
nav .links { display: flex; gap: 32px; align-items: center; }
nav .links a {
    color: #94a3b8; text-decoration: none; font-size: 14px;
    transition: color 0.2s; font-weight: 500;
}
nav .links a:hover { color: #e2e8f0; }
nav a:not(.logo) { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color 0.2s; }
nav a:not(.logo):hover { color: #60a5fa; }

/* Hamburger toggle */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px; border-radius: 2px;
    background: #e2e8f0; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav panel */
.mobile-nav {
    display: none; position: fixed; top: 57px; left: 0; right: 0;
    background: rgba(11,17,32,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59,130,246,0.12);
    padding: 16px 24px; z-index: 99; flex-direction: column; gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: #94a3b8; text-decoration: none; font-size: 15px; padding: 8px 0;
    border-bottom: 1px solid rgba(71,85,105,0.1); font-weight: 500;
}
.mobile-nav a:last-child { border: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: #2563eb; color: #fff; padding: 10px 24px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
    font-size: 14px; transition: background 0.2s, box-shadow 0.2s;
    display: inline-block; border: none; cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:hover { background: #3b82f6; }
.btn-outline {
    border: 1px solid #475569; color: #e2e8f0; padding: 10px 24px;
    border-radius: 6px; text-decoration: none; font-weight: 500;
    font-size: 14px; transition: all 0.2s; display: inline-block; cursor: pointer;
}
.btn-outline:hover { border-color: #60a5fa; color: #f8fafc; }
.btn-primary:disabled, .btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
    display: flex; gap: 8px; align-items: center;
    font-size: 12px; color: #475569; margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: #60a5fa; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #475569; }

/* ── Page Container ──────────────────────────────────────── */
.page { max-width: 640px; margin: 0 auto; padding: 120px 24px 80px; }
.page-wide { max-width: 900px; }

/* ── Status Messages ─────────────────────────────────────── */
.status-box {
    display: none; margin-top: 24px; padding: 20px;
    border-radius: 8px; text-align: center;
}
.status-box.success {
    display: block; background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
}
.status-box.error {
    display: block; background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
}
.status-box h3 { font-size: 18px; margin-bottom: 8px; }
.status-box.success h3 { color: #34d399; }
.status-box.error h3 { color: #ef4444; }
.status-box p { font-size: 14px; color: #94a3b8; }

/* ── Form Elements ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 500;
    color: #94a3b8; margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border-radius: 6px;
    border: 1px solid rgba(71,85,105,0.3);
    background: rgba(11,17,32,0.8); color: #e2e8f0;
    font-size: 14px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group .hint { font-size: 12px; color: #64748b; margin-top: 4px; }
.form-group .field-error {
    font-size: 12px; color: #ef4444; margin-top: 4px; display: none;
}

/* ── Checkbox ────────────────────────────────────────────── */
.checkbox-group {
    display: flex; gap: 10px; align-items: flex-start; margin: 20px 0;
}
.checkbox-group input { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.checkbox-group label { color: #94a3b8; font-size: 13px; }
.checkbox-group label strong { color: #60a5fa; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    text-align: center; padding: 32px 24px;
    border-top: 1px solid rgba(71,85,105,0.08);
    color: #475569; font-size: 13px;
}
footer a { color: #60a5fa; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }

/* ── Trust Badge ─────────────────────────────────────────── */
.trust-badge {
    text-align: center; margin-top: 16px;
    color: #64748b; font-size: 12px;
}

/* ── Checkout form (single $299 assessment) ──────────────── */
.order-form { text-align: left; margin-top: 8px; }
.checkout-error {
    color: #fca5a5; font-size: 14px; margin-top: 12px;
    line-height: 1.5; text-align: left;
}
.checkout-error:empty { display: none; }
.soon-label {
    display: inline-block; margin-top: 8px; padding: 4px 10px;
    border-radius: 4px; border: 1px solid rgba(148,163,184,0.35);
    color: #94a3b8; font-size: 12px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
}
[hidden] { display: none !important; }

/* ── Sticky CTA (scroll reveals) ─────────────────────────── */
.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: rgba(11,17,32,0.95); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59,130,246,0.12);
    padding: 12px 24px;
    display: none; justify-content: center; align-items: center; gap: 16px;
}
.sticky-cta.visible { display: flex; }
.sticky-cta .sticky-text { color: #94a3b8; font-size: 14px; }
.sticky-cta .sticky-text strong { color: #f8fafc; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid rgba(59,130,246,0.2);
    border-top-color: #2563eb; border-radius: 50%;
    animation: spin 0.8s linear infinite; vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Focus visible (accessibility) ────────────────────────── */
:focus-visible {
    outline: 2px solid #60a5fa; outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #60a5fa; outline-offset: 2px;
}

/* ── Skip link (accessibility) ────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 8px; z-index: 999;
    background: #2563eb; color: #fff; padding: 8px 16px;
    border-radius: 0 0 4px 4px; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    nav { padding: 14px 16px; }
    nav .links a:not(.btn-primary):not(.btn-outline) { display: none; }
    .hamburger { display: flex; }
    .page { padding: 100px 16px 60px; }
    .page-wide { padding: 100px 16px 60px; }
    .sticky-cta { flex-direction: column; gap: 8px; text-align: center; }
    footer .footer-links { gap: 12px; }
}
