/* =========================================================
   Namma Billing showcase CMS - website styles
   Colours, fonts and corners come from the active theme (includes/themes.php)
   as CSS variables. The values below are only fallbacks.
   One signature element: pricing plans are printed receipts (.receipt).
   ========================================================= */
:root {
  --brand: #16224a; --brand-deep: #0d1530; --accent: #ff6b2c; --accent-press: #e2551a; --on-accent: #1a0c04;
  --bg: #f3f5f9; --surface: #fff; --tint: #e8ecf4; --ink: #111a35; --text: #39435a; --muted: #5d6780; --line: #dbe1ec;
  --paper: #fffdf8; --paper-ink: #1d1d1d;
  --display: "Instrument Sans", system-ui, sans-serif; --font: "Instrument Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r-lg: 16px; --r-sm: 10px; --r-btn: 10px;
  --shadow: 0 1px 2px rgba(17, 26, 53, .05), 0 14px 34px -18px rgba(17, 26, 53, .22);
  --shadow-lg: 0 34px 70px -34px rgba(17, 26, 53, .45);
  --container: 1240px; --sec: clamp(64px, 8vw, 112px); --ease: cubic-bezier(.16, 1, .3, 1); --header-h: 70px;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #9a3412; --warn-bg: #ffedd5; --bad: #b91c1c; --bad-bg: #fee2e2; --info: #1d4ed8; --info-bg: #dbeafe;
}
@media (prefers-color-scheme: dark) { html[data-dark="auto"] {
  --bg: #0d111b; --surface: #151b29; --tint: #111724; --ink: #eef2fb; --text: #bcc5d8; --muted: #8d97ad; --line: #273047;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -20px rgba(0,0,0,.8); --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.9);
  --ok-bg: #12351f; --ok: #86efac; --warn-bg: #3b2210; --warn: #fdba74; --bad-bg: #3d1515; --bad: #fca5a5; --info-bg: #142449; --info: #93c5fd;
} }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-press); }
a[href^="tel"] { white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
h3 { line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: var(--sec) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.bg-tint { background: var(--tint); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: var(--r-btn); font-weight: 700; }
.skip-link:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; height: 30px; width: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-family: var(--font); font-weight: 650; font-size: 15.5px; line-height: 1; white-space: nowrap; cursor: pointer; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn i { font-size: .95em; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); color: var(--on-accent); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-press); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); white-space: nowrap; line-height: 1.3; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.st-available, .st-paid, .st-answered, .st-ok { background: var(--ok-bg); color: var(--ok); }
.st-coming_soon, .st-pending, .st-customer_reply, .st-open { background: var(--warn-bg); color: var(--warn); }
.st-in_development, .st-on_hold { background: var(--info-bg); color: var(--info); }
.st-service { background: var(--tint); color: var(--ink); }
.st-closed, .st-cancelled { background: var(--tint); color: var(--muted); }
.st-failed, .st-refunded { background: var(--bad-bg); color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-active span { color: inherit; opacity: .75; }
.tag { display: inline-block; padding: 5px 11px; border-radius: 6px; background: var(--tint); color: var(--ink); font-weight: 600; font-size: 13.5px; margin: 0 6px 8px 0; }
a.tag:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(17, 26, 53, .5); }
.header-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--display); font-weight: 750; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 9px 13px; font-weight: 600; font-size: 15.5px; color: var(--text); border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--ink); background: var(--tint); }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 3px !important; }
.sub-toggle { background: none; border: 0; color: var(--muted); padding: 8px 8px 8px 2px; cursor: pointer; font-size: 11px; }
.submenu { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.submenu a:hover { background: var(--tint); color: var(--ink); }
.submenu.mega { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.mega img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--tint); }
.mega strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.mega small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.mega .mega-all { grid-column: 1 / -1; display: block; text-align: center; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 12px; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.icon-btn:hover { border-color: var(--ink); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 28px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* ---------- Page heading ---------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 20ch; margin-bottom: 12px; }
.page-head .lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; max-width: 20ch; }
.sec-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 17.5px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.hero-in { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-kicker { font-weight: 650; color: var(--muted); font-size: 15.5px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -.04em; max-width: 13ch; margin-bottom: 22px; }
.hero-sub { font-size: clamp(17.5px, 1.5vw, 19.5px); color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--ok); }
.hero-stage { position: relative; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 0 6px; }
.hero-caption strong { color: var(--ink); font-size: 16px; display: block; }
.hero-caption small { color: var(--muted); font-size: 14px; }

/* ---------- Device frames + screen slider ---------- */
.device { position: relative; margin: 0 auto; }
.device .screen { position: relative; overflow: hidden; background: #0b1020; }
.device.laptop { width: 100%; padding: 0 5.5% 0; }
.device.laptop .bezel { background: #1a1f2e; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 0; box-shadow: var(--shadow-lg); }
.device.laptop .screen { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; }
.device.laptop .base { height: 16px; margin: 0 -5.5%; background: linear-gradient(#d9dde6, #b8bfcc); border-radius: 0 0 22px 22px; position: relative; }
.device.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 14%; height: 6px; background: #a6aebd; border-radius: 0 0 8px 8px; }
.device.browser { width: 100%; background: var(--surface); border-radius: calc(var(--r-lg) - 2px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.device.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.device.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; } .device.browser .bar i:nth-child(2) { background: #fbbf24; } .device.browser .bar i:nth-child(3) { background: #4ade80; }
.device.browser .bar span { margin-left: 10px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: var(--surface); font-size: 12px; color: var(--muted); padding: 0 10px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.device.browser .screen { aspect-ratio: 16 / 10; }
.device.phone { width: min(300px, 78%); background: #111522; border-radius: 46px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3042; }
.device.phone .screen { aspect-ratio: 390 / 844; border-radius: 36px; }
.device.phone::after { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 30%; height: 22px; background: #111522; border-radius: 20px; z-index: 3; }
.device.tablet { width: 100%; background: #111522; border-radius: 30px; padding: 16px; box-shadow: var(--shadow-lg); }
.device.tablet .screen { aspect-ratio: 4 / 3; border-radius: 14px; }
.device.none .screen { aspect-ratio: 16 / 10; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.slides { display: flex; height: 100%; transition: transform .6s var(--ease); }
.slide { flex: 0 0 100%; height: 100%; margin: 0; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.slide .img-fallback { height: 100%; }
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } }
.slider-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.sl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.sl-btn:hover { border-color: var(--ink); }
.sl-dots { display: flex; gap: 7px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background-color .2s; }
.sl-dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.sl-play { font-size: 12px; }
.sl-caption { text-align: center; color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 10px; min-height: 1.6em; }
.thumbs { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--tint); opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs.is-phone button { width: 64px; aspect-ratio: 390 / 844; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(10, 14, 28, .72); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); position: relative; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.03); }
.p-img .badge { position: absolute; left: 14px; top: 14px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.p-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 13.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.p-body h3 { font-size: 23px; margin-bottom: 8px; }
.p-body h3 a { color: var(--ink); }
.p-body p { font-size: 15.5px; color: var(--muted); margin-bottom: 18px; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.p-price { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 15px; }
.p-price small { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; }
.filter-bar .chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-btn); padding: 0 6px 0 14px; min-height: 46px; }
.search-box input { border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); min-width: 0; width: 210px; outline: none; }
.search-box button { border: 0; background: var(--brand); color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.empty-state { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty-state i { font-size: 30px; margin-bottom: 14px; color: var(--muted); }
.empty-state h3 { font-size: 21px; }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }

/* ---------- Services, process, why ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.service i { font-size: 22px; color: var(--accent-press); margin-bottom: 18px; display: block; }
.service h3 { font-size: 21px; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; position: relative; }
.step::before { content: counter(st); font-family: var(--mono); font-weight: 600; font-size: 13px; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; margin-top: 2px; }
.why-list h3 { font-size: 19px; margin-bottom: 4px; }
.why-list p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Receipt pricing (the signature element) ---------- */
.receipts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px 22px; align-items: start; }
.receipt { --zz: 9px; position: relative; background: var(--paper); color: var(--paper-ink); padding: 34px 26px 36px; filter: drop-shadow(0 16px 22px rgba(17, 26, 53, .14)); font-size: 15px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x; }
.receipt-wrap { position: relative; }
.receipt .r-shop { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #555; margin-bottom: 14px; }
.receipt h3 { text-align: center; font-family: var(--display); color: var(--paper-ink); font-size: 22px; margin-bottom: 2px; }
.receipt .r-lic { text-align: center; font-family: var(--mono); font-size: 12.5px; color: #666; margin-bottom: 18px; }
.receipt .r-rule { border: 0; border-top: 2px dashed #c9c9c9; margin: 16px 0; }
.receipt ul { font-family: var(--mono); font-size: 13.5px; display: grid; gap: 9px; }
.receipt li { display: flex; gap: 8px; align-items: baseline; }
.receipt li::before { content: "+"; color: #888; flex-shrink: 0; }
.receipt .r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--mono); }
.receipt .r-total span { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.receipt .r-total b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--paper-ink); text-align: right; }
.receipt .r-total b small { display: block; font-size: 12px; font-weight: 400; color: #666; letter-spacing: 0; }
.receipt .r-old { text-decoration: line-through; color: #888; font-family: var(--mono); font-size: 14px; text-align: right; }
.receipt .r-ask { font-size: 19px !important; }
.receipt .btn { width: 100%; margin-top: 20px; }
.receipt .btn-ghost { background: transparent; border-color: #bbb; color: var(--paper-ink); }
.receipt .r-barcode { height: 34px; margin: 22px 18% 0; background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 7px, transparent 7px 9px, #222 9px 10px, transparent 10px 13px); opacity: .85; }
.receipt .r-no { text-align: center; font-family: var(--mono); font-size: 11px; color: #777; margin-top: 6px; }
.stamp { position: absolute; z-index: 2; top: 18px; right: -6px; rotate: 8deg; border: 2.5px solid var(--accent-press); color: var(--accent-press); font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--paper) 85%, transparent); }
.receipt-wrap.is-featured .receipt { --paper: #fffaf0; }
.price-group { margin-bottom: clamp(48px, 6vw, 80px); }
.price-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-group-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 4px; }
.price-group-head p { margin: 0; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-note { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 26px; }
.pay-note i { color: var(--ok); }

/* ---------- Project detail ---------- */
.pd-head { padding: clamp(28px, 4vw, 52px) 0 0; }
.pd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-head h1 { font-size: clamp(36px, 4.8vw, 60px); margin-bottom: 10px; max-width: 18ch; }
.pd-tagline { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 54ch; margin-bottom: 26px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-login { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.demo-login code { background: var(--tint); color: var(--ink); padding: 3px 8px; border-radius: 6px; }
.copy-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; font-size: 13px; }
.copy-btn:hover { color: var(--ink); }
.pd-showcase { padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }
.pd-showcase .device.laptop, .pd-showcase .device.browser, .pd-showcase .device.tablet, .pd-showcase .device.none { max-width: 1060px; }
.pd-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.pd-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-nav ul::-webkit-scrollbar { display: none; }
.pd-nav a { display: block; padding: 14px 14px; font-weight: 650; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.pd-nav a:hover, .pd-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pd-main > section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.pd-main > section:first-child { padding-top: 40px; }
.pd-main > section:last-child { border-bottom: 0; }
.pd-main h2 { font-size: clamp(26px, 2.6vw, 34px); }
.pd-side { position: sticky; top: calc(var(--header-h) + 72px); padding-top: 40px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side-box + .side-box { margin-top: 16px; }
.side-box h2 { font-size: 18px; margin-bottom: 14px; }
.facts { display: grid; gap: 0; margin: 0 0 18px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }
.side-price { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.side-box .btn { width: 100%; margin-top: 10px; }
.check-list { display: grid; gap: 12px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; color: var(--ink); font-size: 16px; }
.check-list i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 10px; margin-top: 2px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spec-grid h3 { font-size: 18px; }
.changelog { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; display: grid; gap: 8px; }
.links-list { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--info); font-weight: 550; font-size: 15.5px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice i { margin-top: 4px; }
.notice p { margin: 0; }

/* ---------- Prose (descriptions, docs, blog, pages) ---------- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--text); max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(23px, 2.4vw, 28px); margin: 1.7em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-press); }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose img { border-radius: var(--r-sm); margin: 1.5em 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); color: var(--ink); }
.prose code { background: var(--tint); color: var(--ink); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--brand-deep); color: #e5e9f5; padding: 16px 18px; border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }

/* ---------- Docs ---------- */
.docs-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.doc-card h2 { font-size: 22px; margin-bottom: 4px; }
.doc-card ol { margin: 14px 0 18px; display: grid; gap: 4px; counter-reset: d; }
.doc-card ol a { display: flex; gap: 10px; padding: 6px 0; color: var(--text); font-weight: 550; }
.doc-card ol a::before { counter-increment: d; content: counter(d) "."; font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 3px; min-width: 20px; }
.doc-card ol a:hover { color: var(--accent-press); }
.doc-card .ext { margin-top: auto; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-bottom: 20px; }
.docs-side h2 { font-size: 13.5px; color: var(--muted); font-family: var(--font); letter-spacing: 0; margin: 18px 0 8px; }
.docs-side h2:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text); border-left: 2px solid transparent; }
.docs-side a:hover { background: var(--tint); color: var(--ink); }
.docs-side a[aria-current="page"] { background: var(--surface); color: var(--ink); border-left-color: var(--accent); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.docs-pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.docs-pager a small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.docs-pager a strong { color: var(--ink); }
.docs-pager .next { text-align: right; grid-column: 2; }
.doc-updated { color: var(--muted); font-size: 14px; margin-top: 30px; }
.doc-select { display: none; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form-card > h2 { font-size: 24px; margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.req { color: var(--bad); }
.field small, .field-help { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.form input[type=file] { padding: 9px; cursor: pointer; }
.form input[type=file]::file-selector-button { font: inherit; font-weight: 650; font-size: 14px; border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; background: var(--tint); color: var(--ink); cursor: pointer; }
.form input:user-invalid, .form textarea:user-invalid, .form select:user-invalid { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 550; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.form-msg { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.form-msg i { margin-top: 4px; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.err { background: var(--bad-bg); color: var(--bad); }
.form-msg.info { background: var(--info-bg); color: var(--info); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.contact-list h2 { font-family: var(--font); font-size: 13.5px; color: var(--muted); margin: 0 0 2px; font-weight: 650; letter-spacing: 0; }
.contact-list p { margin: 0; font-weight: 600; color: var(--ink); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; margin-top: clamp(40px, 6vw, 64px); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Support tickets ---------- */
.support-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.mini-card + .mini-card { margin-top: 16px; }
.mini-card h2 { font-size: 20px; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 15px; }
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ticket-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 6px; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14.5px; font-weight: 550; }
.thread { display: grid; gap: 16px; margin-bottom: 28px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; max-width: 88%; }
.msg.staff { margin-left: auto; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.msg-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; margin-bottom: 10px; }
.msg-who strong { color: var(--ink); }
.msg-who span { color: var(--muted); }
.msg-body { white-space: pre-wrap; word-wrap: break-word; color: var(--text); font-size: 16px; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; background: var(--tint); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 28px; color: var(--line); cursor: pointer; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #f5a524; }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); }

/* ---------- Account + tables ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 15px; margin-top: 18px; }
.acc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.acc-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; font-weight: 600; color: var(--text); }
.acc-nav a:hover { background: var(--tint); color: var(--ink); }
.acc-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.acc-nav i { width: 18px; text-align: center; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 13px; color: var(--muted); font-weight: 650; background: var(--tint); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.num { font-family: var(--mono); white-space: nowrap; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 15px; }
.kv dd { color: var(--ink); font-weight: 600; }
.licence-key { font-family: var(--mono); font-size: 18px; letter-spacing: .04em; background: var(--tint); padding: 12px 16px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 12px; color: var(--ink); word-break: break-all; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.dash-card b { display: block; font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.1; }
.dash-card span { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.h-sm { font-size: 22px; margin: 32px 0 16px; }
.h-sm:first-child { margin-top: 0; }

/* order / invoice */
.invoice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); }
.inv-head img { height: 40px; width: auto; }
.inv-lines { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.inv-lines th, .inv-lines td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.inv-lines td:last-child, .inv-lines th:last-child { text-align: right; font-family: var(--mono); }
.inv-total { display: flex; justify-content: flex-end; gap: 30px; font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--mono); }
.pay-box { text-align: center; max-width: 520px; margin: 0 auto; }
.pay-box .amount { font-family: var(--mono); font-size: 40px; font-weight: 600; color: var(--ink); margin: 6px 0 18px; }

/* ---------- Gallery, videos, lightbox ---------- */
.photo-grid { columns: 3 320px; column-gap: 16px; }
.photo-grid a { display: block; margin-bottom: 16px; border-radius: var(--r-sm); overflow: hidden; break-inside: avoid; background: var(--tint); border: 1px solid var(--line); position: relative; }
.photo-grid img { width: 100%; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.02); }
.photo-grid figcaption, .photo-grid .cap { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.video { margin: 0; }
.video-thumb, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: var(--brand-deep); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s; }
.video-thumb:hover img { opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); display: grid; place-items: center; font-size: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.play i { margin-left: 3px; }
.video figcaption { margin-top: 12px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.video figcaption small { display: block; color: var(--muted); font-weight: 550; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6, 9, 20, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lb.open { display: flex; animation: fade .25s ease; }
.lb img { max-height: 100%; max-width: 100%; border-radius: 10px; object-fit: contain; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lb button:hover { background: var(--accent); color: var(--on-accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: #c9d3e4; font-size: 14px; font-weight: 600; }
.lb-lock { overflow: hidden; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.mv h3 { font-size: 21px; }
.mv p { margin: 0; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { margin: 0; }
.member .m-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); margin-bottom: 12px; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member figcaption { font-family: var(--display); font-weight: 650; font-size: 19px; color: var(--ink); }
.member figcaption span { display: block; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; color: var(--ink); font-size: 16.5px; }
.review figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: 15.5px; }
.stars { color: #f5a524; font-size: 13px; display: flex; gap: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap .sec-head { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-wrap .sec-head p { margin-top: 14px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font); font-size: 17.5px; font-weight: 650; letter-spacing: 0; margin: 0; }
.faq summary i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--ink); transition: transform .3s var(--ease), background-color .2s; }
.faq[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 var(--sec); }
.cta-in { background: var(--brand); border-radius: calc(var(--r-lg) + 6px); padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 28px 40px; position: relative; overflow: hidden; }
.cta-in::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 160px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 3px, transparent 3px 7px, rgba(255,255,255,.08) 7px 9px, transparent 9px 14px); rotate: -8deg; pointer-events: none; }
.cta-in h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); max-width: 22ch; }
.cta-in p { color: color-mix(in srgb, #fff 72%, var(--brand)); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-in .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-in .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #a3aec6; padding: 72px 0 0; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.f-logo img { height: 44px; width: auto; margin-bottom: 20px; }
.f-logo .logo-text { color: #fff; }
.f-about p { max-width: 38ch; }
.f-title { font-family: var(--font); font-size: 15px; color: #fff; font-weight: 650; margin-bottom: 16px; letter-spacing: 0; }
.f-links li { margin-bottom: 9px; }
.site-footer a { color: #d6dcea; }
.site-footer a:hover { color: var(--accent); }
.f-contact p { margin-bottom: 12px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 26px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mobile-bar { display: none; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.03); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: 15.5px; }
.post-meta { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.post-meta.big { font-size: 15px; margin-bottom: 24px; }
.label { display: inline-block; align-self: flex-start; background: var(--label, var(--brand)); color: #fff; font-size: 12.5px; font-weight: 650; padding: 4px 11px; border-radius: 6px; margin-bottom: 12px; }
.label:hover { color: #fff; filter: brightness(1.1); }
.label-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-cloud { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 650; color: var(--ink); }
.pager a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-wrap { padding-top: clamp(32px, 4vw, 52px); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: clamp(32px, 5vw, 72px); justify-content: space-between; align-items: start; }
.post-hero { margin: 0 0 34px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags > span, .share > span { font-weight: 650; color: var(--ink); margin-right: 8px; margin-bottom: 8px; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.share a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); }
.share a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.post-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { background: var(--brand); color: color-mix(in srgb, #fff 75%, var(--brand)); border-radius: var(--r-lg); padding: 26px; }
.side-card h2 { color: #fff; font-size: 22px; }

/* ---------- misc ---------- */
.img-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px; background: var(--tint); color: var(--muted); font-size: 30px; }
.nf { text-align: center; max-width: 560px; margin: 0 auto; }
.nf-num { font-family: var(--mono); font-size: clamp(80px, 14vw, 140px); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.04em; }
.nf .btn-row { justify-content: center; margin-top: 26px; }
.copy-ok { color: var(--ok) !important; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-stage { animation: rise 1s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .main-nav > ul > li > a { padding: 9px 10px; font-size: 15px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .header-actions .btn, .header-actions .hide-m { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 12px 24px 32px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; margin: 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .main-nav > ul > li > a { padding: 15px 4px; font-size: 19px; font-weight: 650; color: var(--ink); background: none !important; border-radius: 0; flex: 1; }
  .sub-toggle { width: 48px; height: 48px; font-size: 14px; padding: 0; }
  .has-sub.open .sub-toggle i { transform: rotate(180deg); }
  .submenu, .submenu.mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; width: 100%; background: transparent; grid-template-columns: 1fr; }
  .has-sub.open .submenu { display: grid; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.open:hover .submenu, .has-sub.open:focus-within .submenu { display: grid; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: 26px; }
  .hero-in, .why, .faq-wrap, .two-col, .two-col.even, .support-grid, .about-split, .pd-layout, .docs-layout, .acc-layout, .post-layout { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .faq-wrap .sec-head, .pd-side, .aside-sticky, .post-side { position: static; }
  .docs-side { position: static; max-height: none; display: none; }
  .doc-select { display: block; margin-bottom: 24px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:not(:nth-child(3n+1)) { padding: 26px 24px 28px 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr 1fr; }
  .video-grid, .post-grid, .reviews { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .acc-nav { display: flex; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .acc-nav a { white-space: nowrap; }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .container { padding: 0 18px; }
  .logo img { height: 38px; }
  .p-grid { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 20px 12px 20px 0; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 18px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services, .steps, .form-row, .form-row.three, .check-list.cols-2, .spec-grid, .mv, .video-grid, .post-grid, .reviews, .dash-cards { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 22px 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .team { grid-template-columns: 1fr 1fr; gap: 14px; }
  .filter-bar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
  .search-box { width: 100%; } .search-box input { width: 100%; }
  .msg { max-width: 100%; }
  .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; }
  .docs-pager { grid-template-columns: 1fr; } .docs-pager .next { grid-column: 1; }
  .lb { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .thumbs button { width: 88px; }
  .device.laptop .bezel { border-radius: 12px 12px 0 0; }
  .device.laptop .base { height: 10px; }
  .pd-actions .btn { flex: 1 1 auto; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r-btn); font-weight: 650; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
  .mobile-bar .mb-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}
@media print {
  .site-header, .mobile-bar, .cta-band, .site-footer, .no-print, .page-head .crumbs { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; padding: 0; }
}
.bg-tint + .cta-band, .page-head + .cta-band { padding-top: var(--sec); }
.why .sec-head { display: block; }
.why .sec-head p { margin-top: 16px; }
.why .sec-head .btn-row { margin-top: 24px; }
.receipts { align-items: stretch; }
.receipt-wrap { display: flex; }
.receipt { flex: 1; display: flex; flex-direction: column; }
.receipt ul { margin-bottom: 4px; }
.receipt .r-push { margin-top: auto; padding-top: 0; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 22px; }
.field-err { color: var(--bad) !important; font-weight: 600 !important; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--bad) !important; }
.receipt ul { margin-bottom: 16px; }
.licence-key { flex-wrap: wrap; }
.licence-key .copy-btn, .copy-btn { white-space: nowrap; }
.container.narrow { max-width: var(--container); }
.container.narrow > * { max-width: 880px; }
.doc-select.form { display: none; }
@media (max-width: 1100px) { .doc-select.form { display: block; } }
