/* Joryka landing page. Tokens mirror the Figma variables (Primitives → Semantic). */

:root {
  --sec-pad: 48px;
  --head-gap: 48px;
  --navy: #11102D;
  --navy-800: #1C1946;
  --navy-700: #2A2660;
  --navy-600: #4A4668;
  --navy-500: #6B6785;
  --navy-400: #8E8AAA;
  --navy-300: #B8B5D6;
  --navy-200: #E4E1F0;
  --navy-100: #F1F0F7;
  --paper: #F6F5FC;
  --app-bg: #F3F3F5;
  --white: #FFFFFF;
  --blue: #2E4AFF;
  --blue-700: #2238D6;
  --blue-50: #EEF1FF;
  --blue-on-navy: #7D8FFF;
  --green-on-navy: #0AEB95;
  --green-50: #E7FBF3;
  --green-200: #B7EBD3;
  --green-700: #008236;
  --amber-50: #FFFBEB;
  --amber-200: #FEE685;
  --amber-700: #BB4D00;
  --red: #D4183D;
  --red-50: #FEF2F2;
  --purple-50: #FAF5FF;
  --purple-600: #9810FA;
  --stock-ok: #00C950;
  --stock-low: #F9B80A;
  --orange: #FF6900;
  --green-800: #006B2C;
  --soft-hover: #D8D4EA;

  --ink: var(--navy);
  --muted: var(--navy-500);
  --line: var(--navy-200);

  --r-card: 16px;
  --r-win: 20px;
  --r-form: 24px;
  --r-ctl: 12px;
  --r-tile: 14px;
  --r-pill: 999px;
  --shadow-win: 0 32px 64px -24px rgba(17, 16, 45, 0.22), 0 8px 20px -8px rgba(17, 16, 45, 0.08);
  --shadow-card: 0 1px 3px rgba(17, 16, 45, 0.06), 0 1px 2px rgba(17, 16, 45, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 56px; }
.neg { color: var(--red); }
.pos { color: var(--green-700); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--blue); color: var(--white); font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease); }
.btn:hover { background: var(--blue-700); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { background: var(--navy-100); color: var(--navy-500); cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-soft { background: var(--navy-200); color: var(--ink); }
.btn-soft:hover { background: var(--soft-hover); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--navy-100); }
.btn .wa { color: var(--green-700); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 36px; margin: 0 auto; }
.nav a { font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.nav a:hover { color: var(--blue); }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.bar-actions .btn-sm:not(.btn-ghost) { margin-left: 12px; }
/* small-screen menu: hamburger in the bar, links + WhatsApp + Login in a panel under it */
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--navy-100); }
.nav-toggle svg { grid-area: 1 / 1; width: 24px; height: 24px; transition: opacity 160ms ease, transform 200ms var(--ease); }
.nav-toggle svg + svg, .nav-toggle[aria-expanded="true"] svg:first-child { opacity: 0; transform: rotate(-90deg); }
.nav-toggle[aria-expanded="true"] svg + svg { opacity: 1; transform: none; }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 24px 40px -24px rgba(17, 16, 45, 0.28); animation: menu-in 220ms var(--ease) both; }
.site-menu[hidden] { display: none; }
.site-menu nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.site-menu nav > a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; text-decoration: none; }
.site-menu nav > a:hover { color: var(--blue); }
.menu-actions { display: flex; margin-top: 16px; }
.menu-actions .btn { flex: 1; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* hero */
.hero { position: relative; padding: 80px 0 40px; background: linear-gradient(180deg, var(--paper), var(--white) 70%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 1180px; font-size: clamp(38px, 5vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 .hl { color: var(--blue); }
.tagline { margin-top: 20px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy); }
.tagline + .lead { margin-top: 16px; }
.lead { max-width: 600px; margin-top: 28px; font-size: 20px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }


/* hero playground: six feature tiles orbit a working copy of the Joryka app */
.play { --sw: clamp(680px, calc(100% - 476px), 780px); position: relative; height: 680px; margin-top: 72px; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire path { fill: none; stroke: var(--wc, var(--blue)); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; animation: march 1.2s linear infinite; transition: stroke 240ms ease; }
@keyframes march { to { stroke-dashoffset: -18; } }
.tile { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.tile-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: var(--white); box-shadow: 0 10px 24px -10px var(--c); animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
.tile-ico svg { width: 26px; height: 26px; }
.tile-label { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-card); transition: border-color 200ms ease, color 200ms ease; }
.tile:hover .tile-ico { transform: translateY(-3px) scale(1.04); }
.tile:hover .tile-label { border-color: var(--c); }
.tile[aria-selected="true"] .tile-ico { animation: none; transform: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 16%, var(--white)), 0 14px 28px -12px var(--c); }
.tile[aria-selected="true"] .tile-label { border-color: color-mix(in srgb, var(--c) 55%, var(--white)); background: color-mix(in srgb, var(--c) 7%, var(--white)); }
.tile:focus-visible { outline: 0; }
.tile:focus-visible .tile-label { outline: 3px solid var(--blue); outline-offset: 2px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
/* tiles hang off the window's edges; --f is each tile's share of the free space beside the window */
.tile.side-l { flex-direction: row-reverse; right: calc(50% + var(--sw) / 2 + (100% - var(--sw)) / 2 * var(--f)); }
.tile:not(.side-l) { left: calc(50% + var(--sw) / 2 + (100% - var(--sw)) / 2 * var(--f)); }
.tile[data-f="pos"] { top: 40px; --f: 0.22; --d: 0s; }
.tile[data-f="stock"] { top: 252px; --f: 0.33; --d: -1.6s; }
.tile[data-f="credit"] { top: 464px; --f: 0.08; --d: -3.2s; }
.tile[data-f="docs"] { top: 92px; --f: 0.1; --d: -0.8s; }
.tile[data-f="reports"] { top: 304px; --f: 0.29; --d: -2.4s; }
.tile[data-f="ai"] { top: 516px; --f: 0.33; --d: -4s; }
.subnav { display: none; }

/* the app window: same sidebar, colours and layout as the shipped app */
.stage { position: absolute; left: 50%; top: 0; z-index: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); width: var(--sw); height: 620px; transform: translateX(-50%); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-win); background: var(--app-bg); box-shadow: var(--shadow-win); font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.stage { --z: 0.86; }
.stage button { font: inherit; }
/* the app is drawn at a reduced scale so a full screen of it fits the smaller window */
.app, .layer > * { zoom: var(--z); }
/* scroll bars stay out of sight; a thin navy thumb shows while the pointer is over a scrolling area */
.stage { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.stage :is(.app-body, .pos-main, .lines, .sug-row, .m-b, .sheet-b, .table, .rail-list):hover { scrollbar-color: var(--navy-300) transparent; }
.stage ::-webkit-scrollbar { width: 6px; height: 6px; }
.stage ::-webkit-scrollbar-thumb { border-radius: var(--r-pill); background: transparent; }
.stage :hover::-webkit-scrollbar-thumb { background: var(--navy-300); }
.menu-btn, .app-x, .drawer-h, .try-app, .rl { display: none; }
.rail-menu { display: contents; }
.rail { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 12px; background: var(--navy); }
.rail-logo { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.rail-logo img { width: 28px; height: 28px; }
.rail-logo .rail-word { display: none; width: auto; height: 18px; }
.rail-list { display: flex; flex: 1; flex-direction: column; gap: 4px; width: 100%; }
.rail-list li { position: relative; }
.rail-list button { position: relative; display: grid; place-items: center; width: 100%; height: 32px; padding: 0; border: 0; background: transparent; color: var(--navy-300); cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.rail-list button svg { width: 18px; height: 18px; }
.rail-list button:hover { color: var(--white); }
.rail-list button[aria-current="page"] { background: #1B2068; color: var(--green-on-navy); }
.rail-list button[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 4px 4px 0; background: var(--green-on-navy); }
.rail-list button:focus-visible { outline: 2px solid var(--green-on-navy); outline-offset: -2px; border-radius: 0; }
.rail-list button::after { content: attr(data-tip); position: absolute; left: 58px; top: 50%; z-index: 4; padding: 5px 10px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-4px, -50%); transition: opacity 140ms ease, transform 140ms ease; }
.rail-list button:hover::after, .rail-list button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.net { display: flex; align-items: center; justify-content: center; gap: 6px; width: 46px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: #172939; color: var(--green-on-navy); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.net svg { width: 17px; height: 17px; }
.net .net-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic-off { display: none; }
.play[data-net="offline"] .net { background: #3A1630; color: #FF8FA3; }
.play[data-net="offline"] .ic-on { display: none; }
.play[data-net="offline"] .ic-off { display: block; }
.app { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.banner:empty { display: none; }
.bn { display: flex; align-items: flex-start; gap: 10px; margin: 12px 14px 0; padding: 9px 12px; border: 1px solid; border-radius: 10px; font-size: 13px; }
.bn svg { width: 16px; height: 16px; margin-top: 2px; }
.bn span { display: flex; flex: 1; flex-direction: column; }
.bn b { font-size: 14px; font-weight: 600; }
.bn em { font-weight: 600; white-space: nowrap; }
.bn.off { border-color: #FFC9C9; background: var(--red-50); color: var(--red); }
.bn.sync { border-color: #BEDBFF; background: var(--blue-50); color: var(--blue-700); }
.bn.sync svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; scrollbar-width: thin; }
.app-body:focus { outline: 0; }
.app-body.enter > * { animation: pv-in 320ms var(--ease) both; }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.callout { position: absolute; left: calc(50% - var(--sw) / 2 - 8px); top: 640px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border: 1px solid var(--green-200); border-radius: var(--r-pill); background: var(--white); color: var(--green-700); font-size: 14px; text-align: left; cursor: pointer; }
.callout::before { content: ""; position: absolute; left: 44px; top: -6px; width: 10px; height: 10px; border-top: 1px solid var(--green-200); border-left: 1px solid var(--green-200); background: var(--white); transform: rotate(45deg); }
.callout svg { width: 16px; height: 16px; }
.callout b { font-weight: 600; }
.callout span span { color: var(--ink); }
.play[data-net="offline"] .callout, .play[data-net="offline"] .callout::before { border-color: #FFC9C9; color: var(--red); }

/* inside the window: page parts */
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ph-t { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ph-s { font-size: 13px; color: var(--muted); }
.ph-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease); }
.ab svg { width: 15px; height: 15px; }
.ab:active { transform: scale(0.97); }
.ab[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.ab.primary { background: var(--blue); color: var(--white); }
.ab.primary:hover { background: var(--blue-700); }
.ab.outline { border-color: var(--line); }
.ab.outline:hover { border-color: var(--navy-300); }
.ab.dark { background: #2B3446; color: var(--white); }
.ab.navy { background: #1C1580; color: var(--white); }
.ab.soft { background: var(--blue-50); color: var(--blue-700); }
.ab.pay { background: #00A63E; color: var(--white); }
.ab.pay:hover { background: var(--green-700); }
.ab.wa { background: #158A2E; color: var(--white); }
.ab.sm { height: 28px; padding: 0 10px; }
.ab.block { width: 100%; margin-top: 8px; }
.ab .count, .count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18); font-size: 13px; font-style: normal; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; line-height: 1.45; white-space: nowrap; vertical-align: middle; }
.badge svg { width: 13px; height: 13px; }
.badge.ok { background: var(--green-50); color: var(--green-700); }
.badge.low { background: var(--amber-50); color: var(--amber-700); }
.badge.out { background: var(--red-50); color: var(--red); }
.badge.info { background: var(--blue-50); color: var(--blue-700); }
.badge.violet { background: #EEF0FF; color: #4338CA; }
.badge.muted { background: var(--navy-100); color: var(--navy-600); }
.kpis { display: grid; gap: 14px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--white); }
.kpi-l { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi-i { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; color: var(--white); }
.kpi-i svg { width: 16px; height: 16px; }
.t-blue, .t-ink { background: #2B7FFF; } .t-green { background: #00A63E; } .t-amber { background: #FE9A00; } .t-red { background: #FB2C36; }
.t-violet { background: #AD46FF; } .t-cyan { background: #00B8DB; } .t-orange { background: #FF6900; } .t-navy { background: var(--navy); }
.kpi-v { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.kpi-s { font-size: 13px; color: var(--muted); }
.kpi-s.line { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--navy-100); }
.kpi .chips { margin: 2px 0; }
.c-ink { color: var(--ink); } .c-green { color: #008236; } .c-amber { color: #BB4D00; } .c-red { color: #C70036; }
.c-violet { color: #8200DB; } .c-cyan { color: #007595; } .c-orange { color: #CA3500; } .c-blue { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--navy-600); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chips button:hover { border-color: var(--navy-300); }
.chips button[aria-checked="true"] { border-color: var(--blue); background: var(--blue); color: var(--white); }
.search { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 180px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy-500); }
.search svg { width: 15px; height: 15px; }
.search input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: 400 14px var(--font); }
.search input:focus { outline: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 74, 255, 0.15); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.toolbar > .chips { margin-left: auto; }
.cur-l { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.cur-l svg { width: 14px; height: 14px; }
.note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.note svg { width: 14px; height: 14px; }
.alert { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert svg { width: 16px; height: 16px; }
.alert.warn { border-color: var(--amber-200); background: var(--amber-50); color: var(--amber-700); }
.panel { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--white); }
.panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.panel-h small { font-size: 13px; font-weight: 400; color: var(--muted); }
.tag { margin-left: auto; padding: 2px 9px; border-radius: var(--r-pill); background: var(--navy-100); font-size: 13px; font-weight: 500; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 28px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.empty svg { width: 22px; height: 22px; margin-bottom: 6px; color: var(--navy-300); }
.empty b { color: var(--ink); font-size: 14px; font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.pos { color: var(--green-700); }
.link, .link-red { padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-red { color: var(--red); }
.ib { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--navy-500); cursor: pointer; transition: background-color 140ms ease; }
.ib svg { width: 16px; height: 16px; }
.ib:hover { background: var(--navy-100); }
.ib.ok { color: var(--green-700); } .ib.info { color: var(--blue); } .ib.out { color: var(--red); }
.sel { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--app-bg); color: var(--navy-500); }
.sel > svg { width: 15px; height: 15px; }
.sel select { flex: 1; min-width: 0; height: 100%; padding-right: 20px; border: 0; background: transparent; color: var(--ink); font: 500 14px var(--font); appearance: none; cursor: pointer; }
.sel .chev { position: absolute; right: 10px; pointer-events: none; }
.toolbar .sel { min-width: 200px; background: var(--white); border: 1px solid var(--line); }

/* tables */
.table { overflow-x: auto; border-radius: 14px; background: var(--white); }
.panel .table, .sheet .table { border-radius: 0; }
.stage table, .sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stage th, .sheet th { padding: 9px 10px; background: #FAFAFC; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stage td, .sheet td { padding: 9px 10px; border-top: 1px solid var(--navy-100); vertical-align: middle; }
.stage td small { display: block; font-size: 13px; color: var(--muted); }
.stage .r, .sheet .r { text-align: right; }
.stage tr.new td { background: var(--blue-50); }
.prod { display: flex; align-items: center; gap: 10px; }
.prod > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.prod b { white-space: nowrap; }
.pbox { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--navy-100); color: var(--navy-500); }
.pbox svg { width: 15px; height: 15px; }
.acts { display: inline-flex; flex-wrap: nowrap; gap: 0; }
.acts .ib { width: 24px; height: 26px; }
.acts .ib svg { width: 15px; height: 15px; }
.exp { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 1px 7px; border-radius: 8px; background: var(--amber-50); color: var(--amber-700); font-size: 13px; font-weight: 600; }
.exp svg { width: 12px; height: 12px; }
.type { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.type svg { width: 13px; height: 13px; }
.type.sale { background: var(--red-50); color: var(--red); }
.type.pay { background: var(--green-50); color: var(--green-700); }
.type.pay svg { transform: scaleY(-1); }

.doc-r .ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.doc-r .ref .badge { margin: 0; }
.stage td.r, .stage td .badge, .stage td.mono, .sheet td.r { white-space: nowrap; }
.stage td.r small { white-space: nowrap; }
.stage td b { font-weight: 600; }
.stage table { font-size: 13px; }
.stage th, .stage td { padding-left: 8px; padding-right: 8px; }
.acts .ib { width: 21px; }
.area * { stroke: none; }
.area .area-line { stroke: var(--blue); }
.area circle { stroke: var(--blue); }
.m-b .link { justify-self: start; }

/* point of sale */
.app-body[data-pg="pos"] { padding: 0; overflow: hidden; }
.till { display: grid; grid-template-columns: minmax(0, 1fr) 236px; height: 100%; }
.pos-main { overflow-y: auto; min-height: 0; background: #E8E8EA; scrollbar-width: thin; }
.pos-top { display: grid; gap: 12px; padding: 14px 16px; background: var(--white); }
.pos-top .row { display: flex; gap: 8px; }
.pos-top .search { border-color: transparent; background: var(--app-bg); }
.pos-top .chips button { border-color: transparent; background: #F0F0F2; }
.pos-top .chips button[aria-checked="true"] { background: var(--blue); }
.whs { display: flex; flex-wrap: wrap; gap: 6px; }
.whs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 11px; border: 0; border-radius: var(--r-pill); background: #F0F0F2; color: var(--navy-600); font-size: 13px; font-weight: 600; cursor: pointer; }
.whs button svg { width: 14px; height: 14px; }
.whs .count { background: var(--white); color: var(--navy-600); }
.whs [aria-checked="true"] { background: var(--blue); color: var(--white); }
.whs [aria-checked="true"] .count { background: rgba(255, 255, 255, 0.22); color: var(--white); }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.catalog .none { grid-column: 1 / -1; border-radius: 12px; background: var(--white); }
.pcard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 3px solid var(--stock-ok); border-radius: 12px; background: var(--white); }
.pcard.lv-low { border-top-color: var(--stock-low); }
.pcard.lv-out { border-top-color: var(--red); }
.pcard.dim { opacity: 0.6; }
.pc-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pc-sku { font-size: 13px; color: var(--muted); }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pc-q b { margin-left: 2px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700); font-weight: 600; }
.lv-low .pc-q b { background: var(--amber-50); color: var(--amber-700); }
.lv-out .pc-q b { background: var(--red-50); color: var(--red); }
.pc-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.pc-prices button { display: grid; gap: 2px; padding: 8px 8px 6px; border: 1px solid transparent; border-radius: 10px; background: #F0F6FF; color: #1F3FD1; text-align: center; cursor: pointer; transition: border-color 160ms ease, transform 160ms var(--ease); }
.pc-prices button b { font-size: 16px; font-weight: 700; }
.pc-prices button span { display: flex; justify-content: space-between; font-size: 13px; }
.pc-prices button i { font-style: normal; }
.pc-prices .ctn { background: var(--purple-50); color: #8200DB; }
.pc-prices button:hover { border-color: currentColor; }
.pc-prices button:active { transform: scale(0.96); }
.pc-prices button[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; border-color: transparent; }
.cart { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--white); }
.cart-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 16px; font-weight: 600; }
.cart-h svg { width: 18px; height: 18px; }
.cart-h .cnt { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; }
.cart-h .link-red { margin-left: auto; }
.cart-cust { padding: 0 16px 12px; border-bottom: 1px solid var(--navy-100); }
.cart-tog { display: none; }
.nw { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.grow small .nw + .nw::before { content: "·"; margin-right: 4px; }
.outst { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--amber-700); }
.lines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px; scrollbar-width: thin; }
.lines li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--navy-100); animation: line-in 300ms var(--ease); }
.lines li:last-child { border-bottom: 0; }
.ln-n { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ln-n .ib { width: 24px; height: 24px; margin: -3px -4px 0 0; color: var(--navy-400); }
.ln-s { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.kind { padding: 0 7px; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 600; }
.ln-r { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: var(--app-bg); color: var(--ink); cursor: pointer; }
.qty button svg { width: 13px; height: 13px; }
.qty button[disabled] { opacity: 0.4; cursor: not-allowed; }
.lines .cart-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 40px 0; border: 0; color: var(--muted); font-size: 13px; animation: none; }
.cart-empty svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--navy-300); }
.cart-empty b { font-weight: 500; }
@keyframes line-in { from { opacity: 0; transform: translateY(-4px); } }
.cart-f > * { min-width: 0; }
.cart-f { display: grid; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--navy-100); }
.disc { display: flex; gap: 6px; }
.disc input { flex: 1; width: 100%; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: 400 14px var(--font); color: var(--ink); }
.disc input:focus { outline: 0; border-color: var(--blue); }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--navy-100); }
.seg button { min-width: 26px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--blue); color: var(--white); }
.sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--navy-100); font-size: 16px; font-weight: 600; }
.tot b { font-size: 17px; color: var(--blue); }
.proceed { height: 42px; margin-top: 4px; border-radius: 12px; font-size: 14px; }

/* warehouses, customers, money record */
.whcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.whcard { padding: 14px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-card); }
.wh-top { display: flex; align-items: flex-start; gap: 10px; }
.wh-top p { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.wh-top b { font-size: 16px; font-weight: 600; }
.wh-top small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wh-top small svg { width: 13px; height: 13px; }
.wh-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.wh-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--navy-100); font-size: 13px; color: var(--muted); }
.list { border-radius: 14px; background: var(--white); }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--navy-100); }
.list li:first-child { border-top: 0; }
.list.flat li { padding: 10px 0; }
.av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #3B82F6, #2E4AFF); color: var(--white); font-size: 14px; font-weight: 700; }
.av.red { border-radius: 50%; background: linear-gradient(135deg, #FB2C36, #D4183D); }
.grow { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.grow b { font-size: 14px; font-weight: 600; }
.grow small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.grow small svg { width: 12px; height: 12px; }
.owe { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 700; color: var(--red); line-height: 1.3; }
.owe small { font-size: 13px; font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tab svg { width: 14px; height: 14px; }
.tab.on { background: var(--blue); color: var(--white); }
.tab .count { background: var(--navy-100); color: var(--muted); }
.tab.on .count { background: rgba(255, 255, 255, 0.25); color: var(--white); }

/* quotations & invoices */
.docs { border-radius: 14px; background: var(--white); overflow: hidden; }
.docs > li { border-top: 1px solid var(--navy-100); transition: background-color 600ms ease; }
.docs > li:first-child { border-top: 0; }
.docs > li.new { background: var(--blue-50); }
.doc-r { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.doc-r .grow b { margin-right: 4px; }
.doc-r .badge { margin-right: 2px; }
.amt { font-size: 14px; white-space: nowrap; }
.amt-b { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; text-align: right; line-height: 1.35; }
.amt-b small { font-size: 13px; color: var(--muted); }
.amt-b small.neg { color: var(--red); }
.chev-b svg { transition: transform 200ms var(--ease); }
.chev-b[aria-expanded="true"] svg { transform: rotate(180deg); }
.doc-x { padding: 4px 14px 12px; background: #FAFAFC; }
.doc-x table { background: transparent; }
.doc-x th { background: transparent; }
.doc-t { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; padding-top: 8px; border-top: 1px solid var(--navy-100); font-size: 13px; color: var(--muted); }
.doc-t b { color: var(--ink); }
.pays-h { margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pays { display: grid; gap: 4px; }
.pays li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--white); font-size: 13px; }
.pays-none { font-size: 13px; color: var(--muted); }
.filters { display: grid; gap: 8px; margin-top: 12px; }

/* reports & dashboard */
.rtabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #E6E6EB; }
.rtab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--navy-600); font-size: 13px; font-weight: 600; cursor: pointer; }
.rtab svg { width: 14px; height: 14px; }
.rtab.on { background: var(--white); color: var(--ink); }
.kpis.tight { margin-top: 12px; }
.kpis.tight .kpi { padding: 10px 12px; }
.kpis.tight .kpi-v { font-size: 17px; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.dash-row .panel { margin-top: 12px; }
.area { display: block; width: 100%; height: auto; }
.area-fill { fill: rgba(46, 74, 255, 0.1); }
.area-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.area circle { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.area text { fill: var(--navy-500); font-size: 17px; text-anchor: middle; }
.hbars { display: grid; gap: 10px; margin-top: 6px; }
.hbars li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.hbars i { display: block; height: 14px; width: var(--w); min-width: 4px; border-radius: 4px; background: var(--blue); }
.hbars b { grid-column: 2; font-weight: 600; color: var(--ink); }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 6px; }
.vbars > span { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.vbars i { display: block; width: 70%; max-width: 30px; height: var(--h); min-height: 3px; margin-top: auto; border-radius: 4px 4px 0 0; background: var(--blue); }
.vbars small { font-size: 13px; color: var(--muted); }
.donut-w { display: flex; align-items: center; gap: 14px; }
.donut { width: 92px; height: 92px; flex: none; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.legend { display: grid; flex: 1; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.legend b { margin-left: auto; color: var(--ink); font-weight: 600; }
.more { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* Joryka AI */
.brief-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.brief-h b { font-size: 17px; font-weight: 700; }
.brief-h small { margin-left: 8px; font-size: 13px; color: var(--muted); }
.brief-h > span { font-size: 13px; color: var(--muted); }
.attn ul { display: grid; }
.attn li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--navy-100); background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.attn li button > span { flex: 1; }
.attn li button > svg { width: 16px; height: 16px; color: var(--navy-400); transition: transform 160ms var(--ease); }
.attn li button:hover > svg { transform: translateX(3px); color: var(--blue); }
.calm { padding: 8px 0; font-size: 14px; color: var(--muted); }
.aicards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.aicard { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--white); text-align: left; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.aicard:hover { border-color: var(--navy-300); box-shadow: var(--shadow-card); }
.aicard > b { font-size: 20px; font-weight: 700; line-height: 1.25; }
.aicard > small { font-size: 13px; line-height: 1.4; }
.ask { padding: 0; overflow: hidden; }
.ask-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--navy-100); }
.ask-h p { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ask-h p b { font-size: 16px; }
.ask-h p small { overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.left { margin-left: auto; padding: 3px 10px; border-radius: var(--r-pill); background: var(--navy-100); font-size: 13px; color: var(--muted); white-space: nowrap; }
.bot { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #2A2660, var(--navy)); color: var(--white); }
.bot svg { width: 15px; height: 15px; }
.bot.big { width: 44px; height: 44px; }
.bot.big svg { width: 20px; height: 20px; }
.ask-b { display: grid; gap: 10px; padding: 14px; }
.ask-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ask-empty b { margin-top: 6px; font-size: 16px; }
.ask-empty span:last-child { max-width: 40ch; font-size: 14px; color: var(--muted); }
.sugs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.sugs button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: border-color 160ms ease; }
.sugs button svg { width: 15px; height: 15px; color: var(--navy-400); }
.sugs button:hover { border-color: var(--blue); }
.msg { display: flex; align-items: flex-start; gap: 8px; animation: line-in 320ms var(--ease) both; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { max-width: 80%; padding: 8px 14px; border-radius: 14px 14px 4px 14px; background: var(--blue); color: var(--white); font-weight: 500; }
.msg.ai .bubble { display: grid; gap: 8px; max-width: calc(100% - 38px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--white); }
.a-h { font-size: 14px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.a-p { color: var(--navy-600); text-wrap: pretty; }
.a-ev { display: grid; gap: 8px; }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; font-size: 13px; }
.meter-row > span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.meter-row small { font-size: 13px; font-weight: 400; color: var(--muted); }
.meter-row > b { font-weight: 600; white-space: nowrap; }
.meter { grid-column: 1 / -1; height: 7px; border-radius: var(--r-pill); background: var(--navy-100); overflow: hidden; }
.meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; animation: meter-in 800ms var(--ease) both; }
.meter i.was { background: var(--navy-300); }
.meter i.gap { background: var(--stock-low); }
@keyframes meter-in { from { transform: scaleX(0); } }
.a-list { display: grid; gap: 5px; }
.a-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--app-bg); font-size: 13px; }
.a-list li > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.a-list b { font-weight: 600; }
.a-list small { font-size: 13px; color: var(--muted); }
.a-list em { font-weight: 600; text-align: right; }
.a-gap { display: flex; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--amber-50); font-size: 13px; }
.a-gap svg { width: 15px; height: 15px; margin-top: 2px; color: var(--amber-700); }
.a-gap b { display: block; color: var(--amber-700); }
.msg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 8px; border-top: 1px solid var(--navy-100); font-size: 13px; color: var(--muted); }
.msg-foot svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.msg-foot .view { margin-left: auto; padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.a-busy { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.a-busy i { display: flex; gap: 4px; }
.a-busy i b { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: dot 900ms ease-in-out infinite; }
.a-busy i b:nth-child(2) { animation-delay: 150ms; }
.a-busy i b:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 50% { opacity: 0.25; } }
.sug-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; border-top: 1px solid var(--navy-100); scrollbar-width: thin; }
.sug-row button { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer; }
.sug-row button:hover { border-color: var(--blue); color: var(--blue); }
.ask-in { display: flex; gap: 8px; padding: 0 14px; }
.ask-in textarea { flex: 1; min-width: 0; height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: 400 14px/1.4 var(--font); color: var(--ink); resize: none; }
.ask-in textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 74, 255, 0.15); }
.send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); cursor: pointer; }
.send svg { width: 17px; height: 17px; }
.send[disabled], .ask-in textarea[disabled] { opacity: 0.5; cursor: not-allowed; }
.ask-tip { padding: 6px 14px 12px; font-size: 13px; color: var(--muted); }

/* modals and the AI side panel sit over the whole window, as in the app */
.layer { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(17, 16, 45, 0.5); backdrop-filter: blur(2px); }
.layer[hidden] { display: none; }
.layer:not([hidden]) > * { animation: pv-in 260ms var(--ease) both; }
.layer.side { grid-template-columns: minmax(0, 1fr); place-items: stretch end; padding: 0; }
.modal { display: flex; flex-direction: column; width: min(420px, 100%); max-height: 100%; overflow: hidden; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-win); }
.modal.wide { width: min(500px, 100%); }
.m-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--navy-100); }
.m-h p { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.m-h p svg { width: 18px; height: 18px; color: var(--blue); }
.m-h.ok p { color: var(--green-700); }
.m-h.ok p svg { color: var(--green-700); }
.m-b { display: grid; gap: 10px; padding: 16px 18px; overflow-y: auto; scrollbar-width: thin; }
.m-f { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--navy-100); }
.m-f .ab { flex: 1; height: 42px; font-size: 14px; }
.due { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--navy); color: var(--white); text-align: center; }
.due span { font-size: 13px; color: var(--navy-300); }
.due b { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.m-l { font-size: 14px; font-weight: 600; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.methods button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy-600); font-size: 13px; font-weight: 500; cursor: pointer; }
.methods button svg { width: 17px; height: 17px; }
.methods [aria-checked="true"] { border: 2px solid var(--blue); padding: 9px 3px; background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.methods .cr[aria-checked="true"] { border-color: var(--red); background: var(--red-50); color: var(--red); }
.methods button[disabled] { opacity: 0.4; cursor: not-allowed; }
.m-hint { font-size: 13px; color: var(--muted); }
.m-err { font-size: 13px; font-weight: 500; color: var(--red); }
.fld { display: grid; gap: 5px; }
.fld > span:first-child { font-size: 14px; font-weight: 600; }
.fld input, .fld textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 14px var(--font); color: var(--ink); }
.fld textarea { height: auto; padding: 9px 12px; resize: none; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 74, 255, 0.15); }
.fld input[readonly] { background: var(--app-bg); color: var(--navy-600); }
.fld .sel { height: 40px; border: 1px solid var(--line); background: var(--white); }
.change { font-size: 13px; color: var(--muted); }
.change b { color: var(--green-700); }
.credit-note { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--red-50); color: var(--red); font-size: 13px; }
.credit-note span { font-size: 16px; font-weight: 700; }
.credit-note.soft { background: var(--navy-100); color: var(--navy-600); }
.receipt { display: grid; gap: 8px; font: 400 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.rc-c { display: grid; text-align: center; }
.rc-c b { font-size: 16px; }
.rc-l { display: grid; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--navy-300); }
.rc-l p { display: flex; justify-content: space-between; gap: 10px; }
.rc-t { font-size: 16px; font-weight: 700; }
.receipt .muted { color: var(--muted); }
.receipt .pend { color: var(--amber-700); }
.qitem { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.q3 { display: grid; grid-template-columns: 0.7fr 1fr 1fr; gap: 8px; }
.q2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt { display: flex; justify-content: flex-end; gap: 12px; font-size: 13px; color: var(--muted); }
.qtot { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); font-size: 14px; }
.qtot p { display: flex; justify-content: space-between; }
.qtot .t { margin-top: 2px; padding-top: 6px; border-top: 1px solid #C7D0FF; font-size: 16px; font-weight: 700; }
.sheet { display: flex; flex-direction: column; width: min(460px, 92%); height: 100%; background: var(--white); box-shadow: var(--shadow-win); }
.layer.side:not([hidden]) > .sheet { animation: sheet-in 320ms var(--ease) both; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--navy-100); }
.sheet-h p { font-size: 17px; font-weight: 600; }
.sheet-b { flex: 1; overflow-y: auto; padding: 16px 18px; scrollbar-width: thin; }
.sheet-sub { font-size: 16px; font-weight: 600; }
.sheet-d { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.sheet .table { border-top: 1px solid var(--navy-100); }
.sheet th { background: transparent; text-transform: none; letter-spacing: 0; }
.how-h { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--navy-100); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.how { margin-top: 6px; font-size: 14px; color: var(--navy-600); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-ctl); background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500; text-align: center; box-shadow: var(--shadow-win); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 240ms ease, transform 320ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* every module, on a loop */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip-in { display: flex; align-items: center; gap: 32px; max-width: 1440px; margin: 0 auto; padding: 28px 0 28px 56px; }
.strip-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.marquee { display: flex; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; flex: none; gap: 40px; padding-right: 40px; animation: crawl 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track li { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.track svg { width: 20px; height: 20px; color: var(--blue); }
@keyframes crawl { to { transform: translateX(-100%); } }

/* sections */
.section { padding: var(--sec-pad) 0; }
.paper { background: var(--paper); }
.navy { overflow: clip; background: var(--navy); color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.navy .eyebrow { color: var(--green-on-navy); }
.section h2 { margin-top: 16px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; line-height: 1.18; letter-spacing: -0.03em; text-wrap: balance; }
.section h2 span { color: var(--blue); }
.navy h2 span { color: var(--blue-on-navy); }
.sub { margin-top: 28px; max-width: 46ch; font-size: 20px; color: var(--muted); text-wrap: pretty; }
.navy .sub { color: var(--navy-300); }
.split-head { display: grid; grid-template-columns: 640px 1fr; gap: 24px 64px; align-items: end; }
.split-head h2 { max-width: 640px; }
.split-head > p { justify-self: end; max-width: 688px; font-size: 20px; color: var(--muted); }
.center-head { max-width: 760px; margin: 0 auto; text-align: center; }
.center-head > p:last-child { margin-top: 16px; font-size: 20px; color: var(--muted); }

/* one-minute tour: the promo film in a window that matches the playground's */
.tour-frame { position: relative; max-width: 1120px; margin: var(--head-gap) auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-win); background: var(--white); box-shadow: var(--shadow-win); }
.tour-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--white); }
.tour-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: linear-gradient(180deg, rgba(17, 16, 45, 0) 40%, rgba(17, 16, 45, 0.28)); color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.tour-pill { display: flex; align-items: center; gap: 16px; padding: 10px 28px 10px 10px; border-radius: var(--r-pill); background: var(--navy); box-shadow: 0 24px 48px -20px rgba(17, 16, 45, 0.6); transition: transform 240ms var(--ease); }
.tour-txt { display: flex; flex-direction: column; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tour-txt small { font-size: 14px; font-weight: 500; color: var(--navy-200); }
.tour-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); }
.tour-ico svg { width: 24px; height: 24px; margin-left: 3px; }
.tour-play:hover .tour-pill { transform: scale(1.04); }
.tour-play:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tour-frame.playing .tour-play { display: none; }

/* features */
.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: var(--head-gap); }
.fcard { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.fcard.f-4 { grid-column: span 4; }
.fcard h3 { margin-top: 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fcard > p, .f-ai-copy > p { max-width: 52ch; color: var(--muted); }
.ftile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-tile); background: var(--c); color: var(--white); }
.ftile svg { width: 22px; height: 22px; }
.try { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 6px 0 0; border: 0; background: transparent; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.try svg { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.try:hover svg { transform: translateX(3px); }
.mock { display: grid; gap: 8px; margin: 16px 0 10px; padding: 14px; border-radius: var(--r-ctl); background: var(--app-bg); font-size: 13px; font-variant-numeric: tabular-nums; }
.mock i { font-style: normal; color: var(--muted); }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--white); }
.m-row > span:not(.m-ico):not(.m-av) { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.m-row > span b:not(.mono), .m-row > span i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row > em:last-child { margin-left: auto; font-weight: 600; }
.m-ico { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--navy-100); color: var(--navy-500); }
.m-ico svg { width: 14px; height: 14px; }
.m-av { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--c, var(--blue)); color: var(--white); font-weight: 700; }
.m-owe { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; color: var(--red); line-height: 1.3; }
.m-owe small { font-size: 13px; font-weight: 500; }
.mock-pos { grid-template-columns: repeat(2, 1fr) 1.15fr; gap: 10px; }
.mock-pos .m-prod:nth-child(3) { display: none; }
.m-prod { display: grid; gap: 4px; padding: 10px; border-top: 3px solid var(--stock-ok); border-radius: 10px; background: var(--white); }
.m-prod.lv-low { border-top-color: var(--stock-low); }
.m-prod b { font-weight: 600; }
.m-st { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.m-st em { padding: 1px 7px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700); font-weight: 600; }
.lv-low .m-st em { background: var(--amber-50); color: var(--amber-700); }
.m-pr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 2px; }
.m-pr > span { display: grid; justify-items: center; padding: 6px 2px; border-radius: 8px; background: var(--blue-50); color: var(--blue); font-weight: 700; }
.m-pr > span.c { background: var(--purple-50); color: var(--purple-600); }
.m-pr small { font-size: 13px; font-weight: 400; }
.m-cart { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 10px; background: var(--white); }
.m-cart b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.m-cart b svg { width: 15px; height: 15px; }
.m-cart > span { display: flex; justify-content: space-between; color: var(--muted); }
.m-cart > span i { color: var(--ink); }
.m-cart .t { padding-top: 6px; border-top: 1px solid var(--navy-100); color: var(--ink); font-weight: 600; }
.m-cart .t i { color: var(--blue); font-weight: 700; }
.m-btn { justify-content: center !important; padding: 7px; border-radius: 8px; background: var(--blue); color: var(--white) !important; font-size: 13px; font-weight: 600; }
.m-pr > span small { display: block; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.mock .badge { margin-left: 4px; font-family: var(--font); }
.m-row > span > b.mono { font-weight: 600; }
.m-row > .m-btn-pay { flex: none; margin-left: 0 !important; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.m-btn-pay { background: #00A63E; color: var(--white); }
.mock-rep { grid-template-columns: 1fr 1fr; }
.m-kpi { display: grid; padding: 10px 12px; border-radius: 10px; background: var(--white); }
.m-kpi b { font-size: 17px; }
.m-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 8px; height: 76px; padding: 10px 12px 0; border-radius: 10px; background: var(--white); }
.m-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--blue); }
.m-att { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--white); color: var(--ink); }
.m-att .badge { flex: none; }
.m-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid; border-radius: 10px; }
.m-banner svg { width: 16px; height: 16px; margin-top: 2px; }
.m-banner > span { display: flex; flex: 1; flex-direction: column; }
.m-banner i { color: inherit !important; }
.m-banner em { font-weight: 600; }
.m-banner.off { border-color: #FFC9C9; background: var(--red-50); color: var(--red); }
.m-banner.sync { border-color: #BEDBFF; background: var(--blue-50); color: var(--blue-700); }
.fcard.f-ai { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.f-ai-copy { display: flex; flex-direction: column; gap: 10px; }
.f-ai-copy .try { margin-top: 8px; }
.mock-chat { margin: 0; padding: 18px; gap: 8px; }
.b-me { justify-self: end; max-width: 80%; padding: 10px 14px; border-radius: var(--r-tile) 14px 4px 14px; background: var(--blue); color: var(--white); font-weight: 500; }
.b-ai { justify-self: start; display: grid; gap: 8px; max-width: 92%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-tile) 14px 14px 4px; background: var(--white); }
.b-ai small { display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px solid var(--navy-100); font-size: 13px; color: var(--muted); }
.b-ai small svg { width: 13px; height: 13px; }

/* how offline works */
.offline-grid { display: grid; grid-template-columns: 728px 1fr; gap: 80px; align-items: center; }
.points { display: grid; gap: 20px; margin: 36px 0 40px; }
.points li { display: flex; gap: 14px; }
.points li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--navy-700); color: var(--green-on-navy); }
.points li > span svg { width: 16px; height: 16px; }
.points p { font-size: 14px; color: var(--navy-300); }
.points b { display: block; font-size: 16px; font-weight: 600; color: var(--white); }
.off-visual { position: relative; justify-self: center; width: 100%; max-width: 460px; perspective: 1800px; }
.off-visual::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 74, 255, 0.35), transparent); }
/* the offline story, tilted like a product shot: the till behind, the cart in front, the network pill nearest */
.o-scene { position: relative; transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-18deg) rotateZ(3deg); transition: transform 900ms var(--ease); }
.off-visual:hover .o-scene { transform: rotateX(6deg) rotateY(-8deg) rotateZ(1deg); }
@media (hover: none) {
  .o-scene { animation: o-sway 9s ease-in-out infinite; }
  @keyframes o-sway { 50% { transform: rotateX(6deg) rotateY(-8deg) rotateZ(1deg); } }
}
.o-cart { position: relative; display: grid; gap: 14px; padding: 22px; border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(17, 16, 45, 0.9); font-size: 14px; font-variant-numeric: tabular-nums; }
.o-cart p { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.o-head b { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.o-head svg { width: 20px; height: 20px; }
.o-count { display: grid; place-items: center; width: 24px; height: 24px; margin-right: auto; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 600; }
.o-cart .o-banner { align-items: flex-start; justify-content: flex-start; padding: 10px 12px; border: 1px solid #FFC9C9; border-radius: 10px; background: var(--red-50); color: var(--red); font-size: 13px; transition: background 300ms ease, border-color 300ms ease, color 300ms ease, opacity 300ms ease; }
.o-banner svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.o-banner span { display: flex; flex: 1; flex-direction: column; }
.o-banner b { font-size: 14px; }
.o-banner i { font-style: normal; }
.o-banner em { font-style: normal; font-weight: 600; white-space: nowrap; }
.o-cart[data-net="sync"] .o-banner { border-color: #BEDBFF; background: var(--blue-50); color: var(--blue-700); }
.o-cart[data-net="sync"] .o-banner svg { animation: spin 1s linear infinite; }
.o-cart[data-net="online"] .o-banner { opacity: 0; }
.o-cust { justify-content: flex-start !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.o-cust svg { width: 16px; height: 16px; }
.o-cust svg:last-child { margin-left: auto; color: var(--navy-500); }
.o-lines { display: grid; gap: 12px; min-height: 140px; align-content: start; }
.o-line span { display: flex; flex-direction: column; line-height: 1.35; }
.o-line i { font-size: 13px; font-style: normal; color: var(--muted); }
.o-line b, .o-line span b { font-weight: 500; }
.o-line.new { animation: line-in 400ms var(--ease); }
.o-cart .o-line[hidden] { display: none; }
.o-sub { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.o-tot { font-size: 20px; font-weight: 600; }
.o-tot b { color: var(--blue); }
.o-pay { justify-content: center !important; padding: 13px; border-radius: var(--r-pill); background: var(--blue); color: var(--white); font-size: 16px; font-weight: 600; }
.o-pay svg { width: 18px; height: 18px; }
.o-net { position: absolute; left: -64px; bottom: 96px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: var(--navy-800); color: #FF8A9E; font-size: 16px; font-weight: 600; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 40px -16px rgba(17, 16, 45, 0.9); transform: translateZ(90px); transition: color 300ms ease; }
.o-net svg { width: 18px; height: 18px; }
.o-net.on { color: var(--green-on-navy); }

/* pricing: cards built from the app's own parts (icon tiles, price tile, list rows); the middle plan is the blue one */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 1120px; margin: var(--head-gap) auto 0; }
.plan { display: flex; flex-direction: column; padding: 36px 36px 28px; border: 1px solid var(--line); border-radius: var(--r-form); background: var(--white); box-shadow: 0 1px 2px rgba(17, 16, 45, 0.04), 0 16px 40px -28px rgba(17, 16, 45, 0.28); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.plan-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.plan-flag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--r-pill); background: var(--blue); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-for { margin-top: 6px; color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.plan-price b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.plan-price span { font-size: 14px; color: var(--muted); }
.plan ul { display: grid; gap: 14px; margin: 28px 0 40px; }
.plan li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
/* the recommended plan: a light brand tint and outline, not a different card */
.plan-hi { border-color: var(--blue); background: radial-gradient(48% 38% at 28% 30%, rgba(255, 255, 255, 0.85), transparent 70%), radial-gradient(42% 34% at 78% 62%, rgba(255, 255, 255, 0.7), transparent 70%), radial-gradient(70% 55% at 62% 18%, rgba(220, 224, 250, 0.9), transparent 75%), radial-gradient(65% 50% at 30% 82%, rgba(218, 230, 235, 0.85), transparent 75%), var(--blue-50); box-shadow: 0 1px 2px rgba(165, 162, 252, 0.04), 0 16px 40px -28px rgba(165, 162, 252, 0.28); }
.plan-hi .plan-price { border-color: #C7D0FF; }
.btn-ink { background: var(--navy); color: var(--white); }
.btn-ink:hover { background: var(--navy-800); }
/* on navy sections: white, so the page CTA never reads as a control inside the app visual */
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--navy-100); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: start; }
.checks { display: grid; gap: 14px; margin: 28px 0; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.checks svg { color: var(--green-700); }
/* WhatsApp: no card, a question and one bold link */
.wa-line { display: grid; justify-items: start; gap: 10px; max-width: 688px; padding-top: 24px; border-top: 1px solid var(--line); }
.wa-q { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.wa-cta { font-size: 20px; font-weight: 600; color: var(--green-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color 160ms ease; }
.wa-cta svg { display: inline-block; width: 20px; height: 20px; margin-left: 8px; vertical-align: -4px; transition: transform 200ms var(--ease); }
.wa-cta:hover { color: var(--green-800); }
.wa-cta .nowrap { white-space: nowrap; }
.wa-cta:hover svg { transform: translateX(4px); }
.form-card { display: grid; gap: 20px; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-form); background: var(--white); box-shadow: var(--shadow-win); }
.form-head h3 { font-size: 24px; font-weight: 600; }
.form-head p { font-size: 14px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .select select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--white); color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field input, .select select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--navy-500); }
.field input:hover, .field textarea:hover, .select select:hover { border-color: var(--navy-300); }
.field input:focus-visible, .field textarea:focus-visible, .select select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 74, 255, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212, 24, 61, 0.12); }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--navy-500); pointer-events: none; }
.err { font-size: 14px; color: var(--red); }
.fine { font-size: 14px; color: var(--muted); }
.fine a { color: var(--blue); font-weight: 600; }
.submit[disabled] { opacity: 0.7; cursor: progress; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }

/* footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: 80px; }
.foot-brand img { width: 140px; }
.foot-brand p { max-width: 36ch; margin-top: 16px; font-size: 14px; color: var(--muted); }
.foot-brand .foot-tag { font-size: 16px; font-weight: 600; color: var(--navy); }
.foot-brand .foot-tag + p { margin-top: 6px; }
.foot nav { display: flex; flex-direction: column; gap: 12px; }
.foot nav b { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot nav a { font-weight: 500; text-decoration: none; }
.foot nav a:hover { color: var(--blue); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* entrances: content stays visible without script */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }


/* responsive */
@media (min-width: 1200px) and (max-width: 1439px) {
  .tile[data-f="credit"] { --f: 0.06; }
  .tile[data-f="docs"] { --f: 0.08; }
  .tile { gap: 10px; }
  .tile-ico { width: 48px; height: 48px; border-radius: 14px; }
  .tile-ico svg { width: 22px; height: 22px; }
  .tile-label { padding: 7px 12px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .nav, .wa-link, .bar-actions .js-login { display: none; }
  .nav-toggle { display: grid; }
  .bar-actions { margin-left: auto; }
}
@media (max-width: 1199px) {
  :root { --sec-pad: 40px; --head-gap: 36px; }
  .play { height: auto; margin-top: 48px; }
  .stage { position: relative; left: auto; width: 100%; max-width: 1040px; height: 640px; margin: 0 auto; transform: none; --z: 0.9; }
  .callout { position: relative; left: auto; top: auto; display: flex; width: fit-content; margin: 18px auto 0 max(0px, calc(50% - 520px)); }
}
/* tablet: the tiles keep floating, in an arc above the window and another below it */
@media (min-width: 721px) and (max-width: 1199px) {
  .play { --top: 140px; --below: calc(var(--top) + 640px + 28px); padding-top: var(--top); }
  .tile, .tile.side-l, .tile:not(.side-l) { flex-direction: row; gap: 10px; right: auto; left: auto; }
  .tile-ico { width: 48px; height: 48px; border-radius: 14px; }
  .tile-ico svg { width: 22px; height: 22px; }
  .tile-label { padding: 7px 12px; font-size: 13px; }
  .tile[data-f="pos"] { left: 5%; top: 40px; }
  .tile[data-f="stock"] { left: 50%; top: 0; transform: translateX(-50%); }
  .tile[data-f="credit"] { right: 5%; top: 40px; }
  .tile[data-f="docs"] { left: 5%; top: var(--below); }
  .tile[data-f="reports"] { left: 50%; top: calc(var(--below) + 36px); transform: translateX(-50%); }
  .tile[data-f="ai"] { right: 5%; top: var(--below); }
  .callout { margin: 136px auto 0; }
  .callout::before { display: none; }
}
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
  .nav { gap: 24px; }
  .split-head { grid-template-columns: 1fr 1fr; }
  .offline-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .strip-in { padding-left: 32px; }
}
@media (max-width: 1000px) {
  .split-head, .offline-grid, .contact-grid { grid-template-columns: 1fr; }
  .offline-grid, .contact-grid { gap: var(--head-gap); }
  .off-visual { margin-top: 24px; }
  .split-head > p { justify-self: start; }
  .fcard, .fcard.f-4 { grid-column: span 3; }
  .fcard.f-4 { grid-column: span 6; }
  .fcard.f-ai { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; gap: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .foot { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aicards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: 1fr; }
  .till { grid-template-columns: minmax(0, 1fr) 220px; }
  .catalog { grid-template-columns: 1fr; }
  .mock-pos { grid-template-columns: 1fr 1fr; }
  .mock-pos .m-cart { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --sec-pad: 32px; --head-gap: 24px; }
  .play { margin-top: 40px; }
  .container { padding: 0 20px; }
  .hero h1 { font-size: 34px; }
  .section h2 { font-size: 28px; }
  .bar { height: 64px; gap: 12px; }
  .brand img { width: 118px; }
  .bar-actions .js-login { padding: 0 10px; }
  .bar-actions .btn-sm:not(.btn-ghost) { margin-left: 4px; }
  .hero { padding: 56px 0 48px; }
  .lead { margin-top: 20px; font-size: 17px; }
  .tagline { margin-top: 14px; font-size: 20px; }
  .tagline + .lead { margin-top: 12px; }
  .cta-row { margin-top: 20px; }
  /* the phone window copies the app's mobile layout: navy top bar, stacked content */
  .subnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; }
  .subnav:empty { display: none; }
  .subnav button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy-600); font-size: 13px; font-weight: 600; cursor: pointer; }
  .subnav button svg { width: 14px; height: 14px; }
  .subnav [aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
  .wire { display: none; }
  /* the phone grid keeps the floating look: a coloured icon over its label pill */
  .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; margin-bottom: 16px; }
  .tile, .tile.side-l { position: static; flex-direction: column; justify-content: flex-start; gap: 8px; text-align: center; }
  .tile-ico { width: 48px; height: 48px; border-radius: 14px; }
  .tile-ico svg { width: 22px; height: 22px; }
  .tile-label { max-width: 100%; padding: 5px 10px; border-radius: 12px; font-size: 13px; line-height: 1.25; white-space: normal; text-wrap: balance; }
  .tile:hover .tile-ico { transform: none; }
  /* on the page the window is a preview; tapping it (or a tile) opens the app full screen */
  .stage { display: flex; flex-direction: column; width: calc(100% + 16px); height: 440px; margin: 0 -8px; border-radius: 16px; font-size: 14px; --z: 0.92; }
  .app { flex: 1; }
  .rail { position: static; z-index: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 12px 10px 8px; }
  .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .rail-logo { padding: 0; }
  .rail-logo img { width: 26px; height: 26px; }
  .rail-logo .rail-word { display: block; }
  .rail-logo img:first-child { display: none; }
  .rail-menu { display: none; }
  .net { width: auto; margin-left: auto; padding: 0 12px; }
  .try-app { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px 24px; border: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.94) 80%); cursor: pointer; }
  .try-pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font: 600 16px/1 var(--font); }
  .try-pill svg { width: 17px; height: 17px; }
  .try-note { font-size: 13px; color: var(--muted); }
  .try-app:focus-visible { outline: 0; }
  .try-app:focus-visible .try-pill { outline: 3px solid var(--blue); outline-offset: 3px; }
  /* full screen: the window becomes the phone app, with its navy top bar and slide-out menu */
  html.app-open, html.app-open body { overflow: hidden; }
  .play.full .stage { position: fixed; inset: 0; z-index: 60; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .play.full .rail { padding-top: max(10px, env(safe-area-inset-top)); }
  .play.full .try-app { display: none; }
  .play.full .app-x { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
  .app-x svg { width: 16px; height: 16px; }
  .stage.menu-open::after { content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(17, 16, 45, 0.55); }
  .stage.menu-open .rail-menu { position: absolute; left: 0; top: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; width: min(300px, 82%); background: var(--navy); animation: drawer-in 260ms var(--ease) both; }
  @keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }
  .drawer-h { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 12px 22px; border-bottom: 1px solid var(--navy-700); }
  .drawer-h img { width: auto; height: 20px; }
  .drawer-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--navy-400); border-radius: 8px; background: transparent; color: var(--white); cursor: pointer; }
  .drawer-x svg { width: 18px; height: 18px; }
  .stage.menu-open .rail-list { display: flex; flex: 1; gap: 2px; padding: 12px 10px; overflow-y: auto; overscroll-behavior: contain; }
  .rail-list button { display: flex; justify-content: flex-start; gap: 14px; height: 44px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 500; }
  .rail-list button svg { width: 20px; height: 20px; }
  .rail-list .rl { display: inline; }
  .rail-list button::after { content: none; }
  .rail-list button[aria-current="page"] { background: linear-gradient(90deg, #1B2068, #17184A); color: var(--white); }
  .rail-list button[aria-current="page"] svg { color: var(--green-on-navy); }
  .rail-list button[aria-current="page"]::before { left: -6px; }
  .rail-list button:focus-visible { outline-offset: -2px; border-radius: 10px; }
  .net .net-label { position: static; width: auto; height: auto; clip: auto; }
  .app-body { padding: 18px 16px; overscroll-behavior: contain; }
  .app-body[data-pg="pos"] { overflow-y: auto; }
  .till { display: flex; flex-direction: column; min-height: 100%; height: auto; }
  .pos-main { flex: 1; overflow: visible; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .pc-prices { grid-template-columns: 1fr; }
  .cart { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); border-left: 0; box-shadow: 0 -10px 24px -14px rgba(17, 16, 45, 0.35); }
  .cart-h { padding: 10px 14px 6px; }
  .cart-tog { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; }
  .cart-tog svg { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
  .cart.open .cart-tog svg { transform: rotate(180deg); }
  .cart-h .link-red { margin-left: auto; }
  .cart:not(.open) .cart-cust, .cart:not(.open) .lines, .cart:not(.open) .disc, .cart:not(.open) .sum { display: none; }
  .cart.open .lines { max-height: 34vh; }
  .cart-f { padding: 8px 14px 12px; border-top: 0; }
  .ph-a .ab:not(.primary) { display: none; }
  .ph { align-items: center; }
  .list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; }
  .list li > .ib { display: none; }
  .list li > .ab.pay { grid-column: 1 / 3; }
  .list li > .ab.soft { grid-column: 3; }
  .list li > .empty { grid-column: 1 / -1; }
  .m-row > .m-btn-pay { display: none; }
  .off-visual { max-width: 340px; margin-top: 40px; }
  .o-scene { transform: rotateX(8deg) rotateY(-10deg) rotateZ(2deg); animation-name: o-sway-sm; }
  @keyframes o-sway-sm { 50% { transform: rotateX(3deg) rotateY(-3deg) rotateZ(1deg); } }
  .o-net { left: auto; right: -4px; top: -24px; bottom: auto; height: 40px; font-size: 14px; }
  .pc-meta { flex-wrap: wrap; row-gap: 2px; }
  .ph { flex-wrap: wrap; }
  .ph-a { justify-content: flex-start; }
  .kpis.k3, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.k3:not(.dash) > .kpi:first-child:nth-last-child(odd), .kpis.dash > .kpi.wide { grid-column: 1 / -1; }
  .kpi-v { font-size: 17px; }
  .aicards { grid-template-columns: 1fr; }
  .sugs { grid-template-columns: 1fr; }
  .whcards { grid-template-columns: 1fr; }
  .toolbar > .chips { margin-left: 0; }
  .search { min-width: 0; }
  .toast { top: 76px; bottom: auto; transform: translate(-50%, -8px); }
  .toolbar .search { flex-basis: 100%; }
  .hide-s { display: none; }
  .prod b { white-space: normal; }
  .pbox { display: none; }
  .doc-r { flex-wrap: wrap; }
  .doc-r .grow { flex-basis: calc(100% - 40px); }
  .doc-r .amt, .doc-r .amt-b { margin-right: auto; align-items: flex-start; text-align: left; }
  .layer { position: fixed; z-index: 50; }
  .layer > * { zoom: 1; }
  .layer.side { place-items: stretch; }
  .sheet { width: 100%; }
  .callout { margin: 16px auto 0; }
  .callout::before { left: 50%; }
  .strip-in { flex-direction: column; align-items: stretch; gap: 12px; padding: 28px 0 28px 20px; }
  .track { gap: 32px; padding-right: 32px; }
  .marquee { width: 100%; }
  .sub, .split-head > p, .center-head > p:last-child { font-size: 17px; }
  .fcard, .fcard.f-4 { grid-column: span 6; padding: 22px; }
  .plan { padding: 28px 24px 24px; }
  .tour-frame { margin: var(--head-gap) -8px 0; border-radius: 16px; }
  .tour-pill { gap: 12px; padding: 8px 20px 8px 8px; }
  .tour-ico { width: 44px; height: 44px; }
  .tour-txt { font-size: 17px; }
  .tour-txt small { font-size: 13px; }
  .row2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .wa-q { font-size: 24px; }
  .wa-cta { font-size: 17px; }
  /* phone footer: each link group is one ruled row, its label on the left and links on the right */
  .footer { padding: 40px 0 28px; }
  .foot { grid-template-columns: 1fr; gap: 0; }
  .foot-brand { margin-bottom: 28px; }
  .foot-brand img { width: 124px; }
  .foot-brand p { margin-top: 12px; }
  .foot nav { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: baseline; gap: 12px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
  .foot nav b { grid-column: 1; grid-row: 1; font-size: 13px; }
  .foot nav a { grid-column: 2; font-size: 16px; }
  .foot-base { flex-direction: column; gap: 6px; margin-top: 0; padding-top: 18px; font-size: 13px; }
}
/* phones (560px and below): hero buttons stacked full width, Point of Sale card shows one product */
@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-self: stretch; }
  .cta-row .btn { width: 100%; }
  .mock-pos { grid-template-columns: 1fr; }
  .mock-pos .m-prod:nth-child(n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal].in { opacity: 1; transform: none; transition: none; }
  .site-menu, .tile-ico, .o-scene, .wire path, .rail-menu, .app-body.enter > *, .lines li, .msg, .meter i, .layer > *, .bn.sync svg, .a-busy i b { animation: none !important; }
  .track { animation: none; flex-wrap: wrap; row-gap: 12px; padding-right: 0; flex: 1; }
  .track[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .btn, .toast, .o-scene, .tile-ico, .tile-label, .pc-prices button, .net, .try svg, .ab, .rail-list button::after { transition: none; }
}
