/* =========================================================================
   RetailConnecta — ESL / Digital Shelf website
   Tokens come from the official RetailConnecta brand guidelines.
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Header · 6 Hero
             7 Sections · 8 Form · 9 Footer · 10 Motion & print
   ========================================================================= */

/* ---------- 1. Tokens ------------------------------------------------- */
:root {
  /* Brand */
  --navy-deep: #0A2A52;
  --navy-mid: #123E73;
  --blue: #1B6FC7;
  --teal: #14B8A6;
  --teal-deep: #0C8A82;
  --teal-text: #0A766F;          /* teal that passes AA on white for small text */
  --teal-light: #7FD9CE;
  --slate: #64748B;
  --light-gray: #E2E8F0;
  --off-white: #F8FAFC;
  --ink: #0B0F14;

  /* Semantic */
  --text: var(--navy-deep);
  --text-muted: #4F5D70;
  --border: #DDE5EF;
  --border-strong: #C7D3E2;
  --surface: #FFFFFF;
  --surface-alt: var(--off-white);
  --grad-blue: linear-gradient(135deg, var(--navy-mid), var(--blue));
  --grad-teal: linear-gradient(135deg, var(--teal), var(--teal-deep));

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 82, .05), 0 2px 6px rgba(10, 42, 82, .05);
  --shadow-md: 0 10px 28px rgba(10, 42, 82, .09);
  --shadow-lg: 0 24px 56px rgba(10, 42, 82, .16);
}

/* ---------- 2. Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy-deep); text-wrap: balance; }
h3 { line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .section-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-light); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--navy-deep); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.brand-mark { width: 1.6em; height: auto; aspect-ratio: 256 / 240; flex: none; }

/* ---------- 3. Layout ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
.section-lead { margin-top: 16px; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--text-muted); max-width: 62ch; }
.fine-print { margin-top: 20px; font-size: .8125rem; color: var(--slate); }

.eyebrow {
  display: inline-flex; align-items: center;
  margin-bottom: 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-text);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; margin-right: 10px; border-radius: 3px; background: var(--grad-teal);
}

/* ---------- 4. Components -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: .9375rem; line-height: 1.2; white-space: nowrap; max-width: 100%;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 20px rgba(27, 111, 199, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 111, 199, .36); }
.btn-secondary { background: #fff; color: var(--navy-deep); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--blue); white-space: nowrap; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-tile {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 15px; background: var(--grad-blue); color: #fff;
  box-shadow: 0 8px 18px rgba(27, 111, 199, .24);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 13px; }
.icon-tile--sm .icon { width: 21px; height: 21px; }
.icon-tile--outline { background: transparent; color: var(--blue); box-shadow: none; border: 1.5px dashed var(--border-strong); }

/* Scroll reveal: content is always visible unless JS opts in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Header ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(10, 42, 82, .06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; flex: none; }
.brand img { height: 35px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.main-nav a {
  position: relative; display: block; padding-block: 8px;
  font-size: .9rem; font-weight: 600; color: var(--navy-deep); transition: color .18s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--blue); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px; color: var(--navy-deep);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: #fff; overflow-y: auto; padding: 8px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) { display: block; padding: 17px 4px; border-bottom: 1px solid var(--border); font-size: 1.0625rem; font-weight: 600; }
.mobile-cta { display: grid; gap: 12px; margin-top: 28px; }

@media (max-width: 420px) { .header-cta { display: none; } }
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- 6. Hero --------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 6vw, 84px) clamp(96px, 11vw, 150px);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(20, 184, 166, .13), transparent 62%),
    radial-gradient(800px 460px at -8% 8%, rgba(27, 111, 199, .11), transparent 60%),
    var(--off-white);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 56px); align-items: center; }
.hero-title { font-size: clamp(2.25rem, 1.3rem + 3.7vw, 3.9rem); line-height: 1.07; letter-spacing: -.02em; }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--blue); }
.hero-lead { margin-top: 22px; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: grid; gap: 10px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--navy-deep); }
.hero-points .icon { color: var(--teal-text); width: 1.2em; height: 1.2em; stroke-width: 2.4; }

.shelf-scene { position: relative; max-width: 620px; margin-inline: auto; }
.shelf-svg { width: 100%; height: auto; filter: drop-shadow(0 28px 44px rgba(10, 42, 82, .16)); }
.hs-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; fill: #0A2A52; }
.hs-price-on { fill: #fff; }
.hs-chip { font-family: var(--font-body); font-weight: 700; font-size: 10px; fill: #06302D; }

.scene-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.scene-chip--top { top: 3%; right: 2%; }
.scene-chip--bottom { bottom: -22px; left: 6%; }
.chip-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-teal); color: #fff; }
.chip-icon--blue { background: var(--grad-blue); }
.chip-text { display: grid; line-height: 1.25; }
.chip-text strong { font-size: .8125rem; color: var(--navy-deep); }
.chip-text small { font-size: .71875rem; color: var(--slate); }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
  .scene-chip--top { right: -18px; }
}
@media (max-width: 520px) {
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .scene-chip { padding: 7px 12px 7px 7px; gap: 8px; }
  .chip-icon { width: 30px; height: 30px; border-radius: 9px; }
  .scene-chip--bottom { display: none; }
}

/* Hero price-swap animation (one label switches to a promotion) */
.hs-state-a { animation: hsA 9s ease-in-out infinite; }
.hs-state-b { animation: hsB 9s ease-in-out infinite; }
.hs-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hsRing 9s ease-out infinite; }
@keyframes hsA { 0%, 40% { opacity: 1; } 46%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes hsB { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes hsRing {
  0%, 40% { opacity: 0; transform: scale(.96); }
  44% { opacity: .95; transform: scale(1); }
  56% { opacity: 0; transform: scale(1.1); }
  94% { opacity: 0; transform: scale(.96); }
  97% { opacity: .95; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* "New to ESL?" definition card */
.what-is { position: relative; z-index: 2; margin-top: clamp(-84px, -7vw, -56px); }
.what-is-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 24px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.what-is-icon { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-teal); color: #fff; }
.what-is-icon .icon { width: 26px; height: 26px; }
.what-is-title { font-size: 1.15rem; margin-bottom: 4px; }
.what-is-card p { color: var(--text-muted); font-size: .98rem; max-width: 70ch; }
.what-is-card .link-arrow { grid-column: 2; }
@media (min-width: 900px) {
  .what-is-card { grid-template-columns: auto 1fr auto; }
  .what-is-icon { grid-row: auto; }
  .what-is-card .link-arrow { grid-column: auto; }
}
@media (max-width: 520px) {
  .what-is-card { grid-template-columns: 1fr; }
  .what-is-icon { grid-row: auto; }
  .what-is-card .link-arrow { grid-column: auto; }
}

/* ---------- 7. Sections ----------------------------------------------- */

/* Problem: traditional vs digital lanes */
.lanes { display: grid; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.lane { padding: clamp(22px, 3vw, 32px); }
.lane--old { background: var(--off-white); border-bottom: 1px solid var(--border); }
.lane--new { background: linear-gradient(135deg, #EFFAF8, #EEF5FD); }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 20px; }
.lane-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-deep); }
.lane-tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #94A3B8; }
.lane--new .lane-tag::before { background: var(--grad-teal); }
.lane-note { font-size: .875rem; color: var(--slate); }
.lane--new .lane-note { color: var(--teal-text); font-weight: 600; }

.lane-steps { display: flex; align-items: center; gap: 30px; flex-wrap: nowrap; }
.node {
  position: relative; flex: none; padding: 11px 18px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--border-strong); color: #475569; font-size: .9rem; font-weight: 600;
}
.node + .node::before, .link + .node::before {
  content: ""; position: absolute; left: -19px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid #94A3B8; border-right: 2px solid #94A3B8; transform: translateY(-50%) rotate(45deg);
}
.node--src { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.node--new { padding: 14px 26px; background: var(--grad-teal); border-color: transparent; color: #fff; font-size: 1rem; box-shadow: 0 10px 22px rgba(12, 138, 130, .28); }
.link + .node::before { border-color: var(--teal-deep); left: -13px; }
.link { flex: 1; display: flex; align-items: center; min-width: 120px; margin-inline: -8px 0; }
.link::before, .link::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.link::before { border-radius: 2px 0 0 2px; }
.link span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-inline: 6px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--teal); color: var(--teal-text); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.link .icon { width: 1.05em; height: 1.05em; }

@media (max-width: 999px) {
  .lane-steps { flex-direction: column; align-items: flex-start; gap: 26px; }
  .node + .node::before, .link + .node::before { left: 22px; top: -19px; transform: rotate(135deg); }
  .lane--new .lane-steps { align-items: flex-start; gap: 22px; }
  .link { flex: none; min-height: 34px; margin: 0 0 0 22px; flex-direction: column; min-width: 0; }
  .link::before, .link::after { display: none; }
  .link span { margin: 0; }
  .link + .node::before { top: -17px; left: 22px; }
}

.pain-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 48px); }
.pain { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pain > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #EEF2F7; color: var(--navy-deep); }
.pain h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.pain p { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Benefits bento */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.benefit {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.benefit h3 { font-size: 1.25rem; margin-top: 8px; }
.benefit p { color: var(--text-muted); font-size: .98rem; }
.benefit-body { display: flex; flex-direction: column; gap: 12px; }
.benefit--wide { gap: 24px; }
.tag-wave, .mini-pair, .mini-info {
  display: grid; place-items: center; padding: 20px; border-radius: 18px;
  background: linear-gradient(135deg, #EFF5FD, #EAF7F4); border: 1px solid #E1ECF7;
}
.tag-wave { grid-template-columns: repeat(6, 1fr); gap: 8px; place-items: stretch; }
.tag-wave span {
  position: relative; height: 30px; border-radius: 7px; background: #fff; border: 1px solid #D5DEE9;
  animation: waveFlash 5s ease-in-out infinite; animation-delay: calc(var(--i) * .22s);
}
.tag-wave span::before { content: ""; position: absolute; left: 7px; right: 40%; top: 11px; height: 6px; border-radius: 3px; background: #CBD5E1; animation: waveBar 5s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes waveFlash { 0%, 62%, 100% { background: #fff; border-color: #D5DEE9; } 70%, 84% { background: #DDF6F2; border-color: var(--teal); } }
@keyframes waveBar { 0%, 62%, 100% { background: #CBD5E1; } 70%, 84% { background: var(--teal); } }

.mini-pair { grid-auto-flow: column; gap: 10px; }
.mini-arrow { color: var(--teal-text); width: 22px; height: 22px; }
.mini-tag {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  width: 104px; min-height: 76px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #D5DEE9; box-shadow: var(--shadow-sm);
}
.mini-tag .bar { display: block; height: 5px; width: 70%; border-radius: 3px; background: #CBD5E1; }
.mini-tag .bar--short { width: 44%; background: #E2E8F0; }
.mini-tag b { font-family: var(--font-display); font-size: 1.15rem; margin-top: 4px; line-height: 1.1; }
.mini-tag em { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px; background: var(--teal); color: #06302D; font-style: normal; font-size: .6875rem; font-weight: 700; }
.mini-tag--promo { background: var(--grad-blue); border-color: transparent; color: #fff; }
.mini-tag--promo b { color: #fff; }
.mini-tag--promo .bar { width: 42%; background: rgba(255, 255, 255, .55); }
.mini-tag--promo .bar--short { width: 26%; background: rgba(255, 255, 255, .3); }
.mini-info { grid-auto-flow: column; gap: 14px; }
.mini-info-text { display: flex; flex-direction: column; gap: 5px; width: 128px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #D5DEE9; box-shadow: var(--shadow-sm); }
.mini-info-text .bar { display: block; height: 5px; width: 80%; border-radius: 3px; background: #CBD5E1; }
.mini-info-text .bar--short { width: 50%; background: #E2E8F0; }
.mini-info-text b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; margin-top: 4px; }
.mini-info-text small { font-size: .7rem; color: var(--slate); margin-top: -2px; }
.mini-qr { width: 54px; height: 54px; color: var(--navy-deep); }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit--wide, .benefit:nth-child(5) { grid-column: span 2; }
  .benefit--wide { flex-direction: row; align-items: center; justify-content: space-between; }
  .benefit--wide > .benefit-body { flex: 1; }
  .benefit--wide > .tag-wave, .benefit--wide > .mini-pair, .benefit--wide > .mini-info { flex: 0 0 min(46%, 300px); }
  .benefit--wide .tag-wave { flex-basis: min(52%, 320px); }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit:nth-child(5) { grid-column: auto; }
  .benefit--wide { grid-column: span 2; }
}

/* How it works */
.flow5 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 640px; margin-inline: auto; }
.flow-node { position: relative; display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; align-items: start; padding-bottom: 30px; }
.flow-node:last-child { padding-bottom: 0; }
.flow-node:not(:last-child)::after { content: ""; position: absolute; left: 33px; top: 76px; bottom: 6px; border-left: 2px dashed #B3C7DF; }
.flow-icon {
  grid-row: span 2; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px;
  background: #fff; border: 1.5px solid var(--border-strong); color: var(--blue); box-shadow: var(--shadow-sm);
}
.flow-icon .icon { width: 28px; height: 28px; }
.flow-icon--brand { background: linear-gradient(135deg, #F2F8FF, #E9F8F5); border-color: var(--teal); box-shadow: 0 0 0 5px rgba(20, 184, 166, .12), var(--shadow-sm); }
.flow-icon--brand .brand-mark { width: 38px; }
.flow-node h3 { font-size: 1.0625rem; margin-top: 4px; }
.flow-node p { margin-top: 4px; font-size: .9375rem; color: var(--text-muted); }

.plain-words {
  display: grid; gap: 18px; max-width: 980px; margin: clamp(40px, 6vw, 64px) auto 0; padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(135deg, #EFF8F6, #EEF4FD); border: 1px solid #DCEBF3; border-radius: var(--r-xl);
}
.plain-title { font-family: var(--font-display); font-weight: 700; color: var(--navy-deep); font-size: 1.05rem; }
.plain-words ol { display: grid; gap: 14px; }
.plain-words li { display: flex; align-items: flex-start; gap: 14px; font-size: .98rem; color: var(--navy-deep); }
.plain-words li span {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--navy-deep); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .875rem;
}
@media (min-width: 760px) {
  .plain-words { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
  .plain-words ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1000px) {
  .flow5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; gap: 0; }
  .flow-node { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 10px; row-gap: 0; }
  .flow-icon { grid-row: auto; margin-bottom: 18px; }
  .flow-node:not(:last-child)::after {
    top: 27px; left: calc(50% + 46px); right: calc(-50% + 46px); bottom: auto; height: 14px; border: 0;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M2 2l5 5-5 5' fill='none' stroke='%237F9BBE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 10px 14px no-repeat,
      repeating-linear-gradient(90deg, #A9BFD9 0 7px, transparent 7px 13px) left center / calc(100% - 10px) 2px no-repeat;
  }
  .flow-node h3 { font-size: 1rem; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
  .flow-node p { font-size: .875rem; }
}

/* Industries */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .icon-tile { margin-bottom: 8px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: .98rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* More than digital price tags (dark) */
.section-dark {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(700px 420px at 90% 10%, rgba(20, 184, 166, .22), transparent 65%), linear-gradient(160deg, var(--navy-deep), #0D3260 70%, #0B3A66);
}
.section-dark .eyebrow { color: var(--teal-light); }
.section-dark .eyebrow::before { background: var(--teal-light); }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #C3D3E6; }
.section-dark .fine-print { color: #9FB3CB; }
.capabilities-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.cap-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .9375rem; font-weight: 500; color: #EAF2FB; }
.cap-list .icon { width: 22px; height: 22px; color: var(--teal-light); }
.esl-big { width: 100%; max-width: 520px; height: auto; margin-inline: auto; filter: drop-shadow(0 28px 40px rgba(2, 18, 38, .45)); }
.eb-chip { font-family: var(--font-body); font-weight: 700; font-size: 14px; fill: #06302D; }
.eb-old { font-family: var(--font-body); font-weight: 500; font-size: 20px; fill: #64748B; }
.eb-price { font-family: var(--font-display); font-weight: 700; font-size: 62px; fill: #0A2A52; }
.eb-unit { font-family: var(--font-body); font-weight: 500; font-size: 14px; fill: #64748B; }
.eb-led-glow { animation: ledPulse 3s ease-in-out infinite; }
@keyframes ledPulse { 0%, 100% { opacity: .15; } 50% { opacity: .5; } }
.visual-caption { margin-top: 18px; text-align: center; font-size: .875rem; color: #AFC2DA; }
@media (min-width: 1000px) { .capabilities-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
@media (max-width: 440px) { .cap-list { grid-template-columns: minmax(0, 1fr); } }

/* Solution design */
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 64px); align-items: center; }
.design-text { margin: 18px 0 30px; color: var(--text-muted); max-width: 58ch; }
.design-card { padding: clamp(22px, 3vw, 34px); background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-xl); }
.design-card-title { margin-bottom: 18px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.factor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.factor-grid li { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.factor-grid .icon { width: 22px; height: 22px; color: var(--blue); }
.design-arrow { display: grid; place-items: center; margin: 14px 0; color: var(--teal-text); }
.design-arrow .icon { width: 26px; height: 26px; }
.design-result { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--grad-blue); color: #fff; box-shadow: 0 14px 30px rgba(27, 111, 199, .28); }
.design-result > div { display: grid; gap: 2px; font-size: .9rem; }
.design-result strong { font-family: var(--font-display); font-size: 1.05rem; }
.design-result span:not(.design-result-icon) { color: #D3E4F8; }
.design-result-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .16); }
.design-result-icon .icon { width: 22px; height: 22px; }
@media (min-width: 560px) { .factor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .design-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

/* Featured technology */
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tech-card { padding: clamp(26px, 4vw, 40px); border-radius: var(--r-xl); }
.tech-card--featured { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.tech-card--featured p { color: var(--text-muted); max-width: 62ch; }
.tech-card--featured p + p { margin-top: 12px; }
.tech-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E3F6F3; color: var(--teal-text); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tech-name { margin: 14px 0 12px; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
.tech-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tech-points li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; background: var(--off-white); border: 1px solid var(--border); font-size: .875rem; font-weight: 600; }
.tech-points .icon { color: var(--blue); width: 1.15em; height: 1.15em; }
.tech-card--open { display: flex; flex-direction: column; gap: 12px; justify-content: center; border: 2px dashed var(--border-strong); background: rgba(255, 255, 255, .5); }
.tech-card--open h3 { font-size: 1.3rem; }
.tech-card--open p { color: var(--text-muted); }
/* 3-column grid: the featured card spans 2; any extra partner cards simply flow in below */
@media (min-width: 900px) {
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-card--featured { grid-column: span 2; }
}
.tech-card--partner { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tech-card--partner h3 { font-size: 1.3rem; }
.tech-card--partner p { margin-top: 10px; color: var(--text-muted); }

/* Process */
.process { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 640px; margin-inline: auto; }
.step { position: relative; padding: 0 0 30px 68px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; border-left: 2px dashed #B3C7DF; }
.step-num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; box-shadow: 0 8px 18px rgba(27, 111, 199, .26);
}
.step--final .step-num { background: var(--grad-teal); box-shadow: 0 8px 18px rgba(12, 138, 130, .28); }
.step h3 { font-size: 1.1rem; padding-top: 10px; }
.step p { margin-top: 6px; font-size: .9375rem; color: var(--text-muted); }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; max-width: none; }
  .step { padding: 64px 0 0; }
  .step:not(:last-child)::before { top: 22px; left: 58px; right: -10px; bottom: auto; border-left: 0; border-top: 2px dashed #B3C7DF; }
  .step h3 { padding-top: 0; font-size: 1.05rem; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 64px); align-items: center; }
.tagline-mark { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--font-display); font-weight: 600; color: var(--teal-text); }
.tagline-mark .brand-mark { width: 34px; }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pillars li { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.pillars h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillars p { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

/* Demo / lead generation */
.section-cta {
  color: #fff;
  background: radial-gradient(760px 420px at 6% 0%, rgba(20, 184, 166, .24), transparent 62%), linear-gradient(160deg, #092447, #0D3260 55%, #0B6F72);
}
.section-cta .eyebrow { color: var(--teal-light); }
.section-cta .eyebrow::before { background: var(--teal-light); }
.section-cta .section-title { color: #fff; }
.section-cta .section-lead { color: #D3E1F1; font-weight: 500; }
.section-cta .btn-primary { background: var(--teal); color: #05302C; box-shadow: 0 10px 24px rgba(20, 184, 166, .32); }
.section-cta .btn-primary:hover { background: #2DD4BF; box-shadow: 0 14px 30px rgba(20, 184, 166, .42); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 56px); align-items: start; }
.contact-text { margin-top: 14px; max-width: 54ch; color: #C3D3E6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.next-steps { display: grid; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.next-steps li { display: flex; align-items: center; gap: 14px; color: #E3EDF8; font-size: .98rem; }
.next-steps span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--teal-light); }
.mail-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .18s ease, color .18s ease; }
.mail-link:hover { color: var(--teal-light); border-color: var(--teal-light); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* ---------- 8. Form --------------------------------------------------- */
.lead-form { padding: clamp(22px, 4vw, 38px); background: #fff; color: var(--navy-deep); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.form-title { font-size: 1.3rem; margin-bottom: 20px; }
.interest { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.interest legend { padding: 0; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; }
.seg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; place-items: center; min-height: 48px; padding: 10px 12px; text-align: center;
  border: 1.5px solid var(--border-strong); border-radius: 12px; background: #fff;
  font-size: .875rem; font-weight: 600; line-height: 1.25; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.seg label:hover { border-color: var(--blue); }
.seg input:checked + label { background: #EAF2FD; border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 111, 199, .12); }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; }
.req { color: #D14343; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--off-white); border: 1.5px solid var(--border-strong); border-radius: 12px;
  font-size: 1rem; line-height: 1.4; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8695A9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 111, 199, .14); }
.field [aria-invalid="true"] { border-color: #D14343; background-color: #FFF8F8; }
.field-error { display: block; min-height: 0; margin-top: 5px; font-size: .78rem; font-weight: 500; color: #B42323; }
.field-error:empty { display: none; }
.form-subhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.form-subhead span { font-family: var(--font-body); font-weight: 500; font-size: .8125rem; color: var(--slate); }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lead-form .btn-block { margin-top: 8px; }
.section-cta .lead-form .btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 24px rgba(27, 111, 199, .32); }
.section-cta .lead-form .btn-primary:hover { background: var(--grad-blue); box-shadow: 0 14px 30px rgba(27, 111, 199, .42); }
.lead-form { scroll-margin-top: calc(var(--header-h) + 16px); }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 14px; border-radius: 12px; background: #E6F7F4; color: #0A6B64; }
.form-status.is-error { padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #A32020; }
.form-note { margin-top: 12px; font-size: .78rem; color: var(--slate); text-align: center; }
@media (min-width: 560px) {
  .field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 9. Footer ------------------------------------------------- */
.site-footer { padding-block: clamp(48px, 7vw, 72px) 28px; background: var(--ink); color: rgba(255, 255, 255, .72); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; font-size: .9375rem; }
.footer-tagline { margin-top: 10px; color: var(--teal-light); font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.footer-col h2 { margin-bottom: 16px; font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .9375rem; transition: color .18s ease; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .8125rem; color: rgba(255, 255, 255, .5); }
@media (min-width: 560px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }

/* ---------- 10. Motion & print --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hs-state-a { opacity: 0; }
  .hs-state-b { opacity: 1; }
}
@media print {
  .site-header, .mobile-nav, .scene-chip { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .section-dark, .section-cta { background: #fff !important; color: #000 !important; }
}
