/* =============================================================
   Zynely — App Design System (Light, Stripe-grade, 2026)
   Used by: login, signup, verify-email, forgot-password,
            reset-password, dashboard.
   Marketing site (landing.html) still uses marketing-legacy.css.
   ============================================================= */

:root {
    --bg:            #f6f9fc;
    --surface:       #ffffff;
    --surface-2:     #fafbfc;
    --surface-3:     #f2f4f7;

    --text:          #0a2540;   /* Stripe deep navy */
    --text-2:        #425466;
    --text-3:        #697386;
    --muted:         #8898aa;
    --muted-2:       #adbdcc;

    --border:        #e3e8ee;
    --border-strong: #d6dde6;

    --brand:         #635bff;   /* Stripe purple */
    --brand-hover:   #5851ff;
    --brand-soft:    #efeefe;
    --brand-ink:     #322872;

    --accent-cyan:   #00d4ff;
    --accent-pink:   #ff5996;

    --success:       #0fb981;
    --success-soft:  #e6f9f1;
    --warning:       #f59e0b;
    --warning-soft:  #fef4e2;
    --danger:        #ef4444;
    --danger-soft:   #fdecec;

    --shadow-1:      0 1px 2px rgba(10, 37, 64, 0.04), 0 1px 3px rgba(10, 37, 64, 0.06);
    --shadow-2:      0 4px 8px rgba(10, 37, 64, 0.04), 0 8px 20px rgba(10, 37, 64, 0.07);
    --shadow-3:      0 12px 40px -8px rgba(10, 37, 64, 0.18);
    --ring-brand:    0 0 0 4px rgba(99, 91, 255, 0.15);
    --ring-danger:   0 0 0 4px rgba(239, 68, 68, 0.15);

    --r-xs: 6px;
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --dur: 160ms;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--brand-hover); }

/* Stripe-ish compact type scale. Use .display only when you really mean it. */
h1, h2, h3, h4 {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

.display { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.display-sm { font-size: 30px; line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }

p { margin: 0; color: var(--text-2); font-size: 15px; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.5; }
small { color: var(--text-3); font-size: 13px; }

/* ─── Logo (text-only wordmark, Stripe-style) ───────────── */
.app-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}
.app-logo:hover { color: var(--text); }
.app-logo::after {
    content: ".";
    color: var(--brand);
    font-weight: 700;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur), color var(--dur), border-color var(--dur);
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(99, 91, 255, 0.25), 0 4px 12px -3px rgba(99, 91, 255, 0.4);
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-hover);
    box-shadow: 0 1px 2px rgba(99, 91, 255, 0.3), 0 6px 18px -3px rgba(99, 91, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-1);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }

.btn-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: var(--danger);
}

.btn-success {
    background: var(--surface);
    color: #066e51;
    border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
    background: var(--success-soft);
    color: #066e51;
}

/* `.btn-light` is the inverted-on-dark variant used inside the onboarding
   hero — white pill, brand-ink label. Replaces the inline
   `style="background:#fff; color:var(--brand-ink);"` overrides. */
.btn-light {
    background: #fff;
    color: var(--brand-ink);
    box-shadow: 0 1px 2px rgba(10, 37, 64, 0.12);
}
.btn-light:hover:not(:disabled) {
    background: #f6f9fc;
    color: var(--brand-ink);
}

/* Ghost on dark surfaces (navy CTA blocks, footer-on-dark, etc.). */
.btn-ghost-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost-dark:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: var(--r-sm); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ─── Tiny utility classes (Tier 2 #17) ───────────────────────────────
   Use these instead of style="margin-top:Xpx" and friends. Replacing
   one-off inline styles with utilities makes the codebase smaller and
   easier to evolve (and unblocks the CSP 'unsafe-inline' removal). */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-sub { color: var(--text-2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

.btn[aria-busy="true"] {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn-secondary[aria-busy="true"]::after,
.btn-ghost[aria-busy="true"]::after {
    border-color: rgba(10, 37, 64, 0.2);
    border-top-color: var(--text);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Form fields ──────────────────────────────────────── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    position: relative;
}
.field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring-brand);
}
.field input:disabled { opacity: 0.55; cursor: not-allowed; background: var(--surface-3); }
.field.is-invalid input { border-color: var(--danger); box-shadow: var(--ring-danger); }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 500; }

.field-toggle {
    position: absolute;
    right: 8px;
    top: 32px;
    background: transparent;
    border: 0;
    color: var(--text-3);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--r-xs);
    transition: color var(--dur), background var(--dur);
}
.field-toggle:hover { color: var(--text); background: var(--surface-3); }

/* Password strength meter */
.pw-meter { display: flex; gap: 4px; margin-top: 10px; }
.pw-meter span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-3);
    transition: background var(--dur);
}
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #facc15; }
.pw-meter[data-score="4"] span:nth-child(-n+4) { background: var(--success); }
.pw-label { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* Inline checklist (signup rules, onboarding steps) */
.checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.checklist li {
    font-size: 13px;
    color: var(--text-3);
    display: flex;
    gap: 8px;
    align-items: center;
}
.checklist li::before {
    content: "";
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    flex-shrink: 0;
}
.checklist li.ok { color: var(--text); }
.checklist li.ok::before {
    background: var(--success);
    border-color: var(--success);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5l2 2 4-5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* ─── Banners (alerts) ─────────────────────────────────── */
.alert {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.alert-error    { background: var(--danger-soft);  color: #9b1c1c; border-color: rgba(239, 68, 68, 0.25); }
.alert-success  { background: var(--success-soft); color: #066e51; border-color: rgba(15, 185, 129, 0.25); }
.alert-warning  { background: var(--warning-soft); color: #92400e; border-color: rgba(245, 158, 11, 0.3); }
.alert-info     { background: var(--brand-soft);   color: var(--brand-ink); border-color: rgba(99, 91, 255, 0.2); }

/* ─── Cards ────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
    padding: 24px;
}
.card-lg { padding: 32px; border-radius: var(--r-lg); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

/* ─── Auth layout ──────────────────────────────────────── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(70% 60% at 50% -20%, rgba(99, 91, 255, 0.12), transparent 70%),
        radial-gradient(60% 50% at 100% 100%, rgba(0, 212, 255, 0.10), transparent 70%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    padding: 40px;
}
.auth-card .app-logo { margin-bottom: 28px; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 6px; }
.auth-card > p { color: var(--text-2); margin-bottom: 26px; font-size: 15px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--text-3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-foot {
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    margin-top: 22px;
}
.auth-foot a { font-weight: 500; }

/* ─── Dashboard layout ─────────────────────────────────── */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg);
}
.app-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
}
.app-sidebar .app-logo { padding: 4px 8px; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.sidebar-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635bff, #00d4ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; }
.sidebar-user-meta strong { display: block; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-meta span { display: block; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    padding: 8px 12px;
    font-weight: 600;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--r-xs);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--dur), color var(--dur);
}
.sidebar-nav a:hover { background: var(--surface-3); color: var(--text); }
.sidebar-nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.sidebar-nav a .ico,
.sidebar-foot a .ico { opacity: 0.72; }
.sidebar-nav a .ico::before,
.sidebar-foot a .ico::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}
.ico-dashboard { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-projects { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2.5h6.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ico-tools { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5 17.5 3 21 6.5 17.5 10z'/%3E%3Cpath d='m14.5 9.5-9.8 9.8a2.1 2.1 0 0 1-3-3l9.8-9.8'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-admin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v6c0 5-3.4 8-8 9-4.6-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-settings { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 17h16'/%3E%3Ccircle cx='9' cy='7' r='2'/%3E%3Ccircle cx='15' cy='17' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-upgrade { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M4 10l8 5 8-5M9 4h6l2 4H7z'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-help { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.8 2.8 0 0 1 5.2 1.4c0 1.8-2.7 2-2.7 4'/%3E%3Cpath d='M12 18h.01'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-news { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.4 4.3L18 9l-4.6 1.7L12 15l-1.4-4.3L6 9l4.6-1.7z'/%3E%3Cpath d='M19 15l.7 2.1L22 18l-2.3.9L19 21l-.7-2.1L16 18l2.3-.9z'/%3E%3C/g%3E%3C/svg%3E"); }
.ico-signout { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M21 5v14'/%3E%3C/g%3E%3C/svg%3E"); }
.sidebar-nav a .badge {
    margin-left: auto;
    background: var(--surface-3);
    color: var(--text-3);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-main {
    padding: 32px 40px 64px;
    max-width: 1100px;
    width: 100%;
}
.app-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.app-topbar h1 { font-size: 26px; }
.app-topbar p { margin-top: 4px; color: var(--text-3); font-size: 14px; }

/* Onboarding hero */
.onboard-hero {
    background: linear-gradient(135deg, #635bff 0%, #00d4ff 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 36px 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.onboard-hero::before, .onboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.onboard-hero::before {
    width: 280px; height: 280px;
    right: -40px; top: -60px;
    background: rgba(255, 255, 255, 0.22);
}
.onboard-hero::after {
    width: 220px; height: 220px;
    left: -60px; bottom: -80px;
    background: rgba(255, 89, 150, 0.35);
}
.onboard-hero > * { position: relative; z-index: 1; }
.onboard-hero .eyebrow {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.onboard-hero h2 { color: #fff; font-size: 28px; max-width: 540px; }
.onboard-hero p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; max-width: 540px; font-size: 15px; }
.onboard-hero .btn {
    margin-top: 20px;
    background: #fff;
    color: var(--brand-ink);
    border-color: #fff;
}
.onboard-hero .btn:hover { background: rgba(255,255,255,0.92); color: var(--brand-ink); }

/* Step list */
.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 22px;
    box-shadow: var(--shadow-1);
    align-items: flex-start;
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.step.done { background: var(--surface-2); }
.step.locked { opacity: 0.65; }

.step-marker {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(99, 91, 255, 0.25);
}
.step.done .step-marker {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.step.done .step-marker::after {
    content: "";
    width: 16px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 8l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.step.done .step-marker-num { display: none; }

.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-size: 16px; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--text-3); }
.step-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.step.done .step-body h3 { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--border-strong); }

/* Progress bar */
.progress-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-1);
}
.progress-card-text { flex: 1; }
.progress-card-text strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.progress-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent-cyan));
    border-radius: 99px;
    transition: width 400ms var(--ease);
}
.progress-card-count {
    font-size: 13px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Empty state card */
.empty {
    text-align: center;
    padding: 56px 28px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    color: var(--text-3);
}
.empty h3 { color: var(--text); margin-bottom: 8px; }
.empty p { margin-bottom: 20px; }

/* Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--surface-3);
    color: var(--text-2);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
}
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill-success { background: var(--success-soft); color: #066e51; }
.pill-warning { background: var(--warning-soft); color: #92400e; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: center;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .app-sidebar .app-logo { padding: 0; }
    .app-sidebar .sidebar-user,
    .app-sidebar .sidebar-nav,
    .app-sidebar .sidebar-foot { width: 100%; }
    /* On mobile only the most-used nav items remain. The label, "coming
       soon" placeholders, and admin nav collapse out of the way so the
       row is scannable in one glance. */
    .app-sidebar .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .app-sidebar .sidebar-nav .sidebar-nav-label,
    .app-sidebar .sidebar-foot .sidebar-foot-secondary { display: none; }
    .app-sidebar .sidebar-nav a { padding: 7px 10px; font-size: 13px; }
    .app-sidebar .sidebar-foot { padding-top: 4px; }
    .app-main { padding: 24px 16px 48px; }
    .auth-card { padding: 28px 22px; }
    .onboard-hero { padding: 26px 22px; }
    .app-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .app-topbar h1 { font-size: 22px; }
    .app-topbar > div:last-child { width: 100%; flex-wrap: wrap; }
    /* Tighten dashboard projects grid on small screens. */
    .proj-card { padding: 16px; }
}
@media (max-width: 540px) {
    .app-main { padding: 18px 14px 40px; }
    .display-md, .display-sm, .lp-h1 { font-size: 28px !important; line-height: 1.2; }
    .lp-cta-row { flex-direction: column; align-items: stretch; }
    .lp-cta-row .btn { width: 100%; }
    /* Stripe-style 4-plan grid → single column. */
    .price-grid { grid-template-columns: 1fr !important; }
}

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

/* =============================================================
   Cookie consent banner
   ============================================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-3);
    padding: 16px 18px;
    display: none;
    align-items: center;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13px; color: var(--text-2); margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { font-weight: 500; }
.cookie-banner .actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 540px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
    .cookie-banner .actions { width: 100%; }
    .cookie-banner .actions .btn { flex: 1; }
}

/* =============================================================
   Compatibility shims — class names injected by older check.js.
   Maps the legacy dark-theme classes onto our light palette so
   we don't have to fork the JS.
   ============================================================= */
.vt-error    { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; background: var(--danger-soft);  color: #9b1c1c; border: 1px solid rgba(239, 68, 68, 0.25); }
.vt-success  { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; background: var(--success-soft); color: #066e51; border: 1px solid rgba(15, 185, 129, 0.25); }
.vt-check-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-1); }
.vt-stepper-icon, .vt-stepper-status { font-size: 13px; color: var(--text-2); }

/* =============================================================
   Marketing pages (landing, pricing, etc.)
   ============================================================= */

.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── Top nav ──────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 249, 252, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav-links {
    display: flex;
    gap: 4px;
    margin-left: 8px;
    flex: 1;
}
.site-nav-links a {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--r-xs);
    transition: color var(--dur), background var(--dur);
}
.site-nav-links a:hover { color: var(--text); background: var(--surface-3); }
.site-nav-cta { display: flex; gap: 6px; align-items: center; }

/* Logged-in pill — replaces "Sign in / Start tracking" on marketing
 * pages when nav-auth.js detects a session. Same visual weight as a
 * btn-secondary so the rest of the nav stays balanced. */
.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.nav-user-pill:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow-1);
    color: var(--text);
}
.nav-user-pill__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635bff, #00d4ff);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}
.nav-user-pill__label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.nav-burger {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--r-xs);
}
.nav-burger span {
    display: block; width: 18px; height: 1.5px;
    background: var(--text); margin: 4px 0;
    border-radius: 1px;
}

.mobile-menu {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 18px;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 4px; color: var(--text-2); font-size: 15px; }
.mobile-menu .btn { margin-top: 6px; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 72px 0 64px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 50% 0;
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(99, 91, 255, 0.08), transparent 70%),
        radial-gradient(50% 60% at 80% 20%, rgba(0, 212, 255, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    box-shadow: var(--shadow-1);
    margin-bottom: 20px;
}
.eyebrow .tag {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-weight: 600;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.028em;
    font-weight: 700;
    max-width: 760px;
    margin: 0 auto 18px;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #635bff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 28px;
}
.hero-ctas {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 20px;
    color: var(--text-3);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-meta .dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(15, 185, 129, 0.16);
}

/* Browser-frame mockup */
.mockup-wrap { margin: 56px auto 0; max-width: 980px; position: relative; }
.mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(10, 37, 64, 0.18), var(--shadow-2);
}
.mockup-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mockup-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 380px;
}
.mockup-side {
    background: var(--surface-2);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    font-size: 12px;
    color: var(--text-3);
}
.mockup-side strong { display: block; color: var(--text); margin: 4px 0 12px; font-size: 13px; }
.mockup-side .item { padding: 6px 10px; border-radius: var(--r-xs); }
.mockup-side .item.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 500; }
.mockup-main { padding: 20px; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.mockup-stat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
}
.mockup-stat span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.mockup-stat strong { display: block; font-size: 22px; color: var(--text); margin: 4px 0 2px; }
.mockup-stat em { font-style: normal; font-size: 11px; color: var(--success); }
.mockup-stat em.dn { color: var(--danger); }
.mockup-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mockup-row {
    display: grid;
    grid-template-columns: 80px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-2);
}
.mockup-row .bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.mockup-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent-cyan)); border-radius: 99px; }
.mockup-row .num { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── Sections ─────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.022em; }
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 16px; }

/* Feature grid (2026 bento-ish) */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px;
    box-shadow: var(--shadow-1);
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
}
.bento-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.bento-card .ico {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}
.bento-card h3 { font-size: 16px; margin-bottom: 6px; }
.bento-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Two-column section */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.two-col h2 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.two-col p { font-size: 16px; color: var(--text-2); margin-bottom: 16px; }
.two-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.two-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.two-col li::before {
    content: "";
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--success);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* Pricing teaser */
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 26px;
    box-shadow: var(--shadow-1);
    text-align: left;
}
.price-card.featured {
    border-color: var(--brand);
    box-shadow: 0 10px 40px -10px rgba(99, 91, 255, 0.35), var(--shadow-2);
    position: relative;
}
.price-card.featured::before {
    content: "Most popular";
    position: absolute;
    top: -10px; right: 20px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.price-card h3 { font-size: 16px; margin-bottom: 4px; }
.price-card .price { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); margin: 14px 0 4px; }
.price-card .price small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 6px; }
.price-card ul li { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.price-card ul li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px 20px;
    margin-bottom: 8px;
    transition: border-color var(--dur);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--text-3); transition: transform var(--dur); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* CTA strip */
.cta-strip {
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
    border-radius: var(--r-lg);
    padding: 40px 36px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-3);
}
.cta-strip h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-strip p { color: rgba(255, 255, 255, 0.75); margin-bottom: 22px; }
.cta-strip .btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.cta-strip .btn:hover { background: rgba(255,255,255,0.94); color: var(--brand-ink); }

/* Footer */
.site-foot {
    border-top: 1px solid var(--border);
    padding: 36px 0 32px;
    margin-top: 60px;
    background: var(--surface);
}
.site-foot-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.site-foot h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.site-foot a { display: block; padding: 4px 0; color: var(--text-3); font-size: 13px; }
.site-foot a:hover { color: var(--text); }
.site-foot-bottom {
    max-width: 1120px;
    margin: 28px auto 0;
    padding: 18px 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-3);
}

/* Trust logos row */
.trust-row {
    padding: 28px 0 12px;
    text-align: center;
}
.trust-row p {
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.trust-logos {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.trust-logos span {
    color: var(--muted);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.04em;
    opacity: 0.7;
    transition: opacity var(--dur), color var(--dur);
}
.trust-logos span:hover { opacity: 1; color: var(--text-2); }

/* Responsive */
@media (max-width: 880px) {
    .site-nav-links { display: none; }
    .nav-burger { display: block; }
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero p.sub { font-size: 16px; }
    .bento { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .mockup-body { grid-template-columns: 1fr; }
    .mockup-side { border-right: 0; border-bottom: 1px solid var(--border); }
    .mockup-stats { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .site-foot-inner { grid-template-columns: 1fr 1fr; }
    .site-foot-bottom { flex-direction: column; gap: 8px; }
}

/* ─── Dashboard project cards (extracted inline → CSS class) ──────── */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.proj-card {
    display: flex; flex-direction: column; gap: 6px;
    text-decoration: none; color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    box-shadow: var(--shadow-1);
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.proj-card:hover { border-color: var(--brand); box-shadow: 0 6px 22px -8px rgba(99,91,255,0.25); transform: translateY(-1px); }
.proj-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.proj-card-head strong { color: var(--text); }
.proj-card-score { display: flex; align-items: baseline; gap: 8px; }
.proj-card-score .num { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; }
.proj-card-score small { color: var(--text-3); }

/* Quick-action card on the dashboard — was an inline-styled anchor. */
.quick-action {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
    text-decoration: none; color: inherit;
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.quick-action:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 22px -8px rgba(99, 91, 255, 0.25);
    transform: translateY(-1px);
}
.quick-action-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--brand);
}
.quick-action-body { flex: 1; }
.quick-action-body strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.quick-action-body span { font-size: 13px; color: var(--text-3); }
.quick-action-arrow { color: var(--brand); font-size: 13px; font-weight: 500; }

.plan-usage-card {
    margin-top: 24px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
}
.plan-usage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.plan-usage-head small {
    display: block;
    margin-bottom: 3px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.plan-usage-head h2 { font-size: 20px; }
.plan-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 16px;
    margin: 0;
}
.plan-usage-grid div {
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.plan-usage-grid dt {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.plan-usage-grid dd {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

/* ─── Project-report extracted bits ────────────────────────────────── */
.report-empty { text-align: center; color: var(--text-3); padding: 80px 0; }
.report-error { color: var(--danger); }
.report-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ─── Select-payment extracted bits ────────────────────────────────── */
.sp-cycle-sub { font-weight: 400; color: var(--text-3); font-size: 13px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-fallback { grid-column: 1 / -1; }

/* ─── Pricing page extracted bits ──────────────────────────────────── */
.price-tagline { font-size: 13px; color: var(--text-3); }
.required-banner { max-width: 540px; margin: 0 auto 22px; text-align: left; }

/* ─── Tool-compete extracted bits ──────────────────────────────────── */
.scoreboard-meta { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 14px; }
.score-total-sub { font-weight: 400; opacity: 0.7; font-size: 12px; }
.query-engine-fail { color: var(--danger); font-size: 12px; }

/* ─── Tool-prompt-lab badge palette (extracted from inline) ───────── */
.pl-agg-meta { color: rgba(255,255,255,0.85); font-size: 13px; }
.badge-danger   { background: var(--danger-soft); color: var(--danger); }
.badge-success  { background: var(--success-soft); color: #066e51; }
.badge-muted    { background: var(--surface-3); color: var(--text-3); }
.badge-warning  { background: #fef4e2; color: #92400e; font-size: 10px; }
.badge-cite     { background: var(--brand-soft); color: var(--brand-ink); font-size: 10px; }
.badge-sentiment-positive { background: var(--surface-3); color: var(--success); }
.badge-sentiment-negative { background: var(--surface-3); color: var(--danger); }
.badge-sentiment-neutral  { background: var(--surface-3); color: var(--text-3); }
.answer-error { color: var(--danger); }
.cites-row { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.cites-row-inner { display: inline-flex; }

/* ─── Settings billing tab (extracted from inline) ───────────────── */
.key-status { margin-left: 6px; }
.billing-empty {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}
.billing-empty h2 { font-size: 16px; margin: 0 0 6px; }
.billing-empty p { color: var(--text-2); margin-bottom: 16px; }
.billing-card {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    margin-bottom: 16px;
}
.billing-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 18px;
}
.billing-eyebrow {
    font-size: 13px; color: var(--text-3);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 4px;
}
.billing-plan { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.billing-cycle { font-weight: 400; color: var(--text-2); font-size: 16px; }
.billing-status { text-align: right; }
.billing-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px 24px; margin: 0 0 20px;
}
.billing-grid dt {
    font-size: 12px; color: var(--text-3);
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 4px;
}
.billing-grid dd { margin: 0; font-size: 14px; }
.billing-grid .billing-ref {
    font-size: 13px; color: var(--text-2);
    font-family: ui-monospace, monospace;
}
.billing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.billing-cancelled {
    color: var(--text-2); font-size: 13px; margin-top: 10px;
}
.billing-foot {
    font-size: 13px; color: var(--text-3); line-height: 1.6;
}
.billing-error { color: var(--danger); }

/* ─── /projects/new upgrade wall (extracted from inline) ──────── */
.upgrade-wall { max-width: 440px; margin: 80px auto 0; text-align: center; }
.upgrade-wall-icon {
    width: 56px; height: 56px;
    margin: 0 auto 24px;
    border-radius: 14px;
    background: var(--brand-soft);
    display: inline-flex; align-items: center; justify-content: center;
}
.upgrade-wall h1 {
    font-size: 22px; margin-bottom: 10px;
    font-weight: 600; letter-spacing: -0.015em;
}
.upgrade-wall p {
    color: var(--text-2); font-size: 15px; line-height: 1.6;
    margin-bottom: 28px;
}

/* ─── Project-detail support classes (extracted from inline) ──────── */
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.weekly-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; margin-bottom: 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-1);
}
.weekly-card-text { flex: 1; }
.weekly-card-text strong { display: block; font-size: 14px; }
.weekly-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.weekly-toggle input { accent-color: var(--brand); width: 16px; height: 16px; }
.weekly-toggle span { font-size: 13px; color: var(--text-2); }
.is-disabled, a.is-disabled { opacity: 0.5; pointer-events: none; }
.pill-danger { background: var(--danger-soft); color: var(--danger); }

/* ─── Dashboard usage card (Tier 2 #12) ────────────────────────────── */
.usage-card {
    margin-top: 32px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
}
.usage-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}
.usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
}
.usage-stat { margin: 0; }
.usage-stat dt {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.usage-stat dd {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
@media (max-width: 720px) {
    .plan-usage-head { flex-direction: column; }
    .plan-usage-grid { grid-template-columns: 1fr; }
    .usage-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ─── Loading skeletons (Tier 2 #20) ───────────────────────────────── */
.sk-block {
    background: linear-gradient(
        90deg,
        var(--surface-2) 0%,
        var(--surface-3) 50%,
        var(--surface-2) 100%
    );
    background-size: 200% 100%;
    animation: sk-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
.sk-line { height: 12px; margin-bottom: 8px; }
.sk-line.lg { height: 18px; }
.sk-line.xl { height: 28px; }
.sk-line.w-25 { width: 25%; }
.sk-line.w-40 { width: 40%; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-75 { width: 75%; }
.sk-line.w-90 { width: 90%; }
.sk-card {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
}
.sk-card .sk-line:last-child { margin-bottom: 0; }
.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
@keyframes sk-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Command palette (⌘K) (Tier 2 #19) ───────────────────────────── */
.cmdk-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 37, 64, 0.32);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    backdrop-filter: blur(2px);
}
.cmdk-overlay[data-open="1"] { display: flex; }
.cmdk-panel {
    width: min(560px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.35);
    overflow: hidden;
}
.cmdk-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 18px 20px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 6px 0; }
.cmdk-section-label {
    padding: 10px 20px 4px;
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.cmdk-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background var(--dur);
}
.cmdk-item:hover,
.cmdk-item[aria-selected="true"] {
    background: var(--surface-2);
}
.cmdk-item .ico { color: var(--text-3); width: 18px; text-align: center; }
.cmdk-item .cmdk-sub { color: var(--text-3); font-size: 12px; margin-left: auto; }
.cmdk-empty {
    padding: 28px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}
.cmdk-foot {
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    display: flex; gap: 14px;
    font-size: 12px;
    color: var(--text-3);
}
.cmdk-foot kbd {
    display: inline-block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
}
