:root {
  color-scheme: light;
  --ink: #152c3b;
  --muted: #415965;
  --green: #146739;
  --green-dark: #0f492b;
  --rule: #d6e1d9;
  --paper: #f5f8f3;
  --white: #fff;
  --heading: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.6 "DM Sans", system-ui, sans-serif;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; letter-spacing: -.045em; }
h1 {
  font-size: clamp(2.65rem, 4.65vw, 4.75rem);
  font-weight: 800;
  text-wrap: balance;
}
h2 { font-size: clamp(1.95rem, 3.3vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.masthead, footer { background: var(--white); }
.masthead { border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}
.logo { display: block; max-width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.6rem; font-size: .93rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .65rem 1rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.primary { background: var(--green); color: var(--white); }
.primary:hover { background: var(--green-dark); }
.outline { background: var(--white); border-color: var(--rule); color: var(--ink); }
.outline:hover { border-color: var(--green); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6.5vw, 6rem);
}
.label { color: var(--green); font-size: .86rem; font-weight: 700; margin-bottom: .8rem; }
.hero-copy > p:not(.label) { max-width: 31rem; }
.hero-copy > p:not(.label):not(.note) {
  margin: 1.2rem 0 1.55rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.note { color: var(--muted); font-size: .89rem; }
.hero .note { margin-top: .9rem; }
.showcase {
  overflow: hidden;
  padding: clamp(.9rem, 2.6vw, 1.55rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 12px 36px #152c3b0d;
}
.showcase h2 { font-size: 1.2rem; letter-spacing: -.03em; margin-bottom: .85rem; }
.showcase-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .45rem;
  margin-bottom: .8rem;
}
.panel-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.panel-picker button, .showcase-playback {
  min-height: 42px;
  padding: .4rem .2rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: 700 .86rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.panel-picker button:hover, .showcase-playback:hover { border-color: var(--green); }
.showcase-playback { padding-inline: .52rem; }
.panel-picker button[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.visual-panel + .visual-panel { margin-top: .85rem; }
.is-enhanced .visual-stage { overflow: hidden; }
.is-enhanced .visual-track { display: flex; transition: transform .55s cubic-bezier(.22, .7, .25, 1); }
.is-enhanced .visual-panel { flex: 0 0 100%; min-width: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .is-enhanced .visual-track { transition: none; }
}
.visual-media {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #eaf3ee;
}
.visual-media svg, .visual-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.visual-media > * { min-width: 0; min-height: 0; }
figcaption { display: grid; gap: .2rem; padding-top: .75rem; min-height: 4.5rem; }
figcaption span { font-size: .9rem; color: var(--muted); }
.workflow { background: #122e43; color: var(--white); }
.workflow-inner, .handoff, .contact-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(2.6rem, 6vw, 5.25rem);
}
.workflow .label { color: #a1e3b5; }
.section-intro > p:last-child { max-width: 28rem; margin-top: .9rem; }
.workflow p:not(.label) { color: #d7e5ee; }
.workflow-list { list-style: none; counter-reset: workflow; margin: 0; padding: 0; }
.workflow-list li {
  counter-increment: workflow;
  position: relative;
  border-top: 1px solid #ffffff47;
  padding: 1.15rem 0 1.15rem 3rem;
}
.workflow-list li:last-child { border-bottom: 1px solid #ffffff47; }
.workflow-list li::before {
  content: counter(workflow);
  position: absolute;
  top: 1rem;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #a1e3b5;
  border-radius: 50%;
  color: #a1e3b5;
  font-weight: 700;
}
.workflow-list p { margin-top: .4rem; }
.handoff { background: var(--paper); }
.handoff .note { margin-top: .85rem; }
.text-link { display: inline-block; font-weight: 700; color: var(--green); margin-top: 1rem; }
.contact { background: #e7f1e7; border-block: 1px solid var(--rule); }
.contact-inner { align-items: center; }
.contact p:last-child { color: var(--muted); margin-top: .85rem; }
.contact-phone { color: var(--green-dark); font-weight: 700; }
.footer-inner { min-height: 94px; }
footer small { color: var(--muted); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus { position: absolute; z-index: 1; padding: .5rem; background: var(--white); }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero, .workflow-inner, .handoff, .contact-inner { grid-template-columns: 1fr; }
  .showcase { width: min(100%, 630px); }
  .header-inner, .footer-inner { gap: .7rem 1rem; flex-wrap: wrap; padding-block: .9rem; }
  .header-inner nav { order: 1; width: 100%; padding-top: .3rem; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: .45rem .9rem; font-size: .84rem; }
  .login { padding-inline: .7rem; }
  .masthead .logo { width: 120px; }
  .panel-picker button, .showcase-playback { font-size: .78rem; min-height: 44px; }
}


@media (max-width: 420px) {
  .showcase-controls { grid-template-columns: 1fr; }
  .showcase-playback { justify-self: end; }
}

/* The entrance and exit booms share their SVG drawing. Animate the exit only. */
.scan-waves, .reader-light, .pos-tap, .printed-slip {
  transform-box: fill-box;
  transform-origin: center;
}
.visual-panel.is-active .scan-waves { animation: apmc-scan 1.6s ease-out infinite; }
.visual-panel.is-active .reader-light { animation: apmc-reader 7s ease-in-out both; }
.visual-panel:is(.is-active, .is-leaving) .exit-boom { --boom-animation: apmc-boom; }
.moving-arm { transform-origin: 0 0; animation: var(--boom-animation, none) 7s ease-in-out both; }
.visual-panel:is(.is-active, .is-leaving) .fastag-truck { animation: apmc-depart 7s linear both; }
.visual-panel.is-active .pos-tap { animation: apmc-tap 5s ease-in-out both; }
.visual-panel.is-active .printed-slip { transform-origin: bottom center; animation: apmc-print 5s ease-in-out both; }
.visual-panel.is-active .weight-value { animation: apmc-weighment-scene 7s ease-in-out both; }
.showcase:not(.is-playing) .visual-panel * { animation-play-state: paused; }

@keyframes apmc-scan {
  0% { opacity: .15; transform: scale(.7); }
  30% { opacity: 1; }
  100% { opacity: .12; transform: translateY(4px) scale(1.08); }
}
@keyframes apmc-reader {
  0%, 20%, 95%, 100% { opacity: .55; }
  38%, 86% { opacity: 1; }
}
@keyframes apmc-boom {
  0%, 27% { transform: rotate(0); }
  49%, 100% { transform: rotate(-58deg); }
}
@keyframes apmc-depart {
  0%, 52% { transform: translate(0, 0); }
  61% { transform: translate(30px, 0); }
  70% { transform: translate(98px, 2px); }
  86% { transform: translate(229px, 8px); }
  98%, 100% { transform: translate(340px, 12px); }
}
@keyframes apmc-tap {
  0%, 17%, 45%, 100% { transform: translateX(-6px); }
  28%, 34% { transform: translateX(2px); }
}
@keyframes apmc-print {
  0%, 30% { transform: scaleY(.06); opacity: 0; }
  63%, 85% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes apmc-weighment-scene {
  0%, 12% { opacity: .55; }
  25%, 100% { opacity: 1; }
}
