/* ==========================================================================
   Landing v2 — visual polish layer
   Loaded after landing.css. Adds gloss, refined color, reveal motion and the
   branded page loader without touching the existing layout system.
   Everything here animates transform/opacity only, so scrolling stays smooth.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

:root {
  --lv2-ink: #0b2530;
  --lv2-ink-soft: #34505b;
  --lv2-muted: #5b7480;
  --lv2-paper: #f8faf7;
  --lv2-paper-deep: #eef4ef;
  --lv2-teal: #0e9384;
  --lv2-teal-deep: #0a6f68;
  --lv2-teal-soft: #ddf4ee;
  --lv2-indigo: #4b57a8;
  --lv2-amber: #c08a41;
  --lv2-line: rgba(13, 58, 55, .1);
  --lv2-line-strong: rgba(13, 58, 55, .16);
  --lv2-radius: 22px;
  --lv2-shadow-sm: 0 1px 2px rgba(11, 37, 48, .05), 0 10px 24px -16px rgba(11, 37, 48, .28);
  --lv2-shadow-md: 0 2px 5px rgba(11, 37, 48, .04), 0 22px 46px -26px rgba(11, 37, 48, .38);
  --lv2-shadow-lg: 0 4px 10px rgba(11, 37, 48, .04), 0 34px 70px -34px rgba(11, 37, 48, .46);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--lv2-paper);
  color: var(--lv2-ink);
}

/* ---------- Gloss utility (pointer-tracked sheen) ---------- */
.gloss {
  position: relative;
  isolation: isolate;
}

.gloss::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, .65),
    rgba(255, 255, 255, .12) 38%,
    rgba(255, 255, 255, 0) 66%
  );
  transition: opacity .4s ease;
}

.gloss:hover::after,
.gloss:focus-within::after {
  opacity: 1;
}


/* ---------- Header: softly frosted, condenses on scroll ---------- */
.site-header {
  background: rgba(251, 253, 250, .78);
  border-bottom: 1px solid rgba(13, 58, 55, .08);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 253, 250, .93);
  border-bottom-color: rgba(13, 58, 55, .12);
  box-shadow: 0 14px 34px -26px rgba(11, 37, 48, .5);
}

.site-header .brand {
  color: var(--lv2-ink);
}

.site-header .brand-symbol {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 8px 18px -6px rgba(14, 147, 132, .5);
}

.header-login:hover,
.main-nav a:hover {
  color: var(--lv2-teal-deep);
}

/* ---------- Buttons: glossy, tactile ---------- */
.button {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.button-primary {
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #15aa9a 0%, #0d8a7f 52%, #08665f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -2px 6px rgba(0, 0, 0, .12),
    0 14px 28px -14px rgba(8, 102, 95, .72);
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .42) 50%, transparent 64%);
  transform: translateX(-115%);
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.button-primary:hover::before {
  transform: translateX(115%);
}

.button-primary:hover {
  background: linear-gradient(135deg, #17b3a2 0%, #0e9488 52%, #0a716a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    0 18px 34px -14px rgba(8, 102, 95, .8);
}

.button-primary:active {
  transform: translateY(-1px) scale(.995);
}

.button-outline {
  border-color: rgba(13, 58, 55, .16);
  background: linear-gradient(160deg, #ffffff, #f5faf7);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -14px rgba(11, 37, 48, .5);
}

.button-outline:hover {
  border-color: rgba(14, 147, 132, .55);
  background: linear-gradient(160deg, #ffffff, #eefaf4);
  box-shadow: inset 0 1px 0 #fff, 0 12px 22px -14px rgba(14, 147, 132, .55);
}

.inline-link {
  color: var(--lv2-teal-deep);
}

.inline-link .icon {
  transition: transform .25s ease;
}

.inline-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(56% 66% at 78% 30%, rgba(20, 168, 149, .22), transparent 62%),
    radial-gradient(46% 58% at 90% 80%, rgba(75, 87, 168, .17), transparent 66%),
    radial-gradient(40% 50% at 16% 10%, rgba(192, 138, 65, .1), transparent 70%),
    linear-gradient(128deg, #fffdf8 0%, #f4faf6 52%, #eef4f8 100%);
}

.hero::before {
  opacity: .14;
}

.hero::after {
  right: 4%;
  top: 8%;
  width: 44%;
  height: 74%;
  background:
    radial-gradient(circle at 36% 32%, rgba(43, 155, 190, .18), transparent 40%),
    radial-gradient(circle at 68% 62%, rgba(75, 87, 168, .17), transparent 44%),
    radial-gradient(circle at 46% 82%, rgba(192, 138, 65, .12), transparent 30%);
  filter: blur(24px);
  opacity: .9;
}

.hero .eyebrow {
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(14, 147, 132, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px -18px rgba(11, 37, 48, .5);
}

.hero h1 {
  letter-spacing: -.062em;
  text-wrap: balance;
}

.hero h1 em {
  background: linear-gradient(94deg, #0a6f68 0%, #0e9384 44%, #3d7bb0 72%, #4b57a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-content > p {
  color: #4c666f;
}

.hero-footnote {
  color: #5d7c78;
}

.hero-footnote .icon {
  color: var(--lv2-teal);
}

/* ---------- Section rhythm ---------- */
.eyebrow {
  color: #087b72;
}

.eyebrow::before {
  background: linear-gradient(135deg, #16a898, #0a6f68);
  box-shadow: 0 0 0 5px rgba(14, 147, 132, .13);
}

.journey-strip {
  background:
    linear-gradient(90deg, #f0f8f4 0%, #eff6fa 50%, #f4f2fb 100%);
  border-bottom-color: rgba(13, 58, 55, .09);
}

.journey-inner {
  color: #265a56;
}

.intro-section {
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(75, 87, 168, .05), transparent 60%),
    linear-gradient(180deg, #fbfdfa 0%, #f6fafb 100%);
}

/* ---------- Signal cards ---------- */
.signal-layout {
  gap: 20px;
  border-top: 0;
}

.signal-item {
  padding: 26px 24px 28px;
  border: 1px solid var(--lv2-line);
  border-top: 3px solid var(--signal-color);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .9), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f8fcfa 60%, #f2f9f5 100%);
  box-shadow: var(--lv2-shadow-sm);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.signal-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--lv2-shadow-md);
  border-color: rgba(14, 147, 132, .22);
}

.signal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--signal-color);
  background: color-mix(in srgb, var(--signal-color) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal-color) 20%, transparent);
  font-size: .7rem;
  letter-spacing: .08em;
}

.signal-item h3 {
  margin-top: 16px;
}

/* ---------- Workflow panel ---------- */
.workflow-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(75, 87, 168, .3), transparent 32%),
    radial-gradient(circle at 10% 86%, rgba(20, 168, 149, .22), transparent 34%),
    radial-gradient(circle at 55% 78%, rgba(192, 138, 65, .1), transparent 24%),
    linear-gradient(160deg, #0c2d3b 0%, #0a2433 60%, #081e2c 100%);
}

.workflow-motion {
  border: 1px solid rgba(112, 220, 203, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 80%, rgba(14, 147, 132, .26), transparent 42%),
    radial-gradient(circle at 80% 18%, rgba(75, 87, 168, .26), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 24px 50px -30px rgba(0, 0, 0, .8);
}

.stop-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 7px #0b2938,
    0 14px 30px -12px rgba(0, 0, 0, .55);
}

/* ---------- Capability rows as glass cards ---------- */
.capability-list {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.capability-row {
  padding: 20px;
  border: 1px solid var(--lv2-line);
  border-radius: 18px;
  background:
    linear-gradient(150deg, #ffffff 0%, #f9fcfb 58%, color-mix(in srgb, var(--module-tint) 55%, #fff) 100%);
  box-shadow:
    inset 4px 0 0 var(--module-color),
    var(--lv2-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.capability-row:hover,
.capability-row:focus-within {
  padding-left: 20px;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--module-color) 28%, transparent);
  box-shadow:
    inset 4px 0 0 var(--module-color),
    var(--lv2-shadow-md);
}

.capability-icon {
  border-radius: 14px;
}

/* ---------- Detail visuals ---------- */
.detail-visual {
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    var(--lv2-shadow-md);
}

.visual-sheet,
.inventory-board,
.finance-board {
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 30px 55px -30px rgba(11, 37, 48, .55),
    0 10px 20px -14px rgba(11, 37, 48, .3);
}

/* ---------- Confidence nodes ---------- */
.confidence-art {
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    var(--lv2-shadow-md);
}

.confidence-node {
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(248, 253, 250, .9));
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 28px -18px rgba(11, 37, 48, .45);
}

/* ---------- Plans ---------- */
.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 18px;
}

.plan {
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--lv2-line);
  border-top: 3px solid var(--plan-color);
  border-radius: 24px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .95), transparent 56%),
    linear-gradient(158deg, #ffffff 0%, var(--plan-surface, #fbfdfb) 62%, #f4faf7 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    var(--lv2-shadow-sm);
  transition: transform .38s cubic-bezier(.2, .7, .2, 1), box-shadow .38s ease, border-color .38s ease;
}

.plan:hover,
.plan:focus-within {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 #fff,
    var(--lv2-shadow-lg);
}

.plan-featured {
  border-color: rgba(14, 147, 132, .5);
  border-top-color: var(--teal);
  background:
    radial-gradient(120% 74% at 100% 0%, rgba(255, 255, 255, .9), transparent 58%),
    linear-gradient(158deg, #f7fdfa 0%, #e9f8f0 58%, #ddf3e9 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 60px -30px rgba(14, 147, 132, .55);
}

.plan-featured::before {
  content: "MOST POPULAR";
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #065c54;
  background: linear-gradient(135deg, #dcf8ee, #bcecdd);
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px -10px rgba(8, 102, 95, .65);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.plan-pricing {
  border-top-color: color-mix(in srgb, var(--plan-color) 18%, transparent);
  font-size: .92rem;
}

/* ---------- Enquiry form ---------- */
.enquiry-form,
.form-success {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, .5);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .9), transparent 52%),
    linear-gradient(160deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 40px 80px -40px rgba(0, 0, 0, .55),
    0 12px 30px -24px rgba(0, 0, 0, .35);
}

.enquiry-form input,
.enquiry-form textarea {
  border-color: rgba(13, 58, 55, .14);
  background: #fbfdfc;
  box-shadow: inset 0 1px 2px rgba(11, 37, 48, .04);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: rgba(14, 147, 132, .7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 147, 132, .13);
}

.register-section {
  background:
    radial-gradient(circle at 4% 94%, rgba(14, 147, 132, .5), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(75, 87, 168, .3), transparent 30%),
    radial-gradient(circle at 66% 78%, rgba(192, 138, 65, .1), transparent 24%),
    linear-gradient(160deg, #072231 0%, #061b2b 58%, #051624 100%);
}

/* ---------- FAQ ---------- */
.faq-section {
  background:
    linear-gradient(120deg, #fbfdf9 0%, #f4fafb 52%, #f8f5fc 100%);
}

.faq-list details {
  transition: background .25s ease;
}

.faq-list details:hover {
  background: linear-gradient(90deg, rgba(14, 147, 132, .04), transparent 70%);
}

.faq-list details[open] {
  background: linear-gradient(90deg, rgba(14, 147, 132, .05), transparent 76%);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(circle at 84% 6%, rgba(75, 87, 168, .18), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(14, 147, 132, .16), transparent 30%),
    linear-gradient(180deg, #0a1f2e 0%, #071521 100%);
}

.footer-context-chip {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.footer-links a {
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
  transform: translateX(2px);
}

/* ---------- Entrance motion (GPU only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .hero-content > .eyebrow,
  .has-motion .hero-content > h1,
  .has-motion .hero-content > p,
  .has-motion .hero-content > .hero-actions,
  .has-motion .hero-content > .hero-footnote,
  .has-motion .ecosystem-scene {
    animation: lv2-rise .85s cubic-bezier(.2, .7, .2, 1) both;
  }

  .has-motion .hero-content > h1 { animation-delay: .06s; }
  .has-motion .hero-content > p { animation-delay: .12s; }
  .has-motion .hero-content > .hero-actions { animation-delay: .18s; }
  .has-motion .hero-content > .hero-footnote { animation-delay: .24s; }
  .has-motion .ecosystem-scene { animation-delay: .1s; }

  .has-motion .motion-reveal {
    transform: translateY(26px) scale(.985);
    transition:
      opacity .8s cubic-bezier(.2, .7, .2, 1),
      transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--motion-delay, 0ms);
  }

  .has-motion .motion-reveal.is-visible {
    transform: translateY(0) scale(1);
  }
}

@keyframes lv2-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Dark theme counterparts for the new surfaces ---------- */
html.dark body {
  background: #0f172a;
  color: #e6eef1;
}

html.dark .site-header {
  background: rgba(15, 23, 42, .8);
  border-bottom-color: rgba(148, 163, 184, .18);
}

html.dark .site-header.is-scrolled {
  background: rgba(15, 23, 42, .94);
}

html.dark .hero {
  background:
    radial-gradient(58% 68% at 78% 30%, rgba(51, 65, 85, .26), transparent 62%),
    radial-gradient(46% 58% at 90% 80%, rgba(75, 87, 168, .24), transparent 66%),
    linear-gradient(140deg, #111827 0%, #0f172a 100%);
}

html.dark .hero h1 em {
  background: linear-gradient(94deg, #5eead4 0%, #2dd4bf 46%, #93b4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html.dark .hero .eyebrow {
  border-color: rgba(94, 234, 212, .22);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

html.dark .signal-item {
  border-color: rgba(148, 163, 184, .16);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .05), transparent 55%),
    linear-gradient(160deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 42px -26px rgba(0, 0, 0, .8);
}

html.dark .signal-item h3 {
  color: #f1f5f9;
}

html.dark .signal-number {
  background: color-mix(in srgb, var(--signal-color) 22%, transparent);
}

html.dark .capability-row {
  border-color: rgba(148, 163, 184, .16);
  background:
    linear-gradient(150deg, #111827 0%, rgba(51, 65, 85, .1) 100%);
  box-shadow:
    inset 4px 0 0 var(--module-color),
    0 1px 2px rgba(0, 0, 0, .3);
}

html.dark .plan {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .05), transparent 56%),
    linear-gradient(158deg, #111827 0%, #0f172a 100%);
}

html.dark .plan-featured {
  border-color: rgba(45, 212, 191, .4);
  background:
    radial-gradient(120% 74% at 100% 0%, rgba(255, 255, 255, .06), transparent 58%),
    linear-gradient(158deg, #1e293b 0%, #111827 100%);
}

html.dark .plan-featured::before {
  color: #0f172a;
  background: linear-gradient(135deg, #7ef2dd, #35c3b0);
}

html.dark .enquiry-form,
html.dark .form-success {
  border-color: rgba(148, 163, 184, .2);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .04), transparent 52%),
    linear-gradient(160deg, #111827 0%, #0f172a 100%);
}

html.dark .enquiry-form input,
html.dark .enquiry-form textarea {
  border-color: rgba(148, 163, 184, .24);
  background: #0f172a;
}

html.dark .enquiry-form input:focus,
html.dark .enquiry-form textarea:focus {
  border-color: rgba(45, 212, 191, .7);
  background: #111827;
}

html.dark .gloss::after {
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, .18),
    rgba(255, 255, 255, 0) 66%
  );
}

html.dark .footer-links a:hover {
  color: #5eead4;
}

/* ---------- Small screens ---------- */
@media (max-width: 950px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-layout {
    gap: 0;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 76px;
  }

  .signal-item {
    padding: 22px;
    border-radius: 16px;
  }

  .capability-row {
    padding: 18px 16px;
  }

  .capability-row:hover,
  .capability-row:focus-within {
    padding-left: 16px;
  }

  .plan {
    padding: 24px;
    border-radius: 20px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .has-motion .hero-content > *,
  .has-motion .ecosystem-scene {
    animation: none !important;
  }

  .has-motion .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gloss::after {
    display: none;
  }

  .button-primary::before {
    display: none;
  }
}

/* ==========================================================================
   Product visuals v2 — richer invoice / inventory / finance cards
   ========================================================================== */

.visual-sheet,
.inventory-board,
.finance-board {
  width: min(86%, 410px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 58, 55, .1);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 60px -30px rgba(11, 37, 48, .5),
    0 10px 22px -16px rgba(11, 37, 48, .28);
}

/* ---------- Invoice ---------- */
.visual-sheet.invoice-card {
  display: grid;
  gap: 0;
  transform: rotate(-3deg) translateZ(12px);
}

.invoice-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #0b2b3a 0%, #0a5156 52%, #0a6f68 100%);
}

.invoice-card-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.invoice-card-mark .icon {
  width: 17px;
  height: 17px;
}

.invoice-card-meta {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.invoice-card-meta strong {
  color: #dff7f2;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.invoice-card-meta small {
  color: #9fd2cc;
  font-size: .57rem;
  font-weight: 600;
}

.invoice-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #eafff9;
  background: rgba(255, 255, 255, .14);
  font-size: .58rem;
  font-weight: 700;
}

.invoice-card-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3c56b;
  box-shadow: 0 0 0 3px rgba(243, 197, 107, .2);
}

.invoice-card-amount {
  padding: 16px;
  border-bottom: 1px solid #e4f0ea;
  background: linear-gradient(140deg, #f3fbf7, #e7f7f0);
}

.invoice-card-amount small {
  display: block;
  color: #5b857c;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.invoice-card-amount strong {
  display: block;
  margin: 6px 0 4px;
  color: #093b39;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.invoice-card-amount span {
  color: #557a73;
  font-size: .61rem;
  font-weight: 500;
}

.invoice-card-party {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #eef4f1;
  font-size: .63rem;
}

.invoice-card-party span {
  color: #7d9a93;
}

.invoice-card-party strong {
  color: #123c44;
  font-size: .67rem;
}

.invoice-card-lines {
  display: grid;
}

.invoice-card-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px dashed #e8f0ec;
  color: #6f8c85;
  font-size: .65rem;
}

.invoice-card-lines b {
  color: #123c44;
  font-weight: 700;
}

.invoice-card-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  color: #0a7a6f;
  font-size: .59rem;
  font-weight: 700;
}

.invoice-card-progress {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7f0ec;
}

.invoice-card-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e9384, #4b57a8);
}

/* ---------- Inventory ---------- */
.inventory-board.inventory-card {
  display: grid;
  gap: 0;
}

.inventory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.inventory-head small {
  display: block;
  color: #5f8a80;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.inventory-head strong {
  display: block;
  margin-top: 4px;
  color: #0d3740;
  font-size: 1.05rem;
  letter-spacing: -.035em;
}

.inventory-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #cfe9df;
  border-radius: 999px;
  color: #0d7d70;
  background: #f1fbf6;
  font-size: .55rem;
  font-weight: 700;
}

.inventory-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #18a58e;
  box-shadow: 0 0 0 3px rgba(24, 165, 142, .16);
}

.inventory-tabs {
  display: flex;
  gap: 5px;
  padding: 0 18px 12px;
}

.inventory-tabs span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #6d8b84;
  background: #f2f8f5;
  font-size: .57rem;
  font-weight: 700;
}

.inventory-tabs .is-active {
  color: #fff;
  background: linear-gradient(135deg, #0fa294, #0a6f68);
  box-shadow: 0 5px 12px -8px rgba(8, 102, 95, .9);
}

.inventory-list {
  display: grid;
  border-top: 1px solid #edf4f1;
}

.inventory-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #eef4f1;
  transition: background .2s ease;
}

.inventory-item:hover {
  background: #f7fcfa;
}

.inventory-thumb {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #0d8a7c;
  background: #e8f8f2;
  box-shadow: inset 0 1px 0 #fff;
}

.inventory-thumb .icon {
  width: 16px;
  height: 16px;
}

.inventory-thumb.tone-blue {
  color: #347fb4;
  background: #eaf3fb;
}

.inventory-thumb.tone-amber {
  color: #b87b2c;
  background: #fff4e4;
}

.inventory-name {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.1;
}

.inventory-name strong {
  color: #123c44;
  font-size: .67rem;
}

.inventory-name small {
  color: #7d9a93;
  font-size: .55rem;
}

.inventory-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .54rem;
  font-weight: 800;
}

.inventory-badge.is-ok {
  color: #0a7a6f;
  background: #e5f8f0;
  box-shadow: inset 0 0 0 1px #c7ecdf;
}

.inventory-badge.is-info {
  color: #2b6fa4;
  background: #e9f3fb;
  box-shadow: inset 0 0 0 1px #cbe1f2;
}

.inventory-badge.is-warn {
  color: #a5721f;
  background: #fff4e1;
  box-shadow: inset 0 0 0 1px #f2ddb4;
}

.inventory-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #f7fbf9;
}

.inventory-bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6efeb;
}

.inventory-bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e9384, #3d8fc4);
}

.inventory-foot > span:last-child {
  color: #5f8079;
  font-size: .57rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Finance ---------- */
.finance-board.finance-card {
  display: grid;
  gap: 0;
}

.finance-card .finance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.finance-card .finance-head small {
  display: block;
  color: #5f7fa8;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.finance-card .finance-head strong {
  display: block;
  margin: 4px 0 0;
  color: #0d3740;
  font-size: 1.05rem;
  letter-spacing: -.035em;
}

.finance-card .finance-trend {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0a7a6f;
  background: #e8f8f1;
  box-shadow: inset 0 0 0 1px #cdede0;
  font-size: .57rem;
  font-weight: 800;
}

.finance-card .finance-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 12px;
}

.finance-kpis > div {
  padding: 9px 10px;
  border: 1px solid #e9f1ee;
  border-radius: 11px;
  background: linear-gradient(150deg, #fbfdfc, #f4faf8);
}

.finance-kpis small {
  display: block;
  color: #7b968f;
  font-size: .51rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-card .finance-kpis strong {
  display: block;
  margin: 3px 0 0;
  color: #123c44;
  font-size: .92rem;
  letter-spacing: -.03em;
}

.finance-card .finance-chart {
  display: block;
  padding: 0 6px 10px;
}

.finance-card .finance-chart svg {
  display: block;
  width: 100%;
  height: 132px;
}

.finance-card .fin-grid {
  fill: none;
  stroke: #e6efeb;
  stroke-width: 1;
}

.finance-card .fin-area {
  fill: url(#finFill);
  stroke: none;
}

.finance-card .fin-line {
  fill: none;
  stroke: url(#finStroke);
  stroke-width: 3;
  stroke-linecap: round;
}

.finance-card .fin-dot {
  fill: #fff;
  stroke: #4b57a8;
  stroke-width: 2.5;
}

.finance-card .finance-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 14px 2px;
  color: #7d9992;
  font-size: .55rem;
  font-weight: 600;
}

.finance-axis span:nth-child(2) {
  color: #3d7bb0;
}

.finance-axis span:nth-child(3) {
  color: #7168b3;
}

.has-motion .visual-motion:not(.is-visible) .fin-line {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.has-motion .visual-motion.is-visible .fin-line {
  animation: lv2-fin-draw 1.4s cubic-bezier(.2, .75, .25, 1) .25s both;
}

@keyframes lv2-fin-draw {
  from { stroke-dasharray: 520; stroke-dashoffset: 520; }
  to { stroke-dasharray: 520; stroke-dashoffset: 0; }
}

/* ---------- Hero product window ---------- */
.ecosystem-card {
  transform: translateZ(var(--card-depth, 20px));
  animation: ecosystem-card-upright 44s linear infinite;
}

.ecosystem-card strong {
  font-size: .72rem;
  font-weight: 700;
  color: #0f3040;
  letter-spacing: -.01em;
}

.ecosystem-card small {
  font-size: .56rem;
  font-weight: 600;
  color: #4f706a;
  letter-spacing: .01em;
}

.ecosystem-card-icon {
  box-shadow: 0 4px 10px var(--module-shadow, rgba(21, 142, 131, .12));
}

.ecosystem-orbit-rotor {
  animation: ecosystem-orbit-turn 44s linear infinite;
}

.has-motion .ecosystem-orbit:hover .ecosystem-orbit-rotor,
.has-motion .ecosystem-orbit:hover .ecosystem-card {
  animation-play-state: paused;
}

.ecosystem-app {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: clamp(330px, 67cqw, 420px);
  container-type: inline-size;
  transform: translate(-50%, -50%) translateZ(52px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
}

.app-bezel {
  position: relative;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(155deg, #3a5a62 0%, #17343e 44%, #091d26 100%);
  box-shadow:
    inset 0 1px 0 rgba(210, 244, 235, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 30px 55px -28px rgba(8, 48, 50, .68),
    0 52px 80px -48px rgba(8, 48, 50, .5);
}

.app-bezel::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
  background: linear-gradient(116deg, rgba(255, 255, 255, .22), transparent 27%, transparent 72%, rgba(88, 221, 195, .12));
  opacity: .55;
  pointer-events: none;
}

.app-screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10.45;
  border-radius: 15px;
  background: #f4f9f7;
}

.app-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.2cqw;
  height: clamp(20px, 7.2cqw, 30px);
  padding: 0 3cqw;
  border-bottom: 1px solid #dfeae5;
  background: linear-gradient(180deg, #fbfdfc, #f0f6f3);
}

.app-dots {
  display: flex;
  gap: 1.1cqw;
}

.app-dots i {
  width: clamp(3px, 1.4cqw, 6px);
  height: clamp(3px, 1.4cqw, 6px);
  border-radius: 50%;
  background: #e3a9a0;
}

.app-dots i:nth-child(2) { background: #e7c98d; }
.app-dots i:nth-child(3) { background: #9dcfb5; }

.app-url {
  display: flex;
  align-items: center;
  gap: 1cqw;
  min-width: 0;
  margin-inline: auto;
  padding: .6cqw 3.2cqw;
  border: 1px solid #e1ece7;
  border-radius: 99px;
  color: #7d948d;
  background: #fff;
  font-size: clamp(.38rem, 2.4cqw, .52rem);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.app-url .icon {
  width: clamp(6px, 2.2cqw, 9px);
  height: clamp(6px, 2.2cqw, 9px);
  flex: none;
  color: #2f9d8d;
}

.app-live {
  display: flex;
  align-items: center;
  gap: 1cqw;
  color: #4d7a70;
  font-size: clamp(.37rem, 2.2cqw, .5rem);
  font-weight: 700;
  white-space: nowrap;
}

.app-live i {
  width: clamp(3px, 1.3cqw, 5px);
  height: clamp(3px, 1.3cqw, 5px);
  border-radius: 50%;
  background: #22b394;
  box-shadow: 0 0 0 3px rgba(34, 179, 148, .14);
}

.app-workspace {
  display: grid;
  flex: 1;
  grid-template-columns: 27% 1fr;
  min-height: 0;
}

.app-rail {
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
  min-width: 0;
  padding: 4cqw 2.8cqw;
  background: linear-gradient(180deg, #123039, #0b232c 62%, #0a1d25);
  color: #a9c6c4;
}

.app-rail-brand {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  margin-bottom: 1cqw;
  padding-bottom: 2.4cqw;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #eafff8;
}

.app-rail-brand .brand-symbol {
  width: clamp(14px, 5.4cqw, 24px);
  height: clamp(14px, 5.4cqw, 24px);
  flex: none;
  border-radius: 1.5cqw;
  box-shadow: none;
}

.app-rail-brand strong {
  overflow: hidden;
  font-size: clamp(.42rem, 2.5cqw, .64rem);
  letter-spacing: -.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-rail-label {
  padding-left: 1.4cqw;
  color: #6f9893;
  font-size: clamp(.3rem, 1.6cqw, .4rem);
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.app-rail-link {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  min-width: 0;
  padding: 1.4cqw 1.6cqw;
  border-radius: 1.4cqw;
  font-size: clamp(.38rem, 2.2cqw, .54rem);
  white-space: nowrap;
}

.app-rail-link .icon {
  width: clamp(8px, 3.2cqw, 14px);
  height: clamp(8px, 3.2cqw, 14px);
  flex: none;
  opacity: .85;
}

.app-rail-link.active {
  color: #dffff7;
  background: rgba(74, 205, 182, .17);
  box-shadow: inset 0 0 0 1px rgba(123, 232, 211, .12);
}

.app-rail-link.active .icon { opacity: 1; }

.app-rail-foot {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  margin-top: auto;
  color: #6f9893;
  font-size: clamp(.3rem, 1.7cqw, .42rem);
}

.app-rail-foot i {
  width: clamp(3px, 1.2cqw, 5px);
  height: clamp(3px, 1.2cqw, 5px);
  border-radius: 50%;
  background: #37c3a0;
  box-shadow: 0 0 0 3px rgba(55, 195, 160, .13);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
  min-width: 0;
  padding: 4cqw 4.2cqw 4.4cqw;
  background:
    radial-gradient(circle at 82% -4%, rgba(190, 236, 220, .55), transparent 46%),
    linear-gradient(160deg, #f8fcfa, #eef6f2);
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2cqw;
}

.app-head small {
  display: block;
  color: #129184;
  font-size: clamp(.3rem, 1.8cqw, .44rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-head strong {
  display: block;
  margin-top: .8cqw;
  color: #0b2530;
  font-size: clamp(.72rem, 3.4cqw, 1.02rem);
  letter-spacing: -.04em;
}

.app-period {
  display: flex;
  flex: none;
  align-items: center;
  gap: .8cqw;
  padding: 1cqw 2.2cqw;
  border: 1px solid #d5e7df;
  border-radius: 99px;
  color: #4d6c65;
  background: rgba(255, 255, 255, .82);
  font-size: clamp(.32rem, 1.9cqw, .46rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff;
}

.app-period .icon {
  width: clamp(5px, 2cqw, 8px);
  height: clamp(5px, 2cqw, 8px);
  transform: rotate(90deg);
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
}

.app-kpi {
  position: relative;
  min-width: 0;
  padding: 2.4cqw 2.6cqw;
  border: 1px solid #ddebe5;
  border-radius: 2.2cqw;
  background: linear-gradient(150deg, #fff, #f4fbf7);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(11, 37, 48, .5);
}

.app-kpi-icon {
  display: grid;
  place-items: center;
  width: clamp(16px, 5.6cqw, 24px);
  height: clamp(16px, 5.6cqw, 24px);
  margin-bottom: 1.6cqw;
  border-radius: 1.6cqw;
}

.app-kpi-icon .icon {
  width: 58%;
  height: 58%;
}

.app-kpi-icon.is-teal { color: #129184; background: #e2f6ef; }
.app-kpi-icon.is-blue { color: #3d7fae; background: #e9f3fb; }
.app-kpi-icon.is-amber { color: #b9863c; background: #fdf1dc; }
.app-kpi-icon.is-indigo { color: #5f63b8; background: #eeedfb; }

.app-kpi small {
  display: block;
  overflow: hidden;
  color: #75918a;
  font-size: clamp(.3rem, 1.8cqw, .44rem);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-kpi strong {
  display: block;
  margin-top: .6cqw;
  color: #10303c;
  font-size: clamp(.66rem, 3.2cqw, .98rem);
  letter-spacing: -.04em;
}

.app-kpi em {
  display: block;
  margin-top: .5cqw;
  color: #129184;
  font-size: clamp(.28rem, 1.7cqw, .4rem);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.app-grid {
  display: grid;
  flex: 1;
  grid-template-columns: 1.35fr .9fr;
  gap: 2.2cqw;
  min-height: 0;
}

.app-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2.8cqw;
  border: 1px solid #ddebe5;
  border-radius: 2.2cqw;
  background: linear-gradient(160deg, #fff, #f8fcfa);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -12px rgba(11, 37, 48, .45);
}

.app-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5cqw;
  margin-bottom: 1.6cqw;
}

.app-panel-head strong {
  color: #173a48;
  font-size: clamp(.36rem, 2.4cqw, .56rem);
}

.app-panel-head small {
  display: block;
  margin-top: .4cqw;
  color: #8ba39c;
  font-size: clamp(.27rem, 1.6cqw, .38rem);
}

.app-legend {
  display: flex;
  align-items: center;
  gap: 1cqw;
  color: #6f8a83;
  font-size: clamp(.27rem, 1.6cqw, .38rem);
  white-space: nowrap;
}

.app-legend i {
  width: clamp(3px, 1.2cqw, 5px);
  height: clamp(3px, 1.2cqw, 5px);
  border-radius: 50%;
  background: #2ca891;
}

.app-bars {
  display: flex;
  align-items: flex-end;
  gap: 4.5%;
  height: clamp(42px, 15cqw, 64px);
  padding-top: 1cqw;
  border-bottom: 1px solid #e2ece7;
}

.app-bars i {
  flex: 1;
  min-width: 3px;
  border-radius: 1.1cqw 1.1cqw 0 0;
  background: linear-gradient(180deg, #a5e2d3, #4db9a4);
  opacity: .55;
  height: 34%;
}

.app-bars i:nth-child(2) { height: 48%; }
.app-bars i:nth-child(3) { height: 41%; }
.app-bars i:nth-child(4) { height: 67%; opacity: .8; }
.app-bars i:nth-child(5) { height: 58%; opacity: .9; }
.app-bars i:nth-child(6) { height: 90%; opacity: 1; background: linear-gradient(180deg, #59c9b2, #129184); }

.app-bars-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2cqw;
  color: #92a8a2;
  font-size: clamp(.26rem, 1.6cqw, .37rem);
}

.app-feed {
  gap: .2cqw;
}

.app-feed-live {
  color: #129184;
  font-size: clamp(.27rem, 1.6cqw, .38rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-feed-row {
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  min-width: 0;
  padding: 1.5cqw 0;
}

.app-feed-row + .app-feed-row {
  border-top: 1px solid #edf3ef;
}

.app-avatar {
  display: grid;
  place-items: center;
  width: clamp(14px, 4.8cqw, 20px);
  height: clamp(14px, 4.8cqw, 20px);
  flex: none;
  border-radius: 1.4cqw;
}

.app-avatar .icon {
  width: 58%;
  height: 58%;
}

.app-avatar.is-teal { color: #129184; background: #e2f6ef; }
.app-avatar.is-blue { color: #3d7fae; background: #e9f3fb; }
.app-avatar.is-amber { color: #b9863c; background: #fdf1dc; }

.app-feed-row > div {
  min-width: 0;
}

.app-feed-row strong,
.app-feed-row small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-feed-row strong {
  color: #1b3a44;
  font-size: clamp(.3rem, 2.1cqw, .48rem);
}

.app-feed-row small {
  margin-top: .4cqw;
  color: #8ba39c;
  font-size: clamp(.26rem, 1.7cqw, .39rem);
}

.app-feed-row em {
  margin-left: auto;
  color: #7b948d;
  font-size: clamp(.26rem, 1.7cqw, .39rem);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Dark product window ---------- */
html.dark .app-screen {
  background: #111827;
}

html.dark .app-bar {
  border-bottom-color: #334155;
  background: linear-gradient(180deg, #1e293b, #111827);
}

html.dark .app-url {
  border-color: #334155;
  color: #8fb0a8;
  background: #0f172a;
}

html.dark .app-url .icon { color: #5fd3bd; }

html.dark .app-live { color: #8fb0a8; }

html.dark .app-main {
  background:
    radial-gradient(circle at 82% -4%, rgba(51, 65, 85, .35), transparent 48%),
    linear-gradient(160deg, #111827, #0f172a);
}

html.dark .app-head strong,
html.dark .app-kpi strong,
html.dark .app-panel-head strong,
html.dark .app-feed-row strong {
  color: #e6f4f0;
}

html.dark .app-head small { color: #5fd3bd; }

html.dark .app-period {
  border-color: #334155;
  color: #a4bdb6;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}

html.dark .app-kpi,
html.dark .app-panel {
  border-color: #334155;
  background: linear-gradient(160deg, #111827, #111827);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

html.dark .app-kpi-icon.is-teal { background: rgba(63, 203, 175, .14); }
html.dark .app-kpi-icon.is-blue { background: rgba(74, 146, 197, .14); }
html.dark .app-kpi-icon.is-amber { background: rgba(205, 155, 78, .14); }

html.dark .app-kpi small,
html.dark .app-panel-head small,
html.dark .app-feed-row small,
html.dark .app-bars-foot {
  color: #8aa8a1;
}

html.dark .app-kpi em { color: #5fd3bd; }

html.dark .app-bars {
  border-bottom-color: #334155;
}

html.dark .app-feed-row + .app-feed-row {
  border-top-color: #1e293b;
}

html.dark .app-feed-row em { color: #8aa8a1; }

html.dark .app-rail {
  background: linear-gradient(180deg, #111827, #0f172a 62%, #0f172a);
}

@media (max-width: 950px) {
  .ecosystem-app {
    transform: translate(-50%, -50%) translateZ(28px);
  }
}

@media (max-width: 620px) {
  .ecosystem-app {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: min(100%, 360px);
    margin-inline: auto;
    transform: none;
  }

  .app-bezel {
    padding: 5px;
    border-radius: 16px;
  }

  .app-screen {
    border-radius: 12px;
  }

  .app-bars {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-orbit-rotor,
  .ecosystem-card {
    animation: none;
  }
}

/* ---------- Dark + mobile for the new visuals ---------- */
html.dark .visual-sheet.invoice-card,
html.dark .inventory-board.inventory-card,
html.dark .finance-board.finance-card {
  border-color: rgba(148, 163, 184, .22);
  background: #111827;
}

html.dark .invoice-card-amount {
  border-bottom-color: #1e293b;
  background: linear-gradient(140deg, #111827, #111827);
}

html.dark .invoice-card-amount strong,
html.dark .invoice-card-party strong,
html.dark .invoice-card-lines b,
html.dark .inventory-head strong,
html.dark .inventory-name strong,
html.dark .finance-card .finance-head strong,
html.dark .finance-card .finance-kpis strong {
  color: #e6f4f0;
}

html.dark .invoice-card-party,
html.dark .invoice-card-lines div,
html.dark .inventory-list .inventory-item {
  border-color: #1e293b;
}

html.dark .invoice-card-lines div {
  color: #9fb8b2;
}

html.dark .inventory-item:hover {
  background: #1e293b;
}

html.dark .inventory-thumb {
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

html.dark .inventory-tabs span {
  background: rgba(255, 255, 255, .06);
}

html.dark .inventory-foot {
  background: #111827;
}

html.dark .invoice-card-progress,
html.dark .inventory-bar {
  background: rgba(255, 255, 255, .1);
}

html.dark .finance-kpis > div {
  border-color: #334155;
  background: #111827;
}

html.dark .finance-card .fin-grid {
  stroke: #334155;
}

html.dark .finance-card .finance-axis {
  color: #93b3ab;
}

@media (max-width: 620px) {
  .visual-sheet,
  .inventory-board,
  .finance-board {
    width: min(92%, 360px);
  }

  .invoice-card-amount strong {
    font-size: 1.4rem;
  }
}


/* ==========================================================================
   Product cards — ambient motion once the card is in view.
   Card float uses `translate` so it never fights the entrance `transform`.
   ========================================================================== */

[data-count],
.invoice-card-amount strong [data-count] {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: inherit;
}

.finance-card .fin-pulse {
  fill: none;
  stroke: none;
}

.finance-card .fin-halo {
  fill: none;
  stroke: none;
}

.inventory-tabs span,
.inventory-item {
  transition: background .35s ease, color .35s ease, opacity .35s ease, box-shadow .35s ease;
}

.inventory-list.is-filtering .inventory-item:not(.is-focus) {
  opacity: .4;
}

.inventory-item.is-focus {
  background: #f2faf7;
  box-shadow: inset 3px 0 0 #0e9384;
}

html.dark .inventory-item.is-focus {
  background: #1e293b;
}

@media (prefers-reduced-motion: no-preference) {
  /* Gentle float on every card, offset so the three never move in step */
  .has-motion .invoice-visual.visual-motion.is-visible .visual-sheet {
    animation:
      visual-invoice-enter .6s cubic-bezier(.2, .75, .25, 1) both,
      lv2-card-float 7s ease-in-out .6s infinite;
  }

  .has-motion .inventory-visual.visual-motion.is-visible .inventory-board {
    animation:
      visual-card-enter .55s cubic-bezier(.2, .75, .25, 1) both,
      lv2-card-float 8s ease-in-out 1.4s infinite;
  }

  .has-motion .finance-visual.visual-motion.is-visible .finance-board {
    animation:
      visual-card-enter .55s cubic-bezier(.2, .75, .25, 1) both,
      lv2-card-float 7.5s ease-in-out 2.2s infinite;
  }

  .has-motion .invoice-visual.visual-motion.is-visible .chip-top {
    animation:
      visual-chip-from-right .36s ease-out .88s both,
      lv2-chip-float 5s ease-in-out 1.3s infinite;
  }

  .has-motion .invoice-visual.visual-motion.is-visible .chip-bottom {
    animation:
      visual-chip-from-left .36s ease-out 1.06s both,
      lv2-chip-float 5.6s ease-in-out 2.4s infinite reverse;
  }

  /* Invoice: live status dot, line items checked one by one, progress fills */
  .has-motion .visual-motion.is-visible .invoice-card-status i,
  .has-motion .visual-motion.is-visible .inventory-live i {
    animation: lv2-live-ping 2s ease-out infinite;
  }

  .has-motion .visual-motion.is-visible .invoice-card-lines div {
    animation: lv2-line-check 6s ease-in-out infinite;
  }

  .has-motion .visual-motion.is-visible .invoice-card-lines div:nth-child(1) { animation-delay: 1.2s; }
  .has-motion .visual-motion.is-visible .invoice-card-lines div:nth-child(2) { animation-delay: 2.2s; }
  .has-motion .visual-motion.is-visible .invoice-card-lines div:nth-child(3) { animation-delay: 3.2s; }

  .has-motion .visual-motion.is-visible .invoice-card-progress i {
    transform-origin: left center;
    animation: lv2-progress-loop 6s cubic-bezier(.45, 0, .2, 1) 1.2s infinite;
  }

  .has-motion .visual-motion.is-visible .invoice-card-foot > span:last-child {
    animation: lv2-ready 6s ease-in-out 1.2s infinite;
  }

  /* Inventory: shimmer across the capacity bar, icons bob, in-progress badge breathes */
  .inventory-bar i {
    position: relative;
    overflow: hidden;
  }

  .has-motion .visual-motion.is-visible .inventory-bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: translateX(-100%);
    animation: lv2-shimmer 2.6s ease-in-out 1s infinite;
  }

  .has-motion .visual-motion.is-visible .inventory-thumb .icon {
    animation: lv2-icon-bob 3.2s ease-in-out infinite;
  }

  .has-motion .visual-motion.is-visible .inventory-item:nth-child(2) .inventory-thumb .icon { animation-delay: .5s; }
  .has-motion .visual-motion.is-visible .inventory-item:nth-child(3) .inventory-thumb .icon { animation-delay: 1s; }

  .has-motion .visual-motion.is-visible .inventory-badge.is-warn {
    animation: lv2-badge-breathe 2.4s ease-in-out infinite;
  }

  /* Finance: a light travels along the line, the end point pings, trend nudges up */
  .has-motion .visual-motion.is-visible .fin-pulse {
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 34 600;
    stroke-dashoffset: 34;
    opacity: .85;
    filter: drop-shadow(0 0 4px rgba(14, 147, 132, .8));
    animation: lv2-fin-travel 4.5s cubic-bezier(.45, 0, .25, 1) 1.8s infinite;
  }

  .has-motion .visual-motion.is-visible .fin-halo {
    fill: rgba(75, 87, 168, .35);
    transform-box: fill-box;
    transform-origin: center;
    animation: lv2-halo 2.2s ease-out 1.6s infinite;
  }

  .has-motion .visual-motion.is-visible .fin-area {
    animation: lv2-area-breathe 4.5s ease-in-out 1.8s infinite;
  }

  .has-motion .visual-motion.is-visible .finance-trend {
    animation: lv2-trend-nudge 3s ease-in-out 1.5s infinite;
  }

  html.dark .has-motion .visual-motion.is-visible .fin-pulse {
    stroke: #99f6e4;
  }

  /* Pause loops while the card is off screen */
  .detail-visual.is-offscreen *,
  .detail-visual.is-offscreen *::after {
    animation-play-state: paused !important;
  }
}

@keyframes lv2-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes lv2-chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes lv2-live-ping {
  0% { box-shadow: 0 0 0 0 rgba(14, 147, 132, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(14, 147, 132, 0); }
}

@keyframes lv2-line-check {
  0%, 22%, 100% { box-shadow: inset 0 0 0 0 transparent; background-color: transparent; }
  6%, 14% { box-shadow: inset 3px 0 0 #0e9384; background-color: rgba(14, 147, 132, .08); }
}

@keyframes lv2-progress-loop {
  0% { transform: scaleX(.08); }
  45%, 85% { transform: scaleX(1.39); }
  100% { transform: scaleX(.08); }
}

@keyframes lv2-ready {
  0%, 30% { opacity: .35; }
  45%, 85% { opacity: 1; }
  100% { opacity: .35; }
}

@keyframes lv2-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes lv2-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes lv2-badge-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 140, 32, 0); }
  50% { box-shadow: 0 0 0 4px rgba(217, 140, 32, .16); }
}

@keyframes lv2-fin-travel {
  0% { stroke-dashoffset: 34; opacity: 0; }
  8% { opacity: .85; }
  80% { opacity: .85; }
  92%, 100% { stroke-dashoffset: -420; opacity: 0; }
}

@keyframes lv2-halo {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}

@keyframes lv2-area-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

@keyframes lv2-trend-nudge {
  0%, 70%, 100% { translate: 0 0; }
  80% { translate: 0 -3px; }
  90% { translate: 0 0; }
}
