:root {
    --brand-500: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --ink-900: #0f172a;
}

.nav-bar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-logo { color: var(--ink-900); }
.brand-icon {
    width: 2.25rem; height: 2.25rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: white; border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.brand-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-accent { color: var(--brand-600); }

.nav-link {
    font-size: 0.9rem; font-weight: 500; color: #1e293b;
    text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-600); }

.btn-primary {
    background: var(--brand-600); color: white;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none; cursor: pointer;
}
.btn-primary:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(5, 150, 105, 0.45);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: white; color: var(--ink-900);
    border: 1px solid #e7e5e4;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.btn-secondary:hover { border-color: var(--brand-500); background: #ecfdf5; }

.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.15), transparent),
                radial-gradient(ellipse 50% 40% at 90% 20%, rgba(5, 150, 105, 0.08), transparent);
}

.hero-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.feature-card {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: #a7f3d0;
    box-shadow: 0 12px 32px -12px rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
}

.generator-panel {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.08);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    background: #fafaf9;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background: white;
}

.sop-preview {
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}
.sop-preview h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: var(--ink-900); }
.sop-preview h2 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #1e293b; }
.sop-preview h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.sop-preview ul, .sop-preview ol { margin: 0.5rem 0 1rem 1.25rem; }
.sop-preview li { margin-bottom: 0.35rem; }
.sop-preview p { margin-bottom: 0.75rem; }
.sop-preview code { background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.85em; }
.sop-preview pre { background: #f8fafc; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }

.tool-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.625rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}
.tool-tab.active { background: #ecfdf5; color: var(--brand-700); font-weight: 600; }
.tool-tab:hover:not(.active) { background: #f5f5f4; color: #334155; }

.spinner {
    width: 1.25rem; height: 1.25rem;
    border: 2px solid #d1fae5;
    border-top-color: var(--brand-600);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.competitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    background: #ecfdf5;
    color: var(--brand-700);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.industry-grid a {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.industry-grid a:hover { border-color: var(--brand-500); background: #ecfdf5; color: var(--brand-700); }

.footer-heading { font-weight: 600; margin-bottom: 1rem; color: white; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #a8a29e; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }

.compliance-card {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.compliance-card:hover { border-color: #6ee7b7; }

.pricing-card {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 1.25rem;
    padding: 2rem;
}
.pricing-card.featured {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 1px var(--brand-500), 0 16px 40px -12px rgba(5, 150, 105, 0.25);
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
}
.toast-success { background: #059669; color: white; }
.toast-error { background: #e11d48; color: white; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

#nav-menu.nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e7e5e4;
    gap: 0.75rem;
}

@media print {
    .nav-bar, .site-footer, .no-print { display: none !important; }
    .sop-preview { max-height: none; overflow: visible; }
}

.auth-divider {
    position: relative;
    margin: 1rem 0;
    text-align: center;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    border-top: 1px solid #e7e5e4;
}
.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.auth-google-btn {
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.auth-google-btn:hover {
    background: #fafaf9;
    border-color: #d6d3d1;
}
.auth-google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
