/* =========================================================
   Khoharasoft ERP — stylesheet
   ========================================================= */
:root {
  --brand: #0b3b66;
  --brand-2: #1460a8;
  --brand-3: #e8f1fb;
  --accent: #f2a516;
  --ok: #15803d;
  --ok-bg: #e7f6ec;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --warn-bg: #fff6e0;
  --ink: #142233;
  --ink-2: #4a5a6c;
  --ink-3: #7a8796;
  --line: #e2e8f0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --side: #0a1f35;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ic { width: 18px; height: 18px; flex: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt { margin-top: 18px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 10px 18px; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #0f4f8d; }
.btn-accent { background: var(--accent); color: #1d1300; }
.btn-accent:hover { background: #e09600; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c3be; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 9px; font: 14px var(--font); color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 96, 168, .15); }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hp { position: absolute; left: -5000px; }
.alert { padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert-success { background: var(--ok-bg); border-color: #b9e3c6; color: #0f5a2b; }
.alert-error { background: var(--bad-bg); border-color: #f3c3be; color: #8a1c13; }
.alert-info { background: var(--brand-3); border-color: #c5dbf2; color: #0b3b66; }

/* ---------- Public header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--brand); text-decoration: none !important; letter-spacing: -.02em; }
.brand b { color: var(--brand-2); }
.brand-light, .brand-light b { color: #fff; }
.brand-light b { color: #8cc4ff; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand-2); text-decoration: none; }
.main-nav .btn { color: #fff; }
.nav-login { font-weight: 600 !important; color: var(--ink) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .ic { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a7bd0 0%, transparent 60%), linear-gradient(160deg, #0a2a4a 0%, #0b3b66 55%, #0f4f8d 100%); color: #fff; padding: 72px 0 86px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.08)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: #dcecff; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero h1 { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 span { color: #ffd27a; }
.hero p.lead { font-size: 18px; color: #d4e4f7; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: #cfe2f7; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ic { color: #4ade80; }
.login-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.login-card h2 { font-size: 21px; margin-bottom: 4px; }
.login-card .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.login-card .foot { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .kicker { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: 34px; margin: 8px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.trust { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-row strong { display: block; font-size: 22px; color: var(--brand); }
.trust-row span { color: var(--ink-3); font-size: 13px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,24,40,.1); }
.feature .fi { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-3); color: var(--brand-2); display: grid; place-items: center; margin-bottom: 14px; }
.feature .fi .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: 32px; }
.split p { color: var(--ink-2); font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-2); }
.checklist .ic { color: var(--ok); margin-top: 3px; }
.vchips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vchip { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.vchip b { font-size: 20px; color: var(--brand); display: block; }
.vchip span { color: var(--ink-2); font-size: 14px; }
.vchip.bp { border-left-color: #1460a8; } .vchip.br { border-left-color: #0e9384; } .vchip.cp { border-left-color: #d9480f; } .vchip.cr { border-left-color: #15803d; } .vchip.jv { border-left-color: #7c3aed; grid-column: span 2; }
.mock { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(16,24,40,.12); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: var(--bg); border-radius: 8px; padding: 10px; font-size: 12px; color: var(--ink-3); }
.mock-kpis b { display: block; font-size: 16px; color: var(--ink); }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.mock-bars span { flex: 1; background: linear-gradient(to top, var(--brand-2), #5aa2e8); border-radius: 5px 5px 0 0; }
.mock-bars span:nth-child(even) { background: linear-gradient(to top, #f59e0b, #fcd34d); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-2); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-top: 8px; font-size: 18px; }
.step p { color: var(--ink-2); margin: 0; }
.cta-band { background: linear-gradient(120deg, #0b3b66, #1460a8); color: #fff; border-radius: 18px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta-band p { color: #d4e4f7; margin: 0; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--brand-2); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 14.5px; }
.about-card dt { color: var(--ink-3); font-weight: 600; }
.about-card dd { margin: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info .ci { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci .fi { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-3); color: var(--brand-2); display: grid; place-items: center; flex: none; }
.contact-info h3 { font-size: 15px; margin: 0 0 2px; }
.contact-info p { margin: 0; color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #081a2d; color: #b7c7d9; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: 14px; }
.site-footer a { color: #b7c7d9; }
.site-footer a:hover { color: #fff; }
.muted-light { color: #8ea3ba; font-size: 14px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Auth & legal pages ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 20px; background: linear-gradient(160deg, #eef4fb, #f8fafc); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.page-hero { background: linear-gradient(160deg, #0a2a4a, #0f4f8d); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; font-size: 36px; margin: 0 0 6px; }
.page-hero p { color: #cfe2f7; margin: 0; }
.prose { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.prose h2 { font-size: 21px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- App shell ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--side); color: #c3d1e0; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; padding: 18px 14px; transition: transform .2s; }
.sidebar .brand { padding: 4px 8px 16px; font-size: 19px; }
.biz-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.biz-ic { width: 30px; height: 30px; border-radius: 8px; background: #1460a8; color: #fff; display: grid; place-items: center; flex: none; }
.biz-name { font-weight: 600; color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a, .side-foot a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #c3d1e0; font-weight: 500; font-size: 14px; text-decoration: none; }
.side-nav a:hover, .side-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: #1460a8; color: #fff; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.app-main { flex: 1; margin-left: 248px; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 30; }
.page-title { font-size: 19px; margin: 0; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-3); color: var(--brand-2); font-weight: 700; display: grid; place-items: center; }
.content { padding: 26px; flex: 1; }
.app-foot { padding: 16px 26px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
.scrim { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.kpi .ki { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi .ki .ic { width: 22px; height: 22px; }
.ki.blue { background: var(--brand-3); color: var(--brand-2); }
.ki.green { background: var(--ok-bg); color: var(--ok); }
.ki.red { background: var(--bad-bg); color: var(--bad); }
.ki.amber { background: var(--warn-bg); color: #b45309; }
.kpi .kl { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.kpi .kv { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.kpi .kv small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; margin: 0; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: border .15s, background .15s; }
.quick a:hover { border-color: var(--brand-2); background: var(--brand-3); }
.quick b { font-size: 15px; }
.quick span { font-size: 12.5px; color: var(--ink-3); }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; background: #f8fafc; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: #f8fafc; border-top: 2px solid var(--line); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f6; color: var(--ink-2); }
.badge.BP { background: #e3eefa; color: #1460a8; } .badge.BR { background: #def5f2; color: #0e7468; } .badge.CP { background: #fdeee4; color: #b33c0c; } .badge.CR { background: var(--ok-bg); color: var(--ok); } .badge.JV { background: #efe7fd; color: #6d28d9; }
.badge.Paid { background: var(--ok-bg); color: var(--ok); } .badge.Unpaid { background: var(--warn-bg); color: #b45309; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { margin: 0; min-width: 150px; }
.toolbar .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.tabs a.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.lines-table input, .lines-table select { padding: 8px 10px; }
.lines-table td { padding: 6px; }
.row-del { background: none; border: 0; color: var(--bad); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.totals-box { margin-left: auto; width: 320px; max-width: 100%; }
.totals-box div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals-box .grand { border-top: 2px solid var(--ink); font-weight: 800; font-size: 17px; padding-top: 10px; }
.diff-bad { color: var(--bad); font-weight: 700; }
.diff-ok { color: var(--ok); font-weight: 700; }
.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.report-cards a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); text-decoration: none; }
.report-cards a:hover, .report-cards a.on { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20,96,168,.12); }
.report-cards b { display: block; }
.report-cards span { font-size: 13px; color: var(--ink-3); }
.col-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.col-picker label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; color: var(--ink-2); }

/* ---------- Printable documents ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; max-width: 900px; margin: 0 auto; box-shadow: var(--shadow); }
.letterhead { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--brand); padding-bottom: 16px; margin-bottom: 20px; }
.lh-left { display: flex; gap: 16px; align-items: flex-start; }
.lh-logo { max-width: 110px; max-height: 80px; object-fit: contain; }
.lh-name {font-size: 24px; font-weight: 800; color: var(--brand); }
.lh-tag { color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.lh-line { color: var(--ink-2); font-size: 13px; }
.lh-right { text-align: right; }
.lh-doc { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.lh-meta { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.lh-meta b { color: var(--ink); }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.doc-meta h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.signs div { border-top: 1px solid var(--ink-2); padding-top: 6px; text-align: center; font-size: 13px; color: var(--ink-2); }
.doc-foot { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; }
.doc-actions { display: flex; gap: 10px; justify-content: flex-end; max-width: 900px; margin: 0 auto 14px; flex-wrap: wrap; }
.amount-words { background: var(--bg); border-radius: 8px; padding: 10px 14px; margin-top: 14px; font-size: 14px; }

/* ---------- Free invoice generator ---------- */
.ig-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ig-paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(16,24,40,.08); padding: 44px; max-width: 920px; margin: 0 auto; width: 100%; }
.ig-paper [contenteditable], .ig-paper input, .ig-paper textarea { border: 1px dashed transparent; border-radius: 6px; }
.ig-paper input, .ig-paper textarea { background: transparent; padding: 5px 7px; }
.ig-paper input:hover, .ig-paper textarea:hover { border-color: #cbd5e1; }
.ig-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.ig-logo { width: 170px; height: 90px; border: 2px dashed #cbd5e1; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; cursor: pointer; overflow: hidden; text-align: center; }
.ig-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ig-logo.has-img { border-color: transparent; }
.ig-title { font-size: 34px !important; font-weight: 800; text-align: right; color: var(--brand); text-transform: uppercase; width: 100%; }
.ig-meta { display: grid; grid-template-columns: 110px 160px; gap: 4px 8px; justify-content: end; align-items: center; margin-top: 8px; }
.ig-meta label { margin: 0; text-align: right; }
.ig-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.ig-items th { background: var(--brand); color: #fff; }
.ig-items td input { width: 100%; }
.ig-sum { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 16px; }
.ig-sum .totals-box input { width: 90px; text-align: right; }
.ig-controls { max-width: 920px; margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ig-controls .field { margin: 0; }
.ig-controls select { width: auto; }
.ig-color { width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .steps, .report-cards { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .app-main { margin-left: 0; }
  .ig-parties, .ig-sum, .doc-meta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .section { padding: 56px 0; }
  .section-head h2, .split h2 { font-size: 26px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 30px; }
  .features, .grid-2, .grid-3, .grid-4, .kpis, .quick, .vchips, .footer-grid { grid-template-columns: 1fr; }
  .vchip.jv { grid-column: auto; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .hide-sm { display: none !important; }
  .doc, .ig-paper, .prose { padding: 20px; }
  .ig-top, .letterhead { flex-direction: column; }
  .lh-right { text-align: left; }
  .ig-title { text-align: left; }
  .ig-meta { justify-content: start; }
  .signs { grid-template-columns: 1fr 1fr; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; font-size: 12.5px; }
  .sidebar, .topbar, .app-foot, .doc-actions, .no-print, .site-header, .site-footer, .ig-controls, .toolbar, .tabs, .report-cards, .alert, .page-hero, .scrim, .ig-hint { display: none !important; }
  .app-main { margin: 0 !important; }
  .content { padding: 0 !important; }
  .doc, .ig-paper, .panel { border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: none !important; }
  .table th { background: #eef2f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ig-items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ig-logo:not(.has-img) { display: none; }
  .ig-paper input, .ig-paper textarea { border: 0 !important; }
  .row-del, .ig-add { display: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Plans & Billing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan-card.featured { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-3); }
.plan-card h3 { margin: 0; font-size: 16px; color: var(--ink-2); }
.plan-price { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.plan-card ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; font-size: 14px; flex: 1; }
.plan-card li { display: flex; align-items: center; gap: 6px; }
.plan-card li .ic { width: 16px; height: 16px; color: var(--ok); }
.plan-tag { position: absolute; top: -11px; right: 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plan-card > .btn { text-align: center; justify-content: center; }
@media (max-width: 1080px) { .plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .plans, .plans-4 { grid-template-columns: 1fr; } }
