/* SME Finance Pro - Frontend Styles */

:root {
    --violet: #7c3aed;
    --indigo: #4f46e5;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; margin: 0; }
.legal-body { font-family: 'Source Serif 4', Georgia, serif; }

.sme-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .sme-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .sme-container { padding: 0 2rem; } }

.sme-banner { background: linear-gradient(to right, #7c3aed, #9333ea, #4f46e5); color: white; padding: 0.625rem 1rem; font-size: 0.875rem; position: relative; }
.sme-banner-close { position: absolute; right: 1rem; background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 1rem; }

.sme-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,0.6); }
.sme-logo-box { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: linear-gradient(to bottom right, #7c3aed, #4f46e5); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px -1px rgba(124,58,237,0.3); }

.sme-cta-btn { 
    background: linear-gradient(to right, #7c3aed, #4f46e5) !important; 
    color: white !important; 
    font-size: 0.875rem; 
    font-weight: 600; 
    padding: 0.6rem 1.2rem; 
    border-radius: 0.5rem; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 10px 15px -3px rgba(124,58,237,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.sme-cta-btn:hover { 
    background: linear-gradient(to right, #6d28d9, #4338ca) !important; 
    color: white !important;
}

.pulse-btn { 
    animation: pulseGlow 2s infinite;
    background: linear-gradient(to right, #7c3aed, #4f46e5) !important;
    color: white !important;
}
@keyframes pulseGlow { 
    0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.7); } 
    50% { box-shadow: 0 0 0 12px rgba(124,58,237,0); } 
}
.hero-gradient { background: radial-gradient(ellipse at top, rgba(124,58,237,0.08) 0%, transparent 60%), radial-gradient(ellipse at bottom right, rgba(59,130,246,0.06) 0%, transparent 50%); }
.grid-pattern { background-image: radial-gradient(circle, rgba(124,58,237,0.08) 1px, transparent 1px); background-size: 24px 24px; }

.fade-up { animation: fadeUp 0.6s ease-out forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.feature-card { transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); }

.sme-modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sme-modal-bg.hidden { display: none; }
.sme-modal { background: white; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); max-width: 32rem; width: 100%; padding: 1.75rem; position: relative; max-height: 90vh; overflow-y: auto; }
.sme-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1.25rem; }
.sme-modal-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 0.75rem; border-radius: 1rem; background: linear-gradient(to bottom right, #8b5cf6, #6366f1); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; box-shadow: 0 10px 15px -3px rgba(139,92,246,0.3); }

.sme-input { width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.5rem; border: 1px solid #cbd5e1; font-size: 0.875rem; }
.sme-input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }

.sme-submit-btn { background: linear-gradient(to right, #7c3aed, #4f46e5); color: white; font-weight: 600; padding: 0.75rem; border-radius: 0.75rem; border: none; cursor: pointer; }
.sme-submit-btn:hover { background: linear-gradient(to right, #6d28d9, #4338ca); }

.pricing-card { transition: all 0.3s; }
.pricing-card.featured { transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.05); }

.blog-card { transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }

/* Grid utilities */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) {
    .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Flex utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
@media (min-width: 640px) { .sm\:flex-row { flex-direction: row; } }
@media (min-width: 768px) { .md\:flex-row { flex-direction: row; } }
@media (min-width: 1024px) { .lg\:flex { display: flex; } .lg\:hidden { display: none; } }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Space utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { inset: 0; }
.-top-3 { top: -0.75rem; }
.-top-4 { top: -1rem; }
.-bottom-4 { bottom: -1rem; }
.-left-4 { left: -1rem; }
.-right-4 { right: -1rem; }
.-inset-4 { inset: -1rem; }
.left-1\/2 { left: 50%; }
.right-4 { right: 1rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Transform */
.translate-x-1\/2 { transform: translateX(-50%); }

/* Size */
.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-1\.5 { width: 0.375rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.h-16 { height: 4rem; }
.h-9 { height: 2.25rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-1\.5 { height: 0.375rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }

/* Padding */
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-2xl { font-size: 1.5rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.08\] { line-height: 1.08; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }

/* Colors */
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-300 { color: #cbd5e1; }
.text-white { color: white; }
.text-violet-600 { color: #7c3aed; }
.text-violet-700 { color: #6d28d9; }
.text-violet-100 { color: #ede9fe; }
.text-violet-200 { color: #ddd6fe; }
.text-emerald-800 { color: #065f46; }
.text-emerald-600 { color: #059669; }
.text-emerald-500 { color: #10b981; }
.text-green-500 { color: #22c55e; }
.text-amber-700 { color: #b45309; }

.bg-white { background: white; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-900 { background: #0f172a; }
.bg-slate-100 { background: #f1f5f9; }
.bg-violet-100 { background: #ede9fe; }
.bg-violet-500 { background: #8b5cf6; }
.bg-indigo-600 { background: #4f46e5; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-amber-100 { background: #fef3c7; }
.bg-green-500 { background: #22c55e; }

/* Borders */
.border { border: 1px solid; }
.border-2 { border-width: 2px; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-800 { border-color: #1e293b; }
.border-violet-200 { border-color: #ddd6fe; }
.border-violet-300 { border-color: #c4b5fd; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

/* Border radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-violet-500\/30 { box-shadow: 0 10px 15px -3px rgba(124,58,237,0.3); }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-violet-600 { --tw-gradient-from: #7c3aed; }
.from-violet-500 { --tw-gradient-from: #8b5cf6; }
.from-purple-600 { --tw-gradient-from: #9333ea; }
.from-slate-50 { --tw-gradient-from: #f8fafc; }
.to-indigo-600 { --tw-gradient-to: #4f46e5; }
.to-indigo-700 { --tw-gradient-to: #4338ca; }
.to-white { --tw-gradient-to: white; }
.via-purple-600 { --tw-gradient-stops: var(--tw-gradient-from), #9333ea, var(--tw-gradient-to); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* Effects */
.blur-2xl { filter: blur(40px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.transition { transition: all 0.2s; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }

/* Hover states */
.hover\:text-white:hover { color: white; }
.hover\:text-violet-600:hover { color: #7c3aed; }
.hover\:bg-slate-50:hover { background: #f8fafc; }
.hover\:bg-slate-200:hover { background: #e2e8f0; }
.hover\:bg-slate-800:hover { background: #1e293b; }
.hover\:from-violet-700:hover { --tw-gradient-from: #6d28d9; }
.hover\:to-indigo-700:hover { --tw-gradient-to: #4338ca; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.hover\:border-violet-200:hover { border-color: #ddd6fe; }

/* Aspect ratio */
.aspect-video { aspect-ratio: 16/9; }

/* Prose */
.prose { max-width: 65ch; }
.prose-lg { font-size: 1.125rem; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { font-weight: 700; color: #0f172a; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: #7c3aed; text-decoration: underline; }
/* Fix: Constrain custom logo size */
.custom-logo-link img,
.custom-logo {
    max-width: 180px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}

.sme-logo-box {
    width: 2.25rem !important;
    height: 2.25rem !important;
}