/* ============================================================
   AI Khata Book Pakistan — Static Stylesheet
   Replaces Tailwind CDN. Hand-crafted for this site.
   ~25KB uncompressed, ~6KB gzipped.
   ============================================================ */

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, -apple-system, sans-serif; line-height: 1.5; background: #020617; color: #e2e8f0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* === LAYOUT === */
.max-w-xs { max-width: 20rem; } .max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; } .max-w-xl { max-width: 36rem; } .max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; } .max-w-7xl { max-width: 80rem; }
.min-w-\[200px\] { min-width: 200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; } .mt-20 { margin-top: 5rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; } .mb-20 { margin-bottom: 5rem; }

/* === PADDING === */
.p-2 { padding: 0.5rem; } .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; } .p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; }
.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-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-8 { padding-top: 2rem; } .pl-1\.5 { padding-left: 0.375rem; }
.pr-3 { padding-right: 0.75rem; }

/* === FLEX & GRID === */
.flex { display: flex; } .inline-flex { display: inline-flex; }
.grid { display: grid; } .inline-block { display: inline-block; } .block { display: block; }
.hidden { display: none; }
.flex-col { flex-direction: column; } .flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .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; } .gap-16 { gap: 4rem; }
.gap-x-5 { column-gap: 1.25rem; } .gap-y-2 { row-gap: 0.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; } .col-span-2 { grid-column: span 2 / span 2; }
.space-y-1 > * + * { margin-top: 0.25rem; } .space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; } .space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* === SIZING === */
.w-full { width: 100%; } .w-2 { width: 0.5rem; } .w-10 { width: 2.5rem; } .w-11 { width: 2.75rem; }
.w-12 { width: 3rem; } .w-14 { width: 3.5rem; } .w-16 { width: 4rem; }
.h-2 { height: 0.5rem; } .h-3 { height: 0.75rem; } .h-10 { height: 2.5rem; } .h-11 { height: 2.75rem; }
.h-12 { height: 3rem; } .h-14 { height: 3.5rem; } .h-16 { height: 4rem; } .h-48 { height: 12rem; }
.h-56 { height: 14rem; } .h-64 { height: 16rem; }
.w-\[500px\] { width: 500px; } .h-\[500px\] { height: 500px; }
.h-3 { height: 0.75rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.min-h-screen { min-height: 100vh; }

/* === POSITION === */
.relative { position: relative; } .absolute { position: absolute; }
.sticky { position: sticky; } .fixed { position: fixed; }
.top-0 { top: 0; } .top-2 { top: 0.5rem; } .top-28 { top: 7rem; }
.left-0 { left: 0; } .left-2 { left: 0.5rem; } .bottom-0 { bottom: 0; }
.right-0 { right: 0; } .inset-0 { inset: 0; }
.z-10 { z-index: 10; } .z-40 { z-index: 40; } .z-50 { z-index: 50; }
.z-100 { z-index: 100; } .z-200 { z-index: 200; }

/* === OVERFLOW === */
.overflow-hidden { overflow: hidden; } .overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; } .overflow-x-hidden { overflow-x: hidden; }
.resize-none { resize: none; }

/* === TYPOGRAPHY === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; line-height: 1.2; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-\[120px\] { font-size: 120px; line-height: 1; }
.text-\[180px\] { font-size: 180px; line-height: 1; }

.font-light { font-weight: 300; } .font-normal { font-weight: 400; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, Menlo, Monaco, monospace; }

.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.leading-none { line-height: 1; } .leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; } .leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; } .leading-loose { line-height: 2; }
.uppercase { text-transform: uppercase; } .tracking-wide { letter-spacing: 0.025em; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.italic { font-style: italic; }

/* === COLORS — TEXT === */
.text-white { color: #fff; } .text-black { color: #000; }
.text-slate-100 { color: #f1f5f9; } .text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; } .text-slate-400 { color: #a3b1c2; } /* brightened from #94a3b8 for AA contrast */
.text-slate-500 { color: #8a9bb4; } /* brightened from #64748b for WCAG AA on dark bg */
.text-slate-600 { color: #6b7c93; } .text-slate-700 { color: #334155; } .text-slate-800 { color: #1e293b; }
.text-emerald-300 { color: #6ee7b7; } .text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-cyan-300 { color: #67e8f9; } .text-cyan-400 { color: #22d3ee; }
.text-red-300 { color: #fca5a5; } .text-red-400 { color: #f87171; } .text-red-500 { color: #ef4444; }
.text-yellow-400 { color: #facc15; } .text-purple-300 { color: #d8b4fe; }
.text-orange-400 { color: #fb923c; } .text-rose-400 { color: #fb7185; }

/* === COLORS — BACKGROUND === */
.bg-white { background-color: #fff; } .bg-black { background-color: #000; }
.bg-slate-900 { background-color: #0f172a; } .bg-slate-950 { background-color: #020617; }
.bg-slate-950\/70 { background-color: rgba(2,6,23,0.7); }
.bg-slate-950\/95 { background-color: rgba(2,6,23,0.95); }
.bg-slate-800 { background-color: #1e293b; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/5 { background-color: rgba(16,185,129,0.05); }
.bg-emerald-500\/10 { background-color: rgba(16,185,129,0.10); }
.bg-emerald-500\/20 { background-color: rgba(16,185,129,0.20); }
.bg-emerald-500\/30 { background-color: rgba(16,185,129,0.30); }
.bg-cyan-500 { background-color: #06b6d4; }
.bg-cyan-500\/20 { background-color: rgba(6,182,212,0.20); }
.bg-cyan-500\/30 { background-color: rgba(6,182,212,0.30); }
.bg-red-500\/20 { background-color: rgba(239,68,68,0.20); }
.bg-red-500\/30 { background-color: rgba(239,68,68,0.30); }
.bg-red-500\/5 { background-color: rgba(239,68,68,0.05); }
.bg-purple-500\/10 { background-color: rgba(168,85,247,0.10); }
.bg-purple-500\/30 { background-color: rgba(168,85,247,0.30); }
.bg-blue-500\/30 { background-color: rgba(59,130,246,0.30); }
.bg-blue-600\/30 { background-color: rgba(37,99,235,0.30); }
.bg-green-700\/30 { background-color: rgba(21,128,61,0.30); }
.bg-yellow-500\/30 { background-color: rgba(234,179,8,0.30); }
.bg-orange-500\/30 { background-color: rgba(249,115,22,0.30); }
.bg-orange-600\/30 { background-color: rgba(234,88,12,0.30); }
.bg-pink-500\/30 { background-color: rgba(236,72,153,0.30); }
.bg-pink-600\/30 { background-color: rgba(219,39,119,0.30); }
.bg-rose-600\/30 { background-color: rgba(225,29,72,0.30); }
.bg-white\/\[0\.02\] { background-color: rgba(255,255,255,0.02); }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-white\/10 { background-color: rgba(255,255,255,0.10); }
.bg-transparent { background-color: transparent; }

/* === GRADIENTS === */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-from), var(--tw-to)); }
.from-cyan-500\/30 { --tw-from: rgba(6,182,212,0.30); }
.from-emerald-500\/30 { --tw-from: rgba(16,185,129,0.30); }
.from-orange-500\/30 { --tw-from: rgba(249,115,22,0.30); }
.from-purple-500\/30 { --tw-from: rgba(168,85,247,0.30); }
.from-yellow-500\/30 { --tw-from: rgba(234,179,8,0.30); }
.from-pink-500\/30 { --tw-from: rgba(236,72,153,0.30); }
.to-blue-500\/30 { --tw-to: rgba(59,130,246,0.30); }
.to-blue-600\/30 { --tw-to: rgba(37,99,235,0.30); }
.to-green-700\/30 { --tw-to: rgba(21,128,61,0.30); }
.to-red-600\/30 { --tw-to: rgba(220,38,38,0.30); }
.to-orange-600\/30 { --tw-to: rgba(234,88,12,0.30); }
.to-pink-600\/30 { --tw-to: rgba(219,39,119,0.30); }
.to-rose-600\/30 { --tw-to: rgba(225,29,72,0.30); }
.from-cyan-500 { --tw-from: #06b6d4; } .to-blue-600 { --tw-to: #2563eb; }
.from-emerald-500 { --tw-from: #10b981; } .to-green-700 { --tw-to: #15803d; }
.from-orange-500 { --tw-from: #f97316; } .to-red-600 { --tw-to: #dc2626; }
.from-purple-500 { --tw-from: #a855f7; } .to-pink-600 { --tw-to: #db2777; }

/* === BORDERS === */
.border { border-width: 1px; border-style: solid; border-color: rgba(255,255,255,0.1); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.10); }
.border-emerald-500\/20 { border-color: rgba(16,185,129,0.20); }
.border-emerald-500\/30 { border-color: rgba(16,185,129,0.30); }
.border-red-500\/30 { border-color: rgba(239,68,68,0.30); }

.rounded { border-radius: 0.25rem; } .rounded-md { border-radius: 0.375rem; }
.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; }
.rounded-\[28px\] { border-radius: 28px; } .rounded-\[30px\] { border-radius: 30px; }
.rounded-\[35px\] { border-radius: 35px; } .rounded-\[40px\] { border-radius: 40px; }
.rounded-tl-md { border-top-left-radius: 0.375rem; }

/* === EFFECTS === */
.shadow-glow { box-shadow: 0 0 40px rgba(16,185,129,0.2); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.blur-\[150px\] { filter: blur(150px); }
.opacity-50 { opacity: 0.5; } .opacity-100 { opacity: 1; }

/* === TRANSITIONS === */
.transition { transition: all 0.15s cubic-bezier(0.4,0,0.2,1); }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }

/* === HOVER === */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:text-emerald-400:hover { color: #34d399; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-white\/5:hover { background-color: rgba(255,255,255,0.05); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.10); }
.hover\:opacity-100:hover { opacity: 1; }

/* === FOCUS === */
.focus\:not-sr-only:focus { position: static; clip: auto; width: auto; height: auto; }
.focus\:absolute:focus { position: absolute; }
.focus\:top-2:focus { top: 0.5rem; }
.focus\:left-2:focus { left: 0.5rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:bg-emerald-500:focus { background-color: #10b981; }
.focus\:text-black:focus { color: #000; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:rounded:focus { border-radius: 0.25rem; }

/* === ACCESSIBILITY === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === GROUP HOVER === */
.group:hover .group-hover\:text-emerald-400 { color: #34d399; }
.group[open] .group-open\:rotate-45 { transform: rotate(45deg); }

/* === ANIMATIONS === */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:table-cell { display: table-cell; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-\[180px\] { font-size: 180px; line-height: 1; }
  .sm\:gap-6 { gap: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .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\:p-10 { padding: 2.5rem; }
  .md\:p-14 { padding: 3.5rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:h-auto { height: auto; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:p-14 { padding: 3.5rem; }
  .lg\:p-16 { padding: 4rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:sticky { position: sticky; }
  .lg\:top-28 { top: 7rem; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* === PRINT === */
@media print {
  body { background: white !important; color: black !important; }
  nav, footer, .no-print, button { display: none !important; }
  * { color: black !important; background: white !important; box-shadow: none !important; }
  .glass { border: 1px solid #ccc !important; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
