/* Nenji ERP marketing site (app.nenji.ai). Plain CSS, no build step.
   Same family as brand.nenji.ai (site/assets/site.css in ../brandlah): Plus Jakarta Sans with Bodoni Moda
   italic accents, flat rounded cards, tinted bands. Recoloured to the app's indigo (#3525cd, DESIGN.md)
   with a lavender highlight and a warm apricot accent. */

:root {
  --ink: #151c27;
  --ink-2: #252d3d;
  --ink-soft: #464555;
  --muted: #6e6c80;
  --line: #e6e8f2;
  --line-2: #c7c4d8;
  --paper: #ffffff;
  --cream: #f9f9ff;
  /* "lime" is the house highlight; on this site it is lavender, from the app's primary-fixed */
  --lime: #dcd8ff;
  --lime-2: #b9b2ff;
  --pink: #ff9e6d;
  --pink-soft: #fff0e6;
  --sky: #eef1ff;
  --sky-2: #dde3ff;
  --sage: #eef1f6;
  --sage-2: #dce1eb;
  --violet: #3525cd;
  --violet-2: #4f46e5;
  --night: #17123f;
  --good: #1f9d63;
  --good-bg: #e2f6ec;
  --bad: #d43d51;
  --bad-bg: #fde7ea;
  --warn: #b26a00;
  --warn-bg: #fff3d6;
  --info: #3525cd;
  --info-bg: #e2dfff;
  --p-shopify: #5e8e3e;
  --p-wa: #25d366;
  --c1: #3525cd; --c2: #ff9e6d; --c3: #8b84ff; --c4: #25b47e;
  --radius: 24px;
  --radius-sm: 16px;
  --font: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, 'Songti SC', serif;
  --wrap: 1200px;
  --shadow-mock: 0 1px 0 rgba(21, 28, 39, .04), 0 24px 60px -24px rgba(31, 22, 110, .30);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; }
.center { text-align: center; }
div.center { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- type ---------- */
.h1 {
  font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.75rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin: 0 auto;
}
.h2 {
  font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.h1 em, .h2 em, .h3 em, .h1 mark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
:lang(zh) .h1 em, :lang(zh) .h2 em { font-family: inherit; font-style: normal; font-weight: 700; }
mark {
  background: var(--lime);
  color: inherit;
  padding: 0 .16em;
  margin: 0 -.04em;
  border-radius: .16em;
  line-height: 1;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-soft); line-height: 1.6; margin-top: 20px; }
.lead.center { max-width: 720px; margin-left: auto; margin-right: auto; }
.h2.center { max-width: 22ch; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.eyebrow-lime { color: var(--lime); }
.note { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background .18s, color .18s, transform .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--night); }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; border-radius: 18px; }
.btn-sm { padding: 10px 18px; font-size: .95rem; border-radius: 14px; }
.btn-xs { padding: 7px 12px; font-size: .78rem; border-radius: 10px; gap: 6px; }
.btn-xs:hover { transform: none; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime-2); padding-bottom: 2px; }
.arrow-link .ic { transition: transform .18s; }
.arrow-link:hover .ic { transform: translateX(4px); }

/* ---------- announcement + nav ---------- */
.announce { background: var(--night); color: #ecebff; font-size: .88rem; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; text-align: center; flex-wrap: wrap; }
.announce-badge { background: var(--lime); color: var(--ink); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.announce a { color: var(--lime); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; flex: none; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link, .dd-btn { background: none; border: 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { background: var(--sage); }
.dd-btn .ic { width: 16px; height: 16px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-code { text-transform: uppercase; font-size: .85rem; }
.signed-in .only-out, .only-in { display: none; }
.signed-in .only-in { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; border-radius: 12px; cursor: pointer; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-mobile-ctas { display: none; }

.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(31, 22, 110, .22);
  padding: 14px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 60;
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.mega { display: grid; grid-template-columns: repeat(4, 230px); gap: 6px; left: -40px; }
.mega-title { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; text-decoration: none; }
.mega-item:hover { background: var(--sky); }
.mega-item strong { display: block; font-size: .93rem; line-height: 1.3; }
.mega-item small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.mega-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sky); color: var(--violet); display: grid; place-items: center; flex: none; }
.list { min-width: 280px; display: grid; gap: 2px; }
.lang-panel { left: auto; right: 0; min-width: 160px; }
.lang-panel a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.lang-panel a:hover, .lang-panel a[aria-current] { background: var(--sky); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 5vw + 40px, 120px) 0; }
.tint-sky { background: var(--sky); }
.tint-sage { background: var(--sage); }
.tint-pink { background: var(--pink-soft); }
.band-dark { background: var(--night); color: #f3f2ff; }
.band-dark .lead { color: #c9c6ee; }
.band-dark .h2 em { color: var(--lime); }

.hero { padding-top: clamp(48px, 4vw + 32px, 96px); padding-bottom: 48px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 12% 18%, rgba(220, 216, 255, .85), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, rgba(255, 228, 210, .9), transparent 70%),
    var(--paper);
}
.hero .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-sm { padding-bottom: 24px; }
.hero-visual { margin-top: 56px; position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: 12% 6% -6%; background: var(--lime); border-radius: 40px; transform: rotate(-1.5deg); z-index: 0; opacity: .55; }
.hero-visual > * { position: relative; z-index: 1; }
.mock-caption { font-size: .75rem; color: var(--muted); margin-top: 14px; }
.partners { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; align-items: center; margin-top: 40px; }
.partners-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 6px; }
.pchip, .int-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.pdot, .int-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.p-meta { background: var(--p-meta); } .p-ig { background: var(--p-ig); } .p-google { background: var(--p-google); } .p-tiktok { background: var(--p-tiktok); } .p-shopify { background: var(--p-shopify); }

.pain { padding-top: 72px; }
.pain .h2 { max-width: 24ch; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-rev .split-text { order: 2; }
.split-text .lead { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233525cd' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks-lime li::before { background-color: var(--lime); }

/* showcase tabs */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 40px 0 32px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); background: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s, border-color .15s; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; background: var(--sage); border-radius: 32px; padding: clamp(20px, 3vw, 48px); }
.tab-text p { color: var(--ink-soft); margin-top: 12px; }

/* duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { background: var(--sky); border-radius: 32px; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; overflow: hidden; }
.duo-card p { color: var(--ink-soft); margin-top: 12px; }
.duo-pink { background: var(--pink-soft); }
.duo-visual { margin-top: 32px; }

/* integrations */
.int-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; max-width: 920px; margin-left: auto; margin-right: auto; }
.int-chip { padding: 12px 20px; font-size: 1rem; }
.i-fb { background: var(--p-meta); } .i-ig { background: var(--p-ig); } .i-gg { background: var(--p-google); } .i-tt { background: var(--p-tiktok); } .i-sh { background: var(--p-shopify); } .i-ai { background: var(--violet); }

/* numbered benefits / capability grid */
.num-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.num-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; background: var(--paper); transition: transform .2s, border-color .2s; }
.num-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.num-n { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--pink); display: block; }
.num-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: var(--violet); display: grid; place-items: center; flex: none; }
.num-card .num-ic { position: absolute; top: 22px; right: 22px; }
.num-card h3 { font-size: 1.08rem; margin-top: 28px; letter-spacing: -0.01em; }
.num-card p { font-size: .93rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.cap-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cap h3 { font-size: 1.05rem; }
.cap p { color: var(--ink-soft); font-size: .93rem; margin-top: 4px; }
.more { padding: 64px 0; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.more-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; text-decoration: none; background: var(--paper); border-radius: 18px; padding: 16px; border: 1px solid transparent; transition: border-color .15s; }
.more-card:hover { border-color: var(--ink); }
.more-card .num-ic { grid-row: span 2; width: 38px; height: 38px; background: var(--sky); }
.more-card strong { font-size: .95rem; line-height: 1.3; }
.more-card small { color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* stats */
.stats { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.faq-item[open] { background: var(--cream); border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex: none; transition: transform .2s, background .2s; }
.faq-item[open] .faq-ic { transform: rotate(180deg); background: var(--lime); }
.faq-item p { padding: 0 22px 22px; color: var(--ink-soft); }

/* cta band + footer */
.cta-band { background: var(--night); color: #f3f2ff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.cta-band::before { width: 420px; height: 420px; background: var(--pink); left: -140px; top: -160px; }
.cta-band::after { width: 380px; height: 380px; background: var(--violet); right: -120px; bottom: -180px; }
.cta-band-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-band .h2 { max-width: 20ch; }
.cta-band .h2 em { color: var(--lime); }
.cta-band .lead { color: #d2d0f2; max-width: 640px; margin-bottom: 32px; }
.cta-band .note { color: #a9a6cf; margin-top: 20px; }
.footer { background: #0f0b2b; color: #d5d3ee; padding: 72px 0 32px; font-size: .95rem; }
.footer-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .logo { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 32ch; color: #a9a6cf; }
.footer-langs { display: flex; gap: 14px; margin-top: 20px; }
.footer-langs a { text-decoration: none; color: #a9a6cf; font-weight: 600; }
.footer-langs a[aria-current], .footer-langs a:hover { color: var(--lime); }
.footer-title { font-weight: 800; color: #fff; margin-bottom: 12px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; text-decoration: none; padding: 5px 0; color: #d5d3ee; }
.footer-title-gap { margin-top: 24px; }
.footer-col a:hover { color: var(--lime); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2a2558; margin-top: 56px; padding-top: 24px; color: #8f8cb8; font-size: .85rem; }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; background: var(--sage); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--violet); color: #fff; }

/* ---------- product mocks ---------- */
.mock { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-mock); overflow: hidden; text-align: left; font-size: 13px; line-height: 1.4; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--cream); min-height: 44px; }
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:first-child { background: #ff8a80; } .dots i:nth-child(2) { background: #ffd166; } .dots i:nth-child(3) { background: #7bd389; }
.mock-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-src { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-bar .seg { margin-left: auto; }
.seg-static > span { padding: 4px 10px; font-size: 11.5px; cursor: default; }
.mock-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.t-a { background: linear-gradient(135deg, #3525cd, #8b84ff); }
.t-b { background: linear-gradient(135deg, #4f46e5, #9ad7ff); }
.t-c { background: linear-gradient(135deg, #ff9e6d, #ffc98f); }
.t-d { background: linear-gradient(135deg, #252d3d, #6e6c80); }
.t-e { background: linear-gradient(135deg, #25b47e, #8be0b8); }
.t-f { background: linear-gradient(135deg, #c43c8a, #ff9e6d); }

/* dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; flex-wrap: wrap; }
.dash-note { font-size: 12px; font-weight: 700; background: var(--lime); padding: 4px 10px; border-radius: 999px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px; }
.kpi { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.kpi strong { display: block; font-size: 20px; letter-spacing: -0.03em; margin-top: 2px; white-space: nowrap; }
.kpi-progress { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.meter { display: block; height: 10px; background: var(--sage); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--violet); border-radius: 999px; }
.dash-table-wrap { overflow-x: auto; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 640px; }
.dash-table th, .dash-table td { padding: 7px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.dash-table thead th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right; }
.dash-table tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--paper); }
.dash-table td { text-align: right; }
.dash-table tr.sec th { background: var(--sage); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; border-radius: 8px; position: static; }
.dash-table td.good { background: var(--good-bg); color: var(--good); font-weight: 700; }
.dash-table td.bad { background: var(--bad-bg); color: var(--bad); font-weight: 700; }

.mini-body { padding: 16px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 18px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.bar { flex: 1; border-radius: 6px 6px 2px 2px; min-height: 4px; }
.bar-sales { background: var(--ink); }
.bar-spend { background: var(--pink); }
.bars-x { display: flex; gap: 10px; padding: 6px 4px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-sales { background: var(--ink); } .lg-spend { background: var(--pink); }

/* chat */
.chat-body { padding: 18px; display: grid; gap: 12px; background: #fbfaf7; }
.msg { border-radius: 16px; padding: 12px 14px; font-size: 13px; max-width: 88%; }
.msg-user { background: var(--sage); justify-self: end; border-bottom-right-radius: 4px; }
.msg-ai { display: flex; gap: 10px; background: transparent; padding-left: 0; max-width: 100%; }
.ai-mark { width: 28px; height: 28px; border-radius: 8px; background: #d97757; color: #fff; display: grid; place-items: center; flex: none; }
.ai-mark .ic { width: 16px; height: 16px; }
.tool-pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; background: var(--paper); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tool-pill .ok { color: var(--good); display: inline-grid; }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 14px; padding: 10px 10px 10px 14px; color: var(--muted); font-size: 12.5px; }
.send { width: 30px; height: 30px; border-radius: 9px; background: var(--violet); color: #fff; display: grid; place-items: center; flex: none; }

/* ---------- Nenji ERP: industries, day timeline, nav extras ---------- */
.footer-in { grid-template-columns: 1.4fr repeat(5, 1fr); }
.mega-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; border-radius: 0 0 14px 14px; }
.eyebrow.center { text-align: center; }
.ind-sec .lead.center { margin-bottom: 8px; }
.ind-sec-top { padding-top: 24px; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.ind-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 28px; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ind-card:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 24px 48px -28px rgba(53, 37, 205, .45); }
.ind-card strong { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.ind-card p { color: var(--ink-soft); font-size: .95rem; }
.ind-card .arrow-link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.ind-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--violet); color: #fff; display: grid; place-items: center; }
.ind-ic .ic { width: 26px; height: 26px; }
.ind-more { background: transparent; border: 1.5px dashed var(--line-2); }
.ind-more .ind-ic { background: var(--lime); color: var(--violet); }
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-chips span { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--violet); }
.ind-chips-hero { justify-content: center; margin-top: 24px; }
.ind-chips-hero span { background: var(--paper); border: 1px solid var(--line); font-size: .85rem; padding: 6px 12px; }
.day { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: day; position: relative; }
.day-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.day-step::after { content: ''; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--lime-2); }
.day-step:last-child::after { display: none; }
.day-time { display: block; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--pink); line-height: 1; }
.day-step .num-ic { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; }
.day-step h3 { font-size: 1.05rem; margin-top: 18px; }
.day-step p { font-size: .92rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.more .mega-title { padding-left: 0; margin-bottom: 14px; }
.more-grid-lg { margin-top: 40px; }
.more-card .num-ic { color: var(--violet); }
.i-sh { background: var(--p-shopify); } .i-wa { background: var(--p-wa); } .i-gg { background: #f5b800; } .i-ll { background: #f16622; }
.i-bc { background: #0a7cff; } .i-aw { background: #612fff; } .i-bp { background: #1aa0b8; } .i-rp { background: #e1306c; } .i-px { background: #0f9d58; }
.i-ai { background: #d97757; } .i-gpt { background: #10a37f; } .i-gm { background: #4285f4; } .i-cu { background: #111; } .i-ses { background: #ff9900; } .i-gl { background: #ea4335; }

/* ---------- shared mock pieces ---------- */
.mk-body { padding: 16px; display: grid; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sage); color: var(--ink-2); white-space: nowrap; justify-self: start; }
.pill .ic { width: 12px; height: 12px; }
.st-delivered, .st-paid, .st-ok, .st-active, .st-read, .st-done { background: var(--good-bg); color: var(--good); }
.st-out_for_delivery, .st-in_progress, .st-sent, .st-trial, .st-delivered_bc { background: var(--info-bg); color: var(--info); }
.st-packed, .st-in_review, .st-enquiry, .st-skipped { background: var(--warn-bg); color: var(--warn); }
.st-low, .st-failed { background: var(--bad-bg); color: var(--bad); }
.st-draft, .st-todo { background: var(--sage); color: var(--muted); }
.ch-shopify { background: #e6f1df; color: #3f6b26; } .ch-b2b { background: var(--sky-2); color: var(--violet); } .ch-draft { background: var(--sage); color: var(--muted); }
.tag-design { background: #fde7f3; color: #b0307a; } .tag-strategy { background: var(--sky-2); color: var(--violet); } .tag-copy { background: var(--warn-bg); color: var(--warn); } .tag-video { background: #e2f6ec; color: var(--good); }
.mini-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini-rows li, .mk-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.mini-rows li:last-child, .mk-row:last-child { border-bottom: 0; }
.mk-head { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.mr-main { min-width: 0; }
.mr-main b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-main small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted); font-size: 12px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: none; }
.av-s { width: 22px; height: 22px; font-size: 9px; }
.btn-fake { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--violet); color: #fff; font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.btn-fake.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-fake .ic { width: 14px; height: 14px; }
.chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.chips { margin: 0; }

/* dashboards */
.dash-co { padding: 12px 16px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.mock-bar .seg { margin-left: auto; }
.kpi .delta { display: inline-block; font-size: 11px; font-weight: 700; margin-top: 4px; }
.d-up { color: var(--good); } .d-down { color: var(--bad); }
.dash-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 0 16px 16px; }
.dash-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.bars { height: 120px; margin-top: 4px; }
.bar-a { background: var(--violet); } .bar-b { background: var(--lime-2); }
.lg-a { background: var(--violet); } .lg-b { background: var(--lime-2); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 8px; align-items: center; font-size: 12px; }
.funnel .f-track { margin: 0; height: 8px; }
.funnel .f-track span { background: var(--pink); }
.funnel b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-col { display: grid; justify-items: center; gap: 4px; text-align: center; }
.cmp-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; width: 64px; border-bottom: 1px solid var(--line); }
.cmp-bars .bar { flex: 1; }
.cmp-col b { font-size: 18px; letter-spacing: -0.02em; } .cmp-col b small { color: var(--muted); font-size: 12px; font-weight: 600; }
.cmp-col > span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* orders */
.ord-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.ord-side { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; position: relative; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tl li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); z-index: 1; }
.tl li:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 22px; bottom: -8px; width: 2px; background: var(--line); }
.tl li.done { color: var(--ink); } .tl li.done i { border-color: var(--violet); background: var(--violet); }
.tl li.now i { box-shadow: 0 0 0 4px var(--lime); }
.tl small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ord-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* routing + maps */
.route-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.map { position: relative; min-height: 300px; overflow: hidden; color: var(--violet);
  background:
    linear-gradient(115deg, transparent 46%, #ffffff 46%, #ffffff 50%, transparent 50%),
    linear-gradient(25deg, transparent 62%, #ffffff 62%, #ffffff 65%, transparent 65%),
    linear-gradient(var(--sage-2) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--sage-2) 1px, transparent 1px) 0 0 / 40px 40px,
    #e8eef3; }
.map::after { content: ''; position: absolute; width: 38%; height: 30%; right: -6%; bottom: -8%; border-radius: 50%; background: #d4e8d7; opacity: .9; }
.map-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.map-pin, .map-store, .map-bb { position: absolute; z-index: 2; transform: translate(-50%, -100%); }
.map-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; box-shadow: 0 6px 12px -4px rgba(53, 37, 205, .6); }
.map-pin { line-height: 1; }
.map-store { width: 34px; height: 34px; border-radius: 10px; background: var(--pink); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(255, 120, 60, .7); }
.map-store .ic { width: 18px; height: 18px; }
.map-tag { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 10px; padding: 7px 10px; font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow-mock); }
.map-tag .ic { width: 14px; height: 14px; color: var(--violet); }
.route-side { padding: 14px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.route-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rt { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--sage); color: var(--ink-soft); white-space: nowrap; }
.rt b { color: var(--ink); } .rt.on { background: var(--violet); color: #fff; } .rt.on b { color: #fff; }
.rider { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.rider-info { min-width: 0; } .rider-info b { display: block; font-size: 12.5px; } .rider-info small { color: var(--muted); font-size: 11.5px; }
.pod { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--good-bg); border-radius: 12px; padding: 10px; color: var(--good); }
.pod b { display: block; font-size: 12px; color: var(--ink); } .pod small { color: var(--muted); font-size: 11px; }
.pod .ok { display: inline-grid; }
.map-ooh { background:
    linear-gradient(160deg, transparent 40%, #ffffff 40%, #ffffff 44%, transparent 44%),
    linear-gradient(60deg, transparent 55%, #ffffff 55%, #ffffff 58%, transparent 58%),
    linear-gradient(var(--sage-2) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--sage-2) 1px, transparent 1px) 0 0 / 40px 40px,
    #e8eef3; }
.map-bb { width: 30px; height: 30px; border-radius: 9px; background: var(--paper); color: var(--violet); display: grid; place-items: center; box-shadow: 0 4px 10px -3px rgba(21, 28, 39, .35); }
.map-bb .ic { width: 16px; height: 16px; }
.map-bb.on { background: var(--violet); color: #fff; width: 38px; height: 38px; box-shadow: 0 0 0 6px rgba(53, 37, 205, .18), 0 8px 16px -4px rgba(53, 37, 205, .6); }
.site-thumb { height: 92px; border-radius: 12px; display: flex; align-items: flex-end; padding: 8px; }
.site-thumb .pill { background: rgba(255, 255, 255, .92); }
.chip.busy { background: var(--bad-bg); border-color: transparent; color: var(--bad); text-decoration: line-through; }
.chip.free { background: var(--good-bg); border-color: transparent; color: var(--good); }

/* inventory */
.inv-split { grid-template-columns: 1.3fr 1fr; align-items: start; }
.inv-split .mk-row { grid-template-columns: 1fr 44px 44px auto; }
.recipe { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.recipe-name { font-size: 13.5px; line-height: 1.3; }
.recipe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.recipe li { display: flex; justify-content: space-between; gap: 8px; }
.recipe li small { color: var(--muted); }
.recipe-sum { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--muted); }
.recipe-sum b { color: var(--ink); }

/* students, kiosk, portal */
.stu-row { grid-template-columns: 1.3fr 1fr auto 72px; }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.kiosk-body { padding: 18px; background: linear-gradient(180deg, var(--sky), var(--paper)); display: grid; gap: 14px; }
.kiosk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kiosk-head b { display: block; font-size: 18px; letter-spacing: -0.02em; } .kiosk-head small { color: var(--muted); font-size: 12px; }
.kiosk-count { text-align: right; font-size: 22px; font-weight: 800; color: var(--violet); line-height: 1; white-space: nowrap; }
.kiosk-count small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.kiosk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 6px; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.tile b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .av { width: 36px; height: 36px; font-size: 12px; }
.tile.in { border-color: var(--good); background: #f4fbf7; }
.tile-ok { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; }
.tile-ok .ic { width: 11px; height: 11px; }
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: var(--shadow-mock); text-align: left; font-size: 13px; line-height: 1.4; }
.phone-in { background: var(--cream); border-radius: 31px; padding: 22px 14px 18px; display: grid; gap: 10px; min-height: 480px; align-content: start; }
.portal-top { display: flex; gap: 10px; align-items: center; }
.portal-top b { display: block; font-size: 14px; } .portal-top small { color: var(--muted); font-size: 11.5px; }
.portal-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--pink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.portal-tabs { display: flex; gap: 4px; overflow: hidden; }
.portal-tabs span { font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.portal-tabs span.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.pclass { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pday { font-size: 11px; font-weight: 800; color: var(--violet); background: var(--sky); border-radius: 10px; text-align: center; padding: 8px 0; }
.pclass b { display: block; font-size: 13px; } .pclass small { color: var(--muted); font-size: 11px; }
.join { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--violet); display: grid; place-items: center; }
.join .ic { width: 15px; height: 15px; }
.pdue { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--night); color: #fff; border-radius: 16px; padding: 14px; margin-top: 4px; }
.pdue small { display: block; color: #c9c6ee; font-size: 11px; } .pdue b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.pdue .btn-fake { background: var(--lime); color: var(--night); }

/* invoice, payslip, proposal, guest */
.inv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inv-head small { display: block; color: var(--muted); font-size: 11.5px; } .inv-head b { display: block; font-size: 13.5px; }
.inv-lines { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.inv-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.inv-lines li:last-child { border-bottom: 0; }
.inv-lines li small { color: var(--muted); margin-left: 4px; }
.inv-lines b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-total { background: var(--cream); font-weight: 700; } .inv-total b { font-size: 14px; }
.inv-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.inv-foot span { display: inline-flex; align-items: center; gap: 6px; } .inv-foot .ic { width: 14px; height: 14px; color: var(--violet); }
.share { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--sky); border-radius: 12px; padding: 10px 12px; }
.share-url { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.share-url .ic { width: 14px; height: 14px; color: var(--violet); flex: none; }
.guest-prog { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.guest-prog b { font-size: 13px; }
.guest-msg { justify-self: start; border-bottom-left-radius: 4px; border-bottom-right-radius: 16px; background: var(--lime); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 14px; overflow-x: auto; background: var(--cream); }
.kcol { display: grid; gap: 8px; align-content: start; }
.kcol-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 2px 2px 4px; }
.kcol-h span { margin-left: auto; color: var(--muted); }
.kd { width: 8px; height: 8px; border-radius: 50%; }
.kd-todo { background: var(--line-2); } .kd-in_progress { background: var(--violet); } .kd-in_review { background: #f5b800; } .kd-done { background: var(--good); }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.kcard b { font-size: 12.5px; line-height: 1.35; }
.kmeta { display: flex; gap: 4px; flex-wrap: wrap; }
.kfoot { display: flex; align-items: center; gap: 8px; }
.kfoot small { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.kfoot small:last-child { margin-left: auto; }
.kfoot .ic { width: 12px; height: 12px; }

/* broadcast */
.bc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bc-stats .kpi { padding: 10px 12px; } .bc-stats .kpi strong { font-size: 18px; }
.bc-stats .meter { height: 6px; margin-top: 8px; }
.m-read span { background: var(--good); } .m-failed span { background: var(--bad); } .m-delivered span { background: var(--violet-2); }
.bc-row { grid-template-columns: 1fr auto; }

/* automation flow */
.flow-split { grid-template-columns: 1.3fr 1fr; align-items: start; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fnode { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.fnode:not(:last-child)::after { content: ''; position: absolute; left: 27px; bottom: -15px; width: 2px; height: 14px; background: var(--line-2); }
.fnode small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fnode b { display: block; font-size: 12.5px; line-height: 1.35; }
.fn-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--violet); }
.fn-ic .ic { width: 16px; height: 16px; }
.fn-trigger { border-color: var(--violet); background: var(--sky); } .fn-trigger .fn-ic { background: var(--violet); color: #fff; }
.fn-cond .fn-ic { background: var(--warn-bg); color: var(--warn); }
.fn-wa .fn-ic { background: #dcf8e6; color: #128c4b; }
.flow-runs { display: grid; gap: 4px; align-content: start; }
.flow-runs .mk-row { grid-template-columns: 1fr auto; font-size: 12px; }
.flow-runs .btn-fake { margin-top: 8px; justify-self: start; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .mega { grid-template-columns: repeat(2, 240px); left: -40px; }
  .num-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none; }
  .nav-links {
    position: fixed; top: var(--drawer-top, 72px); left: 0; right: 0; bottom: 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 16px 20px 32px; gap: 2px; overflow-y: auto; transform: translateY(-8px); opacity: 0; transition: transform .2s, opacity .2s, visibility .2s; visibility: hidden;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav-links .dd-btn, .nav-links .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .nav-links .dd-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; display: none; }
  .nav-links .dd.open .dd-panel { display: grid; }
  .mega { grid-template-columns: 1fr; }
  .nav-mobile-ctas { display: grid; gap: 10px; margin-top: 16px; }
  .login-link { display: none !important; }
  .split, .tab-panel, .faq-wrap, .duo { grid-template-columns: 1fr; }
  .split-rev .split-text { order: 0; }
  .tab-panel { gap: 28px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .faq-wrap { gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .announce-in { font-size: .8rem; gap: 6px 10px; }
  .nav-in { gap: 12px; height: 64px; }
  .logo-text { font-size: 1.05rem; }
  .ctas .btn { width: 100%; }
  .num-grid, .cap-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 28px 16px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .mini-kpis .kpi strong { font-size: 16px; }
  .mock-src, .dash-note { display: none; }
  .hide-xs { display: none; }
  .hero-visual::before { inset: 8% -4% -4%; border-radius: 28px; }
  .tab-panel { border-radius: 24px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}
@media (max-width: 1180px) {
  .footer-in { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .dash-grid, .ord-split, .inv-split, .flow-split { grid-template-columns: 1fr; }
  .day { grid-template-columns: repeat(2, 1fr); }
  .day-step::after { display: none; }
}
@media (max-width: 640px) {
  .route-body { grid-template-columns: 1fr; }
  .route-side { border-left: 0; border-top: 1px solid var(--line); }
  .map { min-height: 220px; }
  .kiosk-grid { grid-template-columns: repeat(3, 1fr); }
  .kiosk-grid .tile:nth-child(n+7) { display: none; }
  .bc-stats { grid-template-columns: 1fr 1fr; }
  .stu-row { grid-template-columns: 1fr auto 64px; }
  .mini-rows li { grid-template-columns: 1fr auto auto; }
  .day { grid-template-columns: 1fr; }
  .ind-card { padding: 22px; }
}
@media (max-width: 360px) { .logo-text { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* bills + claims (appended) */
.st-pending_approval { background: var(--warn-bg); color: var(--warn); }
.st-awaiting_payment { background: var(--info-bg); color: var(--info); }
.bill-row { grid-template-columns: 1fr auto auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
.steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); z-index: 1; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 6px; left: calc(50% + 10px); right: calc(-50% + 10px); height: 2px; background: var(--line); }
.steps li.done { color: var(--ink); } .steps li.done i { background: var(--violet); border-color: var(--violet); }
.steps li.now i { box-shadow: 0 0 0 4px var(--lime); }
@media (max-width: 640px) { .bill-row { grid-template-columns: 1fr auto; } .bill-row .num { display: none; } }

/* shared bits that lived in brand-only mock blocks */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 12px; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.f-track { display: block; height: 6px; background: var(--sage); border-radius: 99px; overflow: hidden; }
.f-track > span { display: block; height: 100%; border-radius: 99px; background: var(--violet); }
.tab-visual { min-width: 0; }

/* mocks lay themselves out by their own width (hero vs. half-width split vs. phone) */
.mock { container-type: inline-size; }
@container (max-width: 680px) {
  .dash-grid, .ord-split, .inv-split, .flow-split { grid-template-columns: 1fr; }
}
@container (max-width: 520px) {
  .route-body { grid-template-columns: 1fr; }
  .route-side { border-left: 0; border-top: 1px solid var(--line); }
  .map { min-height: 220px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .bc-stats { grid-template-columns: 1fr 1fr; }
  .kiosk-grid { grid-template-columns: repeat(3, 1fr); }
  .kiosk-grid .tile:nth-child(n+7) { display: none; }
  .mini-rows li { grid-template-columns: 1fr auto auto; }
  .mini-rows li .hide-xs, .mk-row .hide-xs { display: none; }
  .stu-row { grid-template-columns: 1fr auto 64px; }
  .mock-src { display: none; }
}
.st-success { background: var(--good-bg); color: var(--good); }
/* narrow document-style mocks don't stretch across a page hero */
.hero-visual > .mock-slip, .hero-visual > .mock-inv-pay, .hero-visual > .mock-bc, .hero-visual > .mock-flow,
.hero-visual > .mock-stu, .hero-visual > .mock-inv, .hero-visual > .mock-guest, .hero-visual > .mock-bills { max-width: 820px; margin-left: auto; margin-right: auto; }
:lang(zh) .day-time, :lang(zh) .num-n, :lang(zh) .h3 em { font-family: inherit; font-style: normal; font-weight: 700; }
