/* =========================================================
   VendingPY — Landing v3
   Single palette adopted from the minimax reference:
   indigo primary (#6366F1 family) + cyan accent (#22D3EE),
   light surfaces for paper sections, dark navy for dark ones.
   Green is ONLY a status color.

   ---------------------------------------------------------
   CONTRAST AUDIT (WCAG 2.1, computed ratios)
   ---------------------------------------------------------
   TEXT ON LIGHT SURFACES  (--paper #FFFFFF, --paper-2 #F7F8FA, --paper-3 #F2F4F8)
     --text-1   #0F172A on #FFFFFF ......... 17.9:1   on #F7F8FA ... 16.8:1
     --text-2   #475569 on #FFFFFF ..........  7.58:1  on #F7F8FA ...  7.13:1
     --indigo-700 #4338CA on #FFFFFF ........  7.90:1  on #F7F8FA ...  7.43:1
     --cyan-700 #0E7490 on #FFFFFF ..........  5.36:1  on #F7F8FA ...  5.04:1
     --ok       #047857 on #FFFFFF ..........  5.48:1
     --warn     #B45309 on #FFFFFF ..........  5.02:1
     --danger   #B42318 on #FFFFFF ..........  6.42:1
     #FFFFFF on --ink #0A0E1A (primary button) . 18.5:1

   TEXT ON DARK SURFACES  (--ink #0A0E1A, --ink-2 #11151F, --ink-3 #1A1F2E)
     --text-on-dark  #F8FAFC on #0A0E1A .... 18.5:1   on #1A1F2E ... 16.4:1
     --muted-on-dark #94A3B8 on #0A0E1A ....  7.50:1  on #1A1F2E ...  6.39:1
     --indigo-300 #A5B4FC on #0A0E1A .......  9.64:1  on #1A1F2E ...  8.21:1
     --cyan-400   #22D3EE on #0A0E1A ....... 10.65:1  on #1A1F2E ...  9.07:1
     --ok-on-dark #34D399 on #0A0E1A ....... 10.02:1
     --warn-on-dark #FBBF24 on #0A0E1A ..... 11.4:1
     --danger-on-dark #F87171 on #0A0E1A ...  6.95:1

   NEVER used as text: --indigo-500 #6366F1 (3.6:1 on white) and
   --cyan-400 on light surfaces (1.8:1). Both are strokes/fills/borders only.
   #94A3B8 is never used as text on light surfaces (2.56:1).
   ========================================================= */

:root {
  /* ---- Brand: indigo primary ---- */
  --indigo-300: #A5B4FC;  /* text on dark surfaces */
  --indigo-500: #6366F1;  /* non-text UI only: borders, fills, strokes */
  --indigo-600: #4F46E5;  /* focus ring, gradients, non-text UI */
  --indigo-700: #4338CA;  /* text and accents on light surfaces */
  --indigo-soft: rgba(99, 102, 241, 0.08);
  --indigo-soft-strong: rgba(99, 102, 241, 0.16);
  --indigo-on-dark-soft: rgba(165, 180, 252, 0.14);

  /* ---- Brand: cyan accent ---- */
  --cyan-400: #22D3EE;    /* text on dark surfaces; non-text UI on light */
  --cyan-600: #0891B2;    /* non-text UI on light */
  --cyan-700: #0E7490;    /* text on light surfaces */
  --cyan-soft: rgba(14, 116, 144, 0.10);
  --cyan-on-dark-soft: rgba(34, 211, 238, 0.12);

  /* ---- Surfaces: light ---- */
  --paper: #FFFFFF;
  --paper-2: #F7F8FA;
  --paper-3: #F2F4F8;
  --white: #FFFFFF;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --ink-text: #0F172A;
  --muted: #475569;

  /* ---- Surfaces: dark ---- */
  --ink: #0A0E1A;
  --ink-2: #11151F;
  --ink-3: #1A1F2E;
  --line-dark: rgba(248, 250, 252, 0.12);
  --line-dark-strong: rgba(248, 250, 252, 0.22);
  --text-on-dark: #F8FAFC;
  --muted-on-dark: #94A3B8;

  /* ---- Status (green is ONLY a status color) ---- */
  --ok: #047857;
  --ok-on-dark: #34D399;
  --ok-soft: rgba(4, 120, 87, 0.10);
  --warn: #B45309;
  --warn-on-dark: #FBBF24;
  --danger: #B42318;
  --danger-on-dark: #F87171;

  /* ---- Texture: noise overlay (inline SVG data URI, no external request) ---- */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  --noise-opacity: 0.03;

  /* ---- Grid background for dark sections ---- */
  --grid-line: rgba(248, 250, 252, 0.045);
  --grid-size: 44px;

  /* ---- Spacing scale (base 4px) ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
  --section-pad-y: clamp(64px, 9vw, 112px);
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);

  /* ---- Radii ---- */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;

  /* ---- Type scale ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;  --fs-sm: 0.875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 2.4vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 3.6vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 5vw, 3.5rem);
  --lh-tight: 1.1; --lh-snug: 1.3; --lh-base: 1.6;
  --tracking-tight: -0.02em; --tracking-wide: 0.06em; --tracking-mono: 0.16em;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-focus: 0 0 0 3px rgba(79, 70, 229, 0.35);
  --shadow-dark-md: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* ---- Motion ---- */
  --dur-instant: 90ms; --dur-fast: 160ms; --dur-base: 240ms;
  --dur-slow: 420ms;   --dur-reveal: 560ms;
  --dur-flow: 3200ms;   /* hero dashed lines + node pipes */
  --dur-marquee: 44s;   /* full marquee cycle */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Semantic aliases: light is the default surface ---- */
  --bg: var(--paper);
  --bg-soft: var(--paper-2);
  --bg-card: var(--white);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --text-1: var(--ink-text);
  --text-2: var(--muted);
  --accent: var(--indigo-700);
  --accent-2: var(--cyan-700);
  --accent-ui: var(--indigo-500);
}

/* Muted paper sections */
.section--soft { --bg: var(--paper-2); --bg-card: var(--white); background: var(--paper-2); }

/* Dark sections: semantic alias remap */
.section--dark {
  --bg: var(--ink);
  --bg-soft: var(--ink-2);
  --bg-card: var(--ink-3);
  --border: var(--line-dark);
  --border-strong: var(--line-dark-strong);
  --text-1: var(--text-on-dark);
  --text-2: var(--muted-on-dark);
  --accent: var(--indigo-300);
  --accent-2: var(--cyan-400);
  --accent-ui: var(--indigo-300);
  --ok: var(--ok-on-dark);
  --warn: var(--warn-on-dark);
  --danger: var(--danger-on-dark);
  --shadow-md: var(--shadow-dark-md);
  background: var(--ink);
  color: var(--text-on-dark);
}
.section--dark-2 { --bg: var(--ink-2); background: var(--ink-2); }

/* Subtle grid, dark sections only */
.section--dark.has-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* Global noise texture, one fixed non-interactive layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: var(--noise);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); }

:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
  border-radius: var(--r-xs);
}
.section--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--indigo-300); }

/* Native hidden attribute must win over component display rules (tab panels) */
[hidden] { display: none !important; }

/* =========================================================
   Utilities
   ========================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--section-pad-y);
  background: var(--bg);
  color: var(--text-1);
}

.visually-hidden {
  position: absolute !important;
  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: var(--sp-4);
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

.gradient-text {
  background: linear-gradient(135deg, var(--indigo-600) 0%, var(--cyan-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* On dark surfaces the gradient uses the lighter end of both families */
.section--dark .gradient-text {
  background: linear-gradient(135deg, var(--indigo-300) 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.badge--demo {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--indigo-soft);
  color: var(--indigo-700);
}
.section--dark .badge--demo { background: var(--indigo-on-dark-soft); color: var(--indigo-300); }

.badge--accent {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--indigo-700);
  color: #fff;
  margin-bottom: var(--sp-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  margin-bottom: var(--sp-3);
}
.chip[data-chip="available"] { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.chip[data-chip="prepared"] { color: var(--indigo-700); border-color: var(--indigo-700); background: var(--indigo-soft); }
.chip[data-chip="custom"] { color: var(--cyan-700); border-color: var(--cyan-700); background: var(--cyan-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 10px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--lg { padding: var(--sp-4) var(--sp-5); font-size: var(--fs-base); }

.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--primary:active { background: #0b0f1a; }
.section--dark .btn--primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.section--dark .btn--primary:hover { background: #E2E8F0; border-color: #E2E8F0; }

.btn--ghost { background: transparent; color: var(--ink-text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--indigo-500); }
.btn--ghost:active { background: var(--indigo-soft); }
.section--dark .btn--ghost { color: var(--text-on-dark); border-color: var(--line-dark-strong); }
.section--dark .btn--ghost:hover { background: var(--indigo-on-dark-soft); border-color: var(--indigo-300); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.section-head {
  max-width: var(--container-narrow);
  margin-bottom: var(--sp-7);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-sub { color: var(--text-2); font-size: var(--fs-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--indigo-700);
  margin-bottom: var(--sp-3);
}
.eyebrow--pill {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--indigo-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-sm);
}
.eyebrow--dark { color: var(--indigo-300); }
.eyebrow--accent { color: var(--cyan-700); }
.section--dark .eyebrow--accent { color: var(--cyan-400); }
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-600);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  flex-shrink: 0;
}
.section--dark .eyebrow__dot { background: var(--indigo-300); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-2); font-size: var(--fs-sm); }

.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--indigo-700);
  border-bottom: 2px solid var(--indigo-700);
  transform: rotate(-45deg);
}
.section--dark .check-list li::after { border-color: var(--indigo-300); }

/* =========================================================
   0. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.site-header[data-scrolled="true"] { box-shadow: var(--shadow-sm); }
.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--ink-text);
  flex-shrink: 0;
}
.brand__mark { flex-shrink: 0; }
.brand--footer { font-size: var(--fs-lg); color: var(--text-on-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  order: 3;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before { content: ""; position: absolute; top: -6px; }
.nav-toggle__icon::after { content: ""; position: absolute; top: 6px; }
.site-header[data-nav-ready="true"] .nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.site-header[data-nav-ready="true"] .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav-ready="true"] .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  order: 2;
}
.primary-nav__list {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.primary-nav__list a {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.primary-nav__list a:hover { color: var(--ink-text); background: var(--paper-2); }
.nav-cta { flex-shrink: 0; }

@media (max-width: 1023px) {
  .site-header__inner { flex-wrap: wrap; }
  .primary-nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: var(--sp-4); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
  .primary-nav__list { flex-direction: column; gap: var(--sp-1); }
  .nav-cta { align-self: flex-start; }
  #site-header[data-nav-ready="true"] #primary-nav { display: none; }
  #site-header[data-nav-ready="true"] #primary-nav[data-open="true"] { display: flex; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* =========================================================
   1. Hero  (minimax header/hero replicated)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 70%);
}
.hero__glow {
  position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  filter: blur(40px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
}
.hero__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-block: var(--sp-5) var(--sp-5);
}
.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}
.hero__custom-chip {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--cyan-700);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-700);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-6);
  max-width: 54ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}
.hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  max-width: 560px;
}
@media (min-width: 640px) {
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
}
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta strong { font-size: var(--fs-sm); color: var(--ink-text); }
.hero__meta span { font-size: var(--fs-xs); color: var(--muted); }
.hero__note { position: relative; z-index: 1; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-6); }

/* Hero flow diagram */
.hero__visual { display: flex; justify-content: center; }
.flow-diagram {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.flow-node {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.flow-node--cloud {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  border-color: rgba(99, 102, 241, 0.25);
}
.flow-node--edge {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.02));
  border-color: rgba(8, 145, 178, 0.25);
}
.flow-node__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--indigo-700);
  flex-shrink: 0;
}
.flow-node--edge .flow-node__icon { color: var(--cyan-700); }
.flow-node__body { display: flex; flex-direction: column; }
.flow-node__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--ink-text); }
.flow-node__sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

.flow-line { padding-inline: var(--sp-5); }
@media (prefers-reduced-motion: no-preference) {
  .flow-line__path {
    animation: flow-dash var(--dur-flow) linear infinite;
  }
  .flow-line__path--delayed { animation-delay: calc(var(--dur-flow) / 2); }
}
@keyframes flow-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}

.flow-machines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  margin-top: var(--sp-2);
  border-top: 1px dashed var(--line);
}
@media (min-width: 480px) {
  .flow-machines { grid-template-columns: repeat(6, 1fr); }
}
.flow-machine {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-1);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: var(--fw-medium);
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.flow-machine:hover { background: var(--white); border-color: var(--indigo-500); }
.flow-machine__icon { color: var(--indigo-700); }
.flow-machine__label { line-height: 1.2; }

/* =========================================================
   2. Categorías (marquee)
   ========================================================= */
.categorias {
  background: var(--ink-2);
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.categorias__label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--cyan-400);
  padding-inline: var(--sp-5);
  border-right: 1px solid var(--line-dark);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
  background: var(--ink-2);
}
.category-marquee {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.category-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: marquee var(--dur-marquee) linear infinite;
  will-change: transform;
}
.category-marquee:hover .category-track,
.category-marquee:focus-within .category-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.category-group { display: flex; align-items: center; height: 100%; }
.category-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding-inline: var(--sp-5);
  white-space: nowrap;
  border-right: 1px solid var(--line-dark);
  height: 100%;
}
.category-item::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: var(--sp-3);
  background: var(--indigo-300);
  transform: rotate(45deg);
}
.category-item:last-child::after { display: none; }

/* =========================================================
   3. Problema — four horizontal cards
   ========================================================= */
.problem-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .problem-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .problem-cards { grid-template-columns: repeat(4, 1fr); }
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.problem-card:hover { border-color: var(--indigo-500); box-shadow: var(--shadow-md); }
.problem-card__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--indigo-700);
  background: var(--indigo-soft);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.problem-card h3 { margin-bottom: var(--sp-2); font-size: var(--fs-base); }
.problem-card p { color: var(--text-2); font-size: var(--fs-sm); }

/* =========================================================
   4. Cómo funciona — compact step chips + integration tabs
   ========================================================= */
.step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: var(--ink-3);
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.step-chip__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--indigo-500);
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-300);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.bridge-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: var(--sp-3);
}
/* Higher specificity than the generic .tablist rule declared further down,
   so the dark section keeps a dark bar (muted-on-dark text needs a dark ground). */
.tablist.tablist--bridge {
  border: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  flex-wrap: wrap;
  background: var(--ink-2);
  margin-bottom: var(--sp-6);
}
.tab--mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  border-bottom: none;
  border-radius: var(--r-md);
}
.tab.tab--mono { color: var(--muted-on-dark); }
.tab.tab--mono:hover { color: var(--text-on-dark); background: var(--indigo-on-dark-soft); }
.tab.tab--mono[aria-selected="true"] { background: var(--white); color: var(--ink); }

.bridge-panel {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 860px) {
  .bridge-panel { grid-template-columns: 1fr 1fr; }
}
.bridge-panel__text h3 { color: var(--text-on-dark); }
.bridge-panel__text p { color: var(--muted-on-dark); margin-top: var(--sp-3); }

.node-chain { display: flex; flex-direction: column; }
.node-chain__node {
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-on-dark);
}
.node-chain__pipe {
  position: relative;
  width: 2px;
  height: 28px;
  margin-inline: var(--sp-5);
  background: var(--line-dark-strong);
}
.node-chain__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--cyan-400);
}
@media (prefers-reduced-motion: no-preference) {
  .node-chain__dot { animation: flow-dot var(--dur-flow) var(--ease-in-out) infinite; }
}
@keyframes flow-dot {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(28px); opacity: 0; }
}

/* =========================================================
   5. Producto + ticker
   ========================================================= */
.ticker {
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: var(--ink-2);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-8);
}
.ticker__fixed-label {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding-inline: var(--sp-5);
  border-right: 1px solid var(--line-dark);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
  background: var(--ink-2);
}
.ticker__viewport {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.ticker__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-inline: var(--sp-5);
  white-space: nowrap;
  font-size: var(--fs-sm);
  border-right: 1px solid var(--line-dark);
}
.ticker__machine { font-family: var(--font-mono); color: var(--text-on-dark); }
.ticker__location { color: var(--muted-on-dark); }
.ticker__amount { color: var(--ok-on-dark); font-weight: var(--fw-semibold); }
.ticker__row[data-status="pending"] .ticker__amount { color: var(--warn-on-dark); }
.ticker__row[data-status="blocked"] .ticker__amount { color: var(--danger-on-dark); text-decoration: line-through; }

.producto__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 960px) {
  .producto__grid { grid-template-columns: minmax(240px, 320px) 1fr; }
}

.phone-mock { display: flex; justify-content: center; }
.phone-mock__frame {
  position: relative;
  width: 240px;
  border-radius: 36px;
  border: 8px solid var(--ink);
  background: var(--ink);
  padding: var(--sp-2);
  box-shadow: var(--shadow-lg);
}
.phone-mock__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 16px;
  background: var(--ink);
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 2;
}
.phone-mock__screen {
  position: relative;
  background: var(--paper-2);
  border-radius: 28px;
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  text-align: center;
  border: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .phone-mock__screen { animation: none; }
}
@keyframes phone-pulse {
  0%, 100% { border-color: var(--line); }
  50% { border-color: var(--indigo-500); }
}
.phone-mock__header { font-weight: var(--fw-semibold); margin-bottom: var(--sp-3); }
.phone-mock__product { font-size: var(--fs-sm); color: var(--text-2); }
.phone-mock__amount { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--indigo-700); margin-block: var(--sp-2) var(--sp-4); }
.phone-mock__qr { width: 120px; height: 120px; margin-inline: auto; border-radius: var(--r-sm); }
.phone-mock__machine { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-2); margin-top: var(--sp-4); }
.phone-mock__footer { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }

.dash-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.tablist { display: flex; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tab {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.tab:hover { color: var(--indigo-700); background: var(--indigo-soft); }
.tab[aria-selected="true"] { color: var(--indigo-700); border-bottom-color: var(--indigo-700); font-weight: var(--fw-semibold); }

.tabpanel { padding: var(--sp-5); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.panel-head h3 { font-size: var(--fs-md); }
.bridge-panel { padding: 0; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
@media (min-width: 480px) {
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
}
.kpi { display: flex; flex-direction: column; gap: var(--sp-1); }
.kpi__label { font-size: var(--fs-xs); color: var(--muted); }
.kpi__value { font-size: var(--fs-lg); font-weight: var(--fw-bold); font-family: var(--font-mono); color: var(--ink-text); }

.table-scroll { overflow-x: auto; }
.fleet-table { min-width: 560px; font-size: var(--fs-sm); }
.fleet-table th, .fleet-table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.fleet-table thead th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  font-weight: var(--fw-semibold);
}
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--sp-2); }
td[data-status="online"] .status-dot { background: var(--ok); }
td[data-status="offline"] .status-dot { background: var(--danger); }
td[data-status="maintenance"] .status-dot { background: var(--warn); }
td[data-status="online"] { color: var(--ok); }
td[data-status="offline"] { color: var(--danger); }
td[data-status="maintenance"] { color: var(--warn); }

.event-list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.event-list li { padding-block: var(--sp-2); border-bottom: 1px solid var(--line); }
.event-list li:last-child { border-bottom: none; }

/* =========================================================
   6. Compatibilidad
   ========================================================= */
.protocol-tree { display: flex; flex-direction: column; align-items: center; margin-bottom: var(--sp-5); }
.protocol-tree__root {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-sm);
}
.protocol-tree__line { width: 2px; height: 32px; background: var(--line-strong); }
.protocol-tree__edge {
  background: var(--white);
  border: 2px solid var(--indigo-600);
  color: var(--indigo-700);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-5);
}
.protocol-tree__bus {
  width: 100%;
  max-width: 900px;
  height: 2px;
  background: var(--line-strong);
  margin-bottom: var(--sp-6);
}
.protocol-grid {
  width: 100%;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .protocol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .protocol-grid { grid-template-columns: repeat(3, 1fr); } }
.protocol-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.protocol-card h3 { font-family: var(--font-mono); font-size: var(--fs-base); font-weight: var(--fw-semibold); margin-bottom: var(--sp-1); }
.protocol-card p { font-size: var(--fs-sm); color: var(--muted); }
.protocol-tree__note { color: var(--muted); font-size: var(--fs-sm); max-width: var(--container-narrow); margin-inline: auto; text-align: center; }

/* =========================================================
   7. Escala
   ========================================================= */
.escala__top {
  display: grid;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
@media (min-width: 860px) {
  .escala__top { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}
.escala__copy p { color: var(--text-2); font-size: var(--fs-md); }
.scale-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  height: 220px;
}
.scale-bars__bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-2);
  height: 100%;
}
.scale-bars__bar b { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-on-dark); order: 1; }
.scale-bars__bar small { color: var(--muted-on-dark); font-size: var(--fs-sm); order: 3; }
.scale-bars__fill {
  order: 2;
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: var(--r-xs);
  background: linear-gradient(to top, var(--indigo-500), var(--cyan-400));
}
@media (max-width: 860px) {
  .scale-bars { flex-direction: column; height: auto; gap: var(--sp-3); }
  .scale-bars__bar { flex-direction: row; height: auto; justify-content: flex-start; }
  .scale-bars__bar b { order: 0; width: 64px; }
  .scale-bars__fill { order: 1; width: var(--h); height: 14px; background: linear-gradient(to right, var(--indigo-500), var(--cyan-400)); }
  .scale-bars__bar small { order: 2; }
}

.tenant-tree { display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }
.tenant-level { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; position: relative; }
.tenant-level:not(:first-child)::before {
  content: "";
  width: 2px;
  height: var(--sp-5);
  background: var(--line-dark-strong);
  position: absolute;
  top: calc(-1 * var(--sp-5));
  left: 50%;
}
.tenant-node {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  background: var(--ink-3);
  min-width: 180px;
  text-align: center;
}
.tenant-node h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-1); color: var(--text-on-dark); }
.tenant-node p { font-size: var(--fs-xs); color: var(--muted-on-dark); }
@media (max-width: 767px) {
  .tenant-tree { align-items: stretch; }
  .tenant-level { flex-direction: column; padding-left: var(--sp-5); }
  .tenant-level--2 { padding-left: var(--sp-7); }
  .tenant-level:not(:first-child)::before { display: none; }
}
.tenant-tree__note { margin-top: var(--sp-5); text-align: center; color: var(--muted-on-dark); font-size: var(--fs-sm); }

.custom-integrations {
  margin-top: var(--sp-8);
  background: var(--ink-3);
  border-left: 4px solid var(--cyan-400);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}
.custom-integrations h3 { color: var(--text-on-dark); margin-block: var(--sp-2) var(--sp-3); }
.custom-integrations > p { color: var(--muted-on-dark); margin-bottom: var(--sp-5); max-width: 70ch; }
.process-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.process-line li { display: flex; align-items: center; gap: var(--sp-2); }
.process-line__arrow { color: var(--muted-on-dark); }
.process-line__num { font-family: var(--font-mono); color: var(--indigo-300); font-size: var(--fs-sm); }
.process-line li > span:not(.process-line__num) {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
  color: var(--text-on-dark);
}
.process-line li > span:not(.process-line__num) small { color: var(--muted-on-dark); font-size: var(--fs-xs); }
.custom-integrations__link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--indigo-300);
}
@media (max-width: 900px) {
  .process-line { row-gap: var(--sp-4); }
}

/* =========================================================
   8. Hardware
   ========================================================= */
.hardware__top {
  display: grid;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
@media (min-width: 960px) {
  .hardware__top { grid-template-columns: 1.05fr 0.95fr; }
}
.hardware__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }
.tech-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-3);
}
.hardware__note { color: var(--muted); font-size: var(--fs-sm); }

.edge-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  margin-inline: auto;
}
.edge-diagram__layer {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: center;
}
.edge-diagram__layer--edge {
  background: var(--ink-3);
  color: var(--text-on-dark);
  border-color: var(--indigo-500);
}
.edge-diagram__layer--edge p { color: var(--text-on-dark); }
.edge-diagram__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  margin-bottom: var(--sp-1);
}
.edge-diagram__layer--edge .edge-diagram__tag { color: var(--indigo-300); }
.edge-diagram__ports { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.edge-diagram__ports span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-xs);
  padding: var(--sp-1) var(--sp-2);
}
.edge-diagram__connector {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 46px;
}
.edge-diagram__connector::before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--line-strong);
}
.edge-diagram__connector small { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.edge-diagram__dot {
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 6px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--indigo-500);
}
@media (prefers-reduced-motion: no-preference) {
  .edge-diagram__dot { animation: flow-dot var(--dur-flow) var(--ease-in-out) infinite; }
}
.hardware__items { margin-bottom: var(--sp-8); }
.hardware__cta { text-align: center; }

/* =========================================================
   9. Niveles
   ========================================================= */
.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--white);
}
.tier-card--featured {
  border: 2px solid var(--indigo-600);
  box-shadow: var(--shadow-lg);
}
.tier-card__tagline { color: var(--muted); font-size: var(--fs-sm); }
.tier-card .check-list { flex: 1; }

/* =========================================================
   10. Diferencial
   ========================================================= */
.diferencial { padding-block: clamp(56px, 7vw, 88px); }
.diferencial__inner { text-align: center; }
.diferencial .eyebrow { justify-content: center; }
.diferencial__quote p {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-on-dark);
}
.diferencial__sub { margin-top: var(--sp-5); color: var(--muted-on-dark); font-size: var(--fs-md); }

/* =========================================================
   11. FAQ
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--fs-lg);
  color: var(--indigo-700);
  transition: transform var(--dur-fast);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); margin-top: var(--sp-3); font-size: var(--fs-sm); }

/* =========================================================
   12. Contacto
   ========================================================= */
.contacto .section-head { margin-inline: auto; text-align: center; }
.contacto .eyebrow { justify-content: center; }
.contacto__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.contacto__placeholder-note { text-align: center; color: var(--muted-on-dark); font-size: var(--fs-xs); }

/* =========================================================
   Footer — single compact bar
   ========================================================= */
.site-footer { padding-block: var(--sp-6); border-top: 1px solid var(--line-dark); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}
.site-footer__tagline { color: var(--muted-on-dark); font-size: var(--fs-sm); flex: 1 1 260px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__nav a { color: var(--muted-on-dark); font-size: var(--fs-sm); }
.site-footer__nav a:hover { color: var(--text-on-dark); }
.site-footer__legal { color: var(--muted-on-dark); font-size: var(--fs-xs); width: 100%; }
@media (min-width: 768px) {
  .site-footer__legal { width: auto; margin-left: auto; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
html[data-reveal-ready="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
html[data-reveal-ready="true"] [data-reveal][data-reveal-shown="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Reduced motion — every animated element is covered here
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms; --dur-fast: 0ms; --dur-base: 0ms;
    --dur-slow: 0ms; --dur-reveal: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Hero dashed flow lines */
  .flow-line__path { animation: none !important; stroke-dashoffset: 0 !important; }
  /* Node pipes and edge diagram dots settle mid-pipe, fully visible */
  .node-chain__dot,
  .edge-diagram__dot { animation: none !important; top: 50%; opacity: 1; }
  .phone-mock__screen { animation: none !important; }
  /* Ticker stops */
  .ticker__track { animation: none !important; }
  /* Categories marquee: wrap into a static, readable row */
  .category-track { animation: none !important; transform: none; flex-wrap: wrap; height: auto; }
  .categorias { height: auto; padding-block: var(--sp-3); }
  .category-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .category-group[data-marquee-clone="true"] { display: none; }
}
/* =========================================================
   Editorial refresh — connected operations, September 2026.
   Existing brand tokens remain the source of truth.
   ========================================================= */
:root { --section-pad-y: clamp(60px, 7vw, 96px); --tracking-tight: -0.035em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.primary-nav__list a { padding-inline: 8px; font-size: 13px; }
.btn { min-height: 44px; }
.btn--primary { background: var(--indigo-700); border-color: var(--indigo-700); }
.btn--primary:hover { background: var(--indigo-600); border-color: var(--indigo-600); }
.hero { padding-block: clamp(48px, 6vw, 84px); background: var(--paper-2); }
.hero__glow { display: none; }
.hero__grid { opacity: .45; mask-image: linear-gradient(90deg, transparent, #000); }
.hero__inner { gap: 36px; }
.hero__title { font-size: clamp(2.5rem, 4.5vw, 4rem); letter-spacing: -.055em; max-width: 13ch; line-height: 1.06; }
.hero__title .gradient-text { display: block; }
.hero__subtitle { font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 44ch; }
.hero__custom-chip { background: none; border: 0; border-left: 2px solid var(--cyan-700); border-radius: 0; padding: 4px 0 4px 14px; margin-bottom: 24px; color: var(--muted); }
.hero__ctas { gap: 10px; margin-bottom: 28px; }
.hero__ctas .btn { padding-inline: 18px; }
.hero__meta { gap: 16px; }
.hero__visual { flex-direction: column; min-width: 0; }
.hero__visual .flow-diagram { margin-top: 16px; max-width: none; padding: 12px; flex-direction: row; box-shadow: none; gap: 8px; background: transparent; border: 0; }
.hero__visual .flow-node { flex: 1; padding: 10px; gap: 8px; background: var(--white); min-width: 0; }
.hero__visual .flow-node__icon { width: 32px; height: 32px; border: 0; background: none; }
.hero__visual .flow-node__icon svg { width: 24px; }
.hero__visual .flow-node__title { font-size: 12px; }
.hero__visual .flow-node__sub { font-size: 12px; }
.hero__visual .flow-line, .hero__visual .flow-machines { display: none; }
.machine-scene { position: relative; height: 450px; border-radius: 24px; background: #e9edf7; border: 1px solid #d7deef; overflow: hidden; isolation: isolate; }
.scene-heading { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; font: 12px var(--font-mono); letter-spacing: .07em; color: #526077; }
.scene-orbit { position: absolute; width: 360px; height: 360px; border: 1px solid #c6d0e8; border-radius: 50%; top: 58px; left: 75px; }
.scene-orbit::before { content: ''; position: absolute; inset: 36px; border: 1px dashed #bdc9e3; border-radius: inherit; }
.vending-unit { position: absolute; width: 205px; height: 310px; left: 50%; top: 72px; transform: translateX(-36%) rotate(-3deg); background: #192338; border: 5px solid #26334d; border-radius: 13px; box-shadow: 15px 18px 0 #cbd3e7, 0 28px 25px -15px #73819f; padding: 12px; }
.vending-unit__brand { color: #fff; font-size: 16px; font-weight: 750; display: flex; align-items: center; margin-bottom: 14px; }
.vending-unit__brand span { color: var(--cyan-400); }
.vending-unit__brand i { width: 5px; height: 5px; background: var(--cyan-400); border-radius: 50%; margin-left: auto; }
.vending-unit__body { display: flex; gap: 10px; height: 194px; }
.vending-unit__window { background: #0c1220; flex: 1; border-radius: 4px; padding: 5px 8px; border: 1px solid #43516a; }
.product-shelf { height: 57px; display: flex; justify-content: space-around; align-items: end; border-bottom: 4px solid #37445d; padding-bottom: 5px; gap: 8px; }
.product-shelf i { width: 20px; height: 31px; border-radius: 5px 5px 3px 3px; background: #a5b4fc; border-top: 6px solid #e0e7ff; box-shadow: inset -5px 0 rgba(0,0,0,.1); }
.product-shelf i:nth-child(2) { background: #67d7e3; border-color: #bcf5f6; }
.product-shelf i:nth-child(3) { background: #e9b483; border-color: #ffe1c3; }
.product-shelf:nth-child(2) i { height: 26px; border-radius: 3px 3px 8px 8px; }
.vending-unit__control { width: 37px; color: white; text-align: center; font-size: 7px; }
.vending-unit__control small { display: block; font-size: 7px; line-height: 1.5; margin: 5px 0 12px; }
.vending-unit__control b { display: block; border: 1px solid #60718f; border-radius: 3px; padding: 4px; margin-bottom: 5px; }
.scene-qr { width: 35px; height: 35px; margin-top: 6px; border: 4px solid white; background: repeating-conic-gradient(#192338 0% 25%, white 0% 50%) 0 0 / 7px 7px; }
.vending-unit__tray { margin-top: 13px; height: 18px; border-radius: 3px 3px 8px 8px; background: #080e1a; border-top: 3px solid #43516a; }
.vending-unit__base { color: #b6c5df; font: 6px var(--font-mono); letter-spacing: .15em; text-align: center; margin-top: 10px; }
.scene-card { position: absolute; background: white; border: 1px solid #d9e0ef; border-radius: 12px; box-shadow: 0 8px 24px #26334d12; padding: 15px; }
.scene-card--payment { display: flex; align-items: center; gap: 10px; top: 120px; left: 18px; }
.scene-check { background: #dff7ee; color: #047857; border-radius: 50%; display: inline-grid; place-items: center; width: 30px; height: 30px; font-weight: 700; flex-shrink: 0; }
.scene-card strong, .scene-card small, .scene-card span:not(.scene-check) { display: block; }
.scene-card small, .scene-card span { font-size: 12px; color: #475569; }
.scene-card strong { font-size: 14px; color: #0f172a; margin: 2px 0; }
.scene-card--platform { right: 16px; bottom: 67px; width: 225px; }
.scene-card .scene-card__eyebrow { font: 12px var(--font-mono); color: #4338ca; letter-spacing: .05em; }
.scene-mini-bars { display: flex; align-items: end; gap: 7px; height: 48px; margin: 12px 0 8px; border-bottom: 1px solid #e5e7eb; }
.scene-mini-bars i { flex: 1; height: 45%; background: #a5b4fc; border-radius: 3px 3px 0 0; }
.scene-mini-bars i:nth-child(2n) { height: 68%; }
.scene-mini-bars i:nth-child(3n) { height: 54%; background: #67d7e3; }
.scene-mini-bars i:last-child { height: 95%; background: #4338ca; }
.scene-caption { position: absolute; bottom: 15px; left: 20px; right: 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #344256; }
.scene-caption > span:last-child { margin-left: auto; font-size: 12px; }
.scene-caption .scene-check { width: 22px; height: 22px; background: #d8dff7; color: #4338ca; }
.section-head { max-width: 780px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.problema .section-head { display: grid; gap: 8px; }
.problem-card { border-radius: 12px; box-shadow: none; }
.bridge-tabs-wrap { border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(18px, 3vw, 32px); background: var(--ink-2); }
.bridge-panel { min-height: 340px; }
.bridge-panel__text h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.bridge-panel__text p { max-width: 42ch; }
.dash-card { box-shadow: 0 22px 50px -28px #28395966; border-radius: 18px; }
.producto__grid { padding: clamp(12px, 3vw, 32px); background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; }
.protocol-card { border-top: 3px solid #a5b4fc; }
.scale-disclaimer { color: var(--muted-on-dark); font-size: 13px; margin-block: 24px; }
.custom-integrations { border-radius: 0 18px 18px 0; }
.hardware__items .card { padding: 28px; }
.tier-card { padding: 28px; border-radius: 18px; }
.tier-card h3 { font-size: 22px; }
.tier-card--featured { border-color: var(--indigo-700); box-shadow: 0 14px 36px #4338ca12; }
.contacto .section-head { margin-inline: auto; text-align: center; }
.contacto h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.contact-brief { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; color: var(--text-on-dark); margin: 24px 0; font-size: 14px; }
.contact-pending { color: var(--muted-on-dark); text-align: center; font-size: 14px; margin: 28px auto 18px; }
.btn:disabled { cursor: not-allowed; opacity: .7; }
.motion-toggle { position: fixed; bottom: 16px; right: 16px; z-index: 110; padding: 10px 14px; min-height: 44px; border: 1px solid #cad3e5; background: white; color: #344256; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 12px; }
.motion-toggle[hidden] { display: none; }
html[data-motion-paused="true"] *, html[data-motion-paused="true"] *::before, html[data-motion-paused="true"] *::after { animation-play-state: paused !important; }
[data-motion-visible="false"] *, [data-motion-visible="false"] *::before, [data-motion-visible="false"] *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  .scene-card--payment { animation: scene-arrive 700ms var(--ease-out) both; }
  .scene-card--platform { animation: scene-arrive 900ms 120ms var(--ease-out) both; }
}
@keyframes scene-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) and (min-width: 1024px) {
  .primary-nav { gap: 8px; } .primary-nav__list a { padding-inline: 5px; font-size: 12px; } .nav-cta { padding-inline: 12px; }
}
@media (max-width: 959px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 18ch; }
  .hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero__subtitle { max-width: 56ch; }
  .hero__meta { max-width: none; }
}
@media (max-width: 599px) {
  .machine-scene { height: 405px; }
  .vending-unit { top: 62px; width: 185px; transform: translateX(-36%) rotate(-3deg) scale(.9); transform-origin: top center; }
  .scene-card--payment { top: 118px; left: 10px; padding: 10px; }
  .scene-card--payment .scene-check { display: none; }
  .scene-card--platform { width: 190px; right: 10px; bottom: 64px; padding: 12px; }
  .scene-heading { left: 16px; right: 16px; font-size: 12px; flex-wrap: wrap; gap: 2px; }
  .scene-caption { left: 12px; right: 12px; flex-wrap: wrap; gap: 5px; }
  .scene-caption > span:last-child { width: 100%; margin-left: 27px; }
  .hero__visual .flow-diagram { flex-direction: column; padding: 0; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; }
  .hero__meta div { flex-direction: row; gap: 12px; align-items: baseline; }
  .hero__meta strong { min-width: 108px; }
  .contact-brief { flex-direction: column; align-items: center; gap: 8px; }
  .motion-toggle { bottom: 10px; right: 10px; }
}
/* A paused page remains readable: reveal is enhancement, never hidden content. */
html[data-motion-paused="true"] { scroll-behavior: auto !important; }
html[data-motion-paused="true"] *,
html[data-motion-paused="true"] *::before,
html[data-motion-paused="true"] *::after { transition: none !important; }
html[data-motion-paused="true"] [data-reveal] { opacity: 1 !important; transform: none !important; }
