/* JCounting – application styles */
:root {
  --brand: #0b6e8a;
  --brand-dark: #08566c;
  --brand-light: #e5f3f5;
  --accent: #f2994a;
  --ink: #1d2433;
  --muted: #6b7385;
  --line: #e2e6ee;
  --bg: #f4f6fa;
  --card: #ffffff;
  --green: #1f9d55;
  --red: #d64545;
  --amber: #c98a04;
  --blue: #2f6fde;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 2px 8px rgba(20, 30, 60, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; font-weight: 650; }
h2 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: 56px; max-width: 1400px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.logo:hover { text-decoration: none; }
.logo-icon { display: block; border-radius: 8px; }
.logo-word { letter-spacing: -.3px; }
.logo-j { color: #5fd4b6; }
.auth-card .logo-j, .logo-dark .logo-j { color: #0b6e8a; }
.org-switch { color: #cfd6e4; font-size: 13px; padding: 4px 10px; border: 1px solid #39425a; border-radius: 20px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav > .nav-item { position: relative; }
.nav > .nav-item > a, .nav > .nav-item > button { color: #e6eaf2; padding: 18px 12px; display: block; background: none; border: 0; font: inherit; cursor: pointer; }
.nav > .nav-item > a:hover, .nav > .nav-item > button:hover, .nav > .nav-item.active > a, .nav > .nav-item.active > button { color: #fff; text-decoration: none; box-shadow: inset 0 -3px var(--accent); }
.menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 6px 0; display: none; }
.nav-item:hover .menu, .nav-item:focus-within .menu { display: block; }
.menu a { display: block; padding: 8px 16px; color: var(--ink); }
.menu a:hover { background: var(--brand-light); text-decoration: none; }
.menu .menu-label { padding: 8px 16px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.topbar-search input { background: #2b3448; border: 1px solid #3a4560; color: #fff; border-radius: 20px; padding: 6px 14px; width: 220px; }
.topbar-search input::placeholder { color: #9aa4ba; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header .sub { color: var(--muted); margin-top: 4px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--red); }
.pos { color: var(--green); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mb0 { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: #f5f7fb; text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { color: var(--red); border-color: #f1c4c4; }
.btn-danger:hover { background: #fdf1f1; }
.btn-link { border: 0; background: none; color: var(--brand); padding: 4px 6px; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-group { display: inline-flex; }
.btn-group .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; z-index: 40; padding: 6px 0; display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--brand-light); text-decoration: none; }
form.inline { display: inline; }

/* Forms */
.field { margin-bottom: 14px; }
.field label, label.label { display: block; font-weight: 550; margin-bottom: 4px; font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], input[type=tel], input:not([type]), select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cdd3df; border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14,124,134,.25); border-color: var(--brand); }
textarea { min-height: 80px; resize: vertical; }
.field-error { color: var(--red); font-size: 12px; margin-top: 3px; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.checkbox input { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; } .form-grid .span-3 { grid-column: span 3; } .form-grid .span-4 { grid-column: span 4; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcff; }
table.data tr.total td { font-weight: 650; border-top: 2px solid var(--ink); background: #fafbfd; }
table.data tr.subtotal td { font-weight: 600; border-top: 1px solid #bfc6d4; }
table.data tr.section td { font-weight: 650; background: #f4f6fa; padding-top: 14px; }
table.data td.indent { padding-left: 28px; }
table.data th a { color: inherit; }
table.report td, table.report th { padding: 7px 12px; }

/* Badges & alerts */
.badge { display: inline-block; padding: 2px 9px; font-size: 12px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.badge-grey { background: #eceff4; color: #545c6e; }
.badge-green { background: #e1f5ea; color: #13703b; }
.badge-red { background: #fde8e8; color: #a32b2b; }
.badge-amber { background: #fdf3d8; color: #8a5d00; }
.badge-blue { background: #e5eefc; color: #1f4fa8; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #ecf8f1; border-color: #bfe6cf; color: #145c33; }
.alert-error { background: #fdf0f0; border-color: #f2c5c5; color: #8e2424; white-space: pre-wrap; }
.alert-warning { background: #fff8e6; border-color: #f4dc9c; color: #7a5400; }
.alert-info { background: #eef4fd; border-color: #c8daf7; color: #1d4280; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 550; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs .count { background: #eceff4; border-radius: 10px; padding: 0 7px; font-size: 11px; margin-left: 4px; }

/* Dashboard */
.stat { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13px; }
.bank-card .balances { display: flex; justify-content: space-between; margin: 12px 0; }
.chart { width: 100%; height: 180px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }

/* Line item editor */
.lines-table { width: 100%; border-collapse: collapse; }
.lines-table th { font-size: 12px; text-align: left; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.lines-table td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines-table input, .lines-table select, .lines-table textarea { padding: 6px 7px; font-size: 13px; }
.lines-table textarea { min-height: 34px; height: 34px; }
.lines-table .col-qty, .lines-table .col-price, .lines-table .col-disc { width: 90px; }
.lines-table .col-amount { width: 110px; text-align: right; padding-top: 10px; font-variant-numeric: tabular-nums; }
.lines-table .col-del { width: 30px; }
.lines-table .del-line { color: var(--muted); border: 0; background: none; cursor: pointer; font-size: 18px; padding-top: 4px; }
.totals { margin-left: auto; width: 320px; max-width: 100%; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 2px solid var(--ink); font-weight: 700; font-size: 17px; padding-top: 8px; margin-top: 4px; }

/* Document view */
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 20px; }
.doc-meta .k { font-size: 12px; color: var(--muted); }
.doc-meta .v { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Reconcile */
.recon-row { display: grid; grid-template-columns: 1fr 70px 1.2fr; gap: 16px; align-items: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.recon-row .stmt .amt { font-size: 18px; font-weight: 650; }
.recon-row .ok { align-self: center; text-align: center; }
.recon-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.recon-tabs button { border: 1px solid var(--line); background: #f7f8fb; padding: 4px 10px; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.recon-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.match-option { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; background: #fbfcfe; }
.match-option.best { border-color: #a6d9c0; background: #f2fbf6; }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: linear-gradient(160deg, #e6f4f5 0%, #f4f6fa 50%, #fdf1e7 100%); }
.auth-card { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(20,30,60,.12); padding: 32px; width: 420px; max-width: 100%; }
.auth-card .logo { color: var(--ink); justify-content: center; margin-bottom: 20px; font-size: 22px; }
.auth-card h1 { font-size: 21px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-card .btn-primary { width: 100%; justify-content: center; padding: 11px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; font-family: ui-monospace, Menlo, monospace; background: #f6f8fb; padding: 14px; border-radius: 6px; }
.qr { background: #fff; padding: 10px; display: inline-block; border: 1px solid var(--line); border-radius: 6px; }

/* Wizard */
.steps { display: flex; gap: 0; margin-bottom: 24px; counter-reset: step; flex-wrap: wrap; }
.steps li { list-style: none; flex: 1; min-width: 120px; padding: 10px 12px 10px 40px; position: relative; color: var(--muted); border-bottom: 3px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 8px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); text-align: center; line-height: 24px; font-size: 12px; font-weight: 700; }
.steps li.done { color: var(--ink); border-color: var(--brand); }
.steps li.done::before { background: var(--brand); color: #fff; content: "✓"; }
.steps li.current { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.steps li.current::before { background: var(--accent); color: #fff; }
.progress { height: 10px; background: #e7ebf2; border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), #22a6b3); transition: width .4s; }
.log { background: #111827; color: #d1d5db; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 12px; border-radius: 6px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.option-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; display: block; }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }

.pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.filters input, .filters select { width: auto; min-width: 140px; }

/* Public / print document */
.paper { background: #fff; max-width: 860px; margin: 0 auto; padding: 48px; box-shadow: var(--shadow); border-radius: 4px; }
.paper .doc-head { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.paper .doc-title { font-size: 30px; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }
.paper .logo-img { max-height: 70px; max-width: 220px; }
.paper table.lines { width: 100%; border-collapse: collapse; margin: 20px 0; }
.paper table.lines th { border-bottom: 2px solid var(--ink); text-align: left; padding: 8px 6px; font-size: 12px; text-transform: uppercase; }
.paper table.lines td { border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
.pay-banner { background: var(--brand-light); border: 1px solid #b6dfe2; padding: 16px 20px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* Marketing */
.mk-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 32px; background: #0a2f3c; color: #fff; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.mk-nav .logo { font-size: 22px; }
.mk-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mk-links a { color: #dbe9ee; font-weight: 550; }
.mk-links a.btn { color: #fff; }
.btn-lg { font-size: 17px; padding: 13px 26px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-accent { color: #fff; }
.hero { background: radial-gradient(circle at 80% 10%, rgba(95,212,182,.25), transparent 45%), linear-gradient(135deg, #0a2f3c 0%, #0b6e8a 60%, #14a37f 100%); color: #fff; padding: 90px 20px 120px; text-align: center; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 13px !important; font-weight: 700; color: #a9eedb; margin: 0 auto 14px !important; }
.hero h1 { font-size: 54px; line-height: 1.08; max-width: 860px; margin: 0 auto 20px; letter-spacing: -1.5px; font-weight: 800; }
.hero-hl { color: #f6b73c; }
.hero p { font-size: 19px; opacity: .92; max-width: 660px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-ticks { list-style: none; padding: 0; margin: 28px auto 0; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: #d6f3ea; }
.features { max-width: 1100px; margin: -64px auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 20px; position: relative; }
.feature { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 6px 24px rgba(20,30,60,.08); }
.feature .icon { font-size: 28px; margin-bottom: 10px; }
.mk-section { padding: 70px 20px; text-align: center; }
.mk-alt { background: #f3f8f9; }
.mk-h2 { font-size: 36px; letter-spacing: -.8px; margin: 0 0 10px; font-weight: 800; }
.mk-sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 36px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; text-align: left; }
.price-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px; position: relative; background: #fff; }
.price-card.popular { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(242,153,74,.18); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 10px; }
.price span { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cta-band { background: linear-gradient(135deg, #0b6e8a, #14a37f); color: #fff; text-align: center; padding: 64px 20px; }
.cta-band h2 { font-size: 34px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.6px; }
.cta-band p { opacity: .9; margin: 0 0 24px; font-size: 17px; }
.mk-footer { background: #0a2f3c; color: #a9c3cc; text-align: center; padding: 40px 20px; }
.mk-footer p { margin: 8px 0 0; }
@media (max-width: 800px) { .price-grid, .steps-3 { grid-template-columns: 1fr; } .hero h1 { font-size: 36px; } .mk-links a:not(.btn) { display: none; } .mk-nav { padding: 14px 16px; } }

.price-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1200px; }
.price-features { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.price-features li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.feature .h3 { font-size: 16px; margin: 0 0 8px; }
.page-hero { background: linear-gradient(135deg, #0a2f3c 0%, #0b6e8a 70%, #14a37f 100%); color: #fff; text-align: center; padding: 70px 20px 60px; }
.page-hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; max-width: 900px; margin: 0 auto 14px; font-weight: 800; }
.page-hero p { font-size: 18px; opacity: .92; max-width: 700px; margin: 0 auto 24px; }
.incl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 30px; max-width: 900px; margin: 0 auto; text-align: left; font-size: 15px; }
.faq { max-width: 820px; margin: 0 auto; text-align: left; }
.faq .mk-h2 { text-align: center; margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.feature-list { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; text-align: left; }
.feature-block { border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; }
.feature-block h2 { font-size: 20px; margin-bottom: 10px; color: var(--brand); }
.feature-block ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.mk-foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 16px 0 8px; }
.mk-foot-links a { color: #dbe9ee; }
@media (max-width: 1100px) { .price-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .price-grid-4, .incl-grid, .feature-list { grid-template-columns: 1fr; } .page-hero h1 { font-size: 30px; } }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3, .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid .span-3, .form-grid .span-4 { grid-column: span 2; }
  .topbar-search { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--ink); flex-direction: column; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .nav > .nav-item > a, .nav > .nav-item > button { padding: 10px 20px; }
  .menu { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 16px; }
  .menu a { color: #cfd6e4; padding: 6px 20px; }
  .menu .menu-label { color: #8a94aa; }
  .recon-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3, .form-grid .span-4 { grid-column: span 1; }
  .paper { padding: 22px; }
  .paper .doc-head { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .container { padding: 16px 12px 40px; }
}
@media print {
  .topbar, .no-print, .actions, .pay-banner form { display: none !important; }
  body { background: #fff; }
  .card, .paper { box-shadow: none; padding: 0; }
  .container { padding: 0; max-width: none; }
}

/* Platform admin */
.admin-bar { background: #1a1230; }
.admin-badge { background: #f6b73c; color: #1a1230; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 4px; }

.repeat-card { border-left: 4px solid var(--brand); }
