/* ============ Khula design system ============ */
@font-face { font-family: 'Inter'; src: url('vendor/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0b1220; --ink-2: #334155; --muted: #64748b; --line: #e6eaf2; --bg: #f4f6fb; --card: #fff;
  --navy: #0b1630; --navy-2: #13224a;
  --brand: #0d9488; --brand-2: #2563eb; --brand-soft: #e6f6f4; --accent: #f59e0b; --danger: #e11d48; --ok: #059669;
  --grad: linear-gradient(135deg, #14b8a6 0%, #2563eb 100%);
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06); --shadow-lg: 0 24px 60px rgba(2,8,23,.18);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-primary: #0d9488; --bs-primary-rgb: 13,148,136; --bs-link-color: #0d9488; --bs-link-color-rgb: 13,148,136; --bs-link-hover-color: #0f766e;
}
body { font-family: var(--bs-body-font-family); color: var(--ink); background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { color: #0f766e; }
.min-w-0 { min-width: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 17px; box-shadow: 0 6px 18px rgba(20,184,166,.35); margin-right: .6rem; }
.logo-mark.sm { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; margin-right: .35rem; vertical-align: -6px; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand, .btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.22); }
.btn-brand:hover, .btn-primary:hover, .btn-primary:focus { color: #fff; filter: brightness(1.06); background: var(--grad); }
.btn-glow { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 30px rgba(45,212,191,.35); }
.btn-glow:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(45,212,191,.45); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.btn-soft { background: var(--brand-soft); color: #0f766e; border: 0; } .btn-soft:hover { background: #d3efeb; color: #0f766e; }
.btn-icon { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: inherit; display: inline-grid; place-items: center; font-size: 18px; }
.btn-icon:hover { background: rgba(127,127,127,.15); }
.btn-outline-secondary { border-color: var(--line); color: var(--ink-2); } .btn-outline-secondary:hover { background: #f1f5f9; color: var(--ink); border-color: #cbd5e1; }
.form-control, .form-select { border-radius: 10px; border-color: #dbe1ea; }
.form-control:focus, .form-select:focus { border-color: #5eead4; box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-icon { position: relative; } .input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 42px; }

/* ============ App shell ============ */
.shell { display: flex; min-height: 100vh; }
.side { width: 256px; flex: 0 0 256px; background: radial-gradient(120% 60% at 0% 0%, #1b3170 0%, transparent 60%), var(--navy); color: #cbd5e1; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; z-index: 1040; }
.side-brand { color: #fff; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; padding: 4px 8px 18px; letter-spacing: -.01em; }
.side-brand:hover { color: #fff; }
.side-label { text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: #64748b; padding: 8px 12px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { color: #cbd5e1; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 500; transition: .15s; }
.side-nav a i { font-size: 1.05rem; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, rgba(20,184,166,.22), rgba(37,99,235,.12)); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.side-user b { color: #fff; font-size: .9rem; } .side-user small { color: #94a3b8; font-size: .75rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.main { flex: 1; min-width: 0; }
.page { padding: 28px 32px 60px; max-width: 1680px; }
.mobile-top { display: none; }
.side-backdrop { display: none; }
@media (max-width: 991px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(2,8,23,.45); z-index: 1030; }
  .mobile-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
  .page { padding: 18px 16px 40px; }
}

/* Page header */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head .sub { color: var(--muted); }
.crumb { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card.shadow-sm { box-shadow: var(--shadow) !important; }
.card-title-sm { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.card h2.h6 { font-weight: 700; }
.toastish { border: 0; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* Stat tiles */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; height: 100%; }
.tile-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 46px; }
.tile-ic.t1 { background: #e6f6f4; color: #0d9488; } .tile-ic.t2 { background: #e8efff; color: #2563eb; } .tile-ic.t3 { background: #fff4e0; color: #d97706; } .tile-ic.t4 { background: #fde8ef; color: #e11d48; }
.tile small { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.tile b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile b.neg { color: var(--danger); }

/* Projection cards (dashboard) */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: 100%; display: flex; flex-direction: column; transition: .18s; position: relative; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,24,40,.10); border-color: #cfe9e5; }
.pcard .co { font-size: .75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.pcard h3 { font-size: 1.05rem; font-weight: 700; margin: 4px 0 10px; }
.pcard h3 a { color: var(--ink); } .pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard .meta { color: var(--muted); font-size: .82rem; display: flex; flex-direction: column; gap: 4px; }
.pcard .acts { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; position: relative; z-index: 2; }
.pcard-new { border: 2px dashed #cbd5e1; background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 190px; }
.pcard-new i { font-size: 2rem; color: var(--brand); }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 3rem; text-align: center; max-width: 680px; box-shadow: var(--shadow); }
.empty .big { width: 72px; height: 72px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 2rem; margin: 0 auto 16px; box-shadow: 0 12px 30px rgba(37,99,235,.25); }

/* Tables */
.table { --bs-table-hover-bg: #f8fafc; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--line); }
.table td { border-color: #eef2f7; }
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; }
.role-superadmin { background: #ede9fe !important; color: #6d28d9; } .role-admin { background: #e0ecff !important; color: #1d4ed8; } .role-user { background: #eef2f7 !important; color: #475569; }
.text-bg-success { background: #dcfce7 !important; color: #166534 !important; } .text-bg-secondary { background: #eef2f7 !important; color: #475569 !important; }
.text-bg-light { background: #f1f5f9 !important; color: #64748b !important; } .text-bg-info { background: #e0f2fe !important; color: #0369a1 !important; }

/* Workspace */
.ws-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 18px; }
.ws-head h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 170px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kpi b { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 20px; scrollbar-width: thin; }
.steps-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; white-space: nowrap; font-size: .88rem; }
.steps-nav a:hover { background: #f1f5f9; color: var(--ink); }
.steps-nav a .n { width: 22px; height: 22px; border-radius: 50%; background: #eef2f7; color: var(--muted); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.steps-nav a.done .n { background: #d1fae5; color: #047857; }
.steps-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.steps-nav a.active .n { background: rgba(255,255,255,.25); color: #fff; }
.steps-nav .sep { flex: 1; }
.upl { transition: .15s; } .upl:hover { border-color: #b7e4dd; }
.upl .upl-ic { width: 40px; height: 40px; border-radius: 11px; background: #f1f5f9; color: var(--muted); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 40px; }
.upl.done .upl-ic { background: #d1fae5; color: #047857; }
.upl.done { border-color: #bbf0dc; }

/* Report tables */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--danger); }
.rpt-wrap { max-height: 70vh; border-radius: 10px; border: 1px solid var(--line); }
.rpt { font-size: 12.5px; margin-bottom: 0; }
.rpt th { background: var(--navy) !important; color: #e2e8f0 !important; position: sticky; top: 0; z-index: 2; font-weight: 600; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }
.rpt td.lbl, .rpt th.lbl { position: sticky; left: 0; background: #fff; min-width: 260px; z-index: 1; }
.rpt th.lbl { background: var(--navy) !important; z-index: 3; }
.rpt tr.r-h td { font-weight: 800; color: var(--brand); padding-top: .8rem; border-bottom: none; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.rpt tr.r-b td { font-weight: 700; background: #fafbfd; }
.rpt tr.r-t td { font-weight: 800; border-top: 1.5px solid #334155; border-bottom: 3px double #334155; background: #f3fbfa; }
.rpt tr.r-p td { font-style: italic; color: #64748b; }
.rpt tr.r-i td { font-style: italic; color: #94a3b8; }
.rpt tr.r-x td { border: none; height: .6rem; }
.rpt-nav { gap: 4px; flex-wrap: wrap; }
.rpt-nav .nav-link { padding: .42rem .85rem; border-radius: 999px; color: var(--ink-2); font-weight: 600; background: #fff; border: 1px solid var(--line); }
.rpt-nav .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid-wrap { max-height: 65vh; border: 1px solid var(--line); border-radius: 10px; }
.grid { font-size: 12px; margin: 0; }
.grid th { background: #f8fafc; position: sticky; top: 0; z-index: 2; }
.grid .lbl { position: sticky; left: 0; background: #fff; min-width: 200px; z-index: 1; font-weight: 600; }
.grid th.lbl { background: #f8fafc; z-index: 3; }
.grid td { min-width: 100px; vertical-align: bottom; }
.grid .ly { font-size: 10.5px; color: #94a3b8; text-align: right; }
.num-in { text-align: right; font-variant-numeric: tabular-nums; padding: .15rem .35rem; border-radius: 7px; }
.num-in.ovr { background: #fffbeb; border-color: #f59e0b; font-weight: 700; }
details > summary { cursor: pointer; list-style: none; }
.export-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 18px; }
.btn-xl-ic { display: inline-flex; align-items: center; gap: 8px; }
.ic-excel { color: #15803d; } .ic-pdf { color: #dc2626; }

/* ============ Auth ============ */
body.bare { background: #fff; }
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-quote h2 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 520px; }
.auth-quote p { color: #cbd5e1; font-size: 1.05rem; max-width: 460px; margin-top: 14px; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth-chips span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: .85rem; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 240px; padding: 28px; } .auth-quote h2 { font-size: 1.9rem; } }

/* ============ Landing ============ */
body.lp { background: #fff; font-size: 16px; }
.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 0; transition: .25s; }
.lp-nav.scrolled { background: rgba(11,22,48,.82); backdrop-filter: blur(14px); padding: 10px 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.lp-nav nav a { color: #cbd5e1; font-weight: 500; font-size: .95rem; } .lp-nav nav a:hover { color: #fff; }
.lp-brand { display: inline-flex; align-items: center; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; } .lp-brand:hover { color: #fff; }
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 150px 0 110px; }
.hero-mesh { position: absolute; inset: -20%; background:
  radial-gradient(40% 40% at 15% 20%, rgba(20,184,166,.45), transparent 70%),
  radial-gradient(35% 35% at 85% 15%, rgba(37,99,235,.55), transparent 70%),
  radial-gradient(40% 40% at 70% 90%, rgba(124,58,237,.35), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%); }
@keyframes drift { to { transform: translate3d(3%, -3%, 0) scale(1.08); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #e2e8f0; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.hero-title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 900; line-height: 1.02; letter-spacing: -.04em; margin: 22px 0 20px; }
.hero-lead { color: #cbd5e1; font-size: 1.15rem; max-width: 560px; line-height: 1.6; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #cbd5e1; font-size: .92rem; } .hero-ticks i { color: #34d399; }
.mock { position: relative; background: rgba(15,27,61,.75); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(10px); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .mock-bar span:nth-child(2) { background: #fbbf24; } .mock-bar span:nth-child(3) { background: #34d399; }
.mock-bar em { margin-left: 10px; font-style: normal; color: #94a3b8; font-size: .8rem; }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; }
.mock-kpis small { display: block; color: #94a3b8; font-size: .72rem; } .mock-kpis b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mock-kpis b.up { color: #34d399; } .mock-kpis b.warn { color: #fbbf24; }
.mock-chart { width: 100%; height: 220px; display: block; }
.mock-chart .b-in { fill: rgba(52,211,153,.55); transform-origin: bottom; transform-box: fill-box; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.mock-chart .b-out { fill: rgba(248,113,113,.45); transform-origin: bottom; transform-box: fill-box; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.mock-chart .line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .4s ease forwards; filter: drop-shadow(0 4px 10px rgba(52,211,153,.5)); }
.mock-chart .area { opacity: 0; animation: fade 1s 1.6s forwards; }
.mock-chart .pulse { opacity: 0; animation: fade .3s 2.5s forwards, ping 2s 2.8s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes fade { to { opacity: 1; } } @keyframes ping { 50% { transform: scale(1.6); opacity: .5; } }
.mock-legend { display: flex; gap: 16px; font-size: .75rem; color: #94a3b8; margin-top: 6px; }
.mock-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.l-in::before { background: rgba(52,211,153,.7); } .l-out::before { background: rgba(248,113,113,.6); } .l-line::before { background: var(--grad); }
.float-card { position: absolute; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); animation: floaty2 6s ease-in-out infinite; }
.float-card i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e6f6f4; color: var(--brand); font-size: 1.1rem; }
.float-card small { display: block; color: var(--muted); font-size: .72rem; } .float-card b { font-variant-numeric: tabular-nums; }
.fc1 { left: -24px; bottom: -26px; } .fc2 { right: -10px; top: -26px; animation-delay: -3s; } .fc2 i { background: #dcfce7; color: #16a34a; }
@keyframes floaty2 { 50% { transform: translateY(-10px); } }
.hero .col-lg-6:last-child { position: relative; }
.strip { background: #0f1b3d; color: #94a3b8; padding: 22px 0; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.06); }
.strip b { color: #fff; font-size: 1.25rem; margin-right: 4px; }
.sec { padding: 100px 0; } .sec-tint { background: #f6f9fc; }
.sec-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.sec-head h2, .sec h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; height: 100%; transition: .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(16,24,40,.10); border-color: #c7ebe5; }
.feat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.35rem; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(37,99,235,.25); }
.feat h3 { font-size: 1.15rem; font-weight: 700; } .feat p { color: var(--muted); margin: 0; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, rgba(45,212,191,.6), rgba(59,130,246,.6), transparent); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-n { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--navy-2); border: 2px solid #2dd4bf; font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 8px rgba(45,212,191,.08), 0 0 30px rgba(45,212,191,.35); margin-bottom: 18px; position: relative; }
.step h3 { font-size: 1.15rem; font-weight: 700; } .step p { color: #94a3b8; font-size: .95rem; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; } .ticks li { padding: 7px 0 7px 32px; position: relative; font-weight: 500; }
.ticks li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 5px; color: var(--brand); font-size: 1.15rem; }
.paper { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(16,24,40,.16); border: 1px solid var(--line); padding: 26px 28px; position: relative; }
.paper::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; background: var(--grad); border-radius: 18px; z-index: -1; opacity: .18; }
.paper-h { display: flex; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 6px; } .paper-h span { color: var(--muted); font-size: .85rem; }
.paper-r { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: .95rem; font-variant-numeric: tabular-nums; }
.paper-r.neg span:last-child { color: var(--danger); }
.paper-r.t { font-weight: 700; border-top: 1px solid #334155; } .paper-r.tt { font-weight: 800; border-bottom: 3px double #334155; color: var(--brand); }
.paper-actions { display: flex; gap: 10px; margin-top: 18px; } .paper-actions span { background: #f1f5f9; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.mini { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; height: 100%; }
.mini > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: #e6f6f4; color: var(--brand); font-size: 1.2rem; }
.mini h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; } .mini p { color: var(--muted); margin: 0; font-size: .93rem; }
.cta { position: relative; overflow: hidden; padding: 100px 0; background: var(--navy); color: #fff; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 120%, rgba(20,184,166,.5), transparent 70%), radial-gradient(40% 60% at 90% 0%, rgba(37,99,235,.4), transparent 70%); }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -.03em; } .cta p { color: #cbd5e1; font-size: 1.1rem; margin: 12px 0 28px; }
.lp-foot { background: #070f24; color: #cbd5e1; padding: 26px 0; font-size: .9rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } .mock-chart .line { stroke-dashoffset: 0; } .mock-chart .area, .mock-chart .pulse { opacity: 1; } }
@media (max-width: 991px) { .mock { transform: none; animation: none; } .fc1, .fc2 { display: none; } .hero { padding: 120px 0 80px; } }

@media print { .side, .mobile-top, .steps-nav, .btn, form, .alert, .export-bar { display: none !important; } .rpt-wrap { max-height: none; } }
.page > h1.h4, .page h1.h5 { font-weight: 800; letter-spacing: -.02em; }
.page > h1.h4 { font-size: 1.6rem; margin-bottom: 1.25rem !important; }

.lp-foot .logo-mark.sm { vertical-align: middle; margin-top: -3px; }
@media (max-width: 1500px) { .steps-nav .sep { display: none; } }
@media (max-width: 575px) { .mock-kpis { gap: 6px; } .mock-kpis div { padding: 8px; } .mock-kpis b { font-size: .82rem; } .mock-kpis small { font-size: .62rem; } }
/* brand lockup with tagline */
.side-brand small, .lp-brand small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; margin-top: 1px; line-height: 1.1; }
.lp-brand > span:last-child, .side-brand > span:last-child { line-height: 1.05; }
.cta-slogan { font-weight: 700; color: #5eead4 !important; letter-spacing: .02em; margin: -4px 0 18px !important; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; background: #f0fdfa; border: 1px solid #ccfbf1; color: #115e59; border-radius: 12px; padding: 10px 14px; font-size: .85rem; }
.secure-note i { font-size: 1.05rem; }
.otp-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(37,99,235,.25); }
.otp-badge.ok { background: linear-gradient(135deg, #10b981, #0d9488); } .otp-badge.bad { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.otp-boxes { display: flex; gap: 10px; justify-content: space-between; }
.otp-in { width: 100%; max-width: 56px; height: 64px; text-align: center; font-size: 1.7rem; font-weight: 800; border: 1.5px solid #dbe1ea; border-radius: 12px; outline: none; transition: .15s; font-variant-numeric: tabular-nums; }
.otp-in:focus { border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.pw-meter { height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; } .pw-meter span { display: block; height: 100%; width: 0; transition: .25s; }
/* Khula logo mark */
.logo-img { height: 30px; width: auto; margin-right: .6rem; flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(45,212,191,.25)); }
.logo-img.sm { height: 18px; margin-right: .35rem; vertical-align: -3px; }
.lp-brand .logo-img { height: 34px; }
