@import url("tokens.css");

/* =========================================================
   Zorveza - marketing site styles
   Palette: paper + ink, one accent (ledger green), one quiet
   secondary (receipt amber). Fonts: Outfit (display),
   Inter (text), JetBrains Mono (figures).
   All fonts are SIL Open Font License via Google Fonts.
   ========================================================= */

:root {
  /* Color */
  --paper: #f5f1e8;
  /* base background */
  --paper-2: #ece6d8;
  /* recessed surfaces */
  --card: #fbf9f4;
  /* raised surfaces */
  --ink: #1c1b18;
  /* body text */
  --ink-2: #4a4740;
  /* secondary text */
  --ink-3: #7d786c;
  /* muted labels */
  --line: #d9d2c1;
  /* hairlines */
  --accent: #1f5a44;
  /* ledger green - CTAs, key data */
  --accent-ink: #f3efe4;
  /* text on accent */
  --accent-soft: #dfe8df;
  /* accent tints */
  --amber: #e2a03f;
  /* secondary - small highlights only */
  --alert: #b8452b;
  /* low-stock / error states */

  /* Type: Outfit for geometric crisp display, Inter for body legibility, JetBrains Mono for figures */
  --f-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.1875rem;
  --t-xl: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --t-2xl: clamp(1.85rem, 1.35rem + 2vw, 3rem);
  --t-3xl: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);

  /* Space (4px base - balanced vertical rhythm) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 22px;
  --s-6: 28px;
  --s-7: 40px;
  --s-8: clamp(40px, 5vw, 56px);
  --s-9: clamp(52px, 6.5vw, 72px);
  --s-10: clamp(72px, 8vw, 96px);

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  --shadow-1: 0 1px 0 rgba(28, 27, 24, 0.06), 0 8px 24px -12px rgba(28, 27, 24, 0.18);
  --shadow-2: 0 2px 0 rgba(28, 27, 24, 0.05), 0 24px 48px -24px rgba(28, 27, 24, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  /* signature "settle" */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 160ms;
  --d-med: 420ms;
  --d-slow: 800ms;

  --z-header: 50;
  --z-menu: 60;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius-s);
}

.skip-link:focus {
  top: 12px;
}

/* Small-caps label with number marker */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.label b {
  color: var(--accent);
  font-weight: 500;
}

.label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.mark {
  color: var(--accent);
  background: none;
  padding-inline: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--bg);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform var(--d-fast) var(--ease), background var(--d-med) var(--ease), color var(--d-med) var(--ease);
}

.btn svg {
  transition: transform var(--d-med) var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  --bg: var(--accent);
  --fg: var(--accent-ink);
}

.btn--accent:hover {
  --bg: #174836;
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  --bg: var(--ink);
  --fg: var(--paper);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--d-med) var(--ease);
}

.link-u:hover {
  background-size: 100% 1px;
}

/* ---------- Floating Header Shell ---------- */
.header-shell {
  position: sticky;
  top: 18px;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  width: 100%;
  padding-inline: clamp(16px, 3.5vw, 40px);
  pointer-events: none;
  transition: top var(--d-med) var(--ease), padding var(--d-med) var(--ease);
}

.header {
  pointer-events: auto;
  max-width: 1240px;
  margin-inline: auto;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(217, 210, 193, 0.9);
  border-radius: 9999px;
  box-shadow: 0 10px 32px -10px rgba(28, 27, 24, 0.08), 0 2px 6px -1px rgba(28, 27, 24, 0.04);
  padding: 4px 8px 4px 18px;
  transition: background var(--d-med) var(--ease), border-color var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease), transform var(--d-med) var(--ease);
}

.header.is-scrolled {
  background: rgba(245, 241, 232, 0.97);
  border-color: rgba(28, 27, 24, 0.18);
  box-shadow: 0 16px 38px -10px rgba(28, 27, 24, 0.14), 0 3px 8px -2px rgba(28, 27, 24, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  flex-shrink: 0;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__list {
  display: flex;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 4px;
  background: none;
  border: 0;
  transition: color var(--d-fast);
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--ink);
}

.nav__link svg {
  transition: transform var(--d-med) var(--ease);
}

.nav__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Drop panel: a "ledger sheet" that unfolds */
.drop {
  position: absolute;
  top: calc(100% + 18px);
  left: -24px;
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 48px -12px rgba(28, 27, 24, 0.18);
  clip-path: inset(0 0 100% 0 round var(--radius-m));
  opacity: 0;
  visibility: hidden;
  transition: clip-path var(--d-med) var(--ease), opacity var(--d-fast), visibility 0s linear var(--d-med);
}

.drop.is-open {
  clip-path: inset(0 0 0 0 round var(--radius-m));
  opacity: 1;
  visibility: visible;
  transition: clip-path var(--d-med) var(--ease), opacity var(--d-fast), visibility 0s;
}

.drop a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background var(--d-fast);
}

.drop a:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.drop a:nth-last-child(-n+2) {
  border-bottom: 0;
}

.drop a:hover {
  background: var(--paper);
}

.drop .num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  grid-row: span 2;
  padding-top: 3px;
}

.drop strong {
  font-weight: 500;
  font-size: var(--t-sm);
}

.drop small {
  color: var(--ink-3);
  font-size: var(--t-xs);
  line-height: 1.4;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
}

.header__cta .link-u {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.header__trial-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Mobile Actions Group (Pricing Pill + Hamburger Menu) */
.header__mobile-actions {
  display: none;
}

/* Animated Quick-Access Pricing Pill (Responsive Only) */
.header-pricing-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(31, 90, 68, 0.28);
  position: relative;
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}

.header-pricing-btn:hover {
  background: #174534;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31, 90, 68, 0.35);
}

.header-pricing-btn__beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(226, 160, 63, 0.85);
  animation: pricingBeaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes pricingBeaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 160, 63, 0.85);
    transform: scale(0.95);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(226, 160, 63, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 160, 63, 0);
    transform: scale(0.95);
  }
}

.header-pricing-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: pricingIconWiggle 3.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pricingIconWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  15% {
    transform: rotate(-14deg) scale(1.15);
  }
  30% {
    transform: rotate(12deg) scale(1.1);
  }
  45% {
    transform: rotate(-6deg) scale(1.05);
  }
  60% {
    transform: rotate(0deg) scale(1);
  }
}

.header-pricing-btn__text {
  letter-spacing: 0.02em;
  color: #ffffff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--d-fast), border-color var(--d-fast);
}

.burger:hover {
  background: #ede7d8;
  border-color: var(--ink-3);
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--d-med) var(--ease), opacity var(--d-fast);
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 20px;
}

.burger span:nth-child(3) {
  top: 25px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Backdrop Overlay */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-menu) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-med) var(--ease), visibility 0s linear var(--d-med);
}

.mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--d-med) var(--ease), visibility 0s;
}

/* Floating Mobile Menu Card */
.mobile-menu {
  position: fixed;
  top: 76px;
  left: clamp(14px, 3.5vw, 24px);
  right: clamp(14px, 3.5vw, 24px);
  max-width: 520px;
  margin-inline: auto;
  z-index: var(--z-menu);
  background: rgba(250, 247, 240, 0.98);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(217, 210, 193, 0.95);
  border-radius: 24px;
  padding: 16px 20px 22px;
  box-shadow: 0 24px 60px -12px rgba(28, 27, 24, 0.22), 0 4px 16px rgba(28, 27, 24, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--d-med) var(--ease), opacity var(--d-med) var(--ease), visibility 0s linear var(--d-med);
}

.mobile-menu.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform var(--d-med) var(--ease), opacity var(--d-med) var(--ease), visibility 0s;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
}

.mobile-menu a:not(.btn):not(.mobile-signin) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color var(--d-fast), transform var(--d-fast);
}

.mobile-menu a:not(.btn):not(.mobile-signin):hover {
  color: var(--accent);
  transform: translateX(4px);
}

.mobile-menu a span {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--accent);
}

.mobile-menu__footer {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: stretch;
}

.mobile-signin {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: 6px 0;
}

.mobile-menu .btn {
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  padding-bottom: var(--s-9);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 7;
  padding-bottom: var(--s-4);
}

/* Luxury Release Beacon Pill */
.hero-beacon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 210, 193, 0.95);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  margin-bottom: var(--s-5);
  box-shadow: 0 4px 16px -4px rgba(28, 27, 24, 0.05);
  font-size: var(--t-xs);
  transition: all var(--d-med) var(--ease);
}

.hero-beacon:hover {
  border-color: var(--accent);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(23, 72, 54, 0.12);
}

.beacon-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  position: relative;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  box-shadow: 0 0 8px #34d399;
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #34d399; }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 2px #34d399; }
}

.beacon-text {
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.beacon-arrow {
  color: var(--accent);
  font-weight: 600;
  transition: transform var(--d-fast) var(--ease);
}

.hero-beacon:hover .beacon-arrow {
  transform: translateX(4px);
}

/* Sophisticated Display Headline */
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.6rem + 1.85vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.hero__title .hero__line {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__title .hero__highlight {
  display: inline;
  color: var(--accent);
}

.hero__sub {
  max-width: 48ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.hero__actions {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
}

.hero__perks {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
}

.hero__perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-xs);
  color: var(--ink-2);
  font-weight: 500;
}

.hero__perk svg {
  flex-shrink: 0;
}

.hero__visual {
  grid-column: 8 / span 5;
  position: relative;
}

/* Backdrop Ambient Aura Animation */
.hero__aura {
  position: absolute;
  top: -12%;
  left: -10%;
  width: 120%;
  height: 115%;
  background: radial-gradient(circle at 35% 35%, rgba(23, 72, 54, 0.16) 0%, rgba(226, 160, 63, 0.14) 45%, transparent 72%);
  filter: blur(52px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  animation: auraFloat 9s ease-in-out infinite alternate;
}

@keyframes auraFloat {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.65; }
  50% { transform: scale(1.06) translate(14px, -12px); opacity: 0.92; }
  100% { transform: scale(1) translate(-10px, 10px); opacity: 0.72; }
}

/* Floating Speed Telemetry Chip */
.hero__chip--speed {
  position: absolute;
  z-index: 4;
  left: -22px;
  top: -16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: 0 12px 28px -6px rgba(28, 27, 24, 0.12), 0 2px 6px rgba(28, 27, 24, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: floatChipLeft 5.5s ease-in-out infinite;
}

.chip-beacon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(23, 72, 54, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(23, 72, 54, 0.4);
}

.chip-content {
  display: flex;
  flex-direction: column;
}

.chip-content strong {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.chip-content small {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* POS terminal + printed receipt (pure HTML/CSS) */
.terminal {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-l) var(--radius-l) var(--radius-m) var(--radius-m);
  padding: 18px 18px 24px;
  box-shadow: var(--shadow-2);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.terminal.is-scanning {
  box-shadow: 0 0 0 2px #7fc4a2, 0 20px 48px -8px rgba(23, 72, 54, 0.45);
  border-color: rgba(127, 196, 162, 0.4);
}

.terminal__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #a9a397;
  margin-bottom: 14px;
}

.terminal__top i {
  font-style: normal;
  color: #7fc4a2;
}

.terminal__scan {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2925;
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: #d8d2c4;
}

.terminal__scan .caret {
  width: 7px;
  height: 14px;
  background: var(--amber);
  animation: blink 1s steps(2) infinite;
}

.terminal__rows {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.terminal__rows div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #34322d;
}

.terminal__rows span:last-child {
  font-family: var(--f-mono);
}

.terminal__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
}

.terminal__total strong {
  font-family: var(--f-display);
  font-size: 2rem;
  letter-spacing: 0;
}

.terminal__slot {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 4px;
  border-radius: 4px;
  background: #000;
}

.receipt {
  position: relative;
  width: 78%;
  margin: -6px auto 0;
  background: #fffdf8;
  padding: 22px 20px 30px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transform-origin: top center;
  z-index: 1;
  /* zig-zag tear edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
}

.receipt h4 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: center;
  font-weight: 500;
}

.receipt p {
  text-align: center;
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 2px;
}

.receipt hr {
  border: 0;
  border-top: 1px dashed var(--ink-3);
  margin: 12px 0;
}

.receipt .r {
  display: flex;
  justify-content: space-between;
  line-height: 1.9;
}

.receipt .r.t {
  font-weight: 600;
  font-size: 13px;
}

.receipt .barcode {
  position: relative;
  overflow: hidden;
  height: 38px;
  margin-top: 14px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
  border-radius: 2px;
}

.barcode-laser {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 2px;
  background: #10b981;
  box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.85), 0 0 2px 1px #fff;
  animation: barcodeLaserSweep 2.6s ease-in-out infinite;
}

@keyframes barcodeLaserSweep {
  0% { top: 0; opacity: 0.2; }
  15% { opacity: 1; }
  50% { top: calc(100% - 2px); opacity: 1; }
  85% { opacity: 1; }
  100% { top: 0; opacity: 0.2; }
}

.hero__tag {
  position: absolute;
  z-index: 3;
  right: -18px;
  top: 38%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  box-shadow: 0 14px 32px -8px rgba(28, 27, 24, 0.14);
  font-size: var(--t-xs);
  width: 190px;
  animation: floatChipRight 6.5s ease-in-out infinite 0.7s;
}

@keyframes floatChipLeft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatChipRight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

.hero__tag strong {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
}

.hero__tag .bar {
  height: 4px;
  background: var(--paper-2);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.hero__tag .bar i {
  display: block;
  height: 100%;
  width: 18%;
  background: var(--alert);
  border-radius: 4px;
}

.hero__tag small {
  color: var(--alert);
  font-family: var(--f-mono);
}

/* ---------- Ticker (trust strip) ---------- */
.ticker {
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  transform: rotate(-1.2deg);
  max-width: 100vw;
}

@media (max-width: 768px) {
  .ticker {
    transform: none;
    margin-inline: 0;
  }
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ticker__item::after {
  content: "✕";
  font-size: 12px;
  color: var(--amber);
  margin-left: 28px;
}

/* ---------- Section scaffolding ---------- */
.section {
  padding-block: var(--s-10);
}

.section--tight {
  padding-block: var(--s-9);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
  align-items: end;
}

.section-head .label {
  grid-column: 1 / -1;
  margin-bottom: var(--s-2);
}

.section-head h2 {
  grid-column: 1 / span 7;
  font-size: var(--t-2xl);
}

.section-head p {
  grid-column: 9 / span 4;
  color: var(--ink-2);
}

/* ---------- Features: ledger bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.cell {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  background: transparent;
  transition: background var(--d-med) var(--ease);
}

.cell:hover {
  background: var(--card);
}

.cell__n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.cell h3 {
  font-size: var(--t-xl);
  margin-top: 6px;
}

.cell p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 38ch;
  margin-top: 8px;
}

.cell--a {
  grid-column: span 7;
  grid-row: span 3;
}

.cell--b {
  grid-column: span 5;
  grid-row: span 2;
}

.cell--c {
  grid-column: span 5;
  grid-row: span 1;
}

.cell--d {
  grid-column: span 4;
  grid-row: span 2;
}

.cell--e {
  grid-column: span 8;
  grid-row: span 2;
}

/* mini UI: stock table */
.stock {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.stock th {
  text-align: left;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.stock td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.stock tr:last-child td {
  border-bottom: 0;
}

.stock td.num {
  font-family: var(--f-mono);
  text-align: right;
}

.stock-prod-name {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.stock-prod-meta {
  display: none;
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-family: var(--f-mono);
  padding: 2px 8px;
  border-radius: 99px;
}

.pill--ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill--low {
  background: #f3ddd5;
  color: var(--alert);
}

.pill--exp {
  background: #f6e7c9;
  color: #8a5a12;
}

.stock tbody tr {
  transition: background var(--d-fast);
}

.stock tbody tr:hover {
  background: var(--paper);
}

/* mini UI: branches */
.branches {
  display: grid;
  gap: 10px;
}

.branch {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.branch i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 90, 68, 0.5);
  animation: ping 2.4s var(--ease) infinite;
}

.branch:nth-child(2) i {
  animation-delay: 0.6s;
}

.branch:nth-child(3) i {
  animation-delay: 1.2s;
  background: var(--amber);
}

.branch span:last-child {
  font-family: var(--f-mono);
  color: var(--ink-3);
  font-size: 12px;
}

/* mini UI: scanner */
.scan {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.scan__code {
  position: relative;
  width: 120px;
  height: 56px;
  flex: none;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 13px, transparent 13px 15px);
}

.scan__code::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  height: 2px;
  background: var(--alert);
  box-shadow: 0 0 8px var(--alert);
  top: 0;
  animation: scanline 2.2s var(--ease-in-out) infinite alternate;
}

/* mini UI: chart */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  position: relative;
  overflow: hidden;
}

/* Ambient radar telemetry sweep line */
.chart::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(31, 90, 68, 0.08) 50%, rgba(226, 160, 63, 0.12) 80%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  animation: chartTelemetrySweep 6s ease-in-out infinite;
}

@keyframes chartTelemetrySweep {
  0% {
    left: -30%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

.chart div {
  flex: 1;
  background: var(--paper-2);
  border-radius: 3px 3px 0 0;
  height: var(--h);
  transform-origin: bottom;
  transition: background var(--d-fast), filter 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  z-index: 1;
}

.chart div.hi {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(31, 90, 68, 0.35);
}

.chart div.is-pinged {
  filter: brightness(1.3);
  box-shadow: 0 -4px 14px rgba(226, 160, 63, 0.75);
}

.chart div:hover {
  background: var(--amber);
}

.chart div:hover::after {
  content: attr(data-v);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
}

.chart-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.chart-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeaconDot 2s ease-in-out infinite;
}

@keyframes pulseBeaconDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.55;
  }
}

/* mini UI: role chips */
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.role svg {
  width: 12px;
  height: 12px;
}

/* ---------- Workflow: pinned steps ---------- */
.flow {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-8);
}

.flow__sticky {
  position: sticky;
  top: 120px;
  align-self: start;
}

.flow__sticky h2 {
  font-size: var(--t-2xl);
}

.flow__sticky p {
  color: var(--ink-2);
  margin-top: var(--s-5);
  max-width: 40ch;
}

.flow__counter {
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  height: 1em;
  overflow: hidden;
  position: relative;
}

.flow__counter .prefix {
  display: inline-block;
  height: 1em;
  line-height: 1em;
  vertical-align: top;
}

.flow__counter .digits {
  display: flex;
  flex-direction: column;
  height: 1em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.flow__counter .digits span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1em;
  flex-shrink: 0;
}

.flow__progress {
  margin-top: var(--s-4);
  max-width: 260px;
}

.flow__progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.flow__progress-fill {
  height: 100%;
  width: 20%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}

.flow__progress-text {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flow__steps {
  display: grid;
  gap: var(--s-6);
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity var(--d-med) var(--ease);
}

.step.is-active {
  opacity: 1;
}

.step svg {
  width: 120px;
  height: 120px;
}

.step svg .draw {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.2s var(--ease);
}

.step.is-active svg .draw {
  stroke-dashoffset: 0;
}

.step h3 {
  font-size: var(--t-xl);
}

.step p {
  color: var(--ink-2);
  margin-top: 10px;
}

.step ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: var(--t-sm);
}

.step li::before {
  content: "→ ";
  color: var(--accent);
  font-family: var(--f-mono);
}

/* ---------- Benefits: ledger rows ---------- */
.ledger {
  border-top: 1px solid var(--ink);
}

.ledger__row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 140px;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.ledger__row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--card);
  z-index: -1;
  transition: width var(--d-med) var(--ease);
}

.ledger__row:hover::before {
  width: 100%;
}

.ledger__row .n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
  padding-left: 8px;
}

.ledger__row h3 {
  font-size: 1.5rem;
}

.ledger__row p {
  color: var(--ink-2);
}

.ledger__row .fig {
  font-family: var(--f-mono);
  text-align: right;
  color: var(--accent);
  font-size: var(--t-sm);
  padding-right: 8px;
}

/* ---------- Coverage band (Built for Growth) ---------- */
.coverage {
  background: var(--accent);
  color: var(--accent-ink);
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 8vw, 110px);
}

.coverage::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 160, 63, 0.13) 0%, transparent 68%);
  pointer-events: none;
}

.coverage::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.coverage__orbital-layer {
  position: absolute;
  right: -140px;
  top: -140px;
  width: 580px;
  height: 580px;
  pointer-events: none;
}

.coverage__ring {
  width: 100%;
  height: 100%;
  opacity: 0.16;
  animation: spin 55s linear infinite;
}

.coverage__satellite-pulse {
  position: absolute;
  top: 15%;
  left: 48%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(226, 160, 63, 0.85);
  animation: satelliteOrbit 55s linear infinite;
  transform-origin: 200px 200px;
}

@keyframes satelliteOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes infinityPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.06);
    text-shadow: 0 0 22px rgba(52, 211, 153, 0.6), 0 0 8px rgba(226, 160, 63, 0.4);
  }
}

.coverage__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.coverage-beacon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: #d0ded6;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.coverage-beacon .beacon-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: beaconPulse 1.8s ease-in-out infinite;
}

.coverage .label {
  color: #b9cdbf;
}

.coverage .label b {
  color: var(--amber);
}

.coverage .label::after {
  background: #3d7660;
}

.coverage h2 {
  font-size: var(--t-2xl);
  margin-top: var(--s-3);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.coverage p {
  color: #cfdcd3;
  margin-top: var(--s-4);
  max-width: 46ch;
  line-height: 1.6;
  font-size: var(--t-base);
}

/* Multi-Branch Topology Mesh */
.branch-mesh-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.branch-mesh-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
}

.mesh-caption {
  color: #a8c7b6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
}

.mesh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 11px;
}

.mesh-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseBeaconDot 2s ease-in-out infinite;
}

.branch-mesh-grid {
  display: grid;
  gap: 10px;
}

.branch-node-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-s);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.branch-node-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

.branch-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-icon-wrap--flagship {
  background: rgba(226, 160, 63, 0.14);
  border-color: rgba(226, 160, 63, 0.3);
}

.branch-icon-wrap--kiosk {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.3);
}

.branch-icon-wrap--depot {
  background: rgba(243, 239, 228, 0.12);
  border-color: rgba(243, 239, 228, 0.25);
}

.branch-node-info {
  flex: 1;
  min-width: 0;
}

.branch-node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.branch-node-top strong {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.branch-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #d1e2d7;
  letter-spacing: 0.02em;
}

.branch-node-info p {
  font-size: 11px;
  color: #bfd5c8;
  margin: 2px 0 0;
  line-height: 1.35;
}

.branch-mesh-conduit {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.conduit-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.conduit-pulse {
  position: absolute;
  top: 0;
  left: -20%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #34d399, #e2a03f, transparent);
  border-radius: 3px;
  animation: conduitFlow 3.2s ease-in-out infinite;
}

@keyframes conduitFlow {
  0% { left: -35%; }
  100% { left: 135%; }
}

.conduit-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: #9cb8a9;
  margin-top: 6px;
}

.conduit-legend-highlight {
  color: #34d399;
}
}

/* Feature Checkpoints */
.coverage-features {
  list-style: none;
  margin: 20px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coverage-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #d6e2da;
  line-height: 1.45;
}

.coverage-features .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(226, 160, 63, 0.18);
  color: var(--amber);
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right Side: Frosted Glass Stat Deck */
.coverage-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cov-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  outline: none;
}

.cov-card:hover,
.cov-card:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), 0 0 20px rgba(52, 211, 153, 0.12);
}

.cov-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cov-card__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: #9cb8a9;
  letter-spacing: 0.05em;
}

.cov-card__pill {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d0ded6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cov-card__figure {
  display: flex;
  align-items: baseline;
  min-height: 44px;
}

.cov-card__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cov-card__unit {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amber);
  margin-left: 2px;
}

.cov-card__infinity {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
  animation: infinityPulse 3s ease-in-out infinite;
  display: inline-block;
}

.cov-card__code {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cov-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 4px;
}

.cov-card__desc {
  font-size: 12px;
  color: #b9cdbf;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  max-width: 860px;
  margin-inline: auto;
}

.pricing-head h2 {
  font-size: var(--t-2xl);
  max-width: 100%;
  margin-top: var(--s-2);
  text-wrap: balance;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-sm);
}

.toggle__btn {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 0;
}

.toggle__btn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform var(--d-med) var(--ease), background var(--d-med);
}

.toggle__btn[aria-checked="true"]::after {
  transform: translateX(26px);
  background: var(--accent);
}

.toggle .save {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--amber);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 3px;
  transform: rotate(-3deg);
  display: inline-block;
}

.toggle [data-l] {
  color: var(--ink-3);
  transition: color var(--d-fast);
}

.toggle [data-l].on {
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--card);
}

.plan {
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.plan+.plan {
  border-left: 1px solid var(--line);
}

.plan--feature {
  background: var(--ink);
  color: var(--paper);
  margin: -12px 0;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  position: relative;
}

.plan--feature .plan__desc,
.plan--feature li {
  color: #c9c3b6;
}

.plan__flag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--amber);
  padding: 3px 8px;
  border-radius: 3px;
}

.plan__name {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__price .cur {
  font-family: var(--f-display);
  font-size: 1.5rem;
}

.plan__price .amt {
  font-family: var(--f-display);
  font-size: 3.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: inline-flex;
  overflow: hidden;
  height: 1.2em;
}

.plan__price .per {
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.plan--feature .plan__price .per {
  color: #a9a397;
}

.amt .d {
  display: inline-flex;
  flex-direction: column;
  transition: transform var(--d-slow) var(--ease);
}

.amt .d span {
  display: block;
  height: 1.2em;
  line-height: 1.15;
}

.plan__desc {
  color: var(--ink-2);
  font-size: var(--t-sm);
  min-height: 3.2em;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: var(--s-5) 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
  font-size: var(--t-sm);
  flex: 1;
}

.plan--feature ul {
  border-color: #3a3833;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--ink-2);
}

.plan li svg {
  margin-top: 4px;
  color: var(--accent);
}

.plan--feature li svg {
  color: var(--amber);
}

.plan li.off {
  opacity: 0.4;
  text-decoration: line-through;
}

.plan .btn {
  justify-content: center;
}

.plan--feature .btn--ghost {
  --fg: var(--paper);
  border-color: var(--paper);
}

.plan--feature .btn--ghost:hover {
  --bg: var(--paper);
  --fg: var(--ink);
}

.pricing-note {
  margin-top: var(--s-6);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-8);
}

.faq-grid h2 {
  font-size: var(--t-2xl);
  margin-top: var(--s-4);
}

.faq-grid>div:first-child p {
  color: var(--ink-2);
  margin-top: var(--s-5);
}

.acc {
  border-top: 1px solid var(--ink);
}

.acc__item {
  border-bottom: 1px solid var(--line);
}

.acc__q {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: var(--s-4);
  align-items: center;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-5) 0;
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}

.acc__q .n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.acc__q .pm {
  position: relative;
  width: 16px;
  height: 16px;
}

.acc__q .pm::before,
.acc__q .pm::after {
  content: "";
  position: absolute;
  inset: 7px 0 auto 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--d-med) var(--ease);
}

.acc__q .pm::after {
  transform: rotate(90deg);
}

.acc__q[aria-expanded="true"] .pm::after {
  transform: rotate(0);
}

.acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-med) var(--ease);
}

.acc__a>div {
  overflow: hidden;
}

.acc__a p {
  padding: 0 40px var(--s-5) 64px;
  color: var(--ink-2);
}

.acc__q[aria-expanded="true"]+.acc__a {
  grid-template-rows: 1fr;
}

/* ---------- Field notes (blog) ---------- */
.notes {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-5);
}

.note {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.note__cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
}

.note:first-child .note__cover {
  aspect-ratio: 16 / 10;
}

.note__cover svg {
  width: 100%;
  height: 100%;
  transition: transform var(--d-slow) var(--ease);
}

.note:hover .note__cover svg {
  transform: scale(1.04) rotate(-0.5deg);
}

.note__meta {
  display: flex;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.note__meta b {
  color: var(--accent);
  font-weight: 500;
}

.note h3 {
  font-size: 1.375rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.note:first-child h3 {
  font-size: 1.875rem;
}

.note h3 a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--d-med) var(--ease);
}

.note:hover h3 a {
  background-size: 100% 1px;
}

/* ---------- Connects (hardware & formats) ---------- */
.connects {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--card);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28, 27, 24, 0.04);
}

.connect {
  aspect-ratio: auto;
  min-height: 154px;
  border-right: 1px solid rgba(217, 210, 193, 0.4);
  border-bottom: 1px solid rgba(217, 210, 193, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 22px);
  gap: 16px;
  min-width: 0;
  transition: background var(--d-med) var(--ease), color var(--d-med) var(--ease);
}

.connect:hover {
  background: var(--ink);
  color: var(--paper);
}

.connect:hover svg {
  stroke: var(--paper);
}

.connect:hover strong {
  color: var(--paper);
}

.connect svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent);
}

.connect svg .draw {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}

.connect:hover svg .draw {
  animation: redraw 900ms var(--ease);
}

.connect div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.connect strong {
  display: block;
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.25;
  color: var(--ink);
  white-space: normal;
  word-break: normal;
}

.connect small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
}

.connect:hover small {
  color: #a9a397;
}

/* ---------- Final CTA ---------- */
.cta {
  padding-block: var(--s-10) var(--s-9);
}

.cta__box {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-7);
  align-items: end;
  padding: var(--s-8) var(--s-7);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.cta__box h2 {
  font-size: var(--t-3xl);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.cta__box p {
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}

.cta__box .hero__actions {
  margin-top: 0;
}

.cta__stamp {
  position: absolute;
  right: 36px;
  top: 30px;
  width: 120px;
  height: 120px;
  animation: spin 24s linear infinite;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 4fr;
  gap: var(--s-6);
}

.footer__brand p {
  color: var(--ink-2);
  margin-top: var(--s-4);
  max-width: 34ch;
  font-size: var(--t-sm);
}

.footer h4 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: var(--s-4);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: var(--t-sm);
}

.news {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.news input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--ink);
}

.news input:focus {
  outline: none;
}

.news:focus-within {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.news button {
  border: 0;
  background: none;
  padding: 0 0 0 12px;
  display: inline-flex;
  align-items: center;
}

.news-msg {
  font-size: var(--t-xs);
  margin-top: 10px;
  min-height: 1.4em;
  font-family: var(--f-mono);
}

.news-msg.ok {
  color: var(--accent);
}

.news-msg.err {
  color: var(--alert);
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: 10px;
}

.consent input {
  accent-color: var(--accent);
  margin-top: 2px;
}

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-8);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.footer__base nav {
  display: flex;
  gap: var(--s-5);
}

/* ---------- Pulse Dot Indicator ---------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2cb67d;
  box-shadow: 0 0 0 0 rgba(44, 182, 125, 0.6);
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(226, 160, 63, 0.6);
}

.pulse-dot--alert {
  background: var(--alert);
  box-shadow: 0 0 0 0 rgba(184, 69, 43, 0.6);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(44, 182, 125, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(44, 182, 125, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(44, 182, 125, 0);
  }
}

/* ---------- Hero Interactive Terminal Quick Items ---------- */
.terminal__quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #34322d;
}

.quick-title {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #a9a397;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.term-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  background: #2a2925;
  color: #f5f1e8;
  border: 1px solid #45423b;
  border-radius: var(--radius-s);
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.term-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.term-btn--reset {
  background: transparent;
  border-color: #555046;
  color: #a9a397;
  margin-left: auto;
}

.term-btn--reset:hover {
  background: #3a221f;
  border-color: var(--alert);
  color: #fff;
}

/* ---------- Offline-first Dual Engine ---------- */
/* ---------- Offline Dual-Engine Showcase ---------- */
.offline-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 10px 36px rgba(28, 27, 24, 0.05);
  overflow: hidden;
}

.offline-media-showcase {
  position: relative;
  width: 100%;
}

.offline-media-frame {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 14px 38px rgba(28, 27, 24, 0.12);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
}

.offline-media-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(28, 27, 24, 0.16);
}

.offline-media-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease);
}

.offline-media-frame:hover .offline-media-img {
  transform: scale(1.02);
}

.offline-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid rgba(217, 210, 193, 0.85);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(28, 27, 24, 0.08);
  z-index: 2;
}

.offline-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeaconDot 2s ease-in-out infinite;
}

.offline-telemetry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 27, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 18px;
  color: #fff;
  z-index: 2;
}

.offline-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-family: var(--f-mono);
}

.offline-telemetry-label {
  display: block;
  font-size: 10px;
  color: #a9a397;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offline-telemetry-val {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #fffdf8;
  margin-top: 2px;
}

.offline-val-accent {
  color: #7fc4a2;
}

.offline-sync-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.offline-sync-line-fill {
  height: 100%;
  width: 100%;
  background: #2cb67d;
  box-shadow: 0 0 8px #2cb67d;
}

.offline-sync-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: #a9a397;
  margin-top: 6px;
}

.offline-footnote-health {
  color: #7fc4a2;
  font-weight: 500;
}

.offline-features-list {
  display: grid;
  gap: var(--s-5);
  justify-content: center;
}

.off-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.off-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 600;
}

.off-item h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.off-item p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Minimal Animated Batch Radar Console ---------- */
.batch-console {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 10px 30px -10px rgba(28, 27, 24, 0.06);
  margin-top: var(--s-7);
  overflow: hidden;
  transition: border-color var(--d-med);
}

.batch-console:hover {
  border-color: rgba(28, 27, 24, 0.2);
}

.batch-console__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(245, 241, 232, 0.55);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.batch-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.batch-tab:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.batch-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tab-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.tab-indicator--urgent {
  background: var(--alert);
  box-shadow: 0 0 6px rgba(178, 74, 59, 0.6);
  animation: beaconPulse 1.8s ease-in-out infinite;
}

.tab-indicator--warn {
  background: var(--amber);
}

.tab-indicator--safe {
  background: #34d399;
}

.tab-count {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.batch-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--paper);
}

.tab-count--urgent {
  color: var(--alert);
  background: #fbeae5;
}

.tab-count--warn {
  color: #8a5a12;
  background: #fdf3df;
}

.tab-count--safe {
  color: var(--accent);
  background: var(--accent-soft);
}

.radar-live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.radar-sweep-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.radar-sweep-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1.5px;
  background: var(--accent);
  transform-origin: 0 0;
  animation: radarSpin 2.4s linear infinite;
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animated Spectrum Track */
.batch-spectrum {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}

.batch-spectrum__track {
  height: 6px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #fbeae5 0%, #fbeae5 25%, #fdf3df 25%, #fdf3df 55%, #e6f4ee 55%, #e6f4ee 100%);
}

.batch-spectrum__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--alert) 0%, var(--alert) 25%, var(--amber) 25%, var(--amber) 55%, var(--accent) 55%, var(--accent) 100%);
  opacity: 0.85;
}

.batch-spectrum__scanner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  animation: radarScanner 3s ease-in-out infinite;
}

@keyframes radarScanner {
  0% { left: -40px; }
  50% { left: 100%; }
  100% { left: -40px; }
}

.batch-spectrum__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* Minimal Table Rows */
.batch-table {
  display: flex;
  flex-direction: column;
}

.batch-row {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1fr 1.4fr;
  align-items: center;
  gap: var(--s-4);
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-xs);
  transition: background var(--d-fast) var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-row:hover {
  background: rgba(245, 241, 232, 0.45);
}

.batch-row.is-hidden {
  display: none;
}

.batch-row__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.batch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.batch-dot--urgent {
  background: var(--alert);
  box-shadow: 0 0 6px rgba(178, 74, 59, 0.5);
}

.batch-dot--warn {
  background: var(--amber);
}

.batch-dot--safe {
  background: var(--accent);
}

.batch-row__identity strong {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink);
  font-weight: 600;
}

.batch-sku {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

.batch-row__timeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-bar {
  height: 4px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  max-width: 140px;
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.time-urgent {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--alert);
  font-weight: 500;
}

.time-warn {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #8a5a12;
}

.time-safe {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
}

.batch-row__stock {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}

.batch-row__action {
  text-align: right;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.status-pill--urgent {
  background: #fbeae5;
  color: var(--alert);
  border: 1px solid rgba(178, 74, 59, 0.25);
}

.status-pill--warn {
  background: #fdf3df;
  color: #8a5a12;
  border: 1px solid rgba(226, 160, 63, 0.3);
}

.status-pill--safe {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(23, 72, 54, 0.2);
}

.status-pill--normal {
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* Console Footer & Animated Transfer Pipeline */
.batch-console__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(245, 241, 232, 0.65);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: var(--s-4);
}

.transfer-flow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 11px;
}

.transfer-point {
  font-weight: 600;
  color: var(--ink);
}

.transfer-pipeline {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px 12px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 999px;
}

.pipeline-cargo {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.transfer-note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.batch-audit-btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Unified Commerce (Retail POS + B2B Wholesale) ---------- */
.wholesale-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}

.commerce-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  box-shadow: 0 4px 20px rgba(28, 27, 24, 0.04);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
}

.commerce-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 27, 24, 0.08);
  border-color: rgba(28, 27, 24, 0.2);
}

.commerce-card--highlight {
  background: #fbf9f2;
  border-color: rgba(31, 90, 68, 0.35);
  box-shadow: 0 6px 24px rgba(31, 90, 68, 0.08);
}

.commerce-card--highlight:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 38px rgba(31, 90, 68, 0.14);
}

.commerce-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.commerce-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.commerce-icon-badge--retail {
  background: rgba(226, 160, 63, 0.1);
  border-color: rgba(226, 160, 63, 0.3);
}

.commerce-icon-badge--wholesale {
  background: rgba(31, 90, 68, 0.1);
  border-color: rgba(31, 90, 68, 0.25);
}

.commerce-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.commerce-pill--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.commerce-card__body h3 {
  font-size: var(--t-xl);
  margin-top: 10px;
}

.commerce-card__body p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  margin: 8px 0 18px 0;
  line-height: 1.55;
}

.commerce-feature-grid {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.commerce-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 6px;
  flex-shrink: 0;
}

.feature-dot--accent {
  background: var(--accent);
}

.commerce-feature-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.commerce-feature-item small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.35;
}

.commerce-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
}

.commerce-metric-label {
  color: var(--ink-3);
}

.commerce-metric-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.commerce-card__footer--accent .commerce-metric-val {
  color: var(--accent);
}

/* ---------- Brand Curtain (Screen-Covering Scroll Fill) ---------- */
.brand-curtain {
  width: 100%;
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: var(--s-8) var(--s-6);
  position: relative;
  overflow: hidden;
}

.brand-curtain__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

.brand-curtain__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  max-width: 24ch;
  margin-top: 8px;
}

.brand-curtain__telemetry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 18px;
  min-width: 260px;
  font-family: var(--f-mono);
  font-size: 11px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.telemetry-bar {
  height: 5px;
  width: 100%;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.telemetry-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.telemetry-label {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
}

.telemetry-label strong {
  color: var(--accent);
}

/* SVG Canvas: Covers the screen edge-to-edge across all screen sizes */
.brand-curtain__canvas {
  width: 100%;
  max-width: 100vw;
  margin-inline: 0;
  padding: 0;
  display: block;
  user-select: none;
  overflow: hidden;
}

.brand-svg {
  width: 100%;
  height: auto;
  display: block;
}

.brand-svg text {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 265px;
  letter-spacing: 0.01em;
}

.brand-svg__base {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2px;
  opacity: 0.16;
}

.brand-svg__fill {
  fill: url(#brandFillGrad);
}

.brand-curtain__bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.brand-curtain__bridge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
}

.bridge-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.bridge-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

/* ---------- Reveal system ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* Hero entrance */
.js .hero h1 .line>span {
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}

.js .hero.is-ready h1 .line>span {
  transform: none;
}

.js .hero h1 .line:nth-child(2)>span {
  transition-delay: 90ms;
}

.js .hero h1 .line:nth-child(3)>span {
  transition-delay: 180ms;
}

.js .hero__fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease) 420ms, transform 700ms var(--ease) 420ms;
}

.js .hero.is-ready .hero__fade {
  opacity: 1;
  transform: none;
}

.js .receipt {
  transform: translateY(-100%);
  clip-path: inset(100% 0 0 0);
}

.js .hero.is-ready .receipt {
  animation: print 1.6s steps(14) 900ms forwards;
}

.js .hero__tag {
  opacity: 0;
  transform: translateX(16px) rotate(2deg);
  transition: opacity 600ms var(--ease) 2.2s, transform 600ms var(--ease) 2.2s;
}

.js .hero.is-ready .hero__tag {
  opacity: 1;
  transform: rotate(2deg);
}

.js .chart div {
  transform: scaleY(0);
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms);
}

.js .is-in .chart div,
.js .chart.is-in div {
  transform: scaleY(1);
  animation: chartBarBreathe 4.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 220ms + 900ms);
}

.js .is-in .chart div.hi,
.js .chart.is-in div.hi {
  animation: chartPeakPulse 3.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 250ms + 900ms);
}

@keyframes chartBarBreathe {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.86);
  }
  100% {
    transform: scaleY(1.08);
  }
}

@keyframes chartPeakPulse {
  0% {
    transform: scaleY(1);
    box-shadow: 0 0 6px rgba(31, 90, 68, 0.25);
  }
  50% {
    transform: scaleY(0.92);
    box-shadow: 0 -2px 14px rgba(31, 90, 68, 0.55);
  }
  100% {
    transform: scaleY(1.06);
    box-shadow: 0 -3px 18px rgba(31, 90, 68, 0.45);
  }
}

/* ---------- Keyframes ---------- */
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 90, 68, 0.45);
  }

  80%,
  100% {
    box-shadow: 0 0 0 8px rgba(31, 90, 68, 0);
  }
}

@keyframes scanline {
  to {
    top: calc(100% - 2px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes print {
  to {
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes redraw {
  from {
    stroke-dashoffset: 160;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 404 ---------- */
.lost {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: left;
}

.lost h1 {
  font-size: clamp(5rem, 16vw, 12rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.lost h1 span {
  color: var(--accent);
}

.lost p {
  color: var(--ink-2);
  max-width: 40ch;
  margin: var(--s-5) 0 var(--s-6);
  font-size: var(--t-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {

  .header-shell {
    top: 8px;
    padding-inline: 12px;
  }

  .header {
    padding: 3px 6px 3px 12px;
    border-radius: 9999px;
  }

  .header__inner {
    height: 38px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .logo svg {
    width: 24px;
    height: 24px;
  }

  .nav,
  .header__cta {
    display: none !important;
  }

  .header__mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .header-pricing-btn {
    display: inline-flex;
  }

  .burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
  }

  .burger span {
    left: 8px;
    right: 8px;
    height: 1.5px;
  }

  .burger span:nth-child(1) {
    top: 10px;
  }

  .burger span:nth-child(2) {
    top: 15px;
  }

  .burger span:nth-child(3) {
    top: 20px;
  }

  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-menu {
    top: 56px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 440px;
    margin-inline: auto;
    box-sizing: border-box;
    padding: 14px 18px 20px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .hero__copy {
    grid-column: 1 / -1;
    max-width: 680px;
    margin-inline: auto;
  }

  .hero__visual {
    grid-column: 1 / -1;
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__tag {
    display: none;
  }

  .hero__chip--speed {
    position: static;
    margin: 0 auto var(--s-3) auto;
    align-self: center;
    transform: none !important;
    animation: none;
    box-shadow: 0 4px 16px rgba(28, 27, 24, 0.08);
  }

  .terminal {
    width: 100%;
    box-sizing: border-box;
  }

  .receipt {
    width: calc(100% - 24px);
    max-width: 480px;
    margin: -6px auto 0;
    box-sizing: border-box;
  }

  .section-head h2 {
    grid-column: 1 / -1;
  }

  .section-head p {
    grid-column: 1 / span 9;
  }

  .cell--a,
  .cell--e {
    grid-column: span 12;
  }

  .cell--b,
  .cell--c,
  .cell--d {
    grid-column: span 6;
  }

  .scan {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    width: 100%;
  }

  .scan__code {
    width: 160px;
    height: 52px;
  }

  .scan__content {
    width: 100%;
  }

  .connects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .coverage__grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
}

@media (max-width: 820px) {
  .flow {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .flow__sticky {
    position: static;
  }

  .flow__counter {
    display: none;
  }

  .step {
    opacity: 1;
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-6) 0;
  }

  .step svg {
    width: 72px;
    height: 72px;
    margin-bottom: 2px;
  }

  .plans {
    grid-template-columns: 1fr;
    border: 0;
    background: none;
    gap: var(--s-5);
  }

  .plan {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--card);
  }

  .plan+.plan {
    border-left: 1px solid var(--line);
  }

  .plan.plan--feature {
    margin: 0;
    order: -1;
    background: var(--ink);
    border-color: var(--ink);
  }

  .ledger__row {
    grid-template-columns: 48px 1fr;
  }

  .ledger__row p {
    grid-column: 2;
  }

  .ledger__row .fig {
    grid-column: 2;
    text-align: left;
    padding: 0;
  }

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

  .cta__box {
    grid-template-columns: 1fr;
    padding: var(--s-7) var(--s-5);
  }

  .cta__stamp {
    width: 84px;
    height: 84px;
    right: 16px;
    top: 16px;
  }

  .cell--a {
    overflow: hidden;
  }

  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stock {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .stock .col-batch,
  .stock .col-expires {
    display: none !important;
  }

  .stock .col-prod {
    width: 58%;
    padding: 10px 10px;
    box-sizing: border-box;
    word-break: break-word;
  }

  .stock .col-qty {
    width: 18%;
    text-align: right;
    padding: 10px 8px;
    box-sizing: border-box;
  }

  .stock .col-status {
    width: 24%;
    text-align: right;
    padding: 10px 10px;
    box-sizing: border-box;
  }

  .stock-prod-meta {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    font-family: var(--f-mono);
    margin-top: 3px;
    line-height: 1.25;
  }

  .stock .pill {
    padding: 2px 7px;
    font-size: 11px;
    white-space: nowrap;
    display: inline-block;
  }

  .section {
    padding-block: var(--s-9);
  }

  .offline-card {
    grid-template-columns: 1fr;
  }

  .batch-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 18px;
  }

  .batch-row__action {
    text-align: left;
    margin-top: 4px;
  }

  .batch-console__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .transfer-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .wholesale-comparison {
    grid-template-columns: 1fr;
  }

  .brand-curtain__title {
    max-width: 100%;
  }

  .brand-curtain__telemetry {
    width: 100%;
  }

  .brand-curtain__bridge {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .commerce-card {
    padding: var(--s-5) 14px;
    gap: var(--s-4);
  }

  .commerce-card__header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .offline-card {
    padding: var(--s-5) 14px;
    gap: var(--s-6);
  }

  .offline-media-img {
    min-height: 240px;
    max-height: 280px;
  }

  .offline-telemetry-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .offline-telemetry-overlay {
    padding: 12px 14px;
  }

  .off-item {
    grid-template-columns: 1fr;
  }

  .cell--b,
  .cell--c,
  .cell--d {
    grid-column: span 12;
  }

  .cell {
    padding: var(--s-5) 12px;
  }

  .cell--a {
    overflow: hidden;
  }

  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scan {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    width: 100%;
  }

  .scan__code {
    width: 160px;
    height: 48px;
    margin-bottom: 2px;
  }

  .scan__content {
    width: 100%;
  }

  .branch {
    grid-template-columns: 10px 1fr;
    gap: 6px 10px;
  }

  .branch span:last-child {
    grid-column: 2;
    font-size: 11px;
  }

  .connects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connect {
    min-height: 140px;
    padding: 14px;
  }

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

  .hero__visual {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0;
  }

  .hero__tag {
    display: none;
  }

  .hero__chip--speed {
    position: static;
    margin: 0 auto 14px auto;
    padding: 6px 14px;
    align-self: center;
    box-shadow: 0 4px 14px rgba(28, 27, 24, 0.08);
  }

  .terminal {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 14px 20px;
  }

  .terminal__top {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .terminal__scan {
    padding: 8px 10px;
    font-size: 11px;
  }

  .terminal__rows {
    font-size: 12px;
    gap: 4px;
  }

  .terminal__rows div {
    padding: 5px 0;
  }

  .terminal__total strong {
    font-size: 1.65rem;
  }

  .terminal__quick-actions {
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
    margin-top: 10px;
  }

  .term-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  .receipt {
    width: calc(100% - 16px);
    max-width: 100%;
    margin: -6px auto 0;
    box-sizing: border-box;
    padding: 16px 14px 24px;
    font-size: 11px;
  }

  .receipt .r {
    line-height: 1.75;
  }

  .coverage-deck {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .branch-mesh-card {
    padding: 14px 14px;
  }

  .branch-node-card {
    padding: 9px 10px;
    gap: 10px;
  }

  .cell {
    padding: var(--s-5) 12px;
  }

  .cell--a {
    overflow: hidden;
  }

  .stock {
    font-size: 11.5px;
    width: 100%;
    table-layout: fixed;
  }

  .stock .col-batch,
  .stock .col-expires {
    display: none !important;
  }

  .stock .col-prod {
    width: 54%;
    padding: 8px 8px;
    box-sizing: border-box;
  }

  .stock .col-qty {
    width: 18%;
    text-align: right;
    padding: 8px 4px;
    box-sizing: border-box;
  }

  .stock .col-status {
    width: 28%;
    text-align: right;
    padding: 8px 8px;
    box-sizing: border-box;
  }

  .stock-prod-name {
    font-size: 12px;
  }

  .stock-prod-meta {
    font-size: 10px;
    margin-top: 2px;
  }

  .stock .pill {
    padding: 2px 6px;
    font-size: 10px;
    white-space: nowrap;
    display: inline-block;
  }

  .acc__q {
    grid-template-columns: 32px 1fr 20px;
    font-size: 1.0625rem;
  }

  .acc__a p {
    padding: 0 0 var(--s-5) 48px;
  }

  .chart {
    gap: 5px;
    padding: 10px;
    height: 135px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-5) 0;
  }

  .step svg {
    width: 64px;
    height: 64px;
    margin-bottom: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .ticker__group[aria-hidden="true"] {
    display: none;
  }

  .js [data-reveal],
  .js .hero h1 .line>span,
  .js .hero__fade,
  .js .hero__tag,
  .js .chart div {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .js .receipt {
    transform: none;
    clip-path: none;
  }

  .step {
    opacity: 1;
  }

  .step svg .draw {
    stroke-dashoffset: 0;
  }
}

/* Utility classes for multi-page consistency */
.btn--outline {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.nav__link.is-active {
  color: var(--accent);
  font-weight: 600;
}
