/* =========================================================
   Digitrade — corporate site
   Tokens extracted from the Figma homepage (home.pdf).
   See /DESIGN.md for the full design system.
   ========================================================= */

/* Rubik (self-hosted variable font, SIL OFL) — Latin + Hebrew */
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/rubik-hebrew-wght-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  /* Brand */
  --green-900: #163300;   /* card + outcome headings */
  --green-800: #194629;   /* primary buttons, footer, tabs bar */
  --green-700: #30583e;   /* footer dividers */
  --green-500: #66c81c;   /* bullets, hub core, checks */
  --green-400: #98e567;   /* lime: arrow buttons, accents */
  --green-300: #acea85;
  --green-200: #c1efa3;
  --green-100: #e2f8d4;   /* mint section background */

  /* Neutrals */
  --ink: #222124;         /* headings, dark tiles */
  --ink-2: #31312b;       /* card body */
  --muted: #5a5a53;       /* body copy */
  --line: #ececec;
  --gray-50: #f9f9f9;     /* gray section background */
  --white: #fff;

  /* Type */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.2rem + 3.6vw, 4rem);   /* 64 */
  --fs-section: clamp(2rem, 1.1rem + 2.5vw, 3.25rem);  /* 52 */
  --fs-cta: clamp(2.25rem, 1.2rem + 2.9vw, 3.5rem);    /* 56 */
  --fs-flow: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);  /* 36 */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);   /* 20 */

  /* Layout */
  --container: 1280px;
  --narrow: 1232px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);

  /* Radius + shadow */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 40px;
  --pill: 999px;
  --shadow-card: 0 10px 30px rgba(22, 51, 0, .08);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.connected__grid.container--narrow, .cap-grid.container--narrow { padding-inline: 0; max-width: var(--narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray-50); }
.section--mint { background: var(--green-100); }
.center { text-align: center; }

/* ---------- Type ---------- */
.h-display { font-size: var(--fs-display); line-height: 1.125; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.h-section { font-size: var(--fs-section); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--muted); }
.section-head { text-align: center; max-width: 1240px; margin: 0 auto clamp(40px, 5vw, 72px); }
.section-sub { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.section-sub--sm { font-size: clamp(1rem, .95rem + .2vw, 1.125rem); max-width: 1010px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; border-radius: var(--pill); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: #10351d; box-shadow: 0 8px 20px rgba(0, 0, 0, .14); transform: translateY(-1px); }
.btn--outline { border: 1px solid var(--green-800); color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--sm { height: 48px; padding: 0 20px; font-size: 16px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-row { display: flex; align-items: center; gap: 24px 24px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--green-800); text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
/* blur lives on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.header__logo img { width: 127px; height: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav__list { display: flex; gap: 8px; }
.has-menu { position: relative; }
.main-nav__link { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; font-size: 16px; color: var(--muted); border-radius: var(--pill); transition: color .2s, background-color .2s; }
.main-nav__link:hover, .has-menu.is-open > .main-nav__link { color: var(--ink); background: var(--gray-50); }
.ico--chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.has-menu.is-open .ico--chev { transform: rotate(180deg); }
.header__inner { position: relative; }
.main-nav .has-menu { position: static; }
.mega { position: absolute; top: calc(100% - 6px); left: 50%; min-width: 240px; padding: 10px; background: #fff; border-radius: var(--r-md); box-shadow: 0 20px 50px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .04); display: grid; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 2; }
.mega::before { content: ""; position: absolute; inset: -24px 0 auto; height: 24px; }
.mega a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-size: 15px; }
.mega a:hover, .mega a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.mega--sm { min-width: 140px; }
.has-menu.is-open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lang.has-menu { position: relative; }
/* Mega menu (Figma: UI KIT / Menu) — two columns of title + description, anchored under its trigger and kept inside the header container */
.mega--lg { top: calc(100% + 8px); left: var(--mx, 0px); transform: translateY(6px); grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 48px; padding: 20px 18px; border-radius: 24px; box-shadow: 0 24px 60px rgba(22, 51, 0, .14), 0 0 0 1px rgba(0, 0, 0, .03); }
.mega--one { grid-template-columns: max-content; }
.has-menu.is-open > .mega--lg { transform: translateY(0); }
.mega__col { display: grid; align-content: start; gap: 4px; }
.mega--lg .mega__col a { display: grid; gap: 6px; padding: 12px 16px; border-radius: 14px; color: var(--ink); transition: background-color .18s, color .18s; }
.mega--lg .mega__col a strong { font-size: 16px; line-height: 1.3; font-weight: 500; }
.mega--lg .mega__col a span { font-size: 14px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; }
.mega--lg .mega__col a:hover, .mega--lg .mega__col a:focus-visible { background: var(--green-100); color: var(--ink); }
.mega--lg .mega__col a[aria-current="page"] { color: var(--green-800); }
.mega__all { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 10px 16px 4px; padding: 0 !important; font-size: 15px; font-weight: 500; color: var(--green-800) !important; text-decoration: underline; text-underline-offset: 4px; background: none !important; }
.mega__all .ico { transition: transform .2s var(--ease); }
.mega__all:hover .ico { transform: translateX(4px); }
/* page dims behind an open menu */
body::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .32); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; }
body:has(.main-nav .has-menu.is-open)::after { opacity: 1; visibility: visible; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang .main-nav__link { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle .ico { width: 26px; height: 26px; }

.mobile-menu { position: fixed; inset: 72px 0 0; background: #fff; overflow-y: auto; z-index: 49; }
.mobile-menu__body { padding: 8px var(--gutter) 40px; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary, .fcol summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker, .fcol summary::-webkit-details-marker { display: none; }
.mobile-menu summary { padding: 18px 0; font-size: 18px; font-weight: 500; }
.mobile-menu details[open] summary .ico { transform: rotate(45deg); }
.mobile-menu summary .ico { transition: transform .2s; }
.mobile-menu details div { display: grid; padding-bottom: 12px; }
.mobile-menu details a { padding: 10px 0; color: var(--muted); }
.mobile-menu__cta { display: grid; gap: 12px; margin-top: 28px; }
.mobile-menu__cta .btn { height: 52px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 525px; gap: 52px; align-items: center; }
.hero__copy .h-display { max-width: 660px; }
.hero__copy .lead { margin-top: 40px; max-width: 560px; }
.hero__copy .btn-row { margin-top: 48px; gap: 24px; }

/* Hero collage (built in HTML so text stays translatable) */
.hero-collage { position: relative; width: 525px; aspect-ratio: 525 / 500; display: grid; grid-template-columns: 257px 1fr; grid-template-rows: 20px 256px 1fr; column-gap: 11px; row-gap: 0; }
.hc-tile { position: relative; border-radius: var(--r-md); }
.hc-tile--green { grid-column: 1; grid-row: 2; background: var(--green-100); border-radius: 100% 12px 12px 12px / 100% 12px 12px 12px; }
.hc-tile--gray { grid-column: 2; grid-row: 2; background: var(--gray-50); display: flex; align-items: flex-end; padding: 24px; }
.hc-tile--gray p { max-width: 170px; font-size: 24px; line-height: 1.33; font-weight: 500; color: var(--ink); padding-bottom: 14px; }
.hc-tile--dark { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; background: var(--ink); overflow: hidden; color: #fff; }
.hc-badge { position: absolute; left: 125px; top: -20px; width: 100px; height: 100px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: var(--green-500); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); z-index: 3; }
.hc-badge .ico { width: 46px; height: 46px; }
.hc-card { position: absolute; width: 124px; padding: 12px 11px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); display: grid; gap: 8px; font-size: 7.4px; line-height: 1.45; color: var(--muted); }
.hc-card strong { font-size: 8px; color: var(--ink); font-weight: 600; }
.hc-card--front { left: 42px; top: 122px; transform: rotate(-4deg); z-index: 2; }
.hc-card--front em { font-style: normal; display: block; margin-top: 2px; padding: 7px 0; text-align: center; background: var(--green-400); border-radius: var(--pill); color: var(--ink); font-weight: 500; font-size: 8px; }
.hc-card--back { left: 150px; top: 120px; width: 96px; height: 112px; transform: rotate(12deg); z-index: 1; }
.hc-dark__copy { position: absolute; left: 32px; top: 42px; max-width: 300px; }
.hc-eyebrow { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hc-dark__copy p { margin-top: 42px; font-size: 24px; line-height: 1.33; font-weight: 500; }
.hc-order { position: absolute; left: 347px; top: 40px; width: 154px; height: 220px; padding: 14px 13px; background: #fff; border-radius: 14px; color: var(--ink); font-size: 9px; }
.hc-order b { display: block; font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.hc-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); border-bottom: 1px solid #f2f2f2; }
.hc-pill { margin-top: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #cfeebc; background: #f1fbea; border-radius: 8px; color: #13692e; font-weight: 600; }
.hc-pill .ico { width: 11px; height: 11px; }
.hc-account { position: absolute; left: 428px; top: 85px; width: 150px; height: 200px; padding: 12px 12px; background: #0f2f1c; border-radius: 12px 0 0 0; color: #fff; font-size: 8px; }
.hc-account__head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 8.5px; }
.hc-account__ic { width: 20px; height: 20px; border-radius: 6px; background: #2b4b33; display: grid; place-items: center; color: var(--green-400); }
.hc-account__ic .ico { width: 11px; height: 11px; }
.hc-account__item { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: #dfe9e0; }
.hc-account__item .ico { width: 9px; height: 9px; color: var(--green-400); }
.hc-bar { height: 4px; border-radius: 4px; background: var(--green-400); margin-top: 8px; }
.hc-bar--b { background: #6fa654; }

/* Logos */
.logos { padding-block: clamp(56px, 8vw, 110px) 0; text-align: center; }
.logos__title { font-size: 18px; color: var(--ink-2); }
.logos__list { margin: 24px auto 0; max-width: 1180px; display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; }
.logos__list img { mix-blend-mode: multiply; filter: grayscale(1); opacity: .85; transition: opacity .2s, filter .2s; }
.logos__list li:hover img { opacity: 1; }

/* ---------- Connected operation ---------- */
.section--connected { padding-top: clamp(96px, 13vw, 190px); }
.connected__grid { display: grid; grid-template-columns: minmax(0, 650px) minmax(0, 560px); justify-content: space-between; align-items: center; gap: 40px; padding-inline: 20px !important; }
.feature-list { display: grid; gap: 52px; }
.feature { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; }
.feature__icon { width: 80px; height: 80px; }
.feature h3 { font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.feature p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 530px; }

/* Hub */
.hub { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 420; margin-inline: auto; }
.hub::before { content: ""; position: absolute; inset: -6% 4% -4%; background: radial-gradient(closest-side, rgba(152, 229, 103, .28), rgba(152, 229, 103, .1) 55%, transparent 75%); border-radius: 50%; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines path { fill: none; stroke: var(--green-400); stroke-width: 2; stroke-dasharray: 6 0; }
.hub__core { position: absolute; left: 50%; top: 52.8%; width: 17.1%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(102, 200, 28, .1), 0 12px 30px rgba(102, 200, 28, .35); animation: pulse 3.2s ease-in-out infinite; }
.hub__core .ico { width: 46%; height: 46%; }
.hub__node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 22.9%; aspect-ratio: 128 / 98; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: #fff; border-radius: var(--r-md); box-shadow: 0 8px 28px rgba(102, 200, 28, .12), 0 1px 0 rgba(0, 0, 0, .02); font-size: clamp(10px, 1vw, 12px); line-height: 1.2; font-weight: 500; color: var(--ink); transition: transform .25s var(--ease); }
.hub__node:hover { transform: translateY(-3px); }
.hub__node .ico { width: 30px; height: 30px; color: var(--green-400); }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(102, 200, 28, .06), 0 12px 30px rgba(102, 200, 28, .35); } }

/* ---------- Video ---------- */
.video { position: relative; display: block; width: 100%; max-width: 1152px; margin-inline: auto; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); background: #161616; }
.video--thumb { cursor: pointer; }
.video--playing { aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.video:hover img { transform: scale(1.015); filter: brightness(.92); }
.video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 80px; height: 80px; border-radius: 50%; background: var(--green-400); color: var(--green-800); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(152, 229, 103, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.video__play .ico { width: 34px; height: 34px; margin-left: 4px; }
.video:hover .video__play { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(152, 229, 103, .2); }

/* ---------- Capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.cap-card { position: relative; display: flex; flex-direction: column; min-height: 314px; padding: 28px 28px 88px 19px; background: #fff; border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cap-card img { width: 54px; height: 54px; }
.cap-card h3 { margin-top: 28px; font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--green-900); }
.cap-card p { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cap-card__go { position: absolute; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--green-400); color: var(--ink); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s; }
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cap-card:hover .cap-card__go { background: var(--green-800); color: #fff; transform: translateX(2px); }
.section--eco .center { margin-top: 64px; }
.section--eco .btn--lg { font-size: 18px; padding: 0 24px; }

/* ---------- Industries tabs ---------- */
.section--industries .section-head { margin-bottom: 52px; }
.tabs { position: relative; max-width: 1248px; margin-inline: auto; }
.tabs__bar { position: relative; z-index: 2; display: flex; width: max-content; max-width: 100%; margin: 0 auto -36px; padding: 8px; gap: 0; background: var(--green-800); border-radius: var(--pill); overflow-x: auto; scrollbar-width: none; }
.tabs__bar::-webkit-scrollbar { display: none; }
.tabs__bar button { flex: none; height: 56px; padding: 0 28px 0 28px; border-radius: var(--pill); color: #fff; font-size: 16px; transition: background-color .2s, color .2s; }
.tabs__bar button:hover { background: rgba(255, 255, 255, .08); }
.tabs__bar button[aria-selected="true"] { background: #fff; color: var(--green-800); font-weight: 500; }
.tabs__panels { background: var(--gray-50); border-radius: var(--r-xl); padding: 88px 60px 60px; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 500px); justify-content: space-between; align-items: center; gap: 40px; padding-left: 0; }
.tab-panel[hidden] { display: none; }
.section--industries .tabs__panels { transition: background-color .45s var(--ease); }
.section--industries .tabs:has(#tab-dist[aria-selected="true"], #tab-edi[aria-selected="true"]) .tabs__panels { background: var(--green-100); }
.tab-panel.is-entering { animation: fadeUp .45s var(--ease) both; }
.tab-panel__copy h3 { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.75rem); line-height: 1.36; font-weight: 500; color: var(--ink); }
.tab-panel__copy > p { margin-top: 24px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.dot-list { margin-top: 32px; display: grid; gap: 14px; }
.dot-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--green-500); }
.tab-panel__copy .btn { margin-top: 40px; }
.tab-panel__img { width: 100%; height: auto; max-width: 500px; justify-self: end; }

/* ---------- Workflow story ---------- */
.section--flow .section-head { margin-bottom: 52px; }
.flow { max-width: 1100px; margin-inline: auto; display: grid; gap: 70px; }
.flow__row { position: relative; display: grid; grid-template-columns: 504px minmax(0, 1fr); gap: 44px; align-items: start; }
.flow__row--1 { padding-left: 50px; }
.flow__row--2 { grid-template-columns: minmax(0, 1fr) 496px; padding-inline: 7px 0; gap: 60px; }
.flow__row--3 { grid-template-columns: 466px minmax(0, 1fr); gap: 157px; align-items: start; padding-left: 0; }
.flow__media { width: 100%; }
.flow__row--1 .flow__copy { padding-top: 26px; max-width: 430px; }
.h-flow { font-size: var(--fs-flow); line-height: 1.2; font-weight: 500; color: var(--ink); }
.h-flow--green { color: var(--green-900); }
.flow__lead { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.flow__lead--dark { font-size: 18px; line-height: 1.45; margin-top: 30px; max-width: 450px; }
.icon-list { margin-top: 16px; display: grid; gap: 8px; }
.icon-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink-2); font-weight: 400; }
.icon-list img { width: 36px; height: 36px; flex: none; }
.icon-list--lg { margin-top: 12px; gap: 7px; }
.icon-list--lg img { width: 47px; height: 47px; }
.icon-list--lg li { gap: 16px; }
.h-outcome { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.2; font-weight: 600; color: var(--green-900); }
.flow__row--3 .flow__copy { margin-top: -32px; }
.flow__arrow { position: absolute; pointer-events: none; }
.flow__arrow--1 { width: 141px; left: 584px; top: 235px; }
.flow__arrow--2 { width: 175px; left: 445px; top: 333px; }
.steps { margin-top: 90px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 56px 20px 60px; }
.steps ol { display: flex; justify-content: space-between; gap: 10px; }
.steps li { position: relative; display: grid; gap: 2px; padding-top: 44px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.steps li b { color: var(--green-900); font-size: 14px; font-weight: 600; white-space: nowrap; }
.steps li span { white-space: nowrap; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 34px; top: 15px; width: 30px; height: 2px; background: linear-gradient(90deg, var(--green-500), transparent); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--green-100); padding-block: 100px 80px; }
.cta__inner { position: relative; z-index: 1; }
.h-cta { max-width: 720px; font-size: var(--fs-cta); line-height: 1.14; font-weight: 600; color: var(--green-800); }
.cta p { margin-top: 36px; max-width: 560px; font-size: 18px; line-height: 1.45; color: var(--green-800); }
.cta .btn-row { margin-top: 24px; gap: 40px; }
.cta .btn--lg { height: 56px; padding: 0 32px; }
.cta__shapes { position: absolute; inset: 0; pointer-events: none; }
.cta__shapes i { position: absolute; border-radius: 50%; }
.cta__shapes i:nth-child(1) { width: 560px; height: 560px; right: -150px; top: -420px; background: var(--green-300); transform: translateX(-130px); top: -150px; }
.cta__shapes i:nth-child(2) { width: 600px; height: 600px; right: -110px; top: 110px; background: var(--green-200); right: 0; transform: translateX(88px); }
.cta__shapes i:nth-child(3) { width: 860px; height: 860px; right: -560px; top: -210px; background: var(--green-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-800); color: #fff; padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.footer__brand img { width: 111px; }
.footer__brand p { margin-top: 24px; font-size: 14px; line-height: 1.6; max-width: 250px; }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social svg { width: 32px; height: 32px; transition: color .2s; }
.footer__social a:hover svg { color: var(--green-400); }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr); column-gap: 36px; }
.fcol summary { font-size: 16px; font-weight: 500; pointer-events: none; }
.fcol summary .ico { display: none; }
.fcol ul { margin-top: 24px; display: grid; gap: 14px; }
.fcol li { line-height: 1.4; }
.fcol a { font-size: 14px; color: rgba(255, 255, 255, .92); transition: color .2s; }
.fcol a:hover, .footer__bottom a:hover { color: var(--green-400); }
.footer__bottom { margin-top: 48px; border-top: 1px solid var(--green-700); display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding-block: 26px 36px; font-size: 14px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 14, .75); }
.modal__dialog { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; animation: fadeUp .3s var(--ease); }
.modal__frame, .modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__frame p { height: 100%; display: grid; place-items: center; color: #fff; font-size: 18px; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .main-nav__link { padding: 0 10px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; }
  .hero-collage { zoom: .9; }
  .flow__row--1 { padding-left: 0; }
  .flow__row--3 { gap: 80px; }
  .flow__arrow { display: none; }
}

@media (max-width: 1100px) {
  .main-nav, .header__actions .btn, .header__actions .lang { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .header__inner { height: 72px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__copy .h-display { max-width: 760px; }
  .hero-collage { margin-inline: auto; }

  .connected__grid { grid-template-columns: 1fr; gap: 56px; }
  .connected__grid .feature-list { max-width: 680px; margin-inline: auto; }

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

  .tabs__panels { padding: 80px 40px 44px; }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-panel__img { justify-self: start; max-width: 560px; }

  .flow { gap: 64px; }
  .flow__row, .flow__row--2, .flow__row--3 { grid-template-columns: 1fr; gap: 32px; padding: 0; }
  .flow__row--1 .flow__copy { order: -1; padding-top: 0; max-width: none; }
  .flow__row--2 .flow__media { max-width: 560px; }
  .flow__row--1 .flow__media { max-width: 560px; }
  .flow__row--3 .flow__copy { order: 1; margin-top: 0; }
  .flow__row--3 .steps { order: 2; margin-top: 0; }

  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }

  .cta__shapes i:nth-child(3) { right: -720px; }
  .h-cta, .cta p { max-width: 520px; }
  .cta__shapes i:nth-child(1), .cta__shapes i:nth-child(2) { opacity: .7; }
}

@media (max-width: 767px) {
  .hero { padding-top: 28px; }
  .hero__copy .lead { margin-top: 24px; font-size: 16px; line-height: 1.5; }
  .hero__copy .btn-row { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__copy .btn-row .btn { height: 48px; }
  .hero__copy .link-arrow { justify-content: center; }

  .logos__title { font-size: 16px; max-width: 300px; margin-inline: auto; }
  .logos__list { flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
  .logos__list img { max-width: 150px; zoom: .8; }

  .section-head { margin-bottom: 36px; }
  .section-sub { font-size: 16px; line-height: 1.5; }
  .feature { grid-template-columns: 48px 1fr; align-items: start; column-gap: 12px; }
  .feature__icon { width: 48px; height: 48px; margin-top: 40px; }
  .feature h3 { grid-column: 1 / -1; }
  .feature-list { gap: 40px; }
  .connected__grid { padding-inline: 0 !important; }
  .hub__node { width: 26%; border-radius: 12px; gap: 4px; padding: 4px; }
  .hub__node .ico { width: 22px; height: 22px; }

  .video { border-radius: 6px; }
  .video__play { width: 52px; height: 52px; box-shadow: 0 0 0 8px rgba(152, 229, 103, .25); }
  .video__play .ico { width: 22px; height: 22px; }

  .cap-grid { grid-template-columns: 1fr; gap: 16px; }
  .cap-card { min-height: 0; padding: 16px 16px 84px; }
  .cap-card h3 { margin-top: 24px; font-size: 18px; }
  .section--eco .center { margin-top: 24px; }
  .section--eco .btn--lg { height: 48px; font-size: 16px; }

  .tabs { margin-inline: calc(var(--gutter) * -1); }
  .tabs__bar { margin-left: var(--gutter); margin-right: 0; border-radius: var(--pill) 0 0 var(--pill); padding: 6px; margin-bottom: -26px; width: auto; }
  .tabs__bar button { height: 44px; padding: 0 18px; font-size: 14px; }
  .tabs__panels { margin-inline: var(--gutter); padding: 52px 16px 24px; border-radius: 24px; }
  .tab-panel__copy h3 { font-size: 20px; }
  .tab-panel__copy > p { font-size: 16px; margin-top: 20px; }
  .tab-panel__copy .btn { margin-top: 28px; white-space: normal; height: auto; min-height: 48px; padding: 12px 20px; text-align: center; }

  .flow__lead { font-size: 16px; }
  .icon-list li { font-size: 16px; }
  .steps { padding: 32px 16px; overflow-x: auto; }
  .steps ol { min-width: 420px; }

  .cta { padding-block: 56px 0; display: flex; flex-direction: column; }
  .cta__inner { order: 1; }
  .cta p { font-size: 16px; margin-top: 28px; }
  .cta .btn-row { flex-direction: column; align-items: stretch; gap: 24px; }
  .cta .link-arrow { justify-content: center; }
  .cta__shapes { order: 2; position: relative; inset: auto; height: 240px; margin-top: 48px; margin-bottom: -1px; overflow: hidden; }
  .cta__shapes i:nth-child(1) { width: 420px; height: 420px; right: -220px; top: -10px; transform: none; opacity: 1; }
  .cta__shapes i:nth-child(2) { width: 460px; height: 460px; right: auto; left: -170px; top: 50px; transform: none; opacity: 1; }
  .cta__shapes i:nth-child(3) { width: 760px; height: 760px; right: -520px; top: 70px; }

  .site-footer { padding-top: 32px; }
  .footer__cols { grid-template-columns: 1fr; gap: 0; }
  .fcol { border-bottom: 1px solid var(--green-700); }
  .fcol summary { pointer-events: auto; padding: 22px 0; font-size: 17px; }
  .fcol summary .ico { display: block; width: 24px; height: 24px; transition: transform .2s; }
  .fcol[open] summary .ico { transform: rotate(45deg); }
  .fcol ul { margin: 0 0 20px; gap: 14px; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 40px; }
}

/* solid white header while a menu is open (Figma) */
.site-header:has(.main-nav .has-menu.is-open)::before { background: #fff; }
@media (min-width: 1101px) and (max-width: 1300px) {
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .footer__brand { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
  .footer__brand p { margin-top: 0; max-width: 420px; }
}

.hero__eyebrow { margin-bottom: 20px; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green-800); }

/* Footer (Figma, Nov 2026): brand + 4 link columns; Resources & Company wrap under Platform & Capabilities */
.footer__top { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 40px; }
.footer__brand p { max-width: 260px; }
.footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.footer__social { gap: 10px; }
@media (max-width: 1300px) { .footer__top { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 1100px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr; row-gap: 0; } }
.section-sub--wide { max-width: 1160px; }
/* Mobile: business-type tab bar is a full pill inside the gutters (rounded on both ends, scrolls inside), like the AI page */
@media (max-width: 767px) {
  .tabs__bar, [dir="rtl"] .tabs__bar { width: auto; margin-left: var(--gutter); margin-right: var(--gutter); border-radius: var(--pill); }
}
/* Mobile footer: no double line under the last accordion (Company) */
@media (max-width: 767px) {
  .fcol:last-child { border-bottom: 0; }
  .footer__bottom { margin-top: 0; }
}
/* Play icon optically centred in the round button (Nov 2026) */
.video__play .ico, [dir="rtl"] .video__play .ico { margin: 0 0 0 -2px; }
@media (max-width: 767px) { .video__play .ico, [dir="rtl"] .video__play .ico { margin-left: -1px; } }
/* Sliding tab indicator shared by other tab bars (Partners, AI) */
.has-ink { position: relative; }
.has-ink > [role="tab"] { position: relative; z-index: 1; }
.pt2-tabs.has-ink > [aria-selected="true"], .ai-tabs__list.has-ink > [aria-selected="true"] { background: transparent; }
.pt2-tabs > .tabs__ink, .ai-tabs__list > .tabs__ink { top: 6px; bottom: 6px; }
@media (max-width: 760px) {
  .pt2-tabs > .tabs__ink { display: none; }
  .pt2-tabs.has-ink > [aria-selected="true"] { background: #fff; }
}
.pg-pt .pt2-tabs.has-ink > [aria-selected="true"] { background: transparent; }
@media (max-width: 760px) { .pg-pt .pt2-tabs.has-ink > [aria-selected="true"] { background: #fff; } }
/* Homepage flow mockups built from separate images (Nov 2026) */
.flow__mock img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(25, 70, 41, .08)); }
.flow__mock--chal { display: grid; grid-template-columns: 236fr 258fr; gap: 9px; align-items: start; }
.flow__mock-col { display: grid; gap: 9px; }
.flow__mock--wf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.flow__mock--wf > img { height: 100%; object-fit: contain; object-position: top; }
.flow__mock-erp { grid-column: 1 / -1; padding: 1.5% 5%; border-radius: 20px; background: #fff; box-shadow: 0 10px 22px rgba(25, 70, 41, .08); }
.flow__mock-erp img { filter: none; }
/* Flow mockups v2: exported frames (Nov 2026) */
.flow__mock img { filter: none; }
.flow__mock--chal { grid-template-columns: 237fr 259fr; gap: 8px; }
.flow__mock-col { gap: 7px; }
.flow__mock--wf { gap: 8px 9px; }
.flow__mock--wf > img { height: auto; }
.flow__mock--wf > .flow__mock-erp { grid-column: 1 / -1; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.steps--img { display: block; width: 100%; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }

/* ===== Homepage flow v3 (Nov 2026, Figma "From complex order to connected workflow") ===== */
.flow--v3 { max-width: 1148px; display: block; }
.flow--v3 .flow__row { display: grid; justify-content: center; align-items: start; gap: 48px; padding: 0; }
.flow--v3 .flow__row--1 { grid-template-columns: minmax(0, 500px) minmax(0, 600px); }
.flow--v3 .flow__row--2 { grid-template-columns: minmax(0, 600px) minmax(0, 500px); margin-top: 64px; }
.flow--v3 .flow__row--3 { grid-template-columns: minmax(0, 600px) minmax(0, 500px); margin-top: 72px; }
.flow--v3 .flow__img { display: block; height: auto; max-width: none; }
.flow--v3 .flow__row--1 .flow__img { width: calc(100% + 18px); margin: -8px 0 0 -8px; filter: drop-shadow(0 12px 28px rgba(25, 70, 41, .07)); }
.flow--v3 .flow__row--2 .flow__img { width: calc(100% + 17px); margin: 17px 0 0 -8px; filter: drop-shadow(0 12px 28px rgba(25, 70, 41, .07)); }
.flow--v3 .flow__row--3 .flow__img { width: calc(100% + 16px); margin: -8px 0 0 -8px; }
.flow--v3 .flow__copy { max-width: none; padding: 0; margin: 0; }
.flow--v3 .h-flow, .flow--v3 .h-flow--green, .flow--v3 .h-outcome { font-size: 30px; line-height: 1.25; font-weight: 500; color: var(--ink); }
.flow--v3 .flow__lead, .flow--v3 .flow__lead--dark { margin-top: 16px; max-width: none; font-size: 18px; line-height: 1.5; color: var(--ink); }
.flow--v3 .icon-list { margin-top: 20px; gap: 8px; }
.flow--v3 .icon-list li { gap: 12px; font-size: 18px; color: var(--ink); }
.flow--v3 .icon-list img { width: 36px; height: 36px; }
.flow--v3 .flow__arrow--1 { width: 144px; left: calc(50% - 574px + 540px); top: 227px; }
.flow--v3 .flow__arrow--2 { width: 152px; left: calc(50% - 574px + 470px); top: 242px; }
@media (max-width: 1240px) { .flow--v3 .flow__arrow { display: none; } }
@media (max-width: 1100px) {
  .flow--v3 .flow__row, .flow--v3 .flow__row--2, .flow--v3 .flow__row--3 { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 28px; }
  .flow--v3 .flow__row--2, .flow--v3 .flow__row--3 { margin-top: 64px; }
  .flow--v3 .flow__row--1 .flow__copy { order: -1; }
  .flow--v3 .flow__row--3 .flow__copy { order: -1; }
  .flow--v3 .flow__img { max-width: 560px; }
  .flow--v3 .flow__row--2 .flow__img { margin-top: -8px; }
}
@media (max-width: 767px) {
  .flow--v3 .h-flow, .flow--v3 .h-flow--green, .flow--v3 .h-outcome { font-size: 26px; }
  .flow--v3 .flow__lead, .flow--v3 .flow__lead--dark, .flow--v3 .icon-list li { font-size: 16px; }
}
/* Flow v3: each Figma frame is its own transparent SVG, placed like the design */
.flow--v3 .flow__set { position: relative; width: 100%; }
.flow--v3 .flow__set img { position: absolute; display: block; height: auto; max-width: none; }
.flow--v3 .flow__set--chal { aspect-ratio: 500 / 359; }
.flow--v3 .flow__set--wf { aspect-ratio: 500 / 321.5; margin-top: 25px; }
.flow--v3 .flow__set--bo { aspect-ratio: 600 / 196; }
.flow--v3 .flow__set--chal img, .flow--v3 .flow__set--wf img { filter: drop-shadow(0 10px 24px rgba(25, 70, 41, .08)) drop-shadow(0 1px 3px rgba(25, 70, 41, .06)); }
.flow--v3 .icon-list img { box-sizing: border-box; width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--green-100); }
@media (max-width: 1100px) { .flow--v3 .flow__set { max-width: 560px; } .flow--v3 .flow__set--wf { margin-top: 0; } }
